Codebase list varconf / 01bc9a6
Imported Upstream version 1.0.0 Stephen M. Webb 10 years ago
23 changed file(s) with 7868 addition(s) and 4623 deletion(s). Raw diff Collapse all Expand all
0 2012-11-06 Al Riddoch <alriddoch@googlemail.com>
1
2 * Symbol visibility has been implemented to improve runtime link time.
3
04 2009-12-10 Simon Goodall <simon@worldforge.org>
15
26 * README: Point reader to parse_error.cpp/h rather than ParseError.cc/h
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
5151 CONFIG_HEADER = config.h
5252 CONFIG_CLEAN_FILES = varconf.spec mingw32-varconf.spec varconf-1.0.pc
5353 CONFIG_CLEAN_VPATH_FILES =
54 AM_V_GEN = $(am__v_GEN_@AM_V@)
55 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
56 am__v_GEN_0 = @echo " GEN " $@;
57 AM_V_at = $(am__v_at_@AM_V@)
58 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
59 am__v_at_0 = @
5460 SOURCES =
5561 DIST_SOURCES =
5662 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
8187 am__base_list = \
8288 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
8389 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
90 am__uninstall_files_from_dir = { \
91 test -z "$$files" \
92 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
93 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
94 $(am__cd) "$$dir" && rm -f $$files; }; \
95 }
8496 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
8597 DATA = $(pkgconfig_DATA)
8698 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
95107 distdir = $(PACKAGE)-$(VERSION)
96108 top_distdir = $(distdir)
97109 am__remove_distdir = \
98 { test ! -d "$(distdir)" \
99 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
100 && rm -fr "$(distdir)"; }; }
110 if test -d "$(distdir)"; then \
111 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
112 && rm -rf "$(distdir)" \
113 || { sleep 5 && rm -rf "$(distdir)"; }; \
114 else :; fi
101115 am__relativize = \
102116 dir0=`pwd`; \
103117 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
126140 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
127141 GZIP_ENV = --best
128142 distuninstallcheck_listfiles = find . -type f -print
143 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
144 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
129145 distcleancheck_listfiles = find . -type f -print
130146 ACLOCAL = @ACLOCAL@
131147 AMTAR = @AMTAR@
148 AM_CXXFLAGS = @AM_CXXFLAGS@
149 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
132150 AR = @AR@
133151 AUTOCONF = @AUTOCONF@
134152 AUTOHEADER = @AUTOHEADER@
146164 CYGPATH_W = @CYGPATH_W@
147165 DEFS = @DEFS@
148166 DEPDIR = @DEPDIR@
167 DLLTOOL = @DLLTOOL@
149168 DSYMUTIL = @DSYMUTIL@
150169 DUMPBIN = @DUMPBIN@
151170 ECHO_C = @ECHO_C@
169188 LN_S = @LN_S@
170189 LTLIBOBJS = @LTLIBOBJS@
171190 MAKEINFO = @MAKEINFO@
191 MANIFEST_TOOL = @MANIFEST_TOOL@
172192 MIN_SIGC_VERSION = @MIN_SIGC_VERSION@
173193 MKDIR_P = @MKDIR_P@
174194 NM = @NM@
202222 abs_srcdir = @abs_srcdir@
203223 abs_top_builddir = @abs_top_builddir@
204224 abs_top_srcdir = @abs_top_srcdir@
225 ac_ct_AR = @ac_ct_AR@
205226 ac_ct_CC = @ac_ct_CC@
206227 ac_ct_CXX = @ac_ct_CXX@
207228 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
235256 libexecdir = @libexecdir@
236257 localedir = @localedir@
237258 localstatedir = @localstatedir@
238 lt_ECHO = @lt_ECHO@
239259 mandir = @mandir@
240260 mkdir_p = @mkdir_p@
241261 oldincludedir = @oldincludedir@
259279 $(MAKE) $(AM_MAKEFLAGS) all-recursive
260280
261281 .SUFFIXES:
262 am--refresh:
282 am--refresh: Makefile
263283 @:
264284 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
265285 @for dep in $?; do \
295315 $(am__aclocal_m4_deps):
296316
297317 config.h: stamp-h1
298 @if test ! -f $@; then \
299 rm -f stamp-h1; \
300 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
301 else :; fi
318 @if test ! -f $@; then rm -f stamp-h1; else :; fi
319 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
302320
303321 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
304322 @rm -f stamp-h1
342360 @$(NORMAL_UNINSTALL)
343361 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
344362 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
345 test -n "$$files" || exit 0; \
346 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
347 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
363 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
348364
349365 # This directory's subdirectories are mostly independent; you can cd
350366 # into them and run `make' without going through this Makefile.
558574 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
559575 $(am__remove_distdir)
560576 dist-bzip2: distdir
561 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
577 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
578 $(am__remove_distdir)
579
580 dist-lzip: distdir
581 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
562582 $(am__remove_distdir)
563583
564584 dist-lzma: distdir
566586 $(am__remove_distdir)
567587
568588 dist-xz: distdir
569 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
589 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
570590 $(am__remove_distdir)
571591
572592 dist-tarZ: distdir
584604
585605 dist dist-all: distdir
586606 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
587 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
607 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
588608 $(am__remove_distdir)
589609
590610 # This target untars the dist file and tries a VPATH configuration. Then
598618 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
599619 *.tar.lzma*) \
600620 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
621 *.tar.lz*) \
622 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
601623 *.tar.xz*) \
602624 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
603625 *.tar.Z*) \
617639 && am__cwd=`pwd` \
618640 && $(am__cd) $(distdir)/_build \
619641 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
642 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
620643 $(DISTCHECK_CONFIGURE_FLAGS) \
621644 && $(MAKE) $(AM_MAKEFLAGS) \
622645 && $(MAKE) $(AM_MAKEFLAGS) dvi \
645668 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
646669 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
647670 distuninstallcheck:
648 @$(am__cd) '$(distuninstallcheck_dir)' \
649 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
671 @test -n '$(distuninstallcheck_dir)' || { \
672 echo 'ERROR: trying to run $@ with an empty' \
673 '$$(distuninstallcheck_dir)' >&2; \
674 exit 1; \
675 }; \
676 $(am__cd) '$(distuninstallcheck_dir)' || { \
677 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
678 exit 1; \
679 }; \
680 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
650681 || { echo "ERROR: files left after uninstall:" ; \
651682 if test -n "$(DESTDIR)"; then \
652683 echo " (check DESTDIR support)"; \
680711
681712 installcheck: installcheck-recursive
682713 install-strip:
683 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
684 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
685 `test -z '$(STRIP)' || \
686 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
714 if test -z '$(STRIP)'; then \
715 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
716 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
717 install; \
718 else \
719 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
720 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
721 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
722 fi
687723 mostlyclean-generic:
688724
689725 clean-generic:
771807 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
772808 all all-am am--refresh check check-am clean clean-generic \
773809 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
774 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
775 distcheck distclean distclean-generic distclean-hdr \
810 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
811 dist-zip distcheck distclean distclean-generic distclean-hdr \
776812 distclean-libtool distclean-tags distcleancheck distdir \
777813 distuninstallcheck dvi dvi-am html html-am info info-am \
778814 install install-am install-data install-data-am install-dvi \
0 2012-11-06 Al Riddoch <alriddoch@googlemail.com>
1
2 * varconf 1.0.0 released.
3
04 2011-10-16 Al Riddoch <alriddoch@googlemail.com>
15
26 * varconf 0.6.7 released.
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
45 # This file is free software; the Free Software Foundation
56 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
1213
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
16 [m4_warning([this file was generated for autoconf 2.65.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
1920 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2122 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2223 #
2324 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
2527 # Written by Gordon Matzigkeit, 1996
2628 #
2729 # This file is free software; the Free Software Foundation gives
3032
3133 m4_define([_LT_COPYING], [dnl
3234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
3437 # Written by Gordon Matzigkeit, 1996
3538 #
3639 # This file is part of GNU Libtool.
5760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5861 ])
5962
60 # serial 56 LT_INIT
63 # serial 57 LT_INIT
6164
6265
6366 # LT_PREREQ(VERSION)
8689 # ------------------
8790 AC_DEFUN([LT_INIT],
8891 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
92 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8993 AC_BEFORE([$0], [LT_LANG])dnl
9094 AC_BEFORE([$0], [LT_OUTPUT])dnl
9195 AC_BEFORE([$0], [LTDL_INIT])dnl
101105 AC_REQUIRE([LTVERSION_VERSION])dnl
102106 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103107 m4_require([_LT_PROG_LTMAIN])dnl
108
109 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
104110
105111 dnl Parse OPTIONS
106112 _LT_SET_OPTIONS([$0], [$1])
138144 *) break;;
139145 esac
140146 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
142148 ])
143149
144150
158164 m4_defun([_LT_SETUP],
159165 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
160166 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
167 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169
170 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
171 dnl
161172 _LT_DECL([], [host_alias], [0], [The host system])dnl
162173 _LT_DECL([], [host], [0])dnl
163174 _LT_DECL([], [host_os], [0])dnl
180191 dnl
181192 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182193 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
194 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
183195 m4_require([_LT_CMD_RELOAD])dnl
184196 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
197 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185198 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186199 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200 m4_require([_LT_WITH_SYSROOT])dnl
187201
188202 _LT_CONFIG_LIBTOOL_INIT([
189203 # See if we are running on zsh, and set the options which allow our
199213 _LT_CHECK_OBJDIR
200214
201215 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
203216
204217 case $host_os in
205218 aix3*)
213226 ;;
214227 esac
215228
216 # Sed substitution that helps us do robust quoting. It backslashifies
217 # metacharacters that are still active within double-quoted strings.
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
219
220 # Same as above, but do not quote variable references.
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
222
223 # Sed substitution to delay expansion of an escaped shell variable in a
224 # double_quote_subst'ed string.
225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
230 # Sed substitution to avoid accidental globbing in evaled expressions
231 no_glob_subst='s/\*/\\\*/g'
232
233229 # Global variables:
234230 ofile=libtool
235231 can_build_shared=yes
269265 _LT_CONFIG_COMMANDS
270266 ])# _LT_SETUP
271267
268
269 # _LT_PREPARE_SED_QUOTE_VARS
270 # --------------------------
271 # Define a few sed substitution that help us do robust quoting.
272 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
273 [# Backslashify metacharacters that are still active within
274 # double-quoted strings.
275 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
276
277 # Same as above, but do not quote variable references.
278 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
279
280 # Sed substitution to delay expansion of an escaped shell variable in a
281 # double_quote_subst'ed string.
282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
283
284 # Sed substitution to delay expansion of an escaped single quote.
285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
286
287 # Sed substitution to avoid accidental globbing in evaled expressions
288 no_glob_subst='s/\*/\\\*/g'
289 ])
272290
273291 # _LT_PROG_LTMAIN
274292 # ---------------
422440 # declaration there will have the same value as in `configure'. VARNAME
423441 # must have a single quote delimited value for this to work.
424442 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
443 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
426444
427445
428446 # _LT_CONFIG_STATUS_DECLARATIONS
432450 # embedded single quotes properly. In configure, this macro expands
433451 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434452 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
453 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
436454 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437455 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438456 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
531549 LTCFLAGS='$LTCFLAGS'
532550 compiler='$compiler_DEFAULT'
533551
552 # A function that is used when there is no print builtin or printf.
553 func_fallback_echo ()
554 {
555 eval 'cat <<_LTECHO_EOF
556 \$[]1
557 _LTECHO_EOF'
558 }
559
534560 # Quote evaled strings.
535561 for var in lt_decl_all_varnames([[ \
536562 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
538564 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540566 ;;
541567 *)
542568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
547573 # Double-quote double-evaled strings.
548574 for var in lt_decl_all_varnames([[ \
549575 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
551577 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553579 ;;
554580 *)
555581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
557583 esac
558584 done
559585
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567586 _LT_OUTPUT_LIBTOOL_INIT
568587 ])
569588
589 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
590 # ------------------------------------
591 # Generate a child script FILE with all initialization necessary to
592 # reuse the environment learned by the parent script, and make the
593 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
595 # macro, additional text can be appended to FILE to form the body of
596 # the child script. The macro ends with non-zero status if the
597 # file could not be fully written (such as if the disk is full).
598 m4_ifdef([AS_INIT_GENERATED],
599 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
600 [m4_defun([_LT_GENERATED_FILE_INIT],
601 [m4_require([AS_PREPARE])]dnl
602 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
603 [lt_write_fail=0
604 cat >$1 <<_ASEOF || lt_write_fail=1
605 #! $SHELL
606 # Generated by $as_me.
607 $2
608 SHELL=\${CONFIG_SHELL-$SHELL}
609 export SHELL
610 _ASEOF
611 cat >>$1 <<\_ASEOF || lt_write_fail=1
612 AS_SHELL_SANITIZE
613 _AS_PREPARE
614 exec AS_MESSAGE_FD>&1
615 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
617 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
570618
571619 # LT_OUTPUT
572620 # ---------
576624 AC_DEFUN([LT_OUTPUT],
577625 [: ${CONFIG_LT=./config.lt}
578626 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
627 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
628 [# Run this file to recreate a libtool stub with the current configuration.])
629
630 cat >>"$CONFIG_LT" <<\_LTEOF
584631 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593632 exec AS_MESSAGE_LOG_FD>>config.log
594633 {
595634 echo
615654 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616655 configured by $[0], generated by m4_PACKAGE_STRING.
617656
618 Copyright (C) 2008 Free Software Foundation, Inc.
657 Copyright (C) 2011 Free Software Foundation, Inc.
619658 This config.lt script is free software; the Free Software Foundation
620659 gives unlimited permision to copy, distribute and modify it."
621660
660699 # appending to config.log, which fails on DOS, as config.log is still kept
661700 # open by configure. Here we exec the FD to /dev/null, effectively closing
662701 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
702 lt_cl_success=:
703 test "$silent" = yes &&
704 lt_config_lt_args="$lt_config_lt_args --quiet"
705 exec AS_MESSAGE_LOG_FD>/dev/null
706 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
707 exec AS_MESSAGE_LOG_FD>>config.log
708 $lt_cl_success || AS_EXIT(1)
672709 ])# LT_OUTPUT
673710
674711
731768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732769 # text mode, it properly converts lines to CR/LF. This bash problem
733770 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
771 sed '$q' "$ltmain" >> "$cfgfile" \
772 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775
776 mv -f "$cfgfile" "$ofile" ||
743777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744778 chmod +x "$ofile"
745779 ],
784818 m4_case([$1],
785819 [C], [_LT_LANG(C)],
786820 [C++], [_LT_LANG(CXX)],
821 [Go], [_LT_LANG(GO)],
787822 [Java], [_LT_LANG(GCJ)],
788823 [Fortran 77], [_LT_LANG(F77)],
789824 [Fortran], [_LT_LANG(FC)],
803838 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804839 _LT_LANG_$1_CONFIG($1)])dnl
805840 ])# _LT_LANG
841
842
843 m4_ifndef([AC_PROG_GO], [
844 # NOTE: This macro has been submitted for inclusion into #
845 # GNU Autoconf as AC_PROG_GO. When it is available in #
846 # a released version of Autoconf we should remove this #
847 # macro and use it instead. #
848 m4_defun([AC_PROG_GO],
849 [AC_LANG_PUSH(Go)dnl
850 AC_ARG_VAR([GOC], [Go compiler command])dnl
851 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
852 _AC_ARG_VAR_LDFLAGS()dnl
853 AC_CHECK_TOOL(GOC, gccgo)
854 if test -z "$GOC"; then
855 if test -n "$ac_tool_prefix"; then
856 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
857 fi
858 fi
859 if test -z "$GOC"; then
860 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
861 fi
862 ])#m4_defun
863 ])#m4_ifndef
806864
807865
808866 # _LT_LANG_DEFAULT_CONFIG
835893 m4_ifdef([LT_PROG_GCJ],
836894 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837895
896 AC_PROVIDE_IFELSE([AC_PROG_GO],
897 [LT_LANG(GO)],
898 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
899
838900 AC_PROVIDE_IFELSE([LT_PROG_RC],
839901 [LT_LANG(RC)],
840902 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
845907 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846908 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847909 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
910 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
848911 dnl aclocal-1.4 backwards compatibility:
849912 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850913 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851914 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852915 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
916 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
853917
854918
855919 # _LT_TAG_COMPILER
935999 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9361000 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9371001 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1002 # If there is a non-empty error log, and "single_module"
1003 # appears in it, assume the flag caused a linker warning
1004 if test -s conftest.err && $GREP single_module conftest.err; then
1005 cat conftest.err >&AS_MESSAGE_LOG_FD
1006 # Otherwise, if the output was created with a 0 exit code from
1007 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9391009 lt_cv_apple_cc_single_mod=yes
9401010 else
9411011 cat conftest.err >&AS_MESSAGE_LOG_FD
9431013 rm -rf libconftest.dylib*
9441014 rm -f conftest.*
9451015 fi])
1016
9461017 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9471018 [lt_cv_ld_exported_symbols_list],
9481019 [lt_cv_ld_exported_symbols_list=no
9531024 [lt_cv_ld_exported_symbols_list=yes],
9541025 [lt_cv_ld_exported_symbols_list=no])
9551026 LDFLAGS="$save_LDFLAGS"
1027 ])
1028
1029 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1030 [lt_cv_ld_force_load=no
1031 cat > conftest.c << _LT_EOF
1032 int forced_loaded() { return 2;}
1033 _LT_EOF
1034 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1035 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1036 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1037 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1038 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1039 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1040 cat > conftest.c << _LT_EOF
1041 int main() { return 0;}
1042 _LT_EOF
1043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1045 _lt_result=$?
1046 if test -s conftest.err && $GREP force_load conftest.err; then
1047 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1049 lt_cv_ld_force_load=yes
1050 else
1051 cat conftest.err >&AS_MESSAGE_LOG_FD
1052 fi
1053 rm -f conftest.err libconftest.a conftest conftest.c
1054 rm -rf conftest.dSYM
9561055 ])
9571056 case $host_os in
9581057 rhapsody* | darwin1.[[012]])
9811080 else
9821081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9831082 fi
984 if test "$DSYMUTIL" != ":"; then
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9851084 _lt_dsymutil='~$DSYMUTIL $lib || :'
9861085 else
9871086 _lt_dsymutil=
9911090 ])
9921091
9931092
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
1093 # _LT_DARWIN_LINKER_FEATURES([TAG])
1094 # ---------------------------------
9961095 # Checks for linker and compiler features on darwin
9971096 m4_defun([_LT_DARWIN_LINKER_FEATURES],
9981097 [
10011100 _LT_TAGVAR(hardcode_direct, $1)=no
10021101 _LT_TAGVAR(hardcode_automatic, $1)=yes
10031102 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1103 if test "$lt_cv_ld_force_load" = "yes"; then
1104 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1105 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1106 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1107 else
1108 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1109 fi
10051110 _LT_TAGVAR(link_all_deplibs, $1)=yes
10061111 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
10071112 case $cc_basename in
10091114 *) _lt_dar_can_shared=$GCC ;;
10101115 esac
10111116 if test "$_lt_dar_can_shared" = "yes"; then
1012 output_verbose_link_cmd=echo
1117 output_verbose_link_cmd=func_echo_all
10131118 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10141119 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10151120 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10251130 fi
10261131 ])
10271132
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
1133 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1134 # ----------------------------------
10301135 # Links a minimal program and checks the executable
10311136 # for the system default hardcoded library path. In most cases,
10321137 # this is /usr/lib:/lib, but when the MPI compilers are used
10331138 # the location of the communication and MPI libs are included too.
10341139 # If we don't find anything, use the default library path according
10351140 # to the aix ld manual.
1141 # Store the results from the different compilers for each TAGNAME.
1142 # Allow to override them for all tags through lt_cv_aix_libpath.
10361143 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10371144 [m4_require([_LT_DECL_SED])dnl
1038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1039 lt_aix_libpath_sed='
1040 /Import File Strings/,/^$/ {
1041 /^0/ {
1042 s/^0 *\(.*\)$/\1/
1043 p
1044 }
1045 }'
1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1047 # Check for a 64-bit object if we didn't find anything.
1048 if test -z "$aix_libpath"; then
1049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1050 fi],[])
1051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1146 aix_libpath=$lt_cv_aix_libpath
1147 else
1148 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1149 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1150 lt_aix_libpath_sed='[
1151 /Import File Strings/,/^$/ {
1152 /^0/ {
1153 s/^0 *\([^ ]*\) *$/\1/
1154 p
1155 }
1156 }]'
1157 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1158 # Check for a 64-bit object if we didn't find anything.
1159 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1160 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1161 fi],[])
1162 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1164 fi
1165 ])
1166 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1167 fi
10521168 ])# _LT_SYS_MODULE_PATH_AIX
10531169
10541170
10551171 # _LT_SHELL_INIT(ARG)
10561172 # -------------------
10571173 m4_define([_LT_SHELL_INIT],
1058 [ifdef([AC_DIVERSION_NOTICE],
1059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1060 [AC_DIVERT_PUSH(NOTICE)])
1061 $1
1062 AC_DIVERT_POP
1063 ])# _LT_SHELL_INIT
1174 [m4_divert_text([M4SH-INIT], [$1
1175 ])])# _LT_SHELL_INIT
1176
10641177
10651178
10661179 # _LT_PROG_ECHO_BACKSLASH
10671180 # -----------------------
1068 # Add some code to the start of the generated configure script which
1069 # will find an echo command which doesn't interpret backslashes.
1181 # Find how we can fake an echo command that does not interpret backslash.
1182 # In particular, with Autoconf 2.60 or later we add some code to the start
1183 # of the generated configure script which will find a shell with a builtin
1184 # printf (which we can use as an echo command).
10701185 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1071 [_LT_SHELL_INIT([
1072 # Check that we are running under the correct shell.
1073 SHELL=${CONFIG_SHELL-/bin/sh}
1074
1075 case X$lt_ECHO in
1076 X*--fallback-echo)
1077 # Remove one level of quotation (which was required for Make).
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1079 ;;
1186 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1189
1190 AC_MSG_CHECKING([how to print strings])
1191 # Test print first, because it will be a builtin if present.
1192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1194 ECHO='print -r --'
1195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1196 ECHO='printf %s\n'
1197 else
1198 # Use this function as a fallback that always works.
1199 func_fallback_echo ()
1200 {
1201 eval 'cat <<_LTECHO_EOF
1202 $[]1
1203 _LTECHO_EOF'
1204 }
1205 ECHO='func_fallback_echo'
1206 fi
1207
1208 # func_echo_all arg...
1209 # Invoke $ECHO with all args, space-separated.
1210 func_echo_all ()
1211 {
1212 $ECHO "$*"
1213 }
1214
1215 case "$ECHO" in
1216 printf*) AC_MSG_RESULT([printf]) ;;
1217 print*) AC_MSG_RESULT([print -r]) ;;
1218 *) AC_MSG_RESULT([cat]) ;;
10801219 esac
10811220
1082 ECHO=${lt_ECHO-echo}
1083 if test "X[$]1" = X--no-reexec; then
1084 # Discard the --no-reexec flag, and continue.
1085 shift
1086 elif test "X[$]1" = X--fallback-echo; then
1087 # Avoid inline document here, it may be left over
1088 :
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
1091 :
1092 else
1093 # Restart under the correct shell.
1094 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1095 fi
1096
1097 if test "X[$]1" = X--fallback-echo; then
1098 # used as fallback echo
1099 shift
1100 cat <<_LT_EOF
1101 [$]*
1102 _LT_EOF
1103 exit 0
1104 fi
1105
1106 # The HP-UX ksh and POSIX shell print the target directory to stdout
1107 # if CDPATH is set.
1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1109
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
1119 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
1143 fi
1144 done
1145 IFS="$lt_save_ifs"
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
1203 fi
1204 fi
1205 fi
1206 fi
1207 fi
1208 fi
1209
1210 # Copy echo and quote the copy suitably for passing to libtool from
1211 # the Makefile, instead of quoting the original, which is used later.
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1215 fi
1216
1217 AC_SUBST(lt_ECHO)
1218 ])
1221 m4_ifdef([_AS_DETECT_SUGGESTED],
1222 [_AS_DETECT_SUGGESTED([
1223 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1227 PATH=/empty FPATH=/empty; export PATH FPATH
1228 test "X`printf %s $ECHO`" = "X$ECHO" \
1229 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1230
12191231 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
1232 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
12221233 ])# _LT_PROG_ECHO_BACKSLASH
12231234
1235
1236 # _LT_WITH_SYSROOT
1237 # ----------------
1238 AC_DEFUN([_LT_WITH_SYSROOT],
1239 [AC_MSG_CHECKING([for sysroot])
1240 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1243 [], [with_sysroot=no])
1244
1245 dnl lt_sysroot will always be passed unquoted. We quote it here
1246 dnl in case the user passed a directory name.
1247 lt_sysroot=
1248 case ${with_sysroot} in #(
1249 yes)
1250 if test "$GCC" = yes; then
1251 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1252 fi
1253 ;; #(
1254 /*)
1255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1256 ;; #(
1257 no|'')
1258 ;; #(
1259 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1261 AC_MSG_ERROR([The sysroot must be an absolute path.])
1262 ;;
1263 esac
1264
1265 AC_MSG_RESULT([${lt_sysroot:-no}])
1266 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
12241268
12251269 # _LT_ENABLE_LOCK
12261270 # ---------------
12501294 ;;
12511295 *-*-irix6*)
12521296 # Find out which ABI we are using.
1253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1297 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12541298 if AC_TRY_EVAL(ac_compile); then
12551299 if test "$lt_cv_prog_gnu_ld" = yes; then
12561300 case `/usr/bin/file conftest.$ac_objext` in
13431387 CFLAGS="$SAVE_CFLAGS"
13441388 fi
13451389 ;;
1346 sparc*-*solaris*)
1390 *-*solaris*)
13471391 # Find out which ABI we are using.
13481392 echo 'int i;' > conftest.$ac_ext
13491393 if AC_TRY_EVAL(ac_compile); then
13501394 case `/usr/bin/file conftest.o` in
13511395 *64-bit*)
13521396 case $lt_cv_prog_gnu_ld in
1353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1397 yes*)
1398 case $host in
1399 i?86-*-solaris*)
1400 LD="${LD-ld} -m elf_x86_64"
1401 ;;
1402 sparc*-*-solaris*)
1403 LD="${LD-ld} -m elf64_sparc"
1404 ;;
1405 esac
1406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1408 LD="${LD-ld}_sol2"
1409 fi
1410 ;;
13541411 *)
13551412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13561413 LD="${LD-ld} -64"
13681425 ])# _LT_ENABLE_LOCK
13691426
13701427
1428 # _LT_PROG_AR
1429 # -----------
1430 m4_defun([_LT_PROG_AR],
1431 [AC_CHECK_TOOLS(AR, [ar], false)
1432 : ${AR=ar}
1433 : ${AR_FLAGS=cru}
1434 _LT_DECL([], [AR], [1], [The archiver])
1435 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1436
1437 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1438 [lt_cv_ar_at_file=no
1439 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1440 [echo conftest.$ac_objext > conftest.lst
1441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1442 AC_TRY_EVAL([lt_ar_try])
1443 if test "$ac_status" -eq 0; then
1444 # Ensure the archiver fails upon bogus file names.
1445 rm -f conftest.$ac_objext libconftest.a
1446 AC_TRY_EVAL([lt_ar_try])
1447 if test "$ac_status" -ne 0; then
1448 lt_cv_ar_at_file=@
1449 fi
1450 fi
1451 rm -f conftest.* libconftest.a
1452 ])
1453 ])
1454
1455 if test "x$lt_cv_ar_at_file" = xno; then
1456 archiver_list_spec=
1457 else
1458 archiver_list_spec=$lt_cv_ar_at_file
1459 fi
1460 _LT_DECL([], [archiver_list_spec], [1],
1461 [How to feed a file listing to the archiver])
1462 ])# _LT_PROG_AR
1463
1464
13711465 # _LT_CMD_OLD_ARCHIVE
13721466 # -------------------
13731467 m4_defun([_LT_CMD_OLD_ARCHIVE],
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
1468 [_LT_PROG_AR
13791469
13801470 AC_CHECK_TOOL(STRIP, strip, :)
13811471 test -z "$STRIP" && STRIP=:
13941484 if test -n "$RANLIB"; then
13951485 case $host_os in
13961486 openbsd*)
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13981488 ;;
13991489 *)
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14011491 ;;
14021492 esac
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14041494 fi
1495
1496 case $host_os in
1497 darwin*)
1498 lock_old_archive_extraction=yes ;;
1499 *)
1500 lock_old_archive_extraction=no ;;
1501 esac
14051502 _LT_DECL([], [old_postinstall_cmds], [2])
14061503 _LT_DECL([], [old_postuninstall_cmds], [2])
14071504 _LT_TAGDECL([], [old_archive_cmds], [2],
14081505 [Commands used to build an old-style archive])
1506 _LT_DECL([], [lock_old_archive_extraction], [0],
1507 [Whether to use a lock for old archive extraction])
14091508 ])# _LT_CMD_OLD_ARCHIVE
14101509
14111510
14301529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14311530 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14321531 -e 's:$: $lt_compiler_flag:'`
1433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14341533 (eval "$lt_compile" 2>conftest.err)
14351534 ac_status=$?
14361535 cat conftest.err >&AS_MESSAGE_LOG_FD
1437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1536 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14381537 if (exit $ac_status) && test -s "$ac_outfile"; then
14391538 # The compiler can only warn and ignore the option if not recognized
14401539 # So say no if there are warnings other than the usual output.
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14421541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14441543 $2=yes
14781577 if test -s conftest.err; then
14791578 # Append any errors to the config.log.
14801579 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14821581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831582 if diff conftest.exp conftest.er2 >/dev/null; then
14841583 $2=yes
15381637 # the test eventually succeeds (with a max line length of 256k).
15391638 # Instead, let's just punt: use the minimum linelength reported by
15401639 # all of the supported platforms: 8192 (on NT/2K/XP).
1640 lt_cv_sys_max_cmd_len=8192;
1641 ;;
1642
1643 mint*)
1644 # On MiNT this can take a long time and run out of memory.
15411645 lt_cv_sys_max_cmd_len=8192;
15421646 ;;
15431647
15641668 interix*)
15651669 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15661670 lt_cv_sys_max_cmd_len=196608
1671 ;;
1672
1673 os2*)
1674 # The test takes a long time on OS/2.
1675 lt_cv_sys_max_cmd_len=8192
15671676 ;;
15681677
15691678 osf*)
16051714 # If test is not a shell built-in, we'll probably end up computing a
16061715 # maximum length that is only half of the actual maximum length, but
16071716 # we can't tell.
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1718 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16101719 test $i != 17 # 1/2 MB should be enough
16111720 do
16121721 i=`expr $i + 1`
16571766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16581767 lt_status=$lt_dlunknown
16591768 cat > conftest.$ac_ext <<_LT_EOF
1660 [#line __oline__ "configure"
1769 [#line $LINENO "configure"
16611770 #include "confdefs.h"
16621771
16631772 #if HAVE_DLFCN_H
16981807 # endif
16991808 #endif
17001809
1701 void fnord() { int i=42;}
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1811 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1813 int fnord () __attribute__((visibility("default")));
1814 #endif
1815
1816 int fnord () { return 42; }
17021817 int main ()
17031818 {
17041819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17071822 if (self)
17081823 {
17091824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1825 else
1826 {
1827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1828 else puts (dlerror ());
1829 }
17111830 /* dlclose (self); */
17121831 }
17131832 else
18832002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18842003 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18852004 -e 's:$: $lt_compiler_flag:'`
1886 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18872006 (eval "$lt_compile" 2>out/conftest.err)
18882007 ac_status=$?
18892008 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1890 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18912010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18922011 then
18932012 # The compiler can only warn and ignore the option if not recognized
18942013 # So say no if there are warnings
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18962015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18972016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18982017 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20512170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20522171 m4_require([_LT_DECL_OBJDUMP])dnl
20532172 m4_require([_LT_DECL_SED])dnl
2173 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
20542174 AC_MSG_CHECKING([dynamic linker characteristics])
20552175 m4_if([$1],
20562176 [], [
20592179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20602180 *) lt_awk_arg="/^libraries:/" ;;
20612181 esac
2062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2182 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2185 esac
2186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2187 case $lt_search_path_spec in
2188 *\;*)
20642189 # if the path contains ";" then we assume it to be the separator
20652190 # otherwise default to the standard path separator (i.e. ":") - it is
20662191 # assumed that no part of a normal pathname contains ";" but that should
20672192 # okay in the real world where ";" in dirpaths is itself problematic.
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2069 else
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2071 fi
2193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2194 ;;
2195 *)
2196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2197 ;;
2198 esac
20722199 # Ok, now we have the path, separated by spaces, we can step through it
20732200 # and add multilib dir if necessary.
20742201 lt_tmp_lt_search_path_spec=
20812208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20822209 fi
20832210 done
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2211 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20852212 BEGIN {RS=" "; FS="/|\n";} {
20862213 lt_foo="";
20872214 lt_count=0;
21012228 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
21022229 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
21032230 }'`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2231 # AWK program above erroneously prepends '/' to C:/dos/paths
2232 # for these hosts.
2233 case $host_os in
2234 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2236 esac
2237 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21052238 else
21062239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21072240 fi])
21272260
21282261 case $host_os in
21292262 aix3*)
2130 version_type=linux
2263 version_type=linux # correct to gnu/linux during the next big refactor
21312264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21322265 shlibpath_var=LIBPATH
21332266
21362269 ;;
21372270
21382271 aix[[4-9]]*)
2139 version_type=linux
2272 version_type=linux # correct to gnu/linux during the next big refactor
21402273 need_lib_prefix=no
21412274 need_version=no
21422275 hardcode_into_libs=yes
21892322 m68k)
21902323 library_names_spec='$libname.ixlibrary $libname.a'
21912324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2192 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2325 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'
21932326 ;;
21942327 esac
21952328 ;;
22012334 ;;
22022335
22032336 bsdi[[45]]*)
2204 version_type=linux
2337 version_type=linux # correct to gnu/linux during the next big refactor
22052338 need_version=no
22062339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22072340 soname_spec='${libname}${release}${shared_ext}$major'
22202353 need_version=no
22212354 need_lib_prefix=no
22222355
2223 case $GCC,$host_os in
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2356 case $GCC,$cc_basename in
2357 yes,*)
2358 # gcc
22252359 library_names_spec='$libname.dll.a'
22262360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22272361 postinstall_cmds='base_file=`basename \${file}`~
22422376 cygwin*)
22432377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22442378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2379 m4_if([$1], [],[
2380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22462381 ;;
22472382 mingw* | cegcc*)
22482383 # MinGW DLLs use traditional 'lib' prefix
22492384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2252 # It is most probably a Windows format PATH printed by
2253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2254 # path with ; separators, and with drive letters. We can handle the
2255 # drive letters (cygwin fileutils understands them), so leave them,
2256 # especially as we might pass files found there to a mingw objdump,
2257 # which wouldn't understand a cygwinified path. Ahh.
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2259 else
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2261 fi
22622385 ;;
22632386 pw32*)
22642387 # pw32 DLLs use 'pw' prefix rather than 'lib'
22652388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22662389 ;;
22672390 esac
2391 dynamic_linker='Win32 ld.exe'
22682392 ;;
22692393
2394 *,cl*)
2395 # Native MSVC
2396 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2399
2400 case $build_os in
2401 mingw*)
2402 sys_lib_search_path_spec=
2403 lt_save_ifs=$IFS
2404 IFS=';'
2405 for lt_path in $LIB
2406 do
2407 IFS=$lt_save_ifs
2408 # Let DOS variable expansion print the short 8.3 style file name.
2409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2411 done
2412 IFS=$lt_save_ifs
2413 # Convert to MSYS style.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2415 ;;
2416 cygwin*)
2417 # Convert to unix form, then to dos form, then back to unix form
2418 # but this time dos style (no spaces!) so that the unix form looks
2419 # like /cygdrive/c/PROGRA~1:/cygdr...
2420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 ;;
2424 *)
2425 sys_lib_search_path_spec="$LIB"
2426 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2427 # It is most probably a Windows format PATH.
2428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2429 else
2430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2431 fi
2432 # FIXME: find the short name or the path components, as spaces are
2433 # common. (e.g. "Program Files" -> "PROGRA~1")
2434 ;;
2435 esac
2436
2437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2440 dldir=$destdir/`dirname \$dlpath`~
2441 test -d \$dldir || mkdir -p \$dldir~
2442 $install_prog $dir/$dlname \$dldir/$dlname'
2443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2444 dlpath=$dir/\$dldll~
2445 $RM \$dlpath'
2446 shlibpath_overrides_runpath=yes
2447 dynamic_linker='Win32 link.exe'
2448 ;;
2449
22702450 *)
2451 # Assume MSVC wrapper
22712452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2453 dynamic_linker='Win32 ld.exe'
22722454 ;;
22732455 esac
2274 dynamic_linker='Win32 ld.exe'
22752456 # FIXME: first we should search . and the directory the executable is in
22762457 shlibpath_var=PATH
22772458 ;;
22922473 ;;
22932474
22942475 dgux*)
2295 version_type=linux
2476 version_type=linux # correct to gnu/linux during the next big refactor
22962477 need_lib_prefix=no
22972478 need_version=no
22982479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22992480 soname_spec='${libname}${release}${shared_ext}$major'
23002481 shlibpath_var=LD_LIBRARY_PATH
2301 ;;
2302
2303 freebsd1*)
2304 dynamic_linker=no
23052482 ;;
23062483
23072484 freebsd* | dragonfly*)
23112488 objformat=`/usr/bin/objformat`
23122489 else
23132490 case $host_os in
2314 freebsd[[123]]*) objformat=aout ;;
2491 freebsd[[23]].*) objformat=aout ;;
23152492 *) objformat=elf ;;
23162493 esac
23172494 fi
23292506 esac
23302507 shlibpath_var=LD_LIBRARY_PATH
23312508 case $host_os in
2332 freebsd2*)
2509 freebsd2.*)
23332510 shlibpath_overrides_runpath=yes
23342511 ;;
23352512 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23492526 ;;
23502527
23512528 gnu*)
2352 version_type=linux
2529 version_type=linux # correct to gnu/linux during the next big refactor
23532530 need_lib_prefix=no
23542531 need_version=no
23552532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23562533 soname_spec='${libname}${release}${shared_ext}$major'
23572534 shlibpath_var=LD_LIBRARY_PATH
2535 shlibpath_overrides_runpath=no
2536 hardcode_into_libs=yes
2537 ;;
2538
2539 haiku*)
2540 version_type=linux # correct to gnu/linux during the next big refactor
2541 need_lib_prefix=no
2542 need_version=no
2543 dynamic_linker="$host_os runtime_loader"
2544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2545 soname_spec='${libname}${release}${shared_ext}$major'
2546 shlibpath_var=LIBRARY_PATH
2547 shlibpath_overrides_runpath=yes
2548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23582549 hardcode_into_libs=yes
23592550 ;;
23602551
24002591 soname_spec='${libname}${release}${shared_ext}$major'
24012592 ;;
24022593 esac
2403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24042595 postinstall_cmds='chmod 555 $lib'
2596 # or fails outright, so override atomically:
2597 install_override_mode=555
24052598 ;;
24062599
24072600 interix[[3-9]]*)
2408 version_type=linux
2601 version_type=linux # correct to gnu/linux during the next big refactor
24092602 need_lib_prefix=no
24102603 need_version=no
24112604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24212614 nonstopux*) version_type=nonstopux ;;
24222615 *)
24232616 if test "$lt_cv_prog_gnu_ld" = yes; then
2424 version_type=linux
2617 version_type=linux # correct to gnu/linux during the next big refactor
24252618 else
24262619 version_type=irix
24272620 fi ;;
24582651 dynamic_linker=no
24592652 ;;
24602653
2461 # This must be Linux ELF.
2462 linux* | k*bsd*-gnu)
2463 version_type=linux
2654 # This must be glibc/ELF.
2655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2656 version_type=linux # correct to gnu/linux during the next big refactor
24642657 need_lib_prefix=no
24652658 need_version=no
24662659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24682661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24692662 shlibpath_var=LD_LIBRARY_PATH
24702663 shlibpath_overrides_runpath=no
2664
24712665 # Some binutils ld are patched to set DT_RUNPATH
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
2666 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2667 [lt_cv_shlibpath_overrides_runpath=no
2668 save_LDFLAGS=$LDFLAGS
2669 save_libdir=$libdir
2670 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2671 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2672 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2673 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2674 [lt_cv_shlibpath_overrides_runpath=yes])])
2675 LDFLAGS=$save_LDFLAGS
2676 libdir=$save_libdir
2677 ])
2678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24812679
24822680 # This implies no fast_install, which is unacceptable.
24832681 # Some rework will be needed to allow for fast_install
24842682 # before this can be enabled.
24852683 hardcode_into_libs=yes
24862684
2487 # Add ABI-specific directories to the system library path.
2488 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2489
24902685 # Append ld.so.conf contents to the search path
24912686 if test -f /etc/ld.so.conf; then
2492 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2493 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2687 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' ' '`
2688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24942689 fi
24952690
24962691 # We used to test for /lib/ld.so.1 and disable shared libraries on
25002695 # people can always --disable-shared, the test was removed, and we
25012696 # assume the GNU/Linux dynamic linker is in use.
25022697 dynamic_linker='GNU/Linux ld.so'
2698 ;;
2699
2700 netbsdelf*-gnu)
2701 version_type=linux
2702 need_lib_prefix=no
2703 need_version=no
2704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2705 soname_spec='${libname}${release}${shared_ext}$major'
2706 shlibpath_var=LD_LIBRARY_PATH
2707 shlibpath_overrides_runpath=no
2708 hardcode_into_libs=yes
2709 dynamic_linker='NetBSD ld.elf_so'
25032710 ;;
25042711
25052712 netbsd*)
25212728 ;;
25222729
25232730 newsos6)
2524 version_type=linux
2731 version_type=linux # correct to gnu/linux during the next big refactor
25252732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25262733 shlibpath_var=LD_LIBRARY_PATH
25272734 shlibpath_overrides_runpath=yes
25902797 ;;
25912798
25922799 solaris*)
2593 version_type=linux
2800 version_type=linux # correct to gnu/linux during the next big refactor
25942801 need_lib_prefix=no
25952802 need_version=no
25962803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26152822 ;;
26162823
26172824 sysv4 | sysv4.3*)
2618 version_type=linux
2825 version_type=linux # correct to gnu/linux during the next big refactor
26192826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26202827 soname_spec='${libname}${release}${shared_ext}$major'
26212828 shlibpath_var=LD_LIBRARY_PATH
26392846
26402847 sysv4*MP*)
26412848 if test -d /usr/nec ;then
2642 version_type=linux
2849 version_type=linux # correct to gnu/linux during the next big refactor
26432850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26442851 soname_spec='$libname${shared_ext}.$major'
26452852 shlibpath_var=LD_LIBRARY_PATH
26702877
26712878 tpf*)
26722879 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2673 version_type=linux
2880 version_type=linux # correct to gnu/linux during the next big refactor
26742881 need_lib_prefix=no
26752882 need_version=no
26762883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26802887 ;;
26812888
26822889 uts4*)
2683 version_type=linux
2890 version_type=linux # correct to gnu/linux during the next big refactor
26842891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26852892 soname_spec='${libname}${release}${shared_ext}$major'
26862893 shlibpath_var=LD_LIBRARY_PATH
27222929 The last name is the one that the linker finds with -lNAME]])
27232930 _LT_DECL([], [soname_spec], [1],
27242931 [[The coded name of the library, if different from the real name]])
2932 _LT_DECL([], [install_override_mode], [1],
2933 [Permission mode override for installation of shared libraries])
27252934 _LT_DECL([], [postinstall_cmds], [2],
27262935 [Command to use after installation of a shared archive])
27272936 _LT_DECL([], [postuninstall_cmds], [2],
28343043 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
28353044 m4_require([_LT_DECL_SED])dnl
28363045 m4_require([_LT_DECL_EGREP])dnl
3046 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28373047
28383048 AC_ARG_WITH([gnu-ld],
28393049 [AS_HELP_STRING([--with-gnu-ld],
29553165 esac
29563166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29573167 case $host_os in
3168 cygwin* | mingw* | pw32* | cegcc*)
3169 if test "$GCC" != yes; then
3170 reload_cmds=false
3171 fi
3172 ;;
29583173 darwin*)
29593174 if test "$GCC" = yes; then
29603175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29633178 fi
29643179 ;;
29653180 esac
2966 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2967 _LT_DECL([], [reload_cmds], [2])dnl
3181 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3182 _LT_TAGDECL([], [reload_cmds], [2])dnl
29683183 ])# _LT_CMD_RELOAD
29693184
29703185
30163231 # Base MSYS/MinGW do not provide the 'file' command needed by
30173232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30183233 # unless we find 'file', for example because we are cross-compiling.
3019 if ( file / ) >/dev/null 2>&1; then
3234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30203236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30213237 lt_cv_file_magic_cmd='func_win32_libid'
30223238 else
3023 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3239 # Keep this pattern in sync with the one in func_win32_libid.
3240 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30243241 lt_cv_file_magic_cmd='$OBJDUMP -f'
30253242 fi
30263243 ;;
30273244
3028 cegcc)
3245 cegcc*)
30293246 # use the weaker test based on 'objdump'. See mingw*.
30303247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30313248 lt_cv_file_magic_cmd='$OBJDUMP -f'
30553272 lt_cv_deplibs_check_method=pass_all
30563273 ;;
30573274
3275 haiku*)
3276 lt_cv_deplibs_check_method=pass_all
3277 ;;
3278
30583279 hpux10.20* | hpux11*)
30593280 lt_cv_file_magic_cmd=/usr/bin/file
30603281 case $host_cpu in
30633284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30643285 ;;
30653286 hppa*64*)
3066 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3287 [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]']
30673288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30683289 ;;
30693290 *)
3070 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3291 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30713292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30723293 ;;
30733294 esac
30883309 lt_cv_deplibs_check_method=pass_all
30893310 ;;
30903311
3091 # This must be Linux ELF.
3092 linux* | k*bsd*-gnu)
3312 # This must be glibc/ELF.
3313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30933314 lt_cv_deplibs_check_method=pass_all
30943315 ;;
30953316
3096 netbsd*)
3317 netbsd* | netbsdelf*-gnu)
30973318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30983319 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
30993320 else
31673388 ;;
31683389 esac
31693390 ])
3391
3392 file_magic_glob=
3393 want_nocaseglob=no
3394 if test "$build" = "$host"; then
3395 case $host_os in
3396 mingw* | pw32*)
3397 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3398 want_nocaseglob=yes
3399 else
3400 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3401 fi
3402 ;;
3403 esac
3404 fi
3405
31703406 file_magic_cmd=$lt_cv_file_magic_cmd
31713407 deplibs_check_method=$lt_cv_deplibs_check_method
31723408 test -z "$deplibs_check_method" && deplibs_check_method=unknown
31743410 _LT_DECL([], [deplibs_check_method], [1],
31753411 [Method to check whether dependent libraries are shared objects])
31763412 _LT_DECL([], [file_magic_cmd], [1],
3177 [Command to use when deplibs_check_method == "file_magic"])
3413 [Command to use when deplibs_check_method = "file_magic"])
3414 _LT_DECL([], [file_magic_glob], [1],
3415 [How to find potential files when deplibs_check_method = "file_magic"])
3416 _LT_DECL([], [want_nocaseglob], [1],
3417 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31783418 ])# _LT_CHECK_MAGIC_METHOD
31793419
31803420
32313471 NM="$lt_cv_path_NM"
32323472 else
32333473 # Didn't find any BSD compatible name lister, look for dumpbin.
3234 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3474 if test -n "$DUMPBIN"; then :
3475 # Let the user override the test.
3476 else
3477 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3478 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3479 *COFF*)
3480 DUMPBIN="$DUMPBIN -symbols"
3481 ;;
3482 *)
3483 DUMPBIN=:
3484 ;;
3485 esac
3486 fi
32353487 AC_SUBST([DUMPBIN])
32363488 if test "$DUMPBIN" != ":"; then
32373489 NM="$DUMPBIN"
32443496 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32453497 [lt_cv_nm_interface="BSD nm"
32463498 echo "int some_variable = 0;" > conftest.$ac_ext
3247 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3499 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32483500 (eval "$ac_compile" 2>conftest.err)
32493501 cat conftest.err >&AS_MESSAGE_LOG_FD
3250 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3502 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32513503 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32523504 cat conftest.err >&AS_MESSAGE_LOG_FD
3253 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3505 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32543506 cat conftest.out >&AS_MESSAGE_LOG_FD
32553507 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32563508 lt_cv_nm_interface="MS dumpbin"
32643516 dnl aclocal-1.4 backwards compatibility:
32653517 dnl AC_DEFUN([AM_PROG_NM], [])
32663518 dnl AC_DEFUN([AC_PROG_NM], [])
3519
3520 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3521 # --------------------------------
3522 # how to determine the name of the shared library
3523 # associated with a specific link library.
3524 # -- PORTME fill in with the dynamic library characteristics
3525 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3526 [m4_require([_LT_DECL_EGREP])
3527 m4_require([_LT_DECL_OBJDUMP])
3528 m4_require([_LT_DECL_DLLTOOL])
3529 AC_CACHE_CHECK([how to associate runtime and link libraries],
3530 lt_cv_sharedlib_from_linklib_cmd,
3531 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3532
3533 case $host_os in
3534 cygwin* | mingw* | pw32* | cegcc*)
3535 # two different shell functions defined in ltmain.sh
3536 # decide which to use based on capabilities of $DLLTOOL
3537 case `$DLLTOOL --help 2>&1` in
3538 *--identify-strict*)
3539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3540 ;;
3541 *)
3542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3543 ;;
3544 esac
3545 ;;
3546 *)
3547 # fallback: assume linklib IS sharedlib
3548 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3549 ;;
3550 esac
3551 ])
3552 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3553 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3554
3555 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3556 [Command to associate shared and link libraries])
3557 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3558
3559
3560 # _LT_PATH_MANIFEST_TOOL
3561 # ----------------------
3562 # locate the manifest tool
3563 m4_defun([_LT_PATH_MANIFEST_TOOL],
3564 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3565 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3566 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3567 [lt_cv_path_mainfest_tool=no
3568 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3569 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3570 cat conftest.err >&AS_MESSAGE_LOG_FD
3571 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3572 lt_cv_path_mainfest_tool=yes
3573 fi
3574 rm -f conftest*])
3575 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3576 MANIFEST_TOOL=:
3577 fi
3578 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3579 ])# _LT_PATH_MANIFEST_TOOL
32673580
32683581
32693582 # LT_LIB_M
32733586 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
32743587 LIBM=
32753588 case $host in
3276 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3589 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32773590 # These system don't have libm, or don't need it
32783591 ;;
32793592 *-ncr-sysv4.3*)
33013614 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
33023615
33033616 if test "$GCC" = yes; then
3304 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3617 case $cc_basename in
3618 nvcc*)
3619 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3620 *)
3621 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3622 esac
33053623
33063624 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33073625 lt_cv_prog_compiler_rtti_exceptions,
33183636 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33193637 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
33203638 AC_REQUIRE([AC_PROG_CC])dnl
3639 AC_REQUIRE([AC_PROG_AWK])dnl
33213640 AC_REQUIRE([LT_PATH_NM])dnl
33223641 AC_REQUIRE([LT_PATH_LD])dnl
33233642 m4_require([_LT_DECL_SED])dnl
33853704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33863705
33873706 # Transform an extracted symbol line into symbol name and symbol address
3388 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3389 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'"
3707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3708 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'"
33903709
33913710 # Handle CRLF in mingw tool chain
33923711 opt_cr=
34103729 # which start with @ or ?.
34113730 lt_cv_sys_global_symbol_pipe="$AWK ['"\
34123731 " {last_section=section; section=\$ 3};"\
3732 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
34133733 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
34143734 " \$ 0!~/External *\|/{next};"\
34153735 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
34223742 else
34233743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34243744 fi
3745 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34253746
34263747 # Check to see that the pipe works correctly.
34273748 pipe_works=no
34433764 if AC_TRY_EVAL(ac_compile); then
34443765 # Now try to grab the symbols.
34453766 nlist=conftest.nm
3446 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3767 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34473768 # Try sorting and uniquifying the output.
34483769 if sort "$nlist" | uniq > "$nlist"T; then
34493770 mv -f "$nlist"T "$nlist"
34553776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34563777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34573778 cat <<_LT_EOF > conftest.$ac_ext
3779 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3780 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3781 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3782 relocations are performed -- see ld's documentation on pseudo-relocs. */
3783 # define LT@&t@_DLSYM_CONST
3784 #elif defined(__osf__)
3785 /* This system does not cope well with relocations in const data. */
3786 # define LT@&t@_DLSYM_CONST
3787 #else
3788 # define LT@&t@_DLSYM_CONST const
3789 #endif
3790
34583791 #ifdef __cplusplus
34593792 extern "C" {
34603793 #endif
34663799 cat <<_LT_EOF >> conftest.$ac_ext
34673800
34683801 /* The mapping between symbol names and symbols. */
3469 const struct {
3802 LT@&t@_DLSYM_CONST struct {
34703803 const char *name;
34713804 void *address;
34723805 }
34923825 _LT_EOF
34933826 # Now try linking the two files.
34943827 mv conftest.$ac_objext conftstm.$ac_objext
3495 lt_save_LIBS="$LIBS"
3496 lt_save_CFLAGS="$CFLAGS"
3828 lt_globsym_save_LIBS=$LIBS
3829 lt_globsym_save_CFLAGS=$CFLAGS
34973830 LIBS="conftstm.$ac_objext"
34983831 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
34993832 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
35003833 pipe_works=yes
35013834 fi
3502 LIBS="$lt_save_LIBS"
3503 CFLAGS="$lt_save_CFLAGS"
3835 LIBS=$lt_globsym_save_LIBS
3836 CFLAGS=$lt_globsym_save_CFLAGS
35043837 else
35053838 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35063839 fi
35333866 AC_MSG_RESULT(ok)
35343867 fi
35353868
3869 # Response file support.
3870 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3871 nm_file_list_spec='@'
3872 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3873 nm_file_list_spec='@'
3874 fi
3875
35363876 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35373877 [Take the output of nm and produce a listing of raw symbols and C names])
35383878 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35433883 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35443884 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35453885 [Transform the output of nm in a C name address pair when lib prefix is needed])
3886 _LT_DECL([], [nm_file_list_spec], [1],
3887 [Specify filename containing input files for $NM])
35463888 ]) # _LT_CMD_GLOBAL_SYMBOLS
35473889
35483890
35543896 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35553897 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35563898
3557 AC_MSG_CHECKING([for $compiler option to produce PIC])
35583899 m4_if([$1], [CXX], [
35593900 # C++ specific cases for pic, static, wl, etc.
35603901 if test "$GXX" = yes; then
36043945 *djgpp*)
36053946 # DJGPP does not support shared libraries at all
36063947 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3948 ;;
3949 haiku*)
3950 # PIC is the default for Haiku.
3951 # The "-static" flag exists, but is broken.
3952 _LT_TAGVAR(lt_prog_compiler_static, $1)=
36073953 ;;
36083954 interix[[3-9]]*)
36093955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36533999 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
36544000 ;;
36554001 esac
4002 ;;
4003 mingw* | cygwin* | os2* | pw32* | cegcc*)
4004 # This hack is so that the source file can tell whether it is being
4005 # built for inclusion in a dll (and should export symbols for example).
4006 m4_if([$1], [GCJ], [],
4007 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36564008 ;;
36574009 dgux*)
36584010 case $cc_basename in
37104062 ;;
37114063 esac
37124064 ;;
3713 linux* | k*bsd*-gnu)
4065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
37144066 case $cc_basename in
37154067 KCC*)
37164068 # KAI C++ Compiler
37434095 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37444096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37454097 ;;
3746 xlc* | xlC*)
3747 # IBM XL 8.0 on PPC
4098 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4099 # IBM XL 8.0, 9.0 on PPC and BlueGene
37484100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37494101 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37504102 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
37744126 ;;
37754127 esac
37764128 ;;
3777 netbsd*)
4129 netbsd* | netbsdelf*-gnu)
37784130 ;;
37794131 *qnx* | *nto*)
37804132 # QNX uses GNU C++, but need to define -shared option too, otherwise
38064158 ;;
38074159 solaris*)
38084160 case $cc_basename in
3809 CC*)
4161 CC* | sunCC*)
38104162 # Sun C++ 4.2, 5.x and Centerline C++
38114163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38124164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39104262 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39114263 ;;
39124264
4265 haiku*)
4266 # PIC is the default for Haiku.
4267 # The "-static" flag exists, but is broken.
4268 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4269 ;;
4270
39134271 hpux*)
39144272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39154273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39504308
39514309 *)
39524310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4311 ;;
4312 esac
4313
4314 case $cc_basename in
4315 nvcc*) # Cuda Compiler Driver 2.2
4316 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4317 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4318 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4319 fi
39534320 ;;
39544321 esac
39554322 else
39944361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
39954362 ;;
39964363
3997 linux* | k*bsd*-gnu)
4364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
39984365 case $cc_basename in
39994366 # old Intel for x86_64 which still supported -KPIC.
40004367 ecc*)
40154382 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40164383 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40174384 ;;
4018 pgcc* | pgf77* | pgf90* | pgf95*)
4385 nagfor*)
4386 # NAG Fortran compiler
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4390 ;;
4391 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40194392 # Portland Group compilers (*not* the Pentium gcc compiler,
40204393 # which looks to be a dead project)
40214394 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40274400 # All Alpha code is PIC.
40284401 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40294402 ;;
4030 xl*)
4031 # IBM XL C 8.0/Fortran 10.1 on PPC
4403 xl* | bgxl* | bgf* | mpixl*)
4404 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40324405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40334406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40344407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
40354408 ;;
40364409 *)
40374410 case `$CC -V 2>&1 | sed 5q` in
4411 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4412 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4413 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4414 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4416 ;;
4417 *Sun\ F* | *Sun*Fortran*)
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4421 ;;
40384422 *Sun\ C*)
40394423 # Sun C 5.9
40404424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40414425 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40424426 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40434427 ;;
4044 *Sun\ F*)
4045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4046 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4428 *Intel*\ [[CF]]*Compiler*)
4429 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4432 ;;
4433 *Portland\ Group*)
4434 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
40474436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4048 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
40494437 ;;
40504438 esac
40514439 ;;
40774465 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40784466 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40794467 case $cc_basename in
4080 f77* | f90* | f95*)
4468 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
40814469 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40824470 *)
40834471 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
41344522 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41354523 ;;
41364524 esac
4137 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4138 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4139 [How to pass a linker flag through the compiler])
4525
4526 AC_CACHE_CHECK([for $compiler option to produce PIC],
4527 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4528 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4529 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41404530
41414531 #
41424532 # Check to make sure the PIC flag actually works.
41554545 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41564546 [Additional compiler flags for building library objects])
41574547
4548 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4549 [How to pass a linker flag through the compiler])
41584550 #
41594551 # Check to make sure the static flag actually works.
41604552 #
41754567 m4_defun([_LT_LINKER_SHLIBS],
41764568 [AC_REQUIRE([LT_PATH_LD])dnl
41774569 AC_REQUIRE([LT_PATH_NM])dnl
4570 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
41784571 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
41794572 m4_require([_LT_DECL_EGREP])dnl
41804573 m4_require([_LT_DECL_SED])dnl
41834576 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
41844577 m4_if([$1], [CXX], [
41854578 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4579 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
41864580 case $host_os in
41874581 aix[[4-9]]*)
41884582 # If we're using GNU nm, then we don't want the "-C" option.
41894583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4584 # Also, AIX nm treats weak defined symbols like other global defined
4585 # symbols, whereas GNU nm marks them as "W".
41904586 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4191 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4587 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
41924588 else
41934589 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
41944590 fi
41954591 ;;
41964592 pw32*)
41974593 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4198 ;;
4594 ;;
41994595 cygwin* | mingw* | cegcc*)
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4201 ;;
4596 case $cc_basename in
4597 cl*)
4598 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4599 ;;
4600 *)
4601 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4602 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4603 ;;
4604 esac
4605 ;;
4606 linux* | k*bsd*-gnu | gnu*)
4607 _LT_TAGVAR(link_all_deplibs, $1)=no
4608 ;;
42024609 *)
42034610 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4204 ;;
4611 ;;
42054612 esac
4206 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42074613 ], [
42084614 runpath_var=
42094615 _LT_TAGVAR(allow_undefined_flag, $1)=
42184624 _LT_TAGVAR(hardcode_direct, $1)=no
42194625 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42204626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4221 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42224627 _LT_TAGVAR(hardcode_libdir_separator, $1)=
42234628 _LT_TAGVAR(hardcode_minus_L, $1)=no
42244629 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42634668 openbsd*)
42644669 with_gnu_ld=no
42654670 ;;
4671 linux* | k*bsd*-gnu | gnu*)
4672 _LT_TAGVAR(link_all_deplibs, $1)=no
4673 ;;
42664674 esac
42674675
42684676 _LT_TAGVAR(ld_shlibs, $1)=yes
4677
4678 # On some targets, GNU ld is compatible enough with the native linker
4679 # that we're better off using the native interface for both.
4680 lt_use_gnu_ld_interface=no
42694681 if test "$with_gnu_ld" = yes; then
4682 case $host_os in
4683 aix*)
4684 # The AIX port of GNU ld has always aspired to compatibility
4685 # with the native linker. However, as the warning in the GNU ld
4686 # block says, versions before 2.19.5* couldn't really create working
4687 # shared libraries, regardless of the interface used.
4688 case `$LD -v 2>&1` in
4689 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4690 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4691 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4692 *)
4693 lt_use_gnu_ld_interface=yes
4694 ;;
4695 esac
4696 ;;
4697 *)
4698 lt_use_gnu_ld_interface=yes
4699 ;;
4700 esac
4701 fi
4702
4703 if test "$lt_use_gnu_ld_interface" = yes; then
42704704 # If archive_cmds runs LD, not CC, wlarc should be empty
42714705 wlarc='${wl}'
42724706
42844718 fi
42854719 supports_anon_versioning=no
42864720 case `$LD -v 2>&1` in
4721 *GNU\ gold*) supports_anon_versioning=yes ;;
42874722 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
42884723 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42894724 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
42994734 _LT_TAGVAR(ld_shlibs, $1)=no
43004735 cat <<_LT_EOF 1>&2
43014736
4302 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4737 *** Warning: the GNU linker, at least up to release 2.19, is reported
43034738 *** to be unable to reliably create shared libraries on AIX.
43044739 *** Therefore, libtool is disabling shared libraries support. If you
4305 *** really care for shared libraries, you may want to modify your PATH
4306 *** so that a non-GNU linker is found, and then restart.
4740 *** really care for shared libraries, you may want to install binutils
4741 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4742 *** You will then need to restart the configuration process.
43074743
43084744 _LT_EOF
43094745 fi
43394775 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43404776 # as there is no search path for DLLs.
43414777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4778 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
43424779 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43434780 _LT_TAGVAR(always_export_symbols, $1)=no
43444781 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4345 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4782 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4783 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43464784
43474785 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43484786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43604798 fi
43614799 ;;
43624800
4801 haiku*)
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4803 _LT_TAGVAR(link_all_deplibs, $1)=yes
4804 ;;
4805
43634806 interix[[3-9]]*)
43644807 _LT_TAGVAR(hardcode_direct, $1)=no
43654808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43754818 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
43764819 ;;
43774820
4378 gnu* | linux* | tpf* | k*bsd*-gnu)
4821 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
43794822 tmp_diet=no
43804823 if test "$host_os" = linux-dietlibc; then
43814824 case $cc_basename in
43854828 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
43864829 && test "$tmp_diet" = no
43874830 then
4388 tmp_addflag=
4831 tmp_addflag=' $pic_flag'
43894832 tmp_sharedflag='-shared'
43904833 case $cc_basename,$host_cpu in
43914834 pgcc*) # Portland Group C compiler
4392 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4835 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
43934836 tmp_addflag=' $pic_flag'
43944837 ;;
4395 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4396 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4838 pgf77* | pgf90* | pgf95* | pgfortran*)
4839 # Portland Group f77 and f90 compilers
4840 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
43974841 tmp_addflag=' $pic_flag -Mnomain' ;;
43984842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
43994843 tmp_addflag=' -i_dynamic' ;;
44044848 lf95*) # Lahey Fortran 8.1
44054849 _LT_TAGVAR(whole_archive_flag_spec, $1)=
44064850 tmp_sharedflag='--shared' ;;
4407 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4851 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44084852 tmp_sharedflag='-qmkshrobj'
44094853 tmp_addflag= ;;
4854 nvcc*) # Cuda Compiler Driver 2.2
4855 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4856 _LT_TAGVAR(compiler_needs_object, $1)=yes
4857 ;;
44104858 esac
44114859 case `$CC -V 2>&1 | sed 5q` in
44124860 *Sun\ C*) # Sun C 5.9
4413 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4861 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
44144862 _LT_TAGVAR(compiler_needs_object, $1)=yes
44154863 tmp_sharedflag='-G' ;;
44164864 *Sun\ F*) # Sun Fortran 8.3
44264874 fi
44274875
44284876 case $cc_basename in
4429 xlf*)
4877 xlf* | bgf* | bgxlf* | mpixlf*)
44304878 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
44314879 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4432 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4433 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4434 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4881 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
44354882 if test "x$supports_anon_versioning" = xyes; then
44364883 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44374884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44384885 echo "local: *; };" >> $output_objdir/$libname.ver~
4439 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4886 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
44404887 fi
44414888 ;;
44424889 esac
44454892 fi
44464893 ;;
44474894
4448 netbsd*)
4895 netbsd* | netbsdelf*-gnu)
44494896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
44504897 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44514898 wlarc=
44524899 else
4453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4454 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4901 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44554902 fi
44564903 ;;
44574904
44694916
44704917 _LT_EOF
44714918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4472 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4473 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4920 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44744921 else
44754922 _LT_TAGVAR(ld_shlibs, $1)=no
44764923 fi
45164963
45174964 *)
45184965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4519 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4520 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4966 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4967 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45214968 else
45224969 _LT_TAGVAR(ld_shlibs, $1)=no
45234970 fi
45575004 else
45585005 # If we're using GNU nm, then we don't want the "-C" option.
45595006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5007 # Also, AIX nm treats weak defined symbols like other global
5008 # defined symbols, whereas GNU nm marks them as "W".
45605009 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4561 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5010 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45625011 else
45635012 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45645013 fi
46205069 if test "$aix_use_runtimelinking" = yes; then
46215070 shared_flag="$shared_flag "'${wl}-G'
46225071 fi
5072 _LT_TAGVAR(link_all_deplibs, $1)=no
46235073 else
46245074 # not using gcc
46255075 if test "$host_cpu" = ia64; then
46455095 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
46465096 # Determine the default libpath from the value encoded in an
46475097 # empty executable.
4648 _LT_SYS_MODULE_PATH_AIX
5098 _LT_SYS_MODULE_PATH_AIX([$1])
46495099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4650 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5100 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
46515101 else
46525102 if test "$host_cpu" = ia64; then
46535103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
46565106 else
46575107 # Determine the default libpath from the value encoded in an
46585108 # empty executable.
4659 _LT_SYS_MODULE_PATH_AIX
5109 _LT_SYS_MODULE_PATH_AIX([$1])
46605110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46615111 # Warning - without using the other run time loading flags,
46625112 # -berok will link without error, but may produce a broken library.
46635113 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
46645114 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4665 # Exported symbols can be pulled into shared objects from archives
4666 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5115 if test "$with_gnu_ld" = yes; then
5116 # We only use this code for GNU lds that support --whole-archive.
5117 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5118 else
5119 # Exported symbols can be pulled into shared objects from archives
5120 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5121 fi
46675122 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46685123 # This is similar to how AIX traditionally builds its shared libraries.
46695124 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
46955150 # Microsoft Visual C++.
46965151 # hardcode_libdir_flag_spec is actually meaningless, as there is
46975152 # no search path for DLLs.
4698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4699 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4700 # Tell ltmain to make .lib files, not .a files.
4701 libext=lib
4702 # Tell ltmain to make .dll files, not .so files.
4703 shrext_cmds=".dll"
4704 # FIXME: Setting linknames here is a bad hack.
4705 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4706 # The linker will automatically build a .lib file if we build a DLL.
4707 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4708 # FIXME: Should let the user specify the lib program.
4709 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4710 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4711 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5153 case $cc_basename in
5154 cl*)
5155 # Native MSVC
5156 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5157 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5158 _LT_TAGVAR(always_export_symbols, $1)=yes
5159 _LT_TAGVAR(file_list_spec, $1)='@'
5160 # Tell ltmain to make .lib files, not .a files.
5161 libext=lib
5162 # Tell ltmain to make .dll files, not .so files.
5163 shrext_cmds=".dll"
5164 # FIXME: Setting linknames here is a bad hack.
5165 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5166 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5167 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5168 else
5169 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5170 fi~
5171 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5172 linknames='
5173 # The linker will not automatically build a static lib if we build a DLL.
5174 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5176 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5177 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5178 # Don't use ranlib
5179 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5180 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5181 lt_tool_outputfile="@TOOL_OUTPUT@"~
5182 case $lt_outputfile in
5183 *.exe|*.EXE) ;;
5184 *)
5185 lt_outputfile="$lt_outputfile.exe"
5186 lt_tool_outputfile="$lt_tool_outputfile.exe"
5187 ;;
5188 esac~
5189 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5191 $RM "$lt_outputfile.manifest";
5192 fi'
5193 ;;
5194 *)
5195 # Assume MSVC wrapper
5196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5197 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5198 # Tell ltmain to make .lib files, not .a files.
5199 libext=lib
5200 # Tell ltmain to make .dll files, not .so files.
5201 shrext_cmds=".dll"
5202 # FIXME: Setting linknames here is a bad hack.
5203 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5204 # The linker will automatically build a .lib file if we build a DLL.
5205 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5206 # FIXME: Should let the user specify the lib program.
5207 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5208 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5209 ;;
5210 esac
47125211 ;;
47135212
47145213 darwin* | rhapsody*)
47195218 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
47205219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47215220 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4722 ;;
4723
4724 freebsd1*)
4725 _LT_TAGVAR(ld_shlibs, $1)=no
47265221 ;;
47275222
47285223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
47375232 ;;
47385233
47395234 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4740 freebsd2*)
5235 freebsd2.*)
47415236 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47425237 _LT_TAGVAR(hardcode_direct, $1)=yes
47435238 _LT_TAGVAR(hardcode_minus_L, $1)=yes
47465241
47475242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47485243 freebsd* | dragonfly*)
4749 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5244 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47505245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
47515246 _LT_TAGVAR(hardcode_direct, $1)=yes
47525247 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47545249
47555250 hpux9*)
47565251 if test "$GCC" = yes; then
4757 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5252 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47585253 else
47595254 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47605255 fi
47695264 ;;
47705265
47715266 hpux10*)
4772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47745269 else
47755270 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47765271 fi
47775272 if test "$with_gnu_ld" = no; then
47785273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4779 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
47805274 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
47815275 _LT_TAGVAR(hardcode_direct, $1)=yes
47825276 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
47885282 ;;
47895283
47905284 hpux11*)
4791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
47925286 case $host_cpu in
47935287 hppa*64*)
47945288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47955289 ;;
47965290 ia64*)
4797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5291 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
47985292 ;;
47995293 *)
4800 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48015295 ;;
48025296 esac
48035297 else
48095303 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48105304 ;;
48115305 *)
4812 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5306 m4_if($1, [], [
5307 # Older versions of the 11.00 compiler do not understand -b yet
5308 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5309 _LT_LINKER_OPTION([if $CC understands -b],
5310 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5311 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5312 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5313 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
48135314 ;;
48145315 esac
48155316 fi
48375338
48385339 irix5* | irix6* | nonstopux*)
48395340 if test "$GCC" = yes; then
4840 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48415342 # Try to use the -exported_symbol ld option, if it does not
48425343 # work, assume that -exports_file does not work either and
48435344 # implicitly export all symbols.
4844 save_LDFLAGS="$LDFLAGS"
4845 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4846 AC_LINK_IFELSE(int foo(void) {},
4847 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4848 )
4849 LDFLAGS="$save_LDFLAGS"
5345 # This should be the same for all languages, so no per-tag cache variable.
5346 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5347 [lt_cv_irix_exported_symbol],
5348 [save_LDFLAGS="$LDFLAGS"
5349 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5350 AC_LINK_IFELSE(
5351 [AC_LANG_SOURCE(
5352 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5353 [C++], [[int foo (void) { return 0; }]],
5354 [Fortran 77], [[
5355 subroutine foo
5356 end]],
5357 [Fortran], [[
5358 subroutine foo
5359 end]])])],
5360 [lt_cv_irix_exported_symbol=yes],
5361 [lt_cv_irix_exported_symbol=no])
5362 LDFLAGS="$save_LDFLAGS"])
5363 if test "$lt_cv_irix_exported_symbol" = yes; then
5364 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5365 fi
48505366 else
4851 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4852 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
48535369 fi
48545370 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
48555371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
48585374 _LT_TAGVAR(link_all_deplibs, $1)=yes
48595375 ;;
48605376
4861 netbsd*)
5377 netbsd* | netbsdelf*-gnu)
48625378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
48635379 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
48645380 else
49115427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
49125428 _LT_TAGVAR(hardcode_minus_L, $1)=yes
49135429 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4914 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5430 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
49155431 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49165432 ;;
49175433
49185434 osf3*)
49195435 if test "$GCC" = yes; then
49205436 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4921 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5437 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49225438 else
49235439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49255441 fi
49265442 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49275443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49315447 osf4* | osf5*) # as osf3* with the addition of -msym flag
49325448 if test "$GCC" = yes; then
49335449 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4934 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49355451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49365452 else
49375453 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49395455 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4940 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5456 $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'
49415457
49425458 # Both c and cxx compiler support -rpath directly
49435459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
49505466 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49515467 if test "$GCC" = yes; then
49525468 wlarc='${wl}'
4953 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49545470 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4955 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5471 $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'
49565472 else
49575473 case `$CC -V 2>&1` in
49585474 *"Compilers 5.0"*)
51285644 # Test whether the compiler implicitly links with -lc since on some
51295645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
51305646 # to ld, don't add -lc before -lgcc.
5131 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5132 $RM conftest*
5133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5134
5135 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5136 soname=conftest
5137 lib=conftest
5138 libobjs=conftest.$ac_objext
5139 deplibs=
5140 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5141 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5142 compiler_flags=-v
5143 linker_flags=-v
5144 verstring=
5145 output_objdir=.
5146 libname=conftest
5147 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5148 _LT_TAGVAR(allow_undefined_flag, $1)=
5149 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5150 then
5151 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5152 else
5153 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5154 fi
5155 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5156 else
5157 cat conftest.err 1>&5
5158 fi
5159 $RM conftest*
5160 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5647 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5648 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5649 [$RM conftest*
5650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5651
5652 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5653 soname=conftest
5654 lib=conftest
5655 libobjs=conftest.$ac_objext
5656 deplibs=
5657 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5658 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5659 compiler_flags=-v
5660 linker_flags=-v
5661 verstring=
5662 output_objdir=.
5663 libname=conftest
5664 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5665 _LT_TAGVAR(allow_undefined_flag, $1)=
5666 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5667 then
5668 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5669 else
5670 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5671 fi
5672 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5673 else
5674 cat conftest.err 1>&5
5675 fi
5676 $RM conftest*
5677 ])
5678 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
51615679 ;;
51625680 esac
51635681 fi
51945712 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
51955713 [Flag to hardcode $libdir into a binary during linking.
51965714 This must work even if $libdir does not exist])
5197 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5198 [[If ld is used when linking, flag to hardcode $libdir into a binary
5199 during linking. This must work even if $libdir does not exist]])
52005715 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
52015716 [Whether we need a single "-rpath" flag with a separated argument])
52025717 _LT_TAGDECL([], [hardcode_direct], [0],
52225737 to runtime path list])
52235738 _LT_TAGDECL([], [link_all_deplibs], [0],
52245739 [Whether libtool must link a program against all its dependency libraries])
5225 _LT_TAGDECL([], [fix_srcfile_path], [1],
5226 [Fix the shell variable $srcfile for the compiler])
52275740 _LT_TAGDECL([], [always_export_symbols], [0],
52285741 [Set to "yes" if exported symbols are required])
52295742 _LT_TAGDECL([], [export_symbols_cmds], [2],
52345747 [Symbols that must always be exported])
52355748 _LT_TAGDECL([], [prelink_cmds], [2],
52365749 [Commands necessary for linking programs (against libraries) with templates])
5750 _LT_TAGDECL([], [postlink_cmds], [2],
5751 [Commands necessary for finishing linking programs])
52375752 _LT_TAGDECL([], [file_list_spec], [1],
52385753 [Specify filename containing input files])
52395754 dnl FIXME: Not yet implemented
53235838 ])# _LT_LANG_C_CONFIG
53245839
53255840
5326 # _LT_PROG_CXX
5327 # ------------
5328 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5329 # compiler, we have our own version here.
5330 m4_defun([_LT_PROG_CXX],
5331 [
5332 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5333 AC_PROG_CXX
5841 # _LT_LANG_CXX_CONFIG([TAG])
5842 # --------------------------
5843 # Ensure that the configuration variables for a C++ compiler are suitably
5844 # defined. These variables are subsequently used by _LT_CONFIG to write
5845 # the compiler configuration to `libtool'.
5846 m4_defun([_LT_LANG_CXX_CONFIG],
5847 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5848 m4_require([_LT_DECL_EGREP])dnl
5849 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
53345850 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
53355851 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
53365852 (test "X$CXX" != "Xg++"))) ; then
53385854 else
53395855 _lt_caught_CXX_error=yes
53405856 fi
5341 popdef([AC_MSG_ERROR])
5342 ])# _LT_PROG_CXX
5343
5344 dnl aclocal-1.4 backwards compatibility:
5345 dnl AC_DEFUN([_LT_PROG_CXX], [])
5346
5347
5348 # _LT_LANG_CXX_CONFIG([TAG])
5349 # --------------------------
5350 # Ensure that the configuration variables for a C++ compiler are suitably
5351 # defined. These variables are subsequently used by _LT_CONFIG to write
5352 # the compiler configuration to `libtool'.
5353 m4_defun([_LT_LANG_CXX_CONFIG],
5354 [AC_REQUIRE([_LT_PROG_CXX])dnl
5355 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5356 m4_require([_LT_DECL_EGREP])dnl
53575857
53585858 AC_LANG_PUSH(C++)
53595859 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
53655865 _LT_TAGVAR(hardcode_direct, $1)=no
53665866 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
53675867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5368 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
53695868 _LT_TAGVAR(hardcode_libdir_separator, $1)=
53705869 _LT_TAGVAR(hardcode_minus_L, $1)=no
53715870 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
53755874 _LT_TAGVAR(module_expsym_cmds, $1)=
53765875 _LT_TAGVAR(link_all_deplibs, $1)=unknown
53775876 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5877 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5878 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
53785879 _LT_TAGVAR(no_undefined_flag, $1)=
53795880 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53805881 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
54065907
54075908 # Allow CC to be a program name with arguments.
54085909 lt_save_CC=$CC
5910 lt_save_CFLAGS=$CFLAGS
54095911 lt_save_LD=$LD
54105912 lt_save_GCC=$GCC
54115913 GCC=$GXX
54235925 fi
54245926 test -z "${LDCXX+set}" || LD=$LDCXX
54255927 CC=${CXX-"c++"}
5928 CFLAGS=$CXXFLAGS
54265929 compiler=$CC
54275930 _LT_TAGVAR(compiler, $1)=$CC
54285931 _LT_CC_BASENAME([$compiler])
54445947 # Check if GNU C++ uses GNU ld as the underlying linker, since the
54455948 # archiving commands below assume that GNU ld is being used.
54465949 if test "$with_gnu_ld" = yes; then
5447 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5448 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5950 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5951 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
54495952
54505953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54515954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
54775980 # Commands to make compiler produce verbose output that lists
54785981 # what "hidden" libraries, object files and flags are used when
54795982 # linking a shared library.
5480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54815984
54825985 else
54835986 GXX=no
55866089 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
55876090 # Determine the default libpath from the value encoded in an empty
55886091 # executable.
5589 _LT_SYS_MODULE_PATH_AIX
6092 _LT_SYS_MODULE_PATH_AIX([$1])
55906093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
55916094
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6095 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
55936096 else
55946097 if test "$host_cpu" = ia64; then
55956098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
55986101 else
55996102 # Determine the default libpath from the value encoded in an
56006103 # empty executable.
5601 _LT_SYS_MODULE_PATH_AIX
6104 _LT_SYS_MODULE_PATH_AIX([$1])
56026105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56036106 # Warning - without using the other run time loading flags,
56046107 # -berok will link without error, but may produce a broken library.
56056108 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56066109 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5607 # Exported symbols can be pulled into shared objects from archives
5608 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6110 if test "$with_gnu_ld" = yes; then
6111 # We only use this code for GNU lds that support --whole-archive.
6112 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6113 else
6114 # Exported symbols can be pulled into shared objects from archives
6115 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6116 fi
56096117 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56106118 # This is similar to how AIX traditionally builds its shared
56116119 # libraries.
56356143 ;;
56366144
56376145 cygwin* | mingw* | pw32* | cegcc*)
5638 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5639 # as there is no search path for DLLs.
5640 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5641 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5642 _LT_TAGVAR(always_export_symbols, $1)=no
5643 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5644
5645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5646 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5647 # If the export-symbols file already is a .def file (1st line
5648 # is EXPORTS), use it as is; otherwise, prepend...
5649 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5650 cp $export_symbols $output_objdir/$soname.def;
5651 else
5652 echo EXPORTS > $output_objdir/$soname.def;
5653 cat $export_symbols >> $output_objdir/$soname.def;
5654 fi~
5655 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5656 else
5657 _LT_TAGVAR(ld_shlibs, $1)=no
5658 fi
5659 ;;
6146 case $GXX,$cc_basename in
6147 ,cl* | no,cl*)
6148 # Native MSVC
6149 # hardcode_libdir_flag_spec is actually meaningless, as there is
6150 # no search path for DLLs.
6151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6152 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6153 _LT_TAGVAR(always_export_symbols, $1)=yes
6154 _LT_TAGVAR(file_list_spec, $1)='@'
6155 # Tell ltmain to make .lib files, not .a files.
6156 libext=lib
6157 # Tell ltmain to make .dll files, not .so files.
6158 shrext_cmds=".dll"
6159 # FIXME: Setting linknames here is a bad hack.
6160 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6161 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6162 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6163 else
6164 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6165 fi~
6166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6167 linknames='
6168 # The linker will not automatically build a static lib if we build a DLL.
6169 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6170 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6171 # Don't use ranlib
6172 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6173 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6174 lt_tool_outputfile="@TOOL_OUTPUT@"~
6175 case $lt_outputfile in
6176 *.exe|*.EXE) ;;
6177 *)
6178 lt_outputfile="$lt_outputfile.exe"
6179 lt_tool_outputfile="$lt_tool_outputfile.exe"
6180 ;;
6181 esac~
6182 func_to_tool_file "$lt_outputfile"~
6183 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6184 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6185 $RM "$lt_outputfile.manifest";
6186 fi'
6187 ;;
6188 *)
6189 # g++
6190 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6191 # as there is no search path for DLLs.
6192 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6193 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6194 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6195 _LT_TAGVAR(always_export_symbols, $1)=no
6196 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6197
6198 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6200 # If the export-symbols file already is a .def file (1st line
6201 # is EXPORTS), use it as is; otherwise, prepend...
6202 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6203 cp $export_symbols $output_objdir/$soname.def;
6204 else
6205 echo EXPORTS > $output_objdir/$soname.def;
6206 cat $export_symbols >> $output_objdir/$soname.def;
6207 fi~
6208 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6209 else
6210 _LT_TAGVAR(ld_shlibs, $1)=no
6211 fi
6212 ;;
6213 esac
6214 ;;
56606215 darwin* | rhapsody*)
56616216 _LT_DARWIN_LINKER_FEATURES($1)
56626217 ;;
56796234 esac
56806235 ;;
56816236
5682 freebsd[[12]]*)
6237 freebsd2.*)
56836238 # C++ shared libraries reported to be fairly broken before
56846239 # switch to ELF
56856240 _LT_TAGVAR(ld_shlibs, $1)=no
56966251 ;;
56976252
56986253 gnu*)
6254 ;;
6255
6256 haiku*)
6257 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6258 _LT_TAGVAR(link_all_deplibs, $1)=yes
56996259 ;;
57006260
57016261 hpux9*)
57226282 # explicitly linking system object files so we need to strip them
57236283 # from the output so that they don't get included in the library
57246284 # dependencies.
5725 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6285 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
57266286 ;;
57276287 *)
57286288 if test "$GXX" = yes; then
5729 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6289 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
57306290 else
57316291 # FIXME: insert proper C++ library support
57326292 _LT_TAGVAR(ld_shlibs, $1)=no
57876347 # explicitly linking system object files so we need to strip them
57886348 # from the output so that they don't get included in the library
57896349 # dependencies.
5790 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6350 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
57916351 ;;
57926352 *)
57936353 if test "$GXX" = yes; then
57976357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
57986358 ;;
57996359 ia64*)
5800 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6360 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58016361 ;;
58026362 *)
5803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6363 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58046364 ;;
58056365 esac
58066366 fi
58306390 case $cc_basename in
58316391 CC*)
58326392 # SGI C++
5833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
58346394
58356395 # Archives containing C++ object files must be created using
58366396 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
58416401 *)
58426402 if test "$GXX" = yes; then
58436403 if test "$with_gnu_ld" = no; then
5844 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6404 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
58456405 else
5846 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
58476407 fi
58486408 fi
58496409 _LT_TAGVAR(link_all_deplibs, $1)=yes
58546414 _LT_TAGVAR(inherit_rpath, $1)=yes
58556415 ;;
58566416
5857 linux* | k*bsd*-gnu)
6417 linux* | k*bsd*-gnu | kopensolaris*-gnu)
58586418 case $cc_basename in
58596419 KCC*)
58606420 # Kuck and Associates, Inc. (KAI) C++ Compiler
58726432 # explicitly linking system object files so we need to strip them
58736433 # from the output so that they don't get included in the library
58746434 # dependencies.
5875 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6435 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
58766436
58776437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
58786438 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59096469 pgCC* | pgcpp*)
59106470 # Portland Group C++ compiler
59116471 case `$CC -V` in
5912 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6472 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
59136473 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
59146474 rm -rf $tpldir~
59156475 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5916 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6476 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
59176477 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
59186478 rm -rf $tpldir~
59196479 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5920 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6480 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
59216481 $RANLIB $oldlib'
59226482 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
59236483 rm -rf $tpldir~
59246484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5925 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6485 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59266486 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
59276487 rm -rf $tpldir~
59286488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5929 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6489 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59306490 ;;
5931 *) # Version 6 will use weak symbols
6491 *) # Version 6 and above use weak symbols
59326492 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59336493 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59346494 ;;
59366496
59376497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
59386498 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5939 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6499 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59406500 ;;
59416501 cxx*)
59426502 # Compaq C++
59556515 # explicitly linking system object files so we need to strip them
59566516 # from the output so that they don't get included in the library
59576517 # dependencies.
5958 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6518 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
59596519 ;;
5960 xl*)
6520 xl* | mpixl* | bgxl*)
59616521 # IBM XL 8.0 on PPC, with GNU ld
59626522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59636523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59776537 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59786538 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
59796539 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5980 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6540 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59816541 _LT_TAGVAR(compiler_needs_object, $1)=yes
59826542
59836543 # Not sure whether something based on
59846544 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
59856545 # would be better.
5986 output_verbose_link_cmd='echo'
6546 output_verbose_link_cmd='func_echo_all'
59876547
59886548 # Archives containing C++ object files must be created using
59896549 # "CC -xar", where "CC" is the Sun C++ compiler. This is
60526612 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60536613 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
60546614 fi
6055 output_verbose_link_cmd=echo
6615 output_verbose_link_cmd=func_echo_all
60566616 else
60576617 _LT_TAGVAR(ld_shlibs, $1)=no
60586618 fi
60876647 case $host in
60886648 osf3*)
60896649 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6090 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6650 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
60916651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60926652 ;;
60936653 *)
60946654 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6655 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
60966656 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
60976657 echo "-hidden">> $lib.exp~
6098 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6658 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
60996659 $RM $lib.exp'
61006660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
61016661 ;;
61116671 # explicitly linking system object files so we need to strip them
61126672 # from the output so that they don't get included in the library
61136673 # dependencies.
6114 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6674 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
61156675 ;;
61166676 *)
61176677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
61186678 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61196679 case $host in
61206680 osf3*)
6121 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61226682 ;;
61236683 *)
6124 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6684 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61256685 ;;
61266686 esac
61276687
61316691 # Commands to make compiler produce verbose output that lists
61326692 # what "hidden" libraries, object files and flags are used when
61336693 # linking a shared library.
6134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61356695
61366696 else
61376697 # FIXME: insert proper C++ library support
61676727
61686728 solaris*)
61696729 case $cc_basename in
6170 CC*)
6730 CC* | sunCC*)
61716731 # Sun C++ 4.2, 5.x and Centerline C++
61726732 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
61736733 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
61886748 esac
61896749 _LT_TAGVAR(link_all_deplibs, $1)=yes
61906750
6191 output_verbose_link_cmd='echo'
6751 output_verbose_link_cmd='func_echo_all'
61926752
61936753 # Archives containing C++ object files must be created using
61946754 # "CC -xar", where "CC" is the Sun C++ compiler. This is
62086768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62096769 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
62106770 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6211 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
62126772 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6213 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6773 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62146774
62156775 # Commands to make compiler produce verbose output that lists
62166776 # what "hidden" libraries, object files and flags are used when
62176777 # linking a shared library.
6218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62196779 else
62206780 # g++ 2.7 appears to require `-G' NOT `-shared' on this
62216781 # platform.
62266786 # Commands to make compiler produce verbose output that lists
62276787 # what "hidden" libraries, object files and flags are used when
62286788 # linking a shared library.
6229 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6789 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62306790 fi
62316791
62326792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
62806840 CC*)
62816841 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62826842 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6843 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6844 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6845 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6846 '"$_LT_TAGVAR(reload_cmds, $1)"
62836847 ;;
62846848 *)
62856849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63356899 fi # test -n "$compiler"
63366900
63376901 CC=$lt_save_CC
6902 CFLAGS=$lt_save_CFLAGS
63386903 LDCXX=$LD
63396904 LD=$lt_save_LD
63406905 GCC=$lt_save_GCC
63496914 ])# _LT_LANG_CXX_CONFIG
63506915
63516916
6917 # _LT_FUNC_STRIPNAME_CNF
6918 # ----------------------
6919 # func_stripname_cnf prefix suffix name
6920 # strip PREFIX and SUFFIX off of NAME.
6921 # PREFIX and SUFFIX must not contain globbing or regex special
6922 # characters, hashes, percent signs, but SUFFIX may contain a leading
6923 # dot (in which case that matches only a dot).
6924 #
6925 # This function is identical to the (non-XSI) version of func_stripname,
6926 # except this one can be used by m4 code that may be executed by configure,
6927 # rather than the libtool script.
6928 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6929 AC_REQUIRE([_LT_DECL_SED])
6930 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6931 func_stripname_cnf ()
6932 {
6933 case ${2} in
6934 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6935 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6936 esac
6937 } # func_stripname_cnf
6938 ])# _LT_FUNC_STRIPNAME_CNF
6939
63526940 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63536941 # ---------------------------------
63546942 # Figure out "hidden" library dependencies from verbose
63576945 # objects, libraries and library flags.
63586946 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
63596947 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6948 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
63606949 # Dependencies to place before and after the object being linked:
63616950 _LT_TAGVAR(predep_objects, $1)=
63626951 _LT_TAGVAR(postdep_objects, $1)=
64066995 }
64076996 };
64086997 _LT_EOF
6998 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6999 package foo
7000 func foo() {
7001 }
7002 _LT_EOF
64097003 ])
7004
7005 _lt_libdeps_save_CFLAGS=$CFLAGS
7006 case "$CC $CFLAGS " in #(
7007 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7008 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7009 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7010 esac
7011
64107012 dnl Parse the compiler output and extract the necessary
64117013 dnl objects, libraries and library flags.
64127014 if AC_TRY_EVAL(ac_compile); then
64187020 pre_test_object_deps_done=no
64197021
64207022 for p in `eval "$output_verbose_link_cmd"`; do
6421 case $p in
7023 case ${prev}${p} in
64227024
64237025 -L* | -R* | -l*)
64247026 # Some compilers place space between "-{L,R}" and the path.
64277029 test $p = "-R"; then
64287030 prev=$p
64297031 continue
6430 else
6431 prev=
64327032 fi
64337033
7034 # Expand the sysroot to ease extracting the directories later.
7035 if test -z "$prev"; then
7036 case $p in
7037 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7038 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7039 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7040 esac
7041 fi
7042 case $p in
7043 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7044 esac
64347045 if test "$pre_test_object_deps_done" = no; then
6435 case $p in
6436 -L* | -R*)
7046 case ${prev} in
7047 -L | -R)
64377048 # Internal compiler library paths should come after those
64387049 # provided the user. The postdeps already come after the
64397050 # user supplied libs so there is no need to process them.
64537064 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
64547065 fi
64557066 fi
7067 prev=
64567068 ;;
64577069
7070 *.lto.$objext) ;; # Ignore GCC LTO objects
64587071 *.$objext)
64597072 # This assumes that the test object file only shows up
64607073 # once in the compiler output.
64907103 fi
64917104
64927105 $RM -f confest.$objext
7106 CFLAGS=$_lt_libdeps_save_CFLAGS
64937107
64947108 # PORTME: override above test on systems where it is broken
64957109 m4_if([$1], [CXX],
65267140
65277141 solaris*)
65287142 case $cc_basename in
6529 CC*)
7143 CC* | sunCC*)
65307144 # The more standards-conforming stlport4 library is
65317145 # incompatible with the Cstd library. Avoid specifying
65327146 # it if it's in CXXFLAGS. Ignore libCrun as
65707184 ])# _LT_SYS_HIDDEN_LIBDEPS
65717185
65727186
6573 # _LT_PROG_F77
6574 # ------------
6575 # Since AC_PROG_F77 is broken, in that it returns the empty string
6576 # if there is no fortran compiler, we have our own version here.
6577 m4_defun([_LT_PROG_F77],
6578 [
6579 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6580 AC_PROG_F77
6581 if test -z "$F77" || test "X$F77" = "Xno"; then
6582 _lt_disable_F77=yes
6583 fi
6584 popdef([AC_MSG_ERROR])
6585 ])# _LT_PROG_F77
6586
6587 dnl aclocal-1.4 backwards compatibility:
6588 dnl AC_DEFUN([_LT_PROG_F77], [])
6589
6590
65917187 # _LT_LANG_F77_CONFIG([TAG])
65927188 # --------------------------
65937189 # Ensure that the configuration variables for a Fortran 77 compiler are
65947190 # suitably defined. These variables are subsequently used by _LT_CONFIG
65957191 # to write the compiler configuration to `libtool'.
65967192 m4_defun([_LT_LANG_F77_CONFIG],
6597 [AC_REQUIRE([_LT_PROG_F77])dnl
6598 AC_LANG_PUSH(Fortran 77)
7193 [AC_LANG_PUSH(Fortran 77)
7194 if test -z "$F77" || test "X$F77" = "Xno"; then
7195 _lt_disable_F77=yes
7196 fi
65997197
66007198 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
66017199 _LT_TAGVAR(allow_undefined_flag, $1)=
66057203 _LT_TAGVAR(hardcode_direct, $1)=no
66067204 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
66077205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6608 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
66097206 _LT_TAGVAR(hardcode_libdir_separator, $1)=
66107207 _LT_TAGVAR(hardcode_minus_L, $1)=no
66117208 _LT_TAGVAR(hardcode_automatic, $1)=no
66147211 _LT_TAGVAR(module_expsym_cmds, $1)=
66157212 _LT_TAGVAR(link_all_deplibs, $1)=unknown
66167213 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7214 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7215 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
66177216 _LT_TAGVAR(no_undefined_flag, $1)=
66187217 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66197218 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
66537252 # Allow CC to be a program name with arguments.
66547253 lt_save_CC="$CC"
66557254 lt_save_GCC=$GCC
7255 lt_save_CFLAGS=$CFLAGS
66567256 CC=${F77-"f77"}
7257 CFLAGS=$FFLAGS
66577258 compiler=$CC
66587259 _LT_TAGVAR(compiler, $1)=$CC
66597260 _LT_CC_BASENAME([$compiler])
67077308
67087309 GCC=$lt_save_GCC
67097310 CC="$lt_save_CC"
7311 CFLAGS="$lt_save_CFLAGS"
67107312 fi # test "$_lt_disable_F77" != yes
67117313
67127314 AC_LANG_POP
67137315 ])# _LT_LANG_F77_CONFIG
6714
6715
6716 # _LT_PROG_FC
6717 # -----------
6718 # Since AC_PROG_FC is broken, in that it returns the empty string
6719 # if there is no fortran compiler, we have our own version here.
6720 m4_defun([_LT_PROG_FC],
6721 [
6722 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6723 AC_PROG_FC
6724 if test -z "$FC" || test "X$FC" = "Xno"; then
6725 _lt_disable_FC=yes
6726 fi
6727 popdef([AC_MSG_ERROR])
6728 ])# _LT_PROG_FC
6729
6730 dnl aclocal-1.4 backwards compatibility:
6731 dnl AC_DEFUN([_LT_PROG_FC], [])
67327316
67337317
67347318 # _LT_LANG_FC_CONFIG([TAG])
67377321 # suitably defined. These variables are subsequently used by _LT_CONFIG
67387322 # to write the compiler configuration to `libtool'.
67397323 m4_defun([_LT_LANG_FC_CONFIG],
6740 [AC_REQUIRE([_LT_PROG_FC])dnl
6741 AC_LANG_PUSH(Fortran)
7324 [AC_LANG_PUSH(Fortran)
7325
7326 if test -z "$FC" || test "X$FC" = "Xno"; then
7327 _lt_disable_FC=yes
7328 fi
67427329
67437330 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67447331 _LT_TAGVAR(allow_undefined_flag, $1)=
67487335 _LT_TAGVAR(hardcode_direct, $1)=no
67497336 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
67507337 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6751 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
67527338 _LT_TAGVAR(hardcode_libdir_separator, $1)=
67537339 _LT_TAGVAR(hardcode_minus_L, $1)=no
67547340 _LT_TAGVAR(hardcode_automatic, $1)=no
67577343 _LT_TAGVAR(module_expsym_cmds, $1)=
67587344 _LT_TAGVAR(link_all_deplibs, $1)=unknown
67597345 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7346 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7347 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67607348 _LT_TAGVAR(no_undefined_flag, $1)=
67617349 _LT_TAGVAR(whole_archive_flag_spec, $1)=
67627350 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
67967384 # Allow CC to be a program name with arguments.
67977385 lt_save_CC="$CC"
67987386 lt_save_GCC=$GCC
7387 lt_save_CFLAGS=$CFLAGS
67997388 CC=${FC-"f95"}
7389 CFLAGS=$FCFLAGS
68007390 compiler=$CC
68017391 GCC=$ac_cv_fc_compiler_gnu
68027392
68527442 fi # test -n "$compiler"
68537443
68547444 GCC=$lt_save_GCC
6855 CC="$lt_save_CC"
7445 CC=$lt_save_CC
7446 CFLAGS=$lt_save_CFLAGS
68567447 fi # test "$_lt_disable_FC" != yes
68577448
68587449 AC_LANG_POP
68897480 _LT_LINKER_BOILERPLATE
68907481
68917482 # Allow CC to be a program name with arguments.
6892 lt_save_CC="$CC"
7483 lt_save_CC=$CC
7484 lt_save_CFLAGS=$CFLAGS
68937485 lt_save_GCC=$GCC
68947486 GCC=yes
68957487 CC=${GCJ-"gcj"}
7488 CFLAGS=$GCJFLAGS
68967489 compiler=$CC
68977490 _LT_TAGVAR(compiler, $1)=$CC
68987491 _LT_TAGVAR(LD, $1)="$LD"
69027495 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
69037496
69047497 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7498 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7499 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69057500
69067501 if test -n "$compiler"; then
69077502 _LT_COMPILER_NO_RTTI($1)
69177512 AC_LANG_RESTORE
69187513
69197514 GCC=$lt_save_GCC
6920 CC="$lt_save_CC"
7515 CC=$lt_save_CC
7516 CFLAGS=$lt_save_CFLAGS
69217517 ])# _LT_LANG_GCJ_CONFIG
7518
7519
7520 # _LT_LANG_GO_CONFIG([TAG])
7521 # --------------------------
7522 # Ensure that the configuration variables for the GNU Go compiler
7523 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7524 # to write the compiler configuration to `libtool'.
7525 m4_defun([_LT_LANG_GO_CONFIG],
7526 [AC_REQUIRE([LT_PROG_GO])dnl
7527 AC_LANG_SAVE
7528
7529 # Source file extension for Go test sources.
7530 ac_ext=go
7531
7532 # Object file extension for compiled Go test sources.
7533 objext=o
7534 _LT_TAGVAR(objext, $1)=$objext
7535
7536 # Code to be used in simple compile tests
7537 lt_simple_compile_test_code="package main; func main() { }"
7538
7539 # Code to be used in simple link tests
7540 lt_simple_link_test_code='package main; func main() { }'
7541
7542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7543 _LT_TAG_COMPILER
7544
7545 # save warnings/boilerplate of simple test code
7546 _LT_COMPILER_BOILERPLATE
7547 _LT_LINKER_BOILERPLATE
7548
7549 # Allow CC to be a program name with arguments.
7550 lt_save_CC=$CC
7551 lt_save_CFLAGS=$CFLAGS
7552 lt_save_GCC=$GCC
7553 GCC=yes
7554 CC=${GOC-"gccgo"}
7555 CFLAGS=$GOFLAGS
7556 compiler=$CC
7557 _LT_TAGVAR(compiler, $1)=$CC
7558 _LT_TAGVAR(LD, $1)="$LD"
7559 _LT_CC_BASENAME([$compiler])
7560
7561 # Go did not exist at the time GCC didn't implicitly link libc in.
7562 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7563
7564 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7565 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7566 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7567
7568 if test -n "$compiler"; then
7569 _LT_COMPILER_NO_RTTI($1)
7570 _LT_COMPILER_PIC($1)
7571 _LT_COMPILER_C_O($1)
7572 _LT_COMPILER_FILE_LOCKS($1)
7573 _LT_LINKER_SHLIBS($1)
7574 _LT_LINKER_HARDCODE_LIBPATH($1)
7575
7576 _LT_CONFIG($1)
7577 fi
7578
7579 AC_LANG_RESTORE
7580
7581 GCC=$lt_save_GCC
7582 CC=$lt_save_CC
7583 CFLAGS=$lt_save_CFLAGS
7584 ])# _LT_LANG_GO_CONFIG
69227585
69237586
69247587 # _LT_LANG_RC_CONFIG([TAG])
69527615
69537616 # Allow CC to be a program name with arguments.
69547617 lt_save_CC="$CC"
7618 lt_save_CFLAGS=$CFLAGS
69557619 lt_save_GCC=$GCC
69567620 GCC=
69577621 CC=${RC-"windres"}
7622 CFLAGS=
69587623 compiler=$CC
69597624 _LT_TAGVAR(compiler, $1)=$CC
69607625 _LT_CC_BASENAME([$compiler])
69677632
69687633 GCC=$lt_save_GCC
69697634 AC_LANG_RESTORE
6970 CC="$lt_save_CC"
7635 CC=$lt_save_CC
7636 CFLAGS=$lt_save_CFLAGS
69717637 ])# _LT_LANG_RC_CONFIG
69727638
69737639
69857651 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
69867652 dnl aclocal-1.4 backwards compatibility:
69877653 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7654
7655
7656 # LT_PROG_GO
7657 # ----------
7658 AC_DEFUN([LT_PROG_GO],
7659 [AC_CHECK_TOOL(GOC, gccgo,)
7660 ])
69887661
69897662
69907663 # LT_PROG_RC
70267699 AC_SUBST([OBJDUMP])
70277700 ])
70287701
7702 # _LT_DECL_DLLTOOL
7703 # ----------------
7704 # Ensure DLLTOOL variable is set.
7705 m4_defun([_LT_DECL_DLLTOOL],
7706 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7707 test -z "$DLLTOOL" && DLLTOOL=dlltool
7708 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7709 AC_SUBST([DLLTOOL])
7710 ])
70297711
70307712 # _LT_DECL_SED
70317713 # ------------
71177799 # Try some XSI features
71187800 xsi_shell=no
71197801 ( _lt_dummy="a/b/c"
7120 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7121 = c,a/b,, \
7802 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7803 = c,a/b,b/c, \
71227804 && eval 'test $(( 1 + 1 )) -eq 2 \
71237805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
71247806 && xsi_shell=yes
71577839 ])# _LT_CHECK_SHELL_FEATURES
71587840
71597841
7160 # _LT_PROG_XSI_SHELLFNS
7161 # ---------------------
7162 # Bourne and XSI compatible variants of some useful shell functions.
7163 m4_defun([_LT_PROG_XSI_SHELLFNS],
7164 [case $xsi_shell in
7165 yes)
7166 cat << \_LT_EOF >> "$cfgfile"
7167
7168 # func_dirname file append nondir_replacement
7169 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7170 # otherwise set result to NONDIR_REPLACEMENT.
7171 func_dirname ()
7172 {
7173 case ${1} in
7174 */*) func_dirname_result="${1%/*}${2}" ;;
7175 * ) func_dirname_result="${3}" ;;
7176 esac
7177 }
7178
7179 # func_basename file
7180 func_basename ()
7181 {
7182 func_basename_result="${1##*/}"
7183 }
7184
7185 # func_dirname_and_basename file append nondir_replacement
7186 # perform func_basename and func_dirname in a single function
7187 # call:
7188 # dirname: Compute the dirname of FILE. If nonempty,
7189 # add APPEND to the result, otherwise set result
7190 # to NONDIR_REPLACEMENT.
7191 # value returned in "$func_dirname_result"
7192 # basename: Compute filename of FILE.
7193 # value retuned in "$func_basename_result"
7194 # Implementation must be kept synchronized with func_dirname
7195 # and func_basename. For efficiency, we do not delegate to
7196 # those functions but instead duplicate the functionality here.
7197 func_dirname_and_basename ()
7198 {
7199 case ${1} in
7200 */*) func_dirname_result="${1%/*}${2}" ;;
7201 * ) func_dirname_result="${3}" ;;
7202 esac
7203 func_basename_result="${1##*/}"
7204 }
7205
7206 # func_stripname prefix suffix name
7207 # strip PREFIX and SUFFIX off of NAME.
7208 # PREFIX and SUFFIX must not contain globbing or regex special
7209 # characters, hashes, percent signs, but SUFFIX may contain a leading
7210 # dot (in which case that matches only a dot).
7211 func_stripname ()
7212 {
7213 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7214 # positional parameters, so assign one to ordinary parameter first.
7215 func_stripname_result=${3}
7216 func_stripname_result=${func_stripname_result#"${1}"}
7217 func_stripname_result=${func_stripname_result%"${2}"}
7218 }
7219
7220 # func_opt_split
7221 func_opt_split ()
7222 {
7223 func_opt_split_opt=${1%%=*}
7224 func_opt_split_arg=${1#*=}
7225 }
7226
7227 # func_lo2o object
7228 func_lo2o ()
7229 {
7230 case ${1} in
7231 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7232 *) func_lo2o_result=${1} ;;
7233 esac
7234 }
7235
7236 # func_xform libobj-or-source
7237 func_xform ()
7238 {
7239 func_xform_result=${1%.*}.lo
7240 }
7241
7242 # func_arith arithmetic-term...
7243 func_arith ()
7244 {
7245 func_arith_result=$(( $[*] ))
7246 }
7247
7248 # func_len string
7249 # STRING may not start with a hyphen.
7250 func_len ()
7251 {
7252 func_len_result=${#1}
7253 }
7254
7255 _LT_EOF
7842 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7843 # ------------------------------------------------------
7844 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7845 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7846 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7847 [dnl {
7848 sed -e '/^$1 ()$/,/^} # $1 /c\
7849 $1 ()\
7850 {\
7851 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7852 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7853 && mv -f "$cfgfile.tmp" "$cfgfile" \
7854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7855 test 0 -eq $? || _lt_function_replace_fail=:
7856 ])
7857
7858
7859 # _LT_PROG_REPLACE_SHELLFNS
7860 # -------------------------
7861 # Replace existing portable implementations of several shell functions with
7862 # equivalent extended shell implementations where those features are available..
7863 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7864 [if test x"$xsi_shell" = xyes; then
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac])
7870
7871 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7872 func_basename_result="${1##*/}"])
7873
7874 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7875 case ${1} in
7876 */*) func_dirname_result="${1%/*}${2}" ;;
7877 * ) func_dirname_result="${3}" ;;
7878 esac
7879 func_basename_result="${1##*/}"])
7880
7881 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7882 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7883 # positional parameters, so assign one to ordinary parameter first.
7884 func_stripname_result=${3}
7885 func_stripname_result=${func_stripname_result#"${1}"}
7886 func_stripname_result=${func_stripname_result%"${2}"}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7889 func_split_long_opt_name=${1%%=*}
7890 func_split_long_opt_arg=${1#*=}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7893 func_split_short_opt_arg=${1#??}
7894 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7895
7896 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7897 case ${1} in
7898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7899 *) func_lo2o_result=${1} ;;
7900 esac])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7903
7904 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7905
7906 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7907 fi
7908
7909 if test x"$lt_shell_append" = xyes; then
7910 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7911
7912 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7913 func_quote_for_eval "${2}"
7914 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7915 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7916
7917 # Save a `func_append' function call where possible by direct use of '+='
7918 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7919 && mv -f "$cfgfile.tmp" "$cfgfile" \
7920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7921 test 0 -eq $? || _lt_function_replace_fail=:
7922 else
7923 # Save a `func_append' function call even when '+=' is not available
7924 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7925 && mv -f "$cfgfile.tmp" "$cfgfile" \
7926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7927 test 0 -eq $? || _lt_function_replace_fail=:
7928 fi
7929
7930 if test x"$_lt_function_replace_fail" = x":"; then
7931 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7932 fi
7933 ])
7934
7935 # _LT_PATH_CONVERSION_FUNCTIONS
7936 # -----------------------------
7937 # Determine which file name conversion functions should be used by
7938 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7939 # for certain cross-compile configurations and native mingw.
7940 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7941 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7942 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7943 AC_MSG_CHECKING([how to convert $build file names to $host format])
7944 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7945 [case $host in
7946 *-*-mingw* )
7947 case $build in
7948 *-*-mingw* ) # actually msys
7949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7950 ;;
7951 *-*-cygwin* )
7952 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7953 ;;
7954 * ) # otherwise, assume *nix
7955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7956 ;;
7957 esac
72567958 ;;
7257 *) # Bourne compatible functions.
7258 cat << \_LT_EOF >> "$cfgfile"
7259
7260 # func_dirname file append nondir_replacement
7261 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7262 # otherwise set result to NONDIR_REPLACEMENT.
7263 func_dirname ()
7264 {
7265 # Extract subdirectory from the argument.
7266 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7267 if test "X$func_dirname_result" = "X${1}"; then
7268 func_dirname_result="${3}"
7269 else
7270 func_dirname_result="$func_dirname_result${2}"
7271 fi
7272 }
7273
7274 # func_basename file
7275 func_basename ()
7276 {
7277 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7278 }
7279
7280 dnl func_dirname_and_basename
7281 dnl A portable version of this function is already defined in general.m4sh
7282 dnl so there is no need for it here.
7283
7284 # func_stripname prefix suffix name
7285 # strip PREFIX and SUFFIX off of NAME.
7286 # PREFIX and SUFFIX must not contain globbing or regex special
7287 # characters, hashes, percent signs, but SUFFIX may contain a leading
7288 # dot (in which case that matches only a dot).
7289 # func_strip_suffix prefix name
7290 func_stripname ()
7291 {
7292 case ${2} in
7293 .*) func_stripname_result=`$ECHO "X${3}" \
7294 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7295 *) func_stripname_result=`$ECHO "X${3}" \
7296 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7297 esac
7298 }
7299
7300 # sed scripts:
7301 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7302 my_sed_long_arg='1s/^-[[^=]]*=//'
7303
7304 # func_opt_split
7305 func_opt_split ()
7306 {
7307 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7308 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7309 }
7310
7311 # func_lo2o object
7312 func_lo2o ()
7313 {
7314 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7315 }
7316
7317 # func_xform libobj-or-source
7318 func_xform ()
7319 {
7320 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7321 }
7322
7323 # func_arith arithmetic-term...
7324 func_arith ()
7325 {
7326 func_arith_result=`expr "$[@]"`
7327 }
7328
7329 # func_len string
7330 # STRING may not start with a hyphen.
7331 func_len ()
7332 {
7333 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7334 }
7335
7336 _LT_EOF
7959 *-*-cygwin* )
7960 case $build in
7961 *-*-mingw* ) # actually msys
7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7963 ;;
7964 *-*-cygwin* )
7965 lt_cv_to_host_file_cmd=func_convert_file_noop
7966 ;;
7967 * ) # otherwise, assume *nix
7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7969 ;;
7970 esac
7971 ;;
7972 * ) # unhandled hosts (and "normal" native builds)
7973 lt_cv_to_host_file_cmd=func_convert_file_noop
7974 ;;
73377975 esac
7338
7339 case $lt_shell_append in
7340 yes)
7341 cat << \_LT_EOF >> "$cfgfile"
7342
7343 # func_append var value
7344 # Append VALUE to the end of shell variable VAR.
7345 func_append ()
7346 {
7347 eval "$[1]+=\$[2]"
7348 }
7349 _LT_EOF
7976 ])
7977 to_host_file_cmd=$lt_cv_to_host_file_cmd
7978 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7979 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7980 [0], [convert $build file names to $host format])dnl
7981
7982 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7983 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7984 [#assume ordinary cross tools, or native build.
7985 lt_cv_to_tool_file_cmd=func_convert_file_noop
7986 case $host in
7987 *-*-mingw* )
7988 case $build in
7989 *-*-mingw* ) # actually msys
7990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7991 ;;
7992 esac
73507993 ;;
7351 *)
7352 cat << \_LT_EOF >> "$cfgfile"
7353
7354 # func_append var value
7355 # Append VALUE to the end of shell variable VAR.
7356 func_append ()
7357 {
7358 eval "$[1]=\$$[1]\$[2]"
7359 }
7360
7361 _LT_EOF
7362 ;;
7363 esac
7994 esac
73647995 ])
7996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7997 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7998 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7999 [0], [convert $build files to toolchain format])dnl
8000 ])# _LT_PATH_CONVERSION_FUNCTIONS
73658001
73668002 # Helper functions for option handling. -*- Autoconf -*-
73678003 #
7368 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8004 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8005 # Inc.
73698006 # Written by Gary V. Vaughan, 2004
73708007 #
73718008 # This file is free software; the Free Software Foundation gives
73728009 # unlimited permission to copy and/or distribute it, with or without
73738010 # modifications, as long as this notice is preserved.
73748011
7375 # serial 6 ltoptions.m4
8012 # serial 7 ltoptions.m4
73768013
73778014 # This is to help aclocal find these macros, as it can't see m4_define.
73788015 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
74878124 [enable_win32_dll=yes
74888125
74898126 case $host in
7490 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
74918128 AC_CHECK_TOOL(AS, as, false)
74928129 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
74938130 AC_CHECK_TOOL(OBJDUMP, objdump, false)
74958132 esac
74968133
74978134 test -z "$AS" && AS=as
7498 _LT_DECL([], [AS], [0], [Assembler program])dnl
8135 _LT_DECL([], [AS], [1], [Assembler program])dnl
74998136
75008137 test -z "$DLLTOOL" && DLLTOOL=dlltool
7501 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8138 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
75028139
75038140 test -z "$OBJDUMP" && OBJDUMP=objdump
7504 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8141 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
75058142 ])# win32-dll
75068143
75078144 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
76878324 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
76888325 m4_define([_LT_WITH_PIC],
76898326 [AC_ARG_WITH([pic],
7690 [AS_HELP_STRING([--with-pic],
8327 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
76918328 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7692 [pic_mode="$withval"],
8329 [lt_p=${PACKAGE-default}
8330 case $withval in
8331 yes|no) pic_mode=$withval ;;
8332 *)
8333 pic_mode=default
8334 # Look at the argument we got. We use all the common list separators.
8335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8336 for lt_pkg in $withval; do
8337 IFS="$lt_save_ifs"
8338 if test "X$lt_pkg" = "X$lt_p"; then
8339 pic_mode=yes
8340 fi
8341 done
8342 IFS="$lt_save_ifs"
8343 ;;
8344 esac],
76938345 [pic_mode=default])
76948346
76958347 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
78598511 # unlimited permission to copy and/or distribute it, with or without
78608512 # modifications, as long as this notice is preserved.
78618513
7862 # Generated from ltversion.in.
7863
7864 # serial 3017 ltversion.m4
8514 # @configure_input@
8515
8516 # serial 3337 ltversion.m4
78658517 # This file is part of GNU Libtool
78668518
7867 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7868 m4_define([LT_PACKAGE_REVISION], [1.3017])
8519 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8520 m4_define([LT_PACKAGE_REVISION], [1.3337])
78698521
78708522 AC_DEFUN([LTVERSION_VERSION],
7871 [macro_version='2.2.6b'
7872 macro_revision='1.3017'
8523 [macro_version='2.4.2'
8524 macro_revision='1.3337'
78738525 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
78748526 _LT_DECL(, macro_revision, 0)
78758527 ])
78768528
78778529 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
78788530 #
7879 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8531 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
78808532 # Written by Scott James Remnant, 2004.
78818533 #
78828534 # This file is free software; the Free Software Foundation gives
78838535 # unlimited permission to copy and/or distribute it, with or without
78848536 # modifications, as long as this notice is preserved.
78858537
7886 # serial 4 lt~obsolete.m4
8538 # serial 5 lt~obsolete.m4
78878539
78888540 # These exist entirely to fool aclocal when bootstrapping libtool.
78898541 #
79538605 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
79548606 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
79558607 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7956 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
79578608 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
79588609 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
79598610 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
79668617 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
79678618 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
79688619 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7969
7970 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8620 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8621 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8622 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8623 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8624 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8625 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8626 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8627
8628 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8629 # Foundation, Inc.
79718630 #
79728631 # This file is free software; the Free Software Foundation
79738632 # gives unlimited permission to copy and/or distribute it,
79748633 # with or without modifications, as long as this notice is preserved.
8634
8635 # serial 1
79758636
79768637 # AM_AUTOMAKE_VERSION(VERSION)
79778638 # ----------------------------
79828643 [am__api_version='1.11'
79838644 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
79848645 dnl require some minimum version. Point them to the right macro.
7985 m4_if([$1], [1.11.1], [],
8646 m4_if([$1], [1.11.3], [],
79868647 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
79878648 ])
79888649
79988659 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
79998660 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
80008661 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8001 [AM_AUTOMAKE_VERSION([1.11.1])dnl
8662 [AM_AUTOMAKE_VERSION([1.11.3])dnl
80028663 m4_ifndef([AC_AUTOCONF_VERSION],
80038664 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
80048665 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
80058666
80068667 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
80078668
8008 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8669 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
80098670 #
80108671 # This file is free software; the Free Software Foundation
80118672 # gives unlimited permission to copy and/or distribute it,
80128673 # with or without modifications, as long as this notice is preserved.
8674
8675 # serial 1
80138676
80148677 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
80158678 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
80928755 Usually this means the macro was only invoked conditionally.]])
80938756 fi])])
80948757
8095 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8096 # Free Software Foundation, Inc.
8758 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8759 # 2010, 2011 Free Software Foundation, Inc.
80978760 #
80988761 # This file is free software; the Free Software Foundation
80998762 # gives unlimited permission to copy and/or distribute it,
81008763 # with or without modifications, as long as this notice is preserved.
81018764
8102 # serial 10
8765 # serial 12
81038766
81048767 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
81058768 # written in clear, in which case automake, when reading aclocal.m4,
81398802 # instance it was reported that on HP-UX the gcc test will end up
81408803 # making a dummy file named `D' -- because `-MD' means `put the output
81418804 # in D'.
8805 rm -rf conftest.dir
81428806 mkdir conftest.dir
81438807 # Copy depcomp to subdir because otherwise we won't find it if we're
81448808 # using a relative directory.
82038867 break
82048868 fi
82058869 ;;
8206 msvisualcpp | msvcmsys)
8870 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
82078871 # This compiler won't grok `-c -o', but also, the minuso test has
82088872 # not run yet. These depmodes are late enough in the game, and
82098873 # so weak that their functioning should not be impacted.
82688932 if test "x$enable_dependency_tracking" != xno; then
82698933 am_depcomp="$ac_aux_dir/depcomp"
82708934 AMDEPBACKSLASH='\'
8935 am__nodep='_no'
82718936 fi
82728937 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
82738938 AC_SUBST([AMDEPBACKSLASH])dnl
82748939 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8940 AC_SUBST([am__nodep])dnl
8941 _AM_SUBST_NOTMAKE([am__nodep])dnl
82758942 ])
82768943
82778944 # Generate code to set up dependency tracking. -*- Autoconf -*-
84939160 done
84949161 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
84959162
8496 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9163 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9164 # Inc.
84979165 #
84989166 # This file is free software; the Free Software Foundation
84999167 # gives unlimited permission to copy and/or distribute it,
85009168 # with or without modifications, as long as this notice is preserved.
9169
9170 # serial 1
85019171
85029172 # AM_PROG_INSTALL_SH
85039173 # ------------------
86309300 fi
86319301 ])
86329302
8633 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9303 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9304 # Inc.
86349305 #
86359306 # This file is free software; the Free Software Foundation
86369307 # gives unlimited permission to copy and/or distribute it,
86379308 # with or without modifications, as long as this notice is preserved.
9309
9310 # serial 1
86389311
86399312 # AM_PROG_MKDIR_P
86409313 # ---------------
86589331
86599332 # Helper functions for option handling. -*- Autoconf -*-
86609333
8661 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9334 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9335 # Foundation, Inc.
86629336 #
86639337 # This file is free software; the Free Software Foundation
86649338 # gives unlimited permission to copy and/or distribute it,
86659339 # with or without modifications, as long as this notice is preserved.
86669340
8667 # serial 4
9341 # serial 5
86689342
86699343 # _AM_MANGLE_OPTION(NAME)
86709344 # -----------------------
86729346 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
86739347
86749348 # _AM_SET_OPTION(NAME)
8675 # ------------------------------
9349 # --------------------
86769350 # Set option NAME. Presently that only means defining a flag for this option.
86779351 AC_DEFUN([_AM_SET_OPTION],
86789352 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
86799353
86809354 # _AM_SET_OPTIONS(OPTIONS)
8681 # ----------------------------------
9355 # ------------------------
86829356 # OPTIONS is a space-separated list of Automake options.
86839357 AC_DEFUN([_AM_SET_OPTIONS],
86849358 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
87549428 fi
87559429 AC_MSG_RESULT(yes)])
87569430
8757 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9431 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
87589432 #
87599433 # This file is free software; the Free Software Foundation
87609434 # gives unlimited permission to copy and/or distribute it,
87619435 # with or without modifications, as long as this notice is preserved.
9436
9437 # serial 2
9438
9439 # AM_SILENT_RULES([DEFAULT])
9440 # --------------------------
9441 # Enable less verbose build rules; with the default set to DEFAULT
9442 # (`yes' being less verbose, `no' or empty being verbose).
9443 AC_DEFUN([AM_SILENT_RULES],
9444 [AC_ARG_ENABLE([silent-rules],
9445 [ --enable-silent-rules less verbose build output (undo: `make V=1')
9446 --disable-silent-rules verbose build output (undo: `make V=0')])
9447 case $enable_silent_rules in
9448 yes) AM_DEFAULT_VERBOSITY=0;;
9449 no) AM_DEFAULT_VERBOSITY=1;;
9450 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9451 esac
9452 dnl
9453 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
9454 dnl do not support nested variable expansions.
9455 dnl See automake bug#9928 and bug#10237.
9456 am_make=${MAKE-make}
9457 AC_CACHE_CHECK([whether $am_make supports nested variables],
9458 [am_cv_make_support_nested_variables],
9459 [if AS_ECHO([['TRUE=$(BAR$(V))
9460 BAR0=false
9461 BAR1=true
9462 V=1
9463 am__doit:
9464 @$(TRUE)
9465 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9466 am_cv_make_support_nested_variables=yes
9467 else
9468 am_cv_make_support_nested_variables=no
9469 fi])
9470 if test $am_cv_make_support_nested_variables = yes; then
9471 dnl Using `$V' instead of `$(V)' breaks IRIX make.
9472 AM_V='$(V)'
9473 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9474 else
9475 AM_V=$AM_DEFAULT_VERBOSITY
9476 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9477 fi
9478 AC_SUBST([AM_V])dnl
9479 AM_SUBST_NOTMAKE([AM_V])dnl
9480 AC_SUBST([AM_DEFAULT_V])dnl
9481 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9482 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9483 AM_BACKSLASH='\'
9484 AC_SUBST([AM_BACKSLASH])dnl
9485 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9486 ])
9487
9488 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9489 #
9490 # This file is free software; the Free Software Foundation
9491 # gives unlimited permission to copy and/or distribute it,
9492 # with or without modifications, as long as this notice is preserved.
9493
9494 # serial 1
87629495
87639496 # AM_PROG_INSTALL_STRIP
87649497 # ---------------------
87829515 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
87839516 AC_SUBST([INSTALL_STRIP_PROGRAM])])
87849517
8785 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9518 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
87869519 #
87879520 # This file is free software; the Free Software Foundation
87889521 # gives unlimited permission to copy and/or distribute it,
87899522 # with or without modifications, as long as this notice is preserved.
87909523
8791 # serial 2
9524 # serial 3
87929525
87939526 # _AM_SUBST_NOTMAKE(VARIABLE)
87949527 # ---------------------------
87979530 AC_DEFUN([_AM_SUBST_NOTMAKE])
87989531
87999532 # AM_SUBST_NOTMAKE(VARIABLE)
8800 # ---------------------------
9533 # --------------------------
88019534 # Public sister of _AM_SUBST_NOTMAKE.
88029535 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
88039536
88049537 # Check how to create a tarball. -*- Autoconf -*-
88059538
8806 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9539 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
88079540 #
88089541 # This file is free software; the Free Software Foundation
88099542 # gives unlimited permission to copy and/or distribute it,
88259558 # a tarball read from stdin.
88269559 # $(am__untar) < result.tar
88279560 AC_DEFUN([_AM_PROG_TAR],
8828 [# Always define AMTAR for backward compatibility.
8829 AM_MISSING_PROG([AMTAR], [tar])
9561 [# Always define AMTAR for backward compatibility. Yes, it's still used
9562 # in the wild :-( We should find a proper way to deprecate it ...
9563 AC_SUBST([AMTAR], ['$${TAR-tar}'])
88309564 m4_if([$1], [v7],
8831 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9565 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
88329566 [m4_case([$1], [ustar],, [pax],,
88339567 [m4_fatal([Unknown tar format])])
88349568 AC_MSG_CHECKING([how to create a $1 tar archive])
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2009-11-20'
6 timestamp='2009-06-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
2626 # the same distribution terms that you use for the rest of that program.
2727
2828
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
3232 #
3333 # This script attempts to guess a canonical system name similar to
3434 # config.sub. If it succeeds, it prints the system name on stdout, and
3535 # exits with 0. Otherwise, it exits with 1.
3636 #
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
3939
4040 me=`echo "$0" | sed -e 's,.*/,,'`
4141
332332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
333333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334334 exit ;;
335 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
336 echo i386-pc-auroraux${UNAME_RELEASE}
337 exit ;;
338335 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
339336 eval $set_cc_for_build
340337 SUN_ARCH="i386"
809806 i*:PW*:*)
810807 echo ${UNAME_MACHINE}-pc-pw32
811808 exit ;;
812 *:Interix*:*)
809 *:Interix*:[3456]*)
813810 case ${UNAME_MACHINE} in
814811 x86)
815812 echo i586-pc-interix${UNAME_RELEASE}
816813 exit ;;
817 authenticamd | genuineintel | EM64T)
814 EM64T | authenticamd | genuineintel)
818815 echo x86_64-unknown-interix${UNAME_RELEASE}
819816 exit ;;
820817 IA64)
856853 i*86:Minix:*:*)
857854 echo ${UNAME_MACHINE}-pc-minix
858855 exit ;;
859 alpha:Linux:*:*)
860 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
861 EV5) UNAME_MACHINE=alphaev5 ;;
862 EV56) UNAME_MACHINE=alphaev56 ;;
863 PCA56) UNAME_MACHINE=alphapca56 ;;
864 PCA57) UNAME_MACHINE=alphapca56 ;;
865 EV6) UNAME_MACHINE=alphaev6 ;;
866 EV67) UNAME_MACHINE=alphaev67 ;;
867 EV68*) UNAME_MACHINE=alphaev68 ;;
868 esac
869 objdump --private-headers /bin/sh | grep -q ld.so.1
870 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
871 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
872 exit ;;
873856 arm*:Linux:*:*)
874857 eval $set_cc_for_build
875858 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
891874 exit ;;
892875 frv:Linux:*:*)
893876 echo frv-unknown-linux-gnu
894 exit ;;
895 i*86:Linux:*:*)
896 LIBC=gnu
897 eval $set_cc_for_build
898 sed 's/^ //' << EOF >$dummy.c
899 #ifdef __dietlibc__
900 LIBC=dietlibc
901 #endif
902 EOF
903 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
904 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
905877 exit ;;
906878 ia64:Linux:*:*)
907879 echo ${UNAME_MACHINE}-unknown-linux-gnu
928900 #endif
929901 #endif
930902 EOF
931 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
903 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
904 /^CPU/{
905 s: ::g
906 p
907 }'`"
932908 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933909 ;;
934910 or32:Linux:*:*)
935911 echo or32-unknown-linux-gnu
936912 exit ;;
913 ppc:Linux:*:*)
914 echo powerpc-unknown-linux-gnu
915 exit ;;
916 ppc64:Linux:*:*)
917 echo powerpc64-unknown-linux-gnu
918 exit ;;
919 alpha:Linux:*:*)
920 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
921 EV5) UNAME_MACHINE=alphaev5 ;;
922 EV56) UNAME_MACHINE=alphaev56 ;;
923 PCA56) UNAME_MACHINE=alphapca56 ;;
924 PCA57) UNAME_MACHINE=alphapca56 ;;
925 EV6) UNAME_MACHINE=alphaev6 ;;
926 EV67) UNAME_MACHINE=alphaev67 ;;
927 EV68*) UNAME_MACHINE=alphaev68 ;;
928 esac
929 objdump --private-headers /bin/sh | grep -q ld.so.1
930 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
931 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
932 exit ;;
937933 padre:Linux:*:*)
938934 echo sparc-unknown-linux-gnu
939 exit ;;
940 parisc64:Linux:*:* | hppa64:Linux:*:*)
941 echo hppa64-unknown-linux-gnu
942935 exit ;;
943936 parisc:Linux:*:* | hppa:Linux:*:*)
944937 # Look for CPU level
948941 *) echo hppa-unknown-linux-gnu ;;
949942 esac
950943 exit ;;
951 ppc64:Linux:*:*)
952 echo powerpc64-unknown-linux-gnu
953 exit ;;
954 ppc:Linux:*:*)
955 echo powerpc-unknown-linux-gnu
944 parisc64:Linux:*:* | hppa64:Linux:*:*)
945 echo hppa64-unknown-linux-gnu
956946 exit ;;
957947 s390:Linux:*:* | s390x:Linux:*:*)
958948 echo ${UNAME_MACHINE}-ibm-linux
975965 xtensa*:Linux:*:*)
976966 echo ${UNAME_MACHINE}-unknown-linux-gnu
977967 exit ;;
968 i*86:Linux:*:*)
969 # The BFD linker knows what the default object file format is, so
970 # first see if it will tell us. cd to the root directory to prevent
971 # problems with other programs or directories called `ld' in the path.
972 # Set LC_ALL=C to ensure ld outputs messages in English.
973 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
974 | sed -ne '/supported targets:/!d
975 s/[ ][ ]*/ /g
976 s/.*supported targets: *//
977 s/ .*//
978 p'`
979 case "$ld_supported_targets" in
980 elf32-i386)
981 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
982 ;;
983 esac
984 # Determine whether the default compiler is a.out or elf
985 eval $set_cc_for_build
986 sed 's/^ //' << EOF >$dummy.c
987 #include <features.h>
988 #ifdef __ELF__
989 # ifdef __GLIBC__
990 # if __GLIBC__ >= 2
991 LIBC=gnu
992 # else
993 LIBC=gnulibc1
994 # endif
995 # else
996 LIBC=gnulibc1
997 # endif
998 #else
999 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1000 LIBC=gnu
1001 #else
1002 LIBC=gnuaout
1003 #endif
1004 #endif
1005 #ifdef __dietlibc__
1006 LIBC=dietlibc
1007 #endif
1008 EOF
1009 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1010 /^LIBC/{
1011 s: ::g
1012 p
1013 }'`"
1014 test x"${LIBC}" != x && {
1015 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1016 exit
1017 }
1018 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1019 ;;
9781020 i*86:DYNIX/ptx:4*:*)
9791021 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9801022 # earlier versions are messed up and put the nodename in both
12041246 *:Darwin:*:*)
12051247 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
12061248 case $UNAME_PROCESSOR in
1207 i386)
1208 eval $set_cc_for_build
1209 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1210 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1211 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1212 grep IS_64BIT_ARCH >/dev/null
1213 then
1214 UNAME_PROCESSOR="x86_64"
1215 fi
1216 fi ;;
12171249 unknown) UNAME_PROCESSOR=powerpc ;;
12181250 esac
12191251 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3333 */
3434 #undef LT_OBJDIR
3535
36 /* Name of package */
37 #undef PACKAGE
38
3936 /* Define to the address where bug reports for this package should be sent. */
4037 #undef PACKAGE_BUGREPORT
4138
5653
5754 /* Define to 1 if you have the ANSI C header files. */
5855 #undef STDC_HEADERS
59
60 /* Version number of package */
61 #undef VERSION
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2009-11-20'
6 timestamp='2009-06-11'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
3131
3232
3333 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
34 # diff and a properly formatted ChangeLog entry.
3535 #
3636 # Configuration subroutine to validate and canonicalize a configuration type.
3737 # Supply the specified configuration type as an argument.
3838 # If it is invalid, we print an error message on stderr and exit with code 1.
3939 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
4340
4441 # This file is supposed to be the same for all GNU packages
4542 # and recognize all the CPU types, system types and aliases
151148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
152149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
153150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
154 -apple | -axis | -knuth | -cray | -microblaze)
151 -apple | -axis | -knuth | -cray)
155152 os=
156153 basic_machine=$1
157154 ;;
286283 | pdp10 | pdp11 | pj | pjl \
287284 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
288285 | pyramid \
289 | rx \
290286 | score \
291287 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
292288 | sh64 | sh64le \
294290 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
295291 | spu | strongarm \
296292 | tahoe | thumb | tic4x | tic80 | tron \
297 | ubicom32 \
298293 | v850 | v850e \
299294 | we32k \
300295 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
301296 | z8k | z80)
302297 basic_machine=$basic_machine-unknown
303298 ;;
304 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
299 m6811 | m68hc11 | m6812 | m68hc12)
305300 # Motorola 68HC11/12.
306301 basic_machine=$basic_machine-unknown
307302 os=-none
344339 | lm32-* \
345340 | m32c-* | m32r-* | m32rle-* \
346341 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
347 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
342 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
348343 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
349344 | mips16-* \
350345 | mips64-* | mips64el-* \
372367 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
373368 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
374369 | pyramid-* \
375 | romp-* | rs6000-* | rx-* \
370 | romp-* | rs6000-* \
376371 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
377372 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
378373 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
381376 | tahoe-* | thumb-* \
382377 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
383378 | tron-* \
384 | ubicom32-* \
385379 | v850-* | v850e-* | vax-* \
386380 | we32k-* \
387381 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
730724 merlin)
731725 basic_machine=ns32k-utek
732726 os=-sysv
733 ;;
734 microblaze)
735 basic_machine=microblaze-xilinx
736727 ;;
737728 mingw32)
738729 basic_machine=i386-pc
12551246 # First match some system type aliases
12561247 # that might get confused with valid system types.
12571248 # -solaris* is a basic system type, with this one exception.
1258 -auroraux)
1259 os=-auroraux
1260 ;;
12611249 -solaris1 | -solaris1.*)
12621250 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12631251 ;;
12791267 # -sysv* is not here because it comes later, after sysvr4.
12801268 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
12811269 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1282 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1283 | -sym* | -kopensolaris* \
1270 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1271 | -kopensolaris* \
12841272 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
12851273 | -aos* | -aros* \
12861274 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13011289 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13021290 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13031291 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1304 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1292 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
13051293 # Remember, each alternative MUST END IN *, to match a version number.
13061294 ;;
13071295 -qnx*)
+2696
-1871
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.65 for varconf 0.6.7.
2 # Generated by GNU Autoconf 2.68 for varconf 1.0.0.
33 #
44 # Report bugs to <alriddoch@googlemail.com>.
55 #
66 #
77 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9 # Inc.
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
1010 #
1111 #
1212 # This configure script is free software; the Free Software Foundation
9090 IFS=" "" $as_nl"
9191
9292 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
9394 case $0 in #((
9495 *[\\/]* ) as_myself=$0 ;;
9596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
172173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
175184 test \$(( 1 + 1 )) = 2 || exit 1"
176185 if (eval "$as_required") 2>/dev/null; then :
177186 as_have_required=yes
215224 # We cannot yet assume a decent shell, so we have to provide a
216225 # neutralization value for shells without unset; and this also
217226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
218228 BASH_ENV=/dev/null
219229 ENV=/dev/null
220230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221231 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 case $- in # ((((
233 *v*x* | *x*v* ) as_opts=-vx ;;
234 *v* ) as_opts=-v ;;
235 *x* ) as_opts=-x ;;
236 * ) as_opts= ;;
237 esac
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
223239 fi
224240
225241 if test x$as_have_required = xno; then :
318334 test -d "$as_dir" && break
319335 done
320336 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322338
323339
324340 } # as_fn_mkdir_p
358374 fi # as_fn_arith
359375
360376
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
378 # ----------------------------------------
363379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
381 # script with STATUS, using 1 if that was 0.
366382 as_fn_error ()
367383 {
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
384 as_status=$1; test $as_status -eq 0 && as_status=1
385 if test "$4"; then
386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
372388 fi
373 $as_echo "$as_me: error: $1" >&2
389 $as_echo "$as_me: error: $2" >&2
374390 as_fn_exit $as_status
375391 } # as_fn_error
376392
527543 # Sed expression to map a string onto a valid variable name.
528544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529545
530
531
532 # Check that we are running under the correct shell.
533546 SHELL=${CONFIG_SHELL-/bin/sh}
534
535 case X$lt_ECHO in
536 X*--fallback-echo)
537 # Remove one level of quotation (which was required for Make).
538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 ;;
540 esac
541
542 ECHO=${lt_ECHO-echo}
543 if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
545 shift
546 elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
548 :
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
551 :
552 else
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 fi
556
557 if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
559 shift
560 cat <<_LT_EOF
561 $*
562 _LT_EOF
563 exit 0
564 fi
565
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 # if CDPATH is set.
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570 if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577 then
578 break
579 fi
580 done
581 fi
582
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
586 :
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
591 #
592 # So, first we look for a working echo in the user's PATH.
593
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 ECHO="$dir/echo"
602 break
603 fi
604 done
605 IFS="$lt_save_ifs"
606
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 ECHO='print -r'
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622 else
623 # Try using printf.
624 ECHO='printf %s\n'
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
629 :
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
647
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650 then
651 break
652 fi
653 prev="$cmd"
654 done
655
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 ECHO=echo
663 fi
664 fi
665 fi
666 fi
667 fi
668 fi
669
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 lt_ECHO=$ECHO
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675 fi
676
677
678547
679548
680549 test -n "$DJDIR" || exec 7<&0 </dev/null
681550 exec 6>&1
682551
683552 # Name of the host.
684 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
553 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
685554 # so uname gets run too.
686555 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687556
700569 # Identity of this package.
701570 PACKAGE_NAME='varconf'
702571 PACKAGE_TARNAME='varconf'
703 PACKAGE_VERSION='0.6.7'
704 PACKAGE_STRING='varconf 0.6.7'
572 PACKAGE_VERSION='1.0.0'
573 PACKAGE_STRING='varconf 1.0.0'
705574 PACKAGE_BUGREPORT='alriddoch@googlemail.com'
706575 PACKAGE_URL=''
707576
746615 am__EXEEXT_TRUE
747616 LTLIBOBJS
748617 LIBOBJS
618 AM_CXXFLAGS
749619 MIN_SIGC_VERSION
750620 VARCONF_LIB_SUFFIX
751621 VARCONF_VERSION_INFO
767637 LIPO
768638 NMEDIT
769639 DSYMUTIL
770 lt_ECHO
640 MANIFEST_TOOL
771641 RANLIB
642 ac_ct_AR
772643 AR
644 DLLTOOL
773645 OBJDUMP
774646 LN_S
775647 NM
783655 am__fastdepCC_FALSE
784656 am__fastdepCC_TRUE
785657 CCDEPMODE
658 am__nodep
786659 AMDEPBACKSLASH
787660 AMDEP_FALSE
788661 AMDEP_TRUE
797670 CFLAGS
798671 CC
799672 LIBTOOL
673 AM_BACKSLASH
674 AM_DEFAULT_VERBOSITY
675 AM_DEFAULT_V
676 AM_V
800677 am__untar
801678 am__tar
802679 AMTAR
869746 ac_subst_files=''
870747 ac_user_opts='
871748 enable_option_checking
749 enable_silent_rules
872750 enable_static
873751 enable_shared
874752 with_pic
875753 enable_fast_install
876754 enable_dependency_tracking
877755 with_gnu_ld
756 with_sysroot
878757 enable_libtool_lock
879758 enable_debug
880759 '
953832 fi
954833
955834 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *=) ac_optarg= ;;
837 *) ac_optarg=yes ;;
958838 esac
959839
960840 # Accept the important Cygnus configure options, so we can diagnose typos.
999879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000880 # Reject names that are not valid shell variable names.
1001881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error "invalid feature name: $ac_useropt"
882 as_fn_error $? "invalid feature name: $ac_useropt"
1003883 ac_useropt_orig=$ac_useropt
1004884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005885 case $ac_user_opts in
1025905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026906 # Reject names that are not valid shell variable names.
1027907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
908 as_fn_error $? "invalid feature name: $ac_useropt"
1029909 ac_useropt_orig=$ac_useropt
1030910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031911 case $ac_user_opts in
12291109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12301110 # Reject names that are not valid shell variable names.
12311111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1112 as_fn_error $? "invalid package name: $ac_useropt"
12331113 ac_useropt_orig=$ac_useropt
12341114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12351115 case $ac_user_opts in
12451125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
12461126 # Reject names that are not valid shell variable names.
12471127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid package name: $ac_useropt"
1128 as_fn_error $? "invalid package name: $ac_useropt"
12491129 ac_useropt_orig=$ac_useropt
12501130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
12511131 case $ac_user_opts in
12751155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12761156 x_libraries=$ac_optarg ;;
12771157
1278 -*) as_fn_error "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information."
1158 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information"
12801160 ;;
12811161
12821162 *=*)
12841164 # Reject names that are not valid shell variable names.
12851165 case $ac_envvar in #(
12861166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
12881168 esac
12891169 eval $ac_envvar=\$ac_optarg
12901170 export $ac_envvar ;;
12941174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12951175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12961176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12981178 ;;
12991179
13001180 esac
13021182
13031183 if test -n "$ac_prev"; then
13041184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error "missing argument to $ac_option"
1185 as_fn_error $? "missing argument to $ac_option"
13061186 fi
13071187
13081188 if test -n "$ac_unrecognized_opts"; then
13091189 case $enable_option_checking in
13101190 no) ;;
1311 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
13121192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13131193 esac
13141194 fi
13311211 [\\/$]* | ?:[\\/]* ) continue;;
13321212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
13331213 esac
1334 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
13351215 done
13361216
13371217 # There might be people who depend on the old broken behavior: `$host'
13451225 if test "x$host_alias" != x; then
13461226 if test "x$build_alias" = x; then
13471227 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1228 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used" >&2
13501230 elif test "x$build_alias" != "x$host_alias"; then
13511231 cross_compiling=yes
13521232 fi
13611241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
13621242 ac_ls_di=`ls -di .` &&
13631243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error "working directory cannot be determined"
1244 as_fn_error $? "working directory cannot be determined"
13651245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error "pwd does not report name of working directory"
1246 as_fn_error $? "pwd does not report name of working directory"
13671247
13681248
13691249 # Find the source files, if location was not specified.
14021282 fi
14031283 if test ! -r "$srcdir/$ac_unique_file"; then
14041284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
14061286 fi
14071287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
14081288 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
14101290 pwd)`
14111291 # When building in place, set srcdir=.
14121292 if test "$ac_abs_confdir" = "$ac_pwd"; then
14321312 # Omit some internal or obsolete options to make the list less imposing.
14331313 # This message is too long to be a string in the A/UX 3.1 sh.
14341314 cat <<_ACEOF
1435 \`configure' configures varconf 0.6.7 to adapt to many kinds of systems.
1315 \`configure' configures varconf 1.0.0 to adapt to many kinds of systems.
14361316
14371317 Usage: $0 [OPTION]... [VAR=VALUE]...
14381318
14461326 --help=short display options specific to this package
14471327 --help=recursive display the short help of all the included packages
14481328 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1329 -q, --quiet, --silent do not print \`checking ...' messages
14501330 --cache-file=FILE cache test results in FILE [disabled]
14511331 -C, --config-cache alias for \`--cache-file=config.cache'
14521332 -n, --no-create do not create output files
15021382
15031383 if test -n "$ac_init_help"; then
15041384 case $ac_init_help in
1505 short | recursive ) echo "Configuration of varconf 0.6.7:";;
1385 short | recursive ) echo "Configuration of varconf 1.0.0:";;
15061386 esac
15071387 cat <<\_ACEOF
15081388
15101390 --disable-option-checking ignore unrecognized --enable/--with options
15111391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
15121392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-silent-rules less verbose build output (undo: `make V=1')
1394 --disable-silent-rules verbose build output (undo: `make V=0')
15131395 --enable-static[=PKGS] build static libraries [default=no]
15141396 --enable-shared[=PKGS] build shared libraries [default=yes]
15151397 --enable-fast-install[=PKGS]
15171399 --disable-dependency-tracking speeds up one-time build
15181400 --enable-dependency-tracking do not reject slow dependency extractors
15191401 --disable-libtool-lock avoid locking (might break parallel builds)
1520 --enable-debug enable debug information default=no
1402 --enable-debug enable debug information [default=no]
15211403
15221404 Optional Packages:
15231405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15241406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-pic try to use only PIC/non-PIC objects [default=use
1407 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
15261408 both]
15271409 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1410 --with-sysroot=DIR Search for dependent libraries within DIR
1411 (or the compiler's sysroot if not specified).
15281412
15291413 Some influential environment variables:
15301414 CC C compiler command
16051489 test -n "$ac_init_help" && exit $ac_status
16061490 if $ac_init_version; then
16071491 cat <<\_ACEOF
1608 varconf configure 0.6.7
1609 generated by GNU Autoconf 2.65
1610
1611 Copyright (C) 2009 Free Software Foundation, Inc.
1492 varconf configure 1.0.0
1493 generated by GNU Autoconf 2.68
1494
1495 Copyright (C) 2010 Free Software Foundation, Inc.
16121496 This configure script is free software; the Free Software Foundation
16131497 gives unlimited permission to copy, distribute and modify it.
16141498 _ACEOF
16521536
16531537 ac_retval=1
16541538 fi
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16561540 as_fn_set_status $ac_retval
16571541
16581542 } # ac_fn_c_try_compile
16981582 # interfere with the next link command; also delete a directory that is
16991583 # left behind by Apple's compiler. We do this before executing the actions.
17001584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17021586 as_fn_set_status $ac_retval
17031587
17041588 } # ac_fn_c_try_link
17121596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17131597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17141598 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 if eval \${$3+:} false; then :
17161600 $as_echo_n "(cached) " >&6
17171601 else
17181602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301614 eval ac_res=\$$3
17311615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17321616 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17341618
17351619 } # ac_fn_c_check_header_compile
17361620
17551639 mv -f conftest.er1 conftest.err
17561640 fi
17571641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } >/dev/null && {
1642 test $ac_status = 0; } > conftest.i && {
17591643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17601644 test ! -s conftest.err
17611645 }; then :
17661650
17671651 ac_retval=1
17681652 fi
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17701654 as_fn_set_status $ac_retval
17711655
17721656 } # ac_fn_c_try_cpp
18081692 ac_retval=$ac_status
18091693 fi
18101694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18121696 as_fn_set_status $ac_retval
18131697
18141698 } # ac_fn_c_try_run
18211705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18221706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18231707 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 if eval \${$3+:} false; then :
18251709 $as_echo_n "(cached) " >&6
18261710 else
18271711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761760 eval ac_res=\$$3
18771761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18781762 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18801764
18811765 } # ac_fn_c_check_func
18821766
19131797
19141798 ac_retval=1
19151799 fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19171801 as_fn_set_status $ac_retval
19181802
19191803 } # ac_fn_cxx_try_compile
19391823 mv -f conftest.er1 conftest.err
19401824 fi
19411825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } >/dev/null && {
1826 test $ac_status = 0; } > conftest.i && {
19431827 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19441828 test ! -s conftest.err
19451829 }; then :
19501834
19511835 ac_retval=1
19521836 fi
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19541838 as_fn_set_status $ac_retval
19551839
19561840 } # ac_fn_cxx_try_cpp
19961880 # interfere with the next link command; also delete a directory that is
19971881 # left behind by Apple's compiler. We do this before executing the actions.
19981882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20001884 as_fn_set_status $ac_retval
20011885
20021886 } # ac_fn_cxx_try_link
20041888 This file contains any messages produced by compilers while
20051889 running configure, to aid debugging if configure makes a mistake.
20061890
2007 It was created by varconf $as_me 0.6.7, which was
2008 generated by GNU Autoconf 2.65. Invocation command line was
1891 It was created by varconf $as_me 1.0.0, which was
1892 generated by GNU Autoconf 2.68. Invocation command line was
20091893
20101894 $ $0 $@
20111895
21151999 {
21162000 echo
21172001
2118 cat <<\_ASBOX
2119 ## ---------------- ##
2002 $as_echo "## ---------------- ##
21202003 ## Cache variables. ##
2121 ## ---------------- ##
2122 _ASBOX
2004 ## ---------------- ##"
21232005 echo
21242006 # The following way of writing the cache mishandles newlines in values,
21252007 (
21532035 )
21542036 echo
21552037
2156 cat <<\_ASBOX
2157 ## ----------------- ##
2038 $as_echo "## ----------------- ##
21582039 ## Output variables. ##
2159 ## ----------------- ##
2160 _ASBOX
2040 ## ----------------- ##"
21612041 echo
21622042 for ac_var in $ac_subst_vars
21632043 do
21702050 echo
21712051
21722052 if test -n "$ac_subst_files"; then
2173 cat <<\_ASBOX
2174 ## ------------------- ##
2053 $as_echo "## ------------------- ##
21752054 ## File substitutions. ##
2176 ## ------------------- ##
2177 _ASBOX
2055 ## ------------------- ##"
21782056 echo
21792057 for ac_var in $ac_subst_files
21802058 do
21882066 fi
21892067
21902068 if test -s confdefs.h; then
2191 cat <<\_ASBOX
2192 ## ----------- ##
2069 $as_echo "## ----------- ##
21932070 ## confdefs.h. ##
2194 ## ----------- ##
2195 _ASBOX
2071 ## ----------- ##"
21962072 echo
21972073 cat confdefs.h
21982074 echo
22472123 ac_site_file1=NONE
22482124 ac_site_file2=NONE
22492125 if test -n "$CONFIG_SITE"; then
2250 ac_site_file1=$CONFIG_SITE
2126 # We do not want a PATH search for config.site.
2127 case $CONFIG_SITE in #((
2128 -*) ac_site_file1=./$CONFIG_SITE;;
2129 */*) ac_site_file1=$CONFIG_SITE;;
2130 *) ac_site_file1=./$CONFIG_SITE;;
2131 esac
22512132 elif test "x$prefix" != xNONE; then
22522133 ac_site_file1=$prefix/share/config.site
22532134 ac_site_file2=$prefix/etc/config.site
22622143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22632144 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
22642145 sed 's/^/| /' "$ac_site_file" >&5
2265 . "$ac_site_file"
2146 . "$ac_site_file" \
2147 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2149 as_fn_error $? "failed to load site script $ac_site_file
2150 See \`config.log' for more details" "$LINENO" 5; }
22662151 fi
22672152 done
22682153
23382223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23392224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
23402225 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2341 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
23422227 fi
23432228 ## -------------------- ##
23442229 ## Main body of script. ##
23582243
23592244 ac_aux_dir=
23602245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 for ac_t in install-sh install.sh shtool; do
2362 if test -f "$ac_dir/$ac_t"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/$ac_t -c"
2365 break 2
2366 fi
2367 done
2246 if test -f "$ac_dir/install-sh"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/install-sh -c"
2249 break
2250 elif test -f "$ac_dir/install.sh"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/install.sh -c"
2253 break
2254 elif test -f "$ac_dir/shtool"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/shtool install -c"
2257 break
2258 fi
23682259 done
23692260 if test -z "$ac_aux_dir"; then
2370 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2261 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
23712262 fi
23722263
23732264 # These three variables are undocumented and unsupported,
23812272
23822273 # Make sure we can run config.sub.
23832274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2384 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2275 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
23852276
23862277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
23872278 $as_echo_n "checking build system type... " >&6; }
2388 if test "${ac_cv_build+set}" = set; then :
2279 if ${ac_cv_build+:} false; then :
23892280 $as_echo_n "(cached) " >&6
23902281 else
23912282 ac_build_alias=$build_alias
23922283 test "x$ac_build_alias" = x &&
23932284 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
23942285 test "x$ac_build_alias" = x &&
2395 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2286 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
23962287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2397 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2288 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
23982289
23992290 fi
24002291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
24012292 $as_echo "$ac_cv_build" >&6; }
24022293 case $ac_cv_build in
24032294 *-*-*) ;;
2404 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2295 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
24052296 esac
24062297 build=$ac_cv_build
24072298 ac_save_IFS=$IFS; IFS='-'
24192310
24202311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
24212312 $as_echo_n "checking host system type... " >&6; }
2422 if test "${ac_cv_host+set}" = set; then :
2313 if ${ac_cv_host+:} false; then :
24232314 $as_echo_n "(cached) " >&6
24242315 else
24252316 if test "x$host_alias" = x; then
24262317 ac_cv_host=$ac_cv_build
24272318 else
24282319 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2429 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
24302321 fi
24312322
24322323 fi
24342325 $as_echo "$ac_cv_host" >&6; }
24352326 case $ac_cv_host in
24362327 *-*-*) ;;
2437 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2328 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
24382329 esac
24392330 host=$ac_cv_host
24402331 ac_save_IFS=$IFS; IFS='-'
24712362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24722363 $as_echo_n "checking for a BSD-compatible install... " >&6; }
24732364 if test -z "$INSTALL"; then
2474 if test "${ac_cv_path_install+set}" = set; then :
2365 if ${ac_cv_path_install+:} false; then :
24752366 $as_echo_n "(cached) " >&6
24762367 else
24772368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25582449 '
25592450 case `pwd` in
25602451 *[\\\"\#\$\&\'\`$am_lf]*)
2561 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2452 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
25622453 esac
25632454 case $srcdir in
25642455 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2565 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2456 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
25662457 esac
25672458
25682459 # Do `set' in a subshell so we don't clobber the current shell's
25842475 # if, for instance, CONFIG_SHELL is bash and it inherits a
25852476 # broken ls alias from the environment. This has actually
25862477 # happened. Such a system could not be considered "sane".
2587 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2478 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
25882479 alias in your environment" "$LINENO" 5
25892480 fi
25902481
25942485 # Ok.
25952486 :
25962487 else
2597 as_fn_error "newly created file is older than distributed files!
2488 as_fn_error $? "newly created file is older than distributed files!
25982489 Check your system clock" "$LINENO" 5
25992490 fi
26002491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26482539 set dummy ${ac_tool_prefix}strip; ac_word=$2
26492540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26502541 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_STRIP+set}" = set; then :
2542 if ${ac_cv_prog_STRIP+:} false; then :
26522543 $as_echo_n "(cached) " >&6
26532544 else
26542545 if test -n "$STRIP"; then
26882579 set dummy strip; ac_word=$2
26892580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26902581 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2582 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26922583 $as_echo_n "(cached) " >&6
26932584 else
26942585 if test -n "$ac_ct_STRIP"; then
27412632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
27422633 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
27432634 if test -z "$MKDIR_P"; then
2744 if test "${ac_cv_path_mkdir+set}" = set; then :
2635 if ${ac_cv_path_mkdir+:} false; then :
27452636 $as_echo_n "(cached) " >&6
27462637 else
27472638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27922683 set dummy $ac_prog; ac_word=$2
27932684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27942685 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_AWK+set}" = set; then :
2686 if ${ac_cv_prog_AWK+:} false; then :
27962687 $as_echo_n "(cached) " >&6
27972688 else
27982689 if test -n "$AWK"; then
28322723 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28332724 set x ${MAKE-make}
28342725 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2726 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28362727 $as_echo_n "(cached) " >&6
28372728 else
28382729 cat >conftest.make <<\_ACEOF
28402731 all:
28412732 @echo '@@@%%%=$(MAKE)=@@@%%%'
28422733 _ACEOF
2843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2734 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28442735 case `${MAKE-make} -f conftest.make 2>/dev/null` in
28452736 *@@@%%%=?*=@@@%%%*)
28462737 eval ac_cv_prog_make_${ac_make}_set=yes;;
28682759 fi
28692760 rmdir .tst 2>/dev/null
28702761
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2765 fi
2766
2767 case $enable_silent_rules in
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=1;;
2771 esac
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if $as_echo 'TRUE=$(BAR$(V))
2779 BAR0=false
2780 BAR1=true
2781 V=1
2782 am__doit:
2783 @$(TRUE)
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2786 else
2787 am_cv_make_support_nested_variables=no
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2793 AM_V='$(V)'
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795 else
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 fi
2799 AM_BACKSLASH='\'
2800
28712801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28722802 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28732803 # is not polluted with repeated "-I."
28742804 am__isrc=' -I$(srcdir)'
28752805 # test to see if srcdir already configured
28762806 if test -f $srcdir/config.status; then
2877 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2807 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28782808 fi
28792809 fi
28802810
28902820
28912821 # Define the identity of the package.
28922822 PACKAGE='varconf'
2893 VERSION='0.6.7'
2894
2895
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE "$PACKAGE"
2898 _ACEOF
2899
2900
2901 cat >>confdefs.h <<_ACEOF
2902 #define VERSION "$VERSION"
2903 _ACEOF
2823 VERSION='1.0.0'
2824
29042825
29052826 # Some tools Automake needs.
29062827
29202841
29212842 # We need awk for the "check" target. The system "awk" is bad on
29222843 # some platforms.
2923 # Always define AMTAR for backward compatibility.
2924
2925 AMTAR=${AMTAR-"${am_missing_run}tar"}
2926
2927 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2928
2929
2930
2931
2932
2933
2934 VARCONF_CURRENT=7
2844 # Always define AMTAR for backward compatibility. Yes, it's still used
2845 # in the wild :-( We should find a proper way to deprecate it ...
2846 AMTAR='$${TAR-tar}'
2847
2848 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2849
2850
2851
2852
2853
2854
2855 VARCONF_CURRENT=8
29352856 VARCONF_REVISION=0
29362857 VARCONF_AGE=0
29372858 VARCONF_REQUIRES=""
29802901
29812902
29822903
2983 macro_version='2.2.6b'
2984 macro_revision='1.3017'
2904 macro_version='2.4.2'
2905 macro_revision='1.3337'
29852906
29862907
29872908
29962917
29972918
29982919 ltmain="$ac_aux_dir/ltmain.sh"
2920
2921 # Backslashify metacharacters that are still active within
2922 # double-quoted strings.
2923 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2924
2925 # Same as above, but do not quote variable references.
2926 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2927
2928 # Sed substitution to delay expansion of an escaped shell variable in a
2929 # double_quote_subst'ed string.
2930 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2931
2932 # Sed substitution to delay expansion of an escaped single quote.
2933 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2934
2935 # Sed substitution to avoid accidental globbing in evaled expressions
2936 no_glob_subst='s/\*/\\\*/g'
2937
2938 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2939 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2943 $as_echo_n "checking how to print strings... " >&6; }
2944 # Test print first, because it will be a builtin if present.
2945 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2946 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2947 ECHO='print -r --'
2948 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2949 ECHO='printf %s\n'
2950 else
2951 # Use this function as a fallback that always works.
2952 func_fallback_echo ()
2953 {
2954 eval 'cat <<_LTECHO_EOF
2955 $1
2956 _LTECHO_EOF'
2957 }
2958 ECHO='func_fallback_echo'
2959 fi
2960
2961 # func_echo_all arg...
2962 # Invoke $ECHO with all args, space-separated.
2963 func_echo_all ()
2964 {
2965 $ECHO ""
2966 }
2967
2968 case "$ECHO" in
2969 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2970 $as_echo "printf" >&6; } ;;
2971 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2972 $as_echo "print -r" >&6; } ;;
2973 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2974 $as_echo "cat" >&6; } ;;
2975 esac
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
29992989
30002990 DEPDIR="${am__leading_dot}deps"
30012991
30493039 if test "x$enable_dependency_tracking" != xno; then
30503040 am_depcomp="$ac_aux_dir/depcomp"
30513041 AMDEPBACKSLASH='\'
3042 am__nodep='_no'
30523043 fi
30533044 if test "x$enable_dependency_tracking" != xno; then
30543045 AMDEP_TRUE=
30693060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30703061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30713062 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_CC+set}" = set; then :
3063 if ${ac_cv_prog_CC+:} false; then :
30733064 $as_echo_n "(cached) " >&6
30743065 else
30753066 if test -n "$CC"; then
31093100 set dummy gcc; ac_word=$2
31103101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31113102 $as_echo_n "checking for $ac_word... " >&6; }
3112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
31133104 $as_echo_n "(cached) " >&6
31143105 else
31153106 if test -n "$ac_ct_CC"; then
31623153 set dummy ${ac_tool_prefix}cc; ac_word=$2
31633154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31643155 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then :
3156 if ${ac_cv_prog_CC+:} false; then :
31663157 $as_echo_n "(cached) " >&6
31673158 else
31683159 if test -n "$CC"; then
32023193 set dummy cc; ac_word=$2
32033194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32043195 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then :
3196 if ${ac_cv_prog_CC+:} false; then :
32063197 $as_echo_n "(cached) " >&6
32073198 else
32083199 if test -n "$CC"; then
32613252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32623253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32633254 $as_echo_n "checking for $ac_word... " >&6; }
3264 if test "${ac_cv_prog_CC+set}" = set; then :
3255 if ${ac_cv_prog_CC+:} false; then :
32653256 $as_echo_n "(cached) " >&6
32663257 else
32673258 if test -n "$CC"; then
33053296 set dummy $ac_prog; ac_word=$2
33063297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33073298 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3299 if ${ac_cv_prog_ac_ct_CC+:} false; then :
33093300 $as_echo_n "(cached) " >&6
33103301 else
33113302 if test -n "$ac_ct_CC"; then
33593350
33603351 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33613352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error "no acceptable C compiler found in \$PATH
3363 See \`config.log' for more details." "$LINENO" 5; }
3353 as_fn_error $? "no acceptable C compiler found in \$PATH
3354 See \`config.log' for more details" "$LINENO" 5; }
33643355
33653356 # Provide some information about the compiler.
33663357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
34743465
34753466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34763467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 { as_fn_set_status 77
3478 as_fn_error "C compiler cannot create executables
3479 See \`config.log' for more details." "$LINENO" 5; }; }
3468 as_fn_error 77 "C compiler cannot create executables
3469 See \`config.log' for more details" "$LINENO" 5; }
34803470 else
34813471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34823472 $as_echo "yes" >&6; }
35183508 else
35193509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35203510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error "cannot compute suffix of executables: cannot compile and link
3522 See \`config.log' for more details." "$LINENO" 5; }
3511 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3512 See \`config.log' for more details" "$LINENO" 5; }
35233513 fi
35243514 rm -f conftest conftest$ac_cv_exeext
35253515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35763566 else
35773567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35783568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error "cannot run C compiled programs.
3569 as_fn_error $? "cannot run C compiled programs.
35803570 If you meant to cross compile, use \`--host'.
3581 See \`config.log' for more details." "$LINENO" 5; }
3571 See \`config.log' for more details" "$LINENO" 5; }
35823572 fi
35833573 fi
35843574 fi
35893579 ac_clean_files=$ac_clean_files_save
35903580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35913581 $as_echo_n "checking for suffix of object files... " >&6; }
3592 if test "${ac_cv_objext+set}" = set; then :
3582 if ${ac_cv_objext+:} false; then :
35933583 $as_echo_n "(cached) " >&6
35943584 else
35953585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36293619
36303620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36313621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error "cannot compute suffix of object files: cannot compile
3633 See \`config.log' for more details." "$LINENO" 5; }
3622 as_fn_error $? "cannot compute suffix of object files: cannot compile
3623 See \`config.log' for more details" "$LINENO" 5; }
36343624 fi
36353625 rm -f conftest.$ac_cv_objext conftest.$ac_ext
36363626 fi
36403630 ac_objext=$OBJEXT
36413631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
36423632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3643 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3633 if ${ac_cv_c_compiler_gnu+:} false; then :
36443634 $as_echo_n "(cached) " >&6
36453635 else
36463636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36773667 ac_save_CFLAGS=$CFLAGS
36783668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36793669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then :
3670 if ${ac_cv_prog_cc_g+:} false; then :
36813671 $as_echo_n "(cached) " >&6
36823672 else
36833673 ac_save_c_werror_flag=$ac_c_werror_flag
37553745 fi
37563746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37573747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3758 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3748 if ${ac_cv_prog_cc_c89+:} false; then :
37593749 $as_echo_n "(cached) " >&6
37603750 else
37613751 ac_cv_prog_cc_c89=no
38543844
38553845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
38563846 $as_echo_n "checking dependency style of $depcc... " >&6; }
3857 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3847 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
38583848 $as_echo_n "(cached) " >&6
38593849 else
38603850 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38633853 # instance it was reported that on HP-UX the gcc test will end up
38643854 # making a dummy file named `D' -- because `-MD' means `put the output
38653855 # in D'.
3856 rm -rf conftest.dir
38663857 mkdir conftest.dir
38673858 # Copy depcomp to subdir because otherwise we won't find it if we're
38683859 # using a relative directory.
39223913 break
39233914 fi
39243915 ;;
3925 msvisualcpp | msvcmsys)
3916 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
39263917 # This compiler won't grok `-c -o', but also, the minuso test has
39273918 # not run yet. These depmodes are late enough in the game, and
39283919 # so weak that their functioning should not be impacted.
39793970
39803971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
39813972 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3982 if test "${ac_cv_path_SED+set}" = set; then :
3973 if ${ac_cv_path_SED+:} false; then :
39833974 $as_echo_n "(cached) " >&6
39843975 else
39853976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
40344025 done
40354026 IFS=$as_save_IFS
40364027 if test -z "$ac_cv_path_SED"; then
4037 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
40384029 fi
40394030 else
40404031 ac_cv_path_SED=$SED
40614052
40624053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40634054 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4064 if test "${ac_cv_path_GREP+set}" = set; then :
4055 if ${ac_cv_path_GREP+:} false; then :
40654056 $as_echo_n "(cached) " >&6
40664057 else
40674058 if test -z "$GREP"; then
41104101 done
41114102 IFS=$as_save_IFS
41124103 if test -z "$ac_cv_path_GREP"; then
4113 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41144105 fi
41154106 else
41164107 ac_cv_path_GREP=$GREP
41244115
41254116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41264117 $as_echo_n "checking for egrep... " >&6; }
4127 if test "${ac_cv_path_EGREP+set}" = set; then :
4118 if ${ac_cv_path_EGREP+:} false; then :
41284119 $as_echo_n "(cached) " >&6
41294120 else
41304121 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41764167 done
41774168 IFS=$as_save_IFS
41784169 if test -z "$ac_cv_path_EGREP"; then
4179 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41804171 fi
41814172 else
41824173 ac_cv_path_EGREP=$EGREP
41914182
41924183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
41934184 $as_echo_n "checking for fgrep... " >&6; }
4194 if test "${ac_cv_path_FGREP+set}" = set; then :
4185 if ${ac_cv_path_FGREP+:} false; then :
41954186 $as_echo_n "(cached) " >&6
41964187 else
41974188 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
42434234 done
42444235 IFS=$as_save_IFS
42454236 if test -z "$ac_cv_path_FGREP"; then
4246 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42474238 fi
42484239 else
42494240 ac_cv_path_FGREP=$FGREP
43224313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
43234314 $as_echo_n "checking for non-GNU ld... " >&6; }
43244315 fi
4325 if test "${lt_cv_path_LD+set}" = set; then :
4316 if ${lt_cv_path_LD+:} false; then :
43264317 $as_echo_n "(cached) " >&6
43274318 else
43284319 if test -z "$LD"; then
43594350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43604351 $as_echo "no" >&6; }
43614352 fi
4362 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4353 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
43634354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
43644355 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4365 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4356 if ${lt_cv_prog_gnu_ld+:} false; then :
43664357 $as_echo_n "(cached) " >&6
43674358 else
43684359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
43894380
43904381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
43914382 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4392 if test "${lt_cv_path_NM+set}" = set; then :
4383 if ${lt_cv_path_NM+:} false; then :
43934384 $as_echo_n "(cached) " >&6
43944385 else
43954386 if test -n "$NM"; then
44424433 NM="$lt_cv_path_NM"
44434434 else
44444435 # Didn't find any BSD compatible name lister, look for dumpbin.
4445 if test -n "$ac_tool_prefix"; then
4446 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4436 if test -n "$DUMPBIN"; then :
4437 # Let the user override the test.
4438 else
4439 if test -n "$ac_tool_prefix"; then
4440 for ac_prog in dumpbin "link -dump"
44474441 do
44484442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
44494443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
44504444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44514445 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4446 if ${ac_cv_prog_DUMPBIN+:} false; then :
44534447 $as_echo_n "(cached) " >&6
44544448 else
44554449 if test -n "$DUMPBIN"; then
44874481 fi
44884482 if test -z "$DUMPBIN"; then
44894483 ac_ct_DUMPBIN=$DUMPBIN
4490 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4484 for ac_prog in dumpbin "link -dump"
44914485 do
44924486 # Extract the first word of "$ac_prog", so it can be a program name with args.
44934487 set dummy $ac_prog; ac_word=$2
44944488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44954489 $as_echo_n "checking for $ac_word... " >&6; }
4496 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4490 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
44974491 $as_echo_n "(cached) " >&6
44984492 else
44994493 if test -n "$ac_ct_DUMPBIN"; then
45424536 fi
45434537 fi
45444538
4539 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4540 *COFF*)
4541 DUMPBIN="$DUMPBIN -symbols"
4542 ;;
4543 *)
4544 DUMPBIN=:
4545 ;;
4546 esac
4547 fi
45454548
45464549 if test "$DUMPBIN" != ":"; then
45474550 NM="$DUMPBIN"
45564559
45574560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
45584561 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4559 if test "${lt_cv_nm_interface+set}" = set; then :
4562 if ${lt_cv_nm_interface+:} false; then :
45604563 $as_echo_n "(cached) " >&6
45614564 else
45624565 lt_cv_nm_interface="BSD nm"
45634566 echo "int some_variable = 0;" > conftest.$ac_ext
4564 (eval echo "\"\$as_me:4565: $ac_compile\"" >&5)
4567 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
45654568 (eval "$ac_compile" 2>conftest.err)
45664569 cat conftest.err >&5
4567 (eval echo "\"\$as_me:4568: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4570 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
45684571 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
45694572 cat conftest.err >&5
4570 (eval echo "\"\$as_me:4571: output\"" >&5)
4573 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
45714574 cat conftest.out >&5
45724575 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
45734576 lt_cv_nm_interface="MS dumpbin"
45914594 # find the maximum length of command line arguments
45924595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
45934596 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4594 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4597 if ${lt_cv_sys_max_cmd_len+:} false; then :
45954598 $as_echo_n "(cached) " >&6
45964599 else
45974600 i=0
46214624 # the test eventually succeeds (with a max line length of 256k).
46224625 # Instead, let's just punt: use the minimum linelength reported by
46234626 # all of the supported platforms: 8192 (on NT/2K/XP).
4627 lt_cv_sys_max_cmd_len=8192;
4628 ;;
4629
4630 mint*)
4631 # On MiNT this can take a long time and run out of memory.
46244632 lt_cv_sys_max_cmd_len=8192;
46254633 ;;
46264634
46474655 interix*)
46484656 # We know the value 262144 and hardcode it with a safety zone (like BSD)
46494657 lt_cv_sys_max_cmd_len=196608
4658 ;;
4659
4660 os2*)
4661 # The test takes a long time on OS/2.
4662 lt_cv_sys_max_cmd_len=8192
46504663 ;;
46514664
46524665 osf*)
46884701 # If test is not a shell built-in, we'll probably end up computing a
46894702 # maximum length that is only half of the actual maximum length, but
46904703 # we can't tell.
4691 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4692 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4704 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4705 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
46934706 test $i != 17 # 1/2 MB should be enough
46944707 do
46954708 i=`expr $i + 1`
47314744 # Try some XSI features
47324745 xsi_shell=no
47334746 ( _lt_dummy="a/b/c"
4734 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4735 = c,a/b,, \
4747 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4748 = c,a/b,b/c, \
47364749 && eval 'test $(( 1 + 1 )) -eq 2 \
47374750 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
47384751 && xsi_shell=yes
47814794
47824795
47834796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4798 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4799 if ${lt_cv_to_host_file_cmd+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 case $host in
4803 *-*-mingw* )
4804 case $build in
4805 *-*-mingw* ) # actually msys
4806 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4807 ;;
4808 *-*-cygwin* )
4809 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4810 ;;
4811 * ) # otherwise, assume *nix
4812 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4813 ;;
4814 esac
4815 ;;
4816 *-*-cygwin* )
4817 case $build in
4818 *-*-mingw* ) # actually msys
4819 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4820 ;;
4821 *-*-cygwin* )
4822 lt_cv_to_host_file_cmd=func_convert_file_noop
4823 ;;
4824 * ) # otherwise, assume *nix
4825 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4826 ;;
4827 esac
4828 ;;
4829 * ) # unhandled hosts (and "normal" native builds)
4830 lt_cv_to_host_file_cmd=func_convert_file_noop
4831 ;;
4832 esac
4833
4834 fi
4835
4836 to_host_file_cmd=$lt_cv_to_host_file_cmd
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4838 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4839
4840
4841
4842
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4845 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4846 if ${lt_cv_to_tool_file_cmd+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 #assume ordinary cross tools, or native build.
4850 lt_cv_to_tool_file_cmd=func_convert_file_noop
4851 case $host in
4852 *-*-mingw* )
4853 case $build in
4854 *-*-mingw* ) # actually msys
4855 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4856 ;;
4857 esac
4858 ;;
4859 esac
4860
4861 fi
4862
4863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4865 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4866
4867
4868
4869
4870
47844871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
47854872 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4786 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4873 if ${lt_cv_ld_reload_flag+:} false; then :
47874874 $as_echo_n "(cached) " >&6
47884875 else
47894876 lt_cv_ld_reload_flag='-r'
47974884 esac
47984885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
47994886 case $host_os in
4887 cygwin* | mingw* | pw32* | cegcc*)
4888 if test "$GCC" != yes; then
4889 reload_cmds=false
4890 fi
4891 ;;
48004892 darwin*)
48014893 if test "$GCC" = yes; then
48024894 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
48194911 set dummy ${ac_tool_prefix}objdump; ac_word=$2
48204912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48214913 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4914 if ${ac_cv_prog_OBJDUMP+:} false; then :
48234915 $as_echo_n "(cached) " >&6
48244916 else
48254917 if test -n "$OBJDUMP"; then
48594951 set dummy objdump; ac_word=$2
48604952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48614953 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4954 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
48634955 $as_echo_n "(cached) " >&6
48644956 else
48654957 if test -n "$ac_ct_OBJDUMP"; then
49185010
49195011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
49205012 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4921 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5013 if ${lt_cv_deplibs_check_method+:} false; then :
49225014 $as_echo_n "(cached) " >&6
49235015 else
49245016 lt_cv_file_magic_cmd='$MAGIC_CMD'
49605052 # Base MSYS/MinGW do not provide the 'file' command needed by
49615053 # func_win32_libid shell function, so use a weaker test based on 'objdump',
49625054 # unless we find 'file', for example because we are cross-compiling.
4963 if ( file / ) >/dev/null 2>&1; then
5055 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5056 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
49645057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
49655058 lt_cv_file_magic_cmd='func_win32_libid'
49665059 else
4967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5060 # Keep this pattern in sync with the one in func_win32_libid.
5061 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
49685062 lt_cv_file_magic_cmd='$OBJDUMP -f'
49695063 fi
49705064 ;;
49715065
4972 cegcc)
5066 cegcc*)
49735067 # use the weaker test based on 'objdump'. See mingw*.
49745068 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
49755069 lt_cv_file_magic_cmd='$OBJDUMP -f'
49995093 lt_cv_deplibs_check_method=pass_all
50005094 ;;
50015095
5096 haiku*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
50025100 hpux10.20* | hpux11*)
50035101 lt_cv_file_magic_cmd=/usr/bin/file
50045102 case $host_cpu in
50075105 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
50085106 ;;
50095107 hppa*64*)
5010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5108 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]'
50115109 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
50125110 ;;
50135111 *)
5014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
50155113 lt_cv_file_magic_test_file=/usr/lib/libc.sl
50165114 ;;
50175115 esac
50325130 lt_cv_deplibs_check_method=pass_all
50335131 ;;
50345132
5035 # This must be Linux ELF.
5036 linux* | k*bsd*-gnu)
5133 # This must be glibc/ELF.
5134 linux* | k*bsd*-gnu | kopensolaris*-gnu)
50375135 lt_cv_deplibs_check_method=pass_all
50385136 ;;
50395137
5040 netbsd*)
5138 netbsd* | netbsdelf*-gnu)
50415139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
50425140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
50435141 else
51145212 fi
51155213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
51165214 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5215
5216 file_magic_glob=
5217 want_nocaseglob=no
5218 if test "$build" = "$host"; then
5219 case $host_os in
5220 mingw* | pw32*)
5221 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5222 want_nocaseglob=yes
5223 else
5224 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5225 fi
5226 ;;
5227 esac
5228 fi
5229
51175230 file_magic_cmd=$lt_cv_file_magic_cmd
51185231 deplibs_check_method=$lt_cv_deplibs_check_method
51195232 test -z "$deplibs_check_method" && deplibs_check_method=unknown
51295242
51305243
51315244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
51325255 if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5134 set dummy ${ac_tool_prefix}ar; ac_word=$2
5256 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
51355258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51365259 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_prog_AR+set}" = set; then :
5260 if ${ac_cv_prog_DLLTOOL+:} false; then :
51385261 $as_echo_n "(cached) " >&6
51395262 else
5140 if test -n "$AR"; then
5141 ac_cv_prog_AR="$AR" # Let the user override the test.
5263 if test -n "$DLLTOOL"; then
5264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
51425265 else
51435266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51445267 for as_dir in $PATH
51475270 test -z "$as_dir" && as_dir=.
51485271 for ac_exec_ext in '' $ac_executable_extensions; do
51495272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_AR="${ac_tool_prefix}ar"
5273 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
51515274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
51525275 break 2
51535276 fi
51575280
51585281 fi
51595282 fi
5160 AR=$ac_cv_prog_AR
5161 if test -n "$AR"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5163 $as_echo "$AR" >&6; }
5283 DLLTOOL=$ac_cv_prog_DLLTOOL
5284 if test -n "$DLLTOOL"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5286 $as_echo "$DLLTOOL" >&6; }
51645287 else
51655288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51665289 $as_echo "no" >&6; }
51685291
51695292
51705293 fi
5171 if test -z "$ac_cv_prog_AR"; then
5172 ac_ct_AR=$AR
5173 # Extract the first word of "ar", so it can be a program name with args.
5174 set dummy ar; ac_word=$2
5294 if test -z "$ac_cv_prog_DLLTOOL"; then
5295 ac_ct_DLLTOOL=$DLLTOOL
5296 # Extract the first word of "dlltool", so it can be a program name with args.
5297 set dummy dlltool; ac_word=$2
51755298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51765299 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5300 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
51785301 $as_echo_n "(cached) " >&6
51795302 else
5180 if test -n "$ac_ct_AR"; then
5181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5303 if test -n "$ac_ct_DLLTOOL"; then
5304 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
51825305 else
51835306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51845307 for as_dir in $PATH
51875310 test -z "$as_dir" && as_dir=.
51885311 for ac_exec_ext in '' $ac_executable_extensions; do
51895312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_ac_ct_AR="ar"
5313 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
51915314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
51925315 break 2
51935316 fi
51975320
51985321 fi
51995322 fi
5323 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5324 if test -n "$ac_ct_DLLTOOL"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5326 $as_echo "$ac_ct_DLLTOOL" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332 if test "x$ac_ct_DLLTOOL" = x; then
5333 DLLTOOL="false"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 DLLTOOL=$ac_ct_DLLTOOL
5342 fi
5343 else
5344 DLLTOOL="$ac_cv_prog_DLLTOOL"
5345 fi
5346
5347 test -z "$DLLTOOL" && DLLTOOL=dlltool
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5359 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5360 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 lt_cv_sharedlib_from_linklib_cmd='unknown'
5364
5365 case $host_os in
5366 cygwin* | mingw* | pw32* | cegcc*)
5367 # two different shell functions defined in ltmain.sh
5368 # decide which to use based on capabilities of $DLLTOOL
5369 case `$DLLTOOL --help 2>&1` in
5370 *--identify-strict*)
5371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5372 ;;
5373 *)
5374 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5375 ;;
5376 esac
5377 ;;
5378 *)
5379 # fallback: assume linklib IS sharedlib
5380 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5381 ;;
5382 esac
5383
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5386 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5387 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5388 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5389
5390
5391
5392
5393
5394
5395
5396
5397 if test -n "$ac_tool_prefix"; then
5398 for ac_prog in ar
5399 do
5400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_AR+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$AR"; then
5408 ac_cv_prog_AR="$AR" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 AR=$ac_cv_prog_AR
5428 if test -n "$AR"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5430 $as_echo "$AR" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436
5437 test -n "$AR" && break
5438 done
5439 fi
5440 if test -z "$AR"; then
5441 ac_ct_AR=$AR
5442 for ac_prog in ar
5443 do
5444 # Extract the first word of "$ac_prog", so it can be a program name with args.
5445 set dummy $ac_prog; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$ac_ct_AR"; then
5452 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_ac_ct_AR="$ac_prog"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
52005471 ac_ct_AR=$ac_cv_prog_ac_ct_AR
52015472 if test -n "$ac_ct_AR"; then
52025473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
52055476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52065477 $as_echo "no" >&6; }
52075478 fi
5479
5480
5481 test -n "$ac_ct_AR" && break
5482 done
52085483
52095484 if test "x$ac_ct_AR" = x; then
52105485 AR="false"
52175492 esac
52185493 AR=$ac_ct_AR
52195494 fi
5220 else
5221 AR="$ac_cv_prog_AR"
5222 fi
5223
5224 test -z "$AR" && AR=ar
5225 test -z "$AR_FLAGS" && AR_FLAGS=cru
5226
5227
5228
5229
5495 fi
5496
5497 : ${AR=ar}
5498 : ${AR_FLAGS=cru}
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5511 $as_echo_n "checking for archiver @FILE support... " >&6; }
5512 if ${lt_cv_ar_at_file+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 lt_cv_ar_at_file=no
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 echo conftest.$ac_objext > conftest.lst
5529 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5531 (eval $lt_ar_try) 2>&5
5532 ac_status=$?
5533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534 test $ac_status = 0; }
5535 if test "$ac_status" -eq 0; then
5536 # Ensure the archiver fails upon bogus file names.
5537 rm -f conftest.$ac_objext libconftest.a
5538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5539 (eval $lt_ar_try) 2>&5
5540 ac_status=$?
5541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; }
5543 if test "$ac_status" -ne 0; then
5544 lt_cv_ar_at_file=@
5545 fi
5546 fi
5547 rm -f conftest.* libconftest.a
5548
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5554 $as_echo "$lt_cv_ar_at_file" >&6; }
5555
5556 if test "x$lt_cv_ar_at_file" = xno; then
5557 archiver_list_spec=
5558 else
5559 archiver_list_spec=$lt_cv_ar_at_file
5560 fi
52305561
52315562
52325563
52395570 set dummy ${ac_tool_prefix}strip; ac_word=$2
52405571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52415572 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_prog_STRIP+set}" = set; then :
5573 if ${ac_cv_prog_STRIP+:} false; then :
52435574 $as_echo_n "(cached) " >&6
52445575 else
52455576 if test -n "$STRIP"; then
52795610 set dummy strip; ac_word=$2
52805611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52815612 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5613 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
52835614 $as_echo_n "(cached) " >&6
52845615 else
52855616 if test -n "$ac_ct_STRIP"; then
53385669 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
53395670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53405671 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5672 if ${ac_cv_prog_RANLIB+:} false; then :
53425673 $as_echo_n "(cached) " >&6
53435674 else
53445675 if test -n "$RANLIB"; then
53785709 set dummy ranlib; ac_word=$2
53795710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53805711 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5712 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
53825713 $as_echo_n "(cached) " >&6
53835714 else
53845715 if test -n "$ac_ct_RANLIB"; then
54405771 if test -n "$RANLIB"; then
54415772 case $host_os in
54425773 openbsd*)
5443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5774 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
54445775 ;;
54455776 *)
5446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
54475778 ;;
54485779 esac
5449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5450 fi
5780 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5781 fi
5782
5783 case $host_os in
5784 darwin*)
5785 lock_old_archive_extraction=yes ;;
5786 *)
5787 lock_old_archive_extraction=no ;;
5788 esac
5789
5790
5791
5792
5793
54515794
54525795
54535796
54955838 # Check for command to grab the raw symbol name followed by C symbol from nm.
54965839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
54975840 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5498 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5841 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
54995842 $as_echo_n "(cached) " >&6
55005843 else
55015844
55565899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
55575900
55585901 # Transform an extracted symbol line into symbol name and symbol address
5559 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5560 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'"
5902 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5903 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'"
55615904
55625905 # Handle CRLF in mingw tool chain
55635906 opt_cr=
55815924 # which start with @ or ?.
55825925 lt_cv_sys_global_symbol_pipe="$AWK '"\
55835926 " {last_section=section; section=\$ 3};"\
5927 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
55845928 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
55855929 " \$ 0!~/External *\|/{next};"\
55865930 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
55935937 else
55945938 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
55955939 fi
5940 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
55965941
55975942 # Check to see that the pipe works correctly.
55985943 pipe_works=no
56185963 test $ac_status = 0; }; then
56195964 # Now try to grab the symbols.
56205965 nlist=conftest.nm
5621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5967 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
56235968 ac_status=$?
56245969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56255970 test $ac_status = 0; } && test -s "$nlist"; then
56345979 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
56355980 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
56365981 cat <<_LT_EOF > conftest.$ac_ext
5982 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5983 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5984 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5985 relocations are performed -- see ld's documentation on pseudo-relocs. */
5986 # define LT_DLSYM_CONST
5987 #elif defined(__osf__)
5988 /* This system does not cope well with relocations in const data. */
5989 # define LT_DLSYM_CONST
5990 #else
5991 # define LT_DLSYM_CONST const
5992 #endif
5993
56375994 #ifdef __cplusplus
56385995 extern "C" {
56395996 #endif
56456002 cat <<_LT_EOF >> conftest.$ac_ext
56466003
56476004 /* The mapping between symbol names and symbols. */
5648 const struct {
6005 LT_DLSYM_CONST struct {
56496006 const char *name;
56506007 void *address;
56516008 }
56716028 _LT_EOF
56726029 # Now try linking the two files.
56736030 mv conftest.$ac_objext conftstm.$ac_objext
5674 lt_save_LIBS="$LIBS"
5675 lt_save_CFLAGS="$CFLAGS"
6031 lt_globsym_save_LIBS=$LIBS
6032 lt_globsym_save_CFLAGS=$CFLAGS
56766033 LIBS="conftstm.$ac_objext"
56776034 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
56786035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
56826039 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
56836040 pipe_works=yes
56846041 fi
5685 LIBS="$lt_save_LIBS"
5686 CFLAGS="$lt_save_CFLAGS"
6042 LIBS=$lt_globsym_save_LIBS
6043 CFLAGS=$lt_globsym_save_CFLAGS
56876044 else
56886045 echo "cannot find nm_test_func in $nlist" >&5
56896046 fi
57206077 $as_echo "ok" >&6; }
57216078 fi
57226079
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
6080 # Response file support.
6081 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6082 nm_file_list_spec='@'
6083 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6084 nm_file_list_spec='@'
6085 fi
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6114 $as_echo_n "checking for sysroot... " >&6; }
6115
6116 # Check whether --with-sysroot was given.
6117 if test "${with_sysroot+set}" = set; then :
6118 withval=$with_sysroot;
6119 else
6120 with_sysroot=no
6121 fi
6122
6123
6124 lt_sysroot=
6125 case ${with_sysroot} in #(
6126 yes)
6127 if test "$GCC" = yes; then
6128 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6129 fi
6130 ;; #(
6131 /*)
6132 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6133 ;; #(
6134 no|'')
6135 ;; #(
6136 *)
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6138 $as_echo "${with_sysroot}" >&6; }
6139 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6140 ;;
6141 esac
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6144 $as_echo "${lt_sysroot:-no}" >&6; }
57406145
57416146
57426147
57736178 ;;
57746179 *-*-irix6*)
57756180 # Find out which ABI we are using.
5776 echo '#line 5777 "configure"' > conftest.$ac_ext
6181 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
57776182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
57786183 (eval $ac_compile) 2>&5
57796184 ac_status=$?
58676272 CFLAGS="$CFLAGS -belf"
58686273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
58696274 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5870 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6275 if ${lt_cv_cc_needs_belf+:} false; then :
58716276 $as_echo_n "(cached) " >&6
58726277 else
58736278 ac_ext=c
59086313 CFLAGS="$SAVE_CFLAGS"
59096314 fi
59106315 ;;
5911 sparc*-*solaris*)
6316 *-*solaris*)
59126317 # Find out which ABI we are using.
59136318 echo 'int i;' > conftest.$ac_ext
59146319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
59196324 case `/usr/bin/file conftest.o` in
59206325 *64-bit*)
59216326 case $lt_cv_prog_gnu_ld in
5922 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6327 yes*)
6328 case $host in
6329 i?86-*-solaris*)
6330 LD="${LD-ld} -m elf_x86_64"
6331 ;;
6332 sparc*-*-solaris*)
6333 LD="${LD-ld} -m elf64_sparc"
6334 ;;
6335 esac
6336 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6337 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6338 LD="${LD-ld}_sol2"
6339 fi
6340 ;;
59236341 *)
59246342 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
59256343 LD="${LD-ld} -64"
59356353
59366354 need_locks="$enable_libtool_lock"
59376355
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}mt; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 if test -n "$MANIFEST_TOOL"; then
6365 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6385 if test -n "$MANIFEST_TOOL"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6387 $as_echo "$MANIFEST_TOOL" >&6; }
6388 else
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393
6394 fi
6395 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6396 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6397 # Extract the first word of "mt", so it can be a program name with args.
6398 set dummy mt; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$ac_ct_MANIFEST_TOOL"; then
6405 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6425 if test -n "$ac_ct_MANIFEST_TOOL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6427 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6434 MANIFEST_TOOL=":"
6435 else
6436 case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6443 fi
6444 else
6445 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6446 fi
6447
6448 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6450 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6451 if ${lt_cv_path_mainfest_tool+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 lt_cv_path_mainfest_tool=no
6455 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6456 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6457 cat conftest.err >&5
6458 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6459 lt_cv_path_mainfest_tool=yes
6460 fi
6461 rm -f conftest*
6462 fi
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6464 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6465 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6466 MANIFEST_TOOL=:
6467 fi
6468
6469
6470
6471
6472
59386473
59396474 case $host_os in
59406475 rhapsody* | darwin*)
59436478 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
59446479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59456480 $as_echo_n "checking for $ac_word... " >&6; }
5946 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6481 if ${ac_cv_prog_DSYMUTIL+:} false; then :
59476482 $as_echo_n "(cached) " >&6
59486483 else
59496484 if test -n "$DSYMUTIL"; then
59836518 set dummy dsymutil; ac_word=$2
59846519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59856520 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6521 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
59876522 $as_echo_n "(cached) " >&6
59886523 else
59896524 if test -n "$ac_ct_DSYMUTIL"; then
60356570 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
60366571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60376572 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6573 if ${ac_cv_prog_NMEDIT+:} false; then :
60396574 $as_echo_n "(cached) " >&6
60406575 else
60416576 if test -n "$NMEDIT"; then
60756610 set dummy nmedit; ac_word=$2
60766611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60776612 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6613 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
60796614 $as_echo_n "(cached) " >&6
60806615 else
60816616 if test -n "$ac_ct_NMEDIT"; then
61276662 set dummy ${ac_tool_prefix}lipo; ac_word=$2
61286663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61296664 $as_echo_n "checking for $ac_word... " >&6; }
6130 if test "${ac_cv_prog_LIPO+set}" = set; then :
6665 if ${ac_cv_prog_LIPO+:} false; then :
61316666 $as_echo_n "(cached) " >&6
61326667 else
61336668 if test -n "$LIPO"; then
61676702 set dummy lipo; ac_word=$2
61686703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61696704 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6705 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
61716706 $as_echo_n "(cached) " >&6
61726707 else
61736708 if test -n "$ac_ct_LIPO"; then
62196754 set dummy ${ac_tool_prefix}otool; ac_word=$2
62206755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62216756 $as_echo_n "checking for $ac_word... " >&6; }
6222 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6757 if ${ac_cv_prog_OTOOL+:} false; then :
62236758 $as_echo_n "(cached) " >&6
62246759 else
62256760 if test -n "$OTOOL"; then
62596794 set dummy otool; ac_word=$2
62606795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62616796 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6797 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
62636798 $as_echo_n "(cached) " >&6
62646799 else
62656800 if test -n "$ac_ct_OTOOL"; then
63116846 set dummy ${ac_tool_prefix}otool64; ac_word=$2
63126847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63136848 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6849 if ${ac_cv_prog_OTOOL64+:} false; then :
63156850 $as_echo_n "(cached) " >&6
63166851 else
63176852 if test -n "$OTOOL64"; then
63516886 set dummy otool64; ac_word=$2
63526887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63536888 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6889 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
63556890 $as_echo_n "(cached) " >&6
63566891 else
63576892 if test -n "$ac_ct_OTOOL64"; then
64266961
64276962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
64286963 $as_echo_n "checking for -single_module linker flag... " >&6; }
6429 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6964 if ${lt_cv_apple_cc_single_mod+:} false; then :
64306965 $as_echo_n "(cached) " >&6
64316966 else
64326967 lt_cv_apple_cc_single_mod=no
64426977 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
64436978 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
64446979 _lt_result=$?
6445 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6980 # If there is a non-empty error log, and "single_module"
6981 # appears in it, assume the flag caused a linker warning
6982 if test -s conftest.err && $GREP single_module conftest.err; then
6983 cat conftest.err >&5
6984 # Otherwise, if the output was created with a 0 exit code from
6985 # the compiler, it worked.
6986 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
64466987 lt_cv_apple_cc_single_mod=yes
64476988 else
64486989 cat conftest.err >&5
64536994 fi
64546995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
64556996 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6997
64566998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
64576999 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6458 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7000 if ${lt_cv_ld_exported_symbols_list+:} false; then :
64597001 $as_echo_n "(cached) " >&6
64607002 else
64617003 lt_cv_ld_exported_symbols_list=no
64857027 fi
64867028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
64877029 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7030
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7032 $as_echo_n "checking for -force_load linker flag... " >&6; }
7033 if ${lt_cv_ld_force_load+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 lt_cv_ld_force_load=no
7037 cat > conftest.c << _LT_EOF
7038 int forced_loaded() { return 2;}
7039 _LT_EOF
7040 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7041 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7042 echo "$AR cru libconftest.a conftest.o" >&5
7043 $AR cru libconftest.a conftest.o 2>&5
7044 echo "$RANLIB libconftest.a" >&5
7045 $RANLIB libconftest.a 2>&5
7046 cat > conftest.c << _LT_EOF
7047 int main() { return 0;}
7048 _LT_EOF
7049 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7050 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7051 _lt_result=$?
7052 if test -s conftest.err && $GREP force_load conftest.err; then
7053 cat conftest.err >&5
7054 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7055 lt_cv_ld_force_load=yes
7056 else
7057 cat conftest.err >&5
7058 fi
7059 rm -f conftest.err libconftest.a conftest conftest.c
7060 rm -rf conftest.dSYM
7061
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7064 $as_echo "$lt_cv_ld_force_load" >&6; }
64887065 case $host_os in
64897066 rhapsody* | darwin1.[012])
64907067 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
65127089 else
65137090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
65147091 fi
6515 if test "$DSYMUTIL" != ":"; then
7092 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
65167093 _lt_dsymutil='~$DSYMUTIL $lib || :'
65177094 else
65187095 _lt_dsymutil=
65327109 CPP=
65337110 fi
65347111 if test -z "$CPP"; then
6535 if test "${ac_cv_prog_CPP+set}" = set; then :
7112 if ${ac_cv_prog_CPP+:} false; then :
65367113 $as_echo_n "(cached) " >&6
65377114 else
65387115 # Double quotes because CPP needs to be expanded
65627139 # Broken: fails on valid input.
65637140 continue
65647141 fi
6565 rm -f conftest.err conftest.$ac_ext
7142 rm -f conftest.err conftest.i conftest.$ac_ext
65667143
65677144 # OK, works on sane cases. Now check whether nonexistent headers
65687145 # can be detected and how.
65787155 ac_preproc_ok=:
65797156 break
65807157 fi
6581 rm -f conftest.err conftest.$ac_ext
7158 rm -f conftest.err conftest.i conftest.$ac_ext
65827159
65837160 done
65847161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6585 rm -f conftest.err conftest.$ac_ext
7162 rm -f conftest.i conftest.err conftest.$ac_ext
65867163 if $ac_preproc_ok; then :
65877164 break
65887165 fi
66217198 # Broken: fails on valid input.
66227199 continue
66237200 fi
6624 rm -f conftest.err conftest.$ac_ext
7201 rm -f conftest.err conftest.i conftest.$ac_ext
66257202
66267203 # OK, works on sane cases. Now check whether nonexistent headers
66277204 # can be detected and how.
66377214 ac_preproc_ok=:
66387215 break
66397216 fi
6640 rm -f conftest.err conftest.$ac_ext
7217 rm -f conftest.err conftest.i conftest.$ac_ext
66417218
66427219 done
66437220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6644 rm -f conftest.err conftest.$ac_ext
7221 rm -f conftest.i conftest.err conftest.$ac_ext
66457222 if $ac_preproc_ok; then :
66467223
66477224 else
66487225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
66497226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6650 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6651 See \`config.log' for more details." "$LINENO" 5; }
7227 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7228 See \`config.log' for more details" "$LINENO" 5; }
66527229 fi
66537230
66547231 ac_ext=c
66607237
66617238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
66627239 $as_echo_n "checking for ANSI C header files... " >&6; }
6663 if test "${ac_cv_header_stdc+set}" = set; then :
7240 if ${ac_cv_header_stdc+:} false; then :
66647241 $as_echo_n "(cached) " >&6
66657242 else
66667243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67777354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67787355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
67797356 "
6780 eval as_val=\$$as_ac_Header
6781 if test "x$as_val" = x""yes; then :
7357 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
67827358 cat >>confdefs.h <<_ACEOF
67837359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67847360 _ACEOF
67927368 do :
67937369 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
67947370 "
6795 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7371 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
67967372 cat >>confdefs.h <<_ACEOF
67977373 #define HAVE_DLFCN_H 1
67987374 _ACEOF
68007376 fi
68017377
68027378 done
7379
7380
68037381
68047382
68057383
68487426
68497427 # Check whether --with-pic was given.
68507428 if test "${with_pic+set}" = set; then :
6851 withval=$with_pic; pic_mode="$withval"
7429 withval=$with_pic; lt_p=${PACKAGE-default}
7430 case $withval in
7431 yes|no) pic_mode=$withval ;;
7432 *)
7433 pic_mode=default
7434 # Look at the argument we got. We use all the common list separators.
7435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7436 for lt_pkg in $withval; do
7437 IFS="$lt_save_ifs"
7438 if test "X$lt_pkg" = "X$lt_p"; then
7439 pic_mode=yes
7440 fi
7441 done
7442 IFS="$lt_save_ifs"
7443 ;;
7444 esac
68527445 else
68537446 pic_mode=default
68547447 fi
69257518
69267519
69277520
7521
7522
7523
7524
7525
69287526 test -z "$LN_S" && LN_S="ln -s"
69297527
69307528
69467544
69477545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
69487546 $as_echo_n "checking for objdir... " >&6; }
6949 if test "${lt_cv_objdir+set}" = set; then :
7547 if ${lt_cv_objdir+:} false; then :
69507548 $as_echo_n "(cached) " >&6
69517549 else
69527550 rm -f .libs 2>/dev/null
69707568 cat >>confdefs.h <<_ACEOF
69717569 #define LT_OBJDIR "$lt_cv_objdir/"
69727570 _ACEOF
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
69867571
69877572
69887573
69997584 ;;
70007585 esac
70017586
7002 # Sed substitution that helps us do robust quoting. It backslashifies
7003 # metacharacters that are still active within double-quoted strings.
7004 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7005
7006 # Same as above, but do not quote variable references.
7007 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7008
7009 # Sed substitution to delay expansion of an escaped shell variable in a
7010 # double_quote_subst'ed string.
7011 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7012
7013 # Sed substitution to delay expansion of an escaped single quote.
7014 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7015
7016 # Sed substitution to avoid accidental globbing in evaled expressions
7017 no_glob_subst='s/\*/\\\*/g'
7018
70197587 # Global variables:
70207588 ofile=libtool
70217589 can_build_shared=yes
70447612 *) break;;
70457613 esac
70467614 done
7047 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7615 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
70487616
70497617
70507618 # Only perform the check for file, if the check method requires it
70547622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
70557623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
70567624 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7057 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7625 if ${lt_cv_path_MAGIC_CMD+:} false; then :
70587626 $as_echo_n "(cached) " >&6
70597627 else
70607628 case $MAGIC_CMD in
71207688 if test -n "$ac_tool_prefix"; then
71217689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
71227690 $as_echo_n "checking for file... " >&6; }
7123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7691 if ${lt_cv_path_MAGIC_CMD+:} false; then :
71247692 $as_echo_n "(cached) " >&6
71257693 else
71267694 case $MAGIC_CMD in
72497817 lt_prog_compiler_no_builtin_flag=
72507818
72517819 if test "$GCC" = yes; then
7252 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7820 case $cc_basename in
7821 nvcc*)
7822 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7823 *)
7824 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7825 esac
72537826
72547827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
72557828 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7256 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7829 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
72577830 $as_echo_n "(cached) " >&6
72587831 else
72597832 lt_cv_prog_compiler_rtti_exceptions=no
72697842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
72707843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
72717844 -e 's:$: $lt_compiler_flag:'`
7272 (eval echo "\"\$as_me:7273: $lt_compile\"" >&5)
7845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
72737846 (eval "$lt_compile" 2>conftest.err)
72747847 ac_status=$?
72757848 cat conftest.err >&5
7276 echo "$as_me:7277: \$? = $ac_status" >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72777850 if (exit $ac_status) && test -s "$ac_outfile"; then
72787851 # The compiler can only warn and ignore the option if not recognized
72797852 # So say no if there are warnings other than the usual output.
7280 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
72817854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
72827855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
72837856 lt_cv_prog_compiler_rtti_exceptions=yes
73067879 lt_prog_compiler_pic=
73077880 lt_prog_compiler_static=
73087881
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7310 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
73117882
73127883 if test "$GCC" = yes; then
73137884 lt_prog_compiler_wl='-Wl,'
73557926 lt_prog_compiler_pic='-fno-common'
73567927 ;;
73577928
7929 haiku*)
7930 # PIC is the default for Haiku.
7931 # The "-static" flag exists, but is broken.
7932 lt_prog_compiler_static=
7933 ;;
7934
73587935 hpux*)
73597936 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
73607937 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
73957972
73967973 *)
73977974 lt_prog_compiler_pic='-fPIC'
7975 ;;
7976 esac
7977
7978 case $cc_basename in
7979 nvcc*) # Cuda Compiler Driver 2.2
7980 lt_prog_compiler_wl='-Xlinker '
7981 if test -n "$lt_prog_compiler_pic"; then
7982 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7983 fi
73987984 ;;
73997985 esac
74007986 else
74388024 lt_prog_compiler_static='-non_shared'
74398025 ;;
74408026
7441 linux* | k*bsd*-gnu)
8027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
74428028 case $cc_basename in
74438029 # old Intel for x86_64 which still supported -KPIC.
74448030 ecc*)
74598045 lt_prog_compiler_pic='--shared'
74608046 lt_prog_compiler_static='--static'
74618047 ;;
7462 pgcc* | pgf77* | pgf90* | pgf95*)
8048 nagfor*)
8049 # NAG Fortran compiler
8050 lt_prog_compiler_wl='-Wl,-Wl,,'
8051 lt_prog_compiler_pic='-PIC'
8052 lt_prog_compiler_static='-Bstatic'
8053 ;;
8054 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
74638055 # Portland Group compilers (*not* the Pentium gcc compiler,
74648056 # which looks to be a dead project)
74658057 lt_prog_compiler_wl='-Wl,'
74718063 # All Alpha code is PIC.
74728064 lt_prog_compiler_static='-non_shared'
74738065 ;;
7474 xl*)
7475 # IBM XL C 8.0/Fortran 10.1 on PPC
8066 xl* | bgxl* | bgf* | mpixl*)
8067 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
74768068 lt_prog_compiler_wl='-Wl,'
74778069 lt_prog_compiler_pic='-qpic'
74788070 lt_prog_compiler_static='-qstaticlink'
74798071 ;;
74808072 *)
74818073 case `$CC -V 2>&1 | sed 5q` in
8074 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8075 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_wl=''
8079 ;;
8080 *Sun\ F* | *Sun*Fortran*)
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 lt_prog_compiler_wl='-Qoption ld '
8084 ;;
74828085 *Sun\ C*)
74838086 # Sun C 5.9
74848087 lt_prog_compiler_pic='-KPIC'
74858088 lt_prog_compiler_static='-Bstatic'
74868089 lt_prog_compiler_wl='-Wl,'
74878090 ;;
7488 *Sun\ F*)
7489 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7490 lt_prog_compiler_pic='-KPIC'
8091 *Intel*\ [CF]*Compiler*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-fPIC'
8094 lt_prog_compiler_static='-static'
8095 ;;
8096 *Portland\ Group*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-fpic'
74918099 lt_prog_compiler_static='-Bstatic'
7492 lt_prog_compiler_wl=''
74938100 ;;
74948101 esac
74958102 ;;
75218128 lt_prog_compiler_pic='-KPIC'
75228129 lt_prog_compiler_static='-Bstatic'
75238130 case $cc_basename in
7524 f77* | f90* | f95*)
8131 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
75258132 lt_prog_compiler_wl='-Qoption ld ';;
75268133 *)
75278134 lt_prog_compiler_wl='-Wl,';;
75788185 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
75798186 ;;
75808187 esac
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7582 $as_echo "$lt_prog_compiler_pic" >&6; }
7583
7584
7585
7586
7587
8188
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8191 if ${lt_cv_prog_compiler_pic+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8197 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8198 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
75888199
75898200 #
75908201 # Check to make sure the PIC flag actually works.
75928203 if test -n "$lt_prog_compiler_pic"; then
75938204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
75948205 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7595 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8206 if ${lt_cv_prog_compiler_pic_works+:} false; then :
75968207 $as_echo_n "(cached) " >&6
75978208 else
75988209 lt_cv_prog_compiler_pic_works=no
76088219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76098220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76108221 -e 's:$: $lt_compiler_flag:'`
7611 (eval echo "\"\$as_me:7612: $lt_compile\"" >&5)
8222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
76128223 (eval "$lt_compile" 2>conftest.err)
76138224 ac_status=$?
76148225 cat conftest.err >&5
7615 echo "$as_me:7616: \$? = $ac_status" >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76168227 if (exit $ac_status) && test -s "$ac_outfile"; then
76178228 # The compiler can only warn and ignore the option if not recognized
76188229 # So say no if there are warnings other than the usual output.
7619 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
76208231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
76218232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
76228233 lt_cv_prog_compiler_pic_works=yes
76458256
76468257
76478258
8259
8260
8261
8262
8263
76488264 #
76498265 # Check to make sure the static flag actually works.
76508266 #
76518267 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
76528268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
76538269 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7654 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8270 if ${lt_cv_prog_compiler_static_works+:} false; then :
76558271 $as_echo_n "(cached) " >&6
76568272 else
76578273 lt_cv_prog_compiler_static_works=no
76648280 if test -s conftest.err; then
76658281 # Append any errors to the config.log.
76668282 cat conftest.err 1>&5
7667 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8283 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
76688284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
76698285 if diff conftest.exp conftest.er2 >/dev/null; then
76708286 lt_cv_prog_compiler_static_works=yes
76948310
76958311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
76968312 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7697 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8313 if ${lt_cv_prog_compiler_c_o+:} false; then :
76988314 $as_echo_n "(cached) " >&6
76998315 else
77008316 lt_cv_prog_compiler_c_o=no
77138329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
77148330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
77158331 -e 's:$: $lt_compiler_flag:'`
7716 (eval echo "\"\$as_me:7717: $lt_compile\"" >&5)
8332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
77178333 (eval "$lt_compile" 2>out/conftest.err)
77188334 ac_status=$?
77198335 cat out/conftest.err >&5
7720 echo "$as_me:7721: \$? = $ac_status" >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77218337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
77228338 then
77238339 # The compiler can only warn and ignore the option if not recognized
77248340 # So say no if there are warnings
7725 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
77268342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
77278343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
77288344 lt_cv_prog_compiler_c_o=yes
77498365
77508366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
77518367 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7752 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8368 if ${lt_cv_prog_compiler_c_o+:} false; then :
77538369 $as_echo_n "(cached) " >&6
77548370 else
77558371 lt_cv_prog_compiler_c_o=no
77688384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
77698385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
77708386 -e 's:$: $lt_compiler_flag:'`
7771 (eval echo "\"\$as_me:7772: $lt_compile\"" >&5)
8387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
77728388 (eval "$lt_compile" 2>out/conftest.err)
77738389 ac_status=$?
77748390 cat out/conftest.err >&5
7775 echo "$as_me:7776: \$? = $ac_status" >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
77768392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
77778393 then
77788394 # The compiler can only warn and ignore the option if not recognized
77798395 # So say no if there are warnings
7780 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
77818397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
77828398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
77838399 lt_cv_prog_compiler_c_o=yes
78438459 hardcode_direct=no
78448460 hardcode_direct_absolute=no
78458461 hardcode_libdir_flag_spec=
7846 hardcode_libdir_flag_spec_ld=
78478462 hardcode_libdir_separator=
78488463 hardcode_minus_L=no
78498464 hardcode_shlibpath_var=unsupported
78878502 openbsd*)
78888503 with_gnu_ld=no
78898504 ;;
8505 linux* | k*bsd*-gnu | gnu*)
8506 link_all_deplibs=no
8507 ;;
78908508 esac
78918509
78928510 ld_shlibs=yes
8511
8512 # On some targets, GNU ld is compatible enough with the native linker
8513 # that we're better off using the native interface for both.
8514 lt_use_gnu_ld_interface=no
78938515 if test "$with_gnu_ld" = yes; then
8516 case $host_os in
8517 aix*)
8518 # The AIX port of GNU ld has always aspired to compatibility
8519 # with the native linker. However, as the warning in the GNU ld
8520 # block says, versions before 2.19.5* couldn't really create working
8521 # shared libraries, regardless of the interface used.
8522 case `$LD -v 2>&1` in
8523 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8524 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8525 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8526 *)
8527 lt_use_gnu_ld_interface=yes
8528 ;;
8529 esac
8530 ;;
8531 *)
8532 lt_use_gnu_ld_interface=yes
8533 ;;
8534 esac
8535 fi
8536
8537 if test "$lt_use_gnu_ld_interface" = yes; then
78948538 # If archive_cmds runs LD, not CC, wlarc should be empty
78958539 wlarc='${wl}'
78968540
79088552 fi
79098553 supports_anon_versioning=no
79108554 case `$LD -v 2>&1` in
8555 *GNU\ gold*) supports_anon_versioning=yes ;;
79118556 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
79128557 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
79138558 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
79238568 ld_shlibs=no
79248569 cat <<_LT_EOF 1>&2
79258570
7926 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8571 *** Warning: the GNU linker, at least up to release 2.19, is reported
79278572 *** to be unable to reliably create shared libraries on AIX.
79288573 *** Therefore, libtool is disabling shared libraries support. If you
7929 *** really care for shared libraries, you may want to modify your PATH
7930 *** so that a non-GNU linker is found, and then restart.
8574 *** really care for shared libraries, you may want to install binutils
8575 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8576 *** You will then need to restart the configuration process.
79318577
79328578 _LT_EOF
79338579 fi
79638609 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
79648610 # as there is no search path for DLLs.
79658611 hardcode_libdir_flag_spec='-L$libdir'
8612 export_dynamic_flag_spec='${wl}--export-all-symbols'
79668613 allow_undefined_flag=unsupported
79678614 always_export_symbols=no
79688615 enable_shared_with_static_runtimes=yes
7969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8616 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'
8617 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
79708618
79718619 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
79728620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
79848632 fi
79858633 ;;
79868634
8635 haiku*)
8636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8637 link_all_deplibs=yes
8638 ;;
8639
79878640 interix[3-9]*)
79888641 hardcode_direct=no
79898642 hardcode_shlibpath_var=no
79998652 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'
80008653 ;;
80018654
8002 gnu* | linux* | tpf* | k*bsd*-gnu)
8655 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
80038656 tmp_diet=no
80048657 if test "$host_os" = linux-dietlibc; then
80058658 case $cc_basename in
80098662 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
80108663 && test "$tmp_diet" = no
80118664 then
8012 tmp_addflag=
8665 tmp_addflag=' $pic_flag'
80138666 tmp_sharedflag='-shared'
80148667 case $cc_basename,$host_cpu in
80158668 pgcc*) # Portland Group C compiler
8016 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8669 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'
80178670 tmp_addflag=' $pic_flag'
80188671 ;;
8019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8020 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8672 pgf77* | pgf90* | pgf95* | pgfortran*)
8673 # Portland Group f77 and f90 compilers
8674 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'
80218675 tmp_addflag=' $pic_flag -Mnomain' ;;
80228676 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
80238677 tmp_addflag=' -i_dynamic' ;;
80288682 lf95*) # Lahey Fortran 8.1
80298683 whole_archive_flag_spec=
80308684 tmp_sharedflag='--shared' ;;
8031 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8685 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
80328686 tmp_sharedflag='-qmkshrobj'
80338687 tmp_addflag= ;;
8688 nvcc*) # Cuda Compiler Driver 2.2
8689 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'
8690 compiler_needs_object=yes
8691 ;;
80348692 esac
80358693 case `$CC -V 2>&1 | sed 5q` in
80368694 *Sun\ C*) # Sun C 5.9
8037 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8695 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'
80388696 compiler_needs_object=yes
80398697 tmp_sharedflag='-G' ;;
80408698 *Sun\ F*) # Sun Fortran 8.3
80508708 fi
80518709
80528710 case $cc_basename in
8053 xlf*)
8711 xlf* | bgf* | bgxlf* | mpixlf*)
80548712 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
80558713 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8056 hardcode_libdir_flag_spec=
8057 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8058 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
80598716 if test "x$supports_anon_versioning" = xyes; then
80608717 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
80618718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
80628719 echo "local: *; };" >> $output_objdir/$libname.ver~
8063 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8720 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
80648721 fi
80658722 ;;
80668723 esac
80698726 fi
80708727 ;;
80718728
8072 netbsd*)
8729 netbsd* | netbsdelf*-gnu)
80738730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
80748731 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
80758732 wlarc=
80768733 else
8077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
80798736 fi
80808737 ;;
80818738
80938750
80948751 _LT_EOF
80958752 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8754 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
80988755 else
80998756 ld_shlibs=no
81008757 fi
81408797
81418798 *)
81428799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
81458802 else
81468803 ld_shlibs=no
81478804 fi
81818838 else
81828839 # If we're using GNU nm, then we don't want the "-C" option.
81838840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8841 # Also, AIX nm treats weak defined symbols like other global
8842 # defined symbols, whereas GNU nm marks them as "W".
81848843 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8185 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8844 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'
81868845 else
81878846 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'
81888847 fi
82448903 if test "$aix_use_runtimelinking" = yes; then
82458904 shared_flag="$shared_flag "'${wl}-G'
82468905 fi
8906 link_all_deplibs=no
82478907 else
82488908 # not using gcc
82498909 if test "$host_cpu" = ia64; then
82698929 allow_undefined_flag='-berok'
82708930 # Determine the default libpath from the value encoded in an
82718931 # empty executable.
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 if test "${lt_cv_aix_libpath+set}" = set; then
8933 aix_libpath=$lt_cv_aix_libpath
8934 else
8935 if ${lt_cv_aix_libpath_+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82738939 /* end confdefs.h. */
82748940
82758941 int
82828948 _ACEOF
82838949 if ac_fn_c_try_link "$LINENO"; then :
82848950
8285 lt_aix_libpath_sed='
8286 /Import File Strings/,/^$/ {
8287 /^0/ {
8288 s/^0 *\(.*\)$/\1/
8289 p
8290 }
8291 }'
8292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8293 # Check for a 64-bit object if we didn't find anything.
8294 if test -z "$aix_libpath"; then
8295 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8296 fi
8951 lt_aix_libpath_sed='
8952 /Import File Strings/,/^$/ {
8953 /^0/ {
8954 s/^0 *\([^ ]*\) *$/\1/
8955 p
8956 }
8957 }'
8958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 # Check for a 64-bit object if we didn't find anything.
8960 if test -z "$lt_cv_aix_libpath_"; then
8961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962 fi
82978963 fi
82988964 rm -f core conftest.err conftest.$ac_objext \
82998965 conftest$ac_exeext conftest.$ac_ext
8300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8966 if test -z "$lt_cv_aix_libpath_"; then
8967 lt_cv_aix_libpath_="/usr/lib:/lib"
8968 fi
8969
8970 fi
8971
8972 aix_libpath=$lt_cv_aix_libpath_
8973 fi
83018974
83028975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8303 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8976 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"
83048977 else
83058978 if test "$host_cpu" = ia64; then
83068979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
83098982 else
83108983 # Determine the default libpath from the value encoded in an
83118984 # empty executable.
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 if test "${lt_cv_aix_libpath+set}" = set; then
8986 aix_libpath=$lt_cv_aix_libpath
8987 else
8988 if ${lt_cv_aix_libpath_+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83138992 /* end confdefs.h. */
83148993
83158994 int
83229001 _ACEOF
83239002 if ac_fn_c_try_link "$LINENO"; then :
83249003
8325 lt_aix_libpath_sed='
8326 /Import File Strings/,/^$/ {
8327 /^0/ {
8328 s/^0 *\(.*\)$/\1/
8329 p
8330 }
8331 }'
8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8333 # Check for a 64-bit object if we didn't find anything.
8334 if test -z "$aix_libpath"; then
8335 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8336 fi
9004 lt_aix_libpath_sed='
9005 /Import File Strings/,/^$/ {
9006 /^0/ {
9007 s/^0 *\([^ ]*\) *$/\1/
9008 p
9009 }
9010 }'
9011 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9012 # Check for a 64-bit object if we didn't find anything.
9013 if test -z "$lt_cv_aix_libpath_"; then
9014 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9015 fi
83379016 fi
83389017 rm -f core conftest.err conftest.$ac_objext \
83399018 conftest$ac_exeext conftest.$ac_ext
8340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9019 if test -z "$lt_cv_aix_libpath_"; then
9020 lt_cv_aix_libpath_="/usr/lib:/lib"
9021 fi
9022
9023 fi
9024
9025 aix_libpath=$lt_cv_aix_libpath_
9026 fi
83419027
83429028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
83439029 # Warning - without using the other run time loading flags,
83449030 # -berok will link without error, but may produce a broken library.
83459031 no_undefined_flag=' ${wl}-bernotok'
83469032 allow_undefined_flag=' ${wl}-berok'
8347 # Exported symbols can be pulled into shared objects from archives
8348 whole_archive_flag_spec='$convenience'
9033 if test "$with_gnu_ld" = yes; then
9034 # We only use this code for GNU lds that support --whole-archive.
9035 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9036 else
9037 # Exported symbols can be pulled into shared objects from archives
9038 whole_archive_flag_spec='$convenience'
9039 fi
83499040 archive_cmds_need_lc=yes
83509041 # This is similar to how AIX traditionally builds its shared libraries.
83519042 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'
83779068 # Microsoft Visual C++.
83789069 # hardcode_libdir_flag_spec is actually meaningless, as there is
83799070 # no search path for DLLs.
8380 hardcode_libdir_flag_spec=' '
8381 allow_undefined_flag=unsupported
8382 # Tell ltmain to make .lib files, not .a files.
8383 libext=lib
8384 # Tell ltmain to make .dll files, not .so files.
8385 shrext_cmds=".dll"
8386 # FIXME: Setting linknames here is a bad hack.
8387 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8388 # The linker will automatically build a .lib file if we build a DLL.
8389 old_archive_from_new_cmds='true'
8390 # FIXME: Should let the user specify the lib program.
8391 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8392 fix_srcfile_path='`cygpath -w "$srcfile"`'
8393 enable_shared_with_static_runtimes=yes
9071 case $cc_basename in
9072 cl*)
9073 # Native MSVC
9074 hardcode_libdir_flag_spec=' '
9075 allow_undefined_flag=unsupported
9076 always_export_symbols=yes
9077 file_list_spec='@'
9078 # Tell ltmain to make .lib files, not .a files.
9079 libext=lib
9080 # Tell ltmain to make .dll files, not .so files.
9081 shrext_cmds=".dll"
9082 # FIXME: Setting linknames here is a bad hack.
9083 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9085 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9086 else
9087 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9088 fi~
9089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9090 linknames='
9091 # The linker will not automatically build a static lib if we build a DLL.
9092 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9093 enable_shared_with_static_runtimes=yes
9094 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9096 # Don't use ranlib
9097 old_postinstall_cmds='chmod 644 $oldlib'
9098 postlink_cmds='lt_outputfile="@OUTPUT@"~
9099 lt_tool_outputfile="@TOOL_OUTPUT@"~
9100 case $lt_outputfile in
9101 *.exe|*.EXE) ;;
9102 *)
9103 lt_outputfile="$lt_outputfile.exe"
9104 lt_tool_outputfile="$lt_tool_outputfile.exe"
9105 ;;
9106 esac~
9107 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9108 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9109 $RM "$lt_outputfile.manifest";
9110 fi'
9111 ;;
9112 *)
9113 # Assume MSVC wrapper
9114 hardcode_libdir_flag_spec=' '
9115 allow_undefined_flag=unsupported
9116 # Tell ltmain to make .lib files, not .a files.
9117 libext=lib
9118 # Tell ltmain to make .dll files, not .so files.
9119 shrext_cmds=".dll"
9120 # FIXME: Setting linknames here is a bad hack.
9121 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9122 # The linker will automatically build a .lib file if we build a DLL.
9123 old_archive_from_new_cmds='true'
9124 # FIXME: Should let the user specify the lib program.
9125 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9126 enable_shared_with_static_runtimes=yes
9127 ;;
9128 esac
83949129 ;;
83959130
83969131 darwin* | rhapsody*)
84009135 hardcode_direct=no
84019136 hardcode_automatic=yes
84029137 hardcode_shlibpath_var=unsupported
8403 whole_archive_flag_spec=''
9138 if test "$lt_cv_ld_force_load" = "yes"; then
9139 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\"`'
9140
9141 else
9142 whole_archive_flag_spec=''
9143 fi
84049144 link_all_deplibs=yes
84059145 allow_undefined_flag="$_lt_dar_allow_undefined"
84069146 case $cc_basename in
84089148 *) _lt_dar_can_shared=$GCC ;;
84099149 esac
84109150 if test "$_lt_dar_can_shared" = "yes"; then
8411 output_verbose_link_cmd=echo
9151 output_verbose_link_cmd=func_echo_all
84129152 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
84139153 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
84149154 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}"
84249164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
84259165 hardcode_libdir_flag_spec='-L$libdir'
84269166 hardcode_shlibpath_var=no
8427 ;;
8428
8429 freebsd1*)
8430 ld_shlibs=no
84319167 ;;
84329168
84339169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
84429178 ;;
84439179
84449180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8445 freebsd2*)
9181 freebsd2.*)
84469182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
84479183 hardcode_direct=yes
84489184 hardcode_minus_L=yes
84519187
84529188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
84539189 freebsd* | dragonfly*)
8454 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
84559191 hardcode_libdir_flag_spec='-R$libdir'
84569192 hardcode_direct=yes
84579193 hardcode_shlibpath_var=no
84599195
84609196 hpux9*)
84619197 if test "$GCC" = yes; then
8462 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9198 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'
84639199 else
84649200 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'
84659201 fi
84749210 ;;
84759211
84769212 hpux10*)
8477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8478 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9213 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9214 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
84799215 else
84809216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
84819217 fi
84829218 if test "$with_gnu_ld" = no; then
84839219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_flag_spec_ld='+b $libdir'
84859220 hardcode_libdir_separator=:
84869221 hardcode_direct=yes
84879222 hardcode_direct_absolute=yes
84939228 ;;
84949229
84959230 hpux11*)
8496 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
84979232 case $host_cpu in
84989233 hppa*64*)
84999234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
85009235 ;;
85019236 ia64*)
8502 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9237 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
85039238 ;;
85049239 *)
8505 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9240 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
85069241 ;;
85079242 esac
85089243 else
85149249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
85159250 ;;
85169251 *)
8517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9252
9253 # Older versions of the 11.00 compiler do not understand -b yet
9254 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9256 $as_echo_n "checking if $CC understands -b... " >&6; }
9257 if ${lt_cv_prog_compiler__b+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 lt_cv_prog_compiler__b=no
9261 save_LDFLAGS="$LDFLAGS"
9262 LDFLAGS="$LDFLAGS -b"
9263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9265 # The linker can only warn and ignore the option if not recognized
9266 # So say no if there are warnings
9267 if test -s conftest.err; then
9268 # Append any errors to the config.log.
9269 cat conftest.err 1>&5
9270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler__b=yes
9274 fi
9275 else
9276 lt_cv_prog_compiler__b=yes
9277 fi
9278 fi
9279 $RM -r conftest*
9280 LDFLAGS="$save_LDFLAGS"
9281
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9284 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9285
9286 if test x"$lt_cv_prog_compiler__b" = xyes; then
9287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288 else
9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290 fi
9291
85189292 ;;
85199293 esac
85209294 fi
85429316
85439317 irix5* | irix6* | nonstopux*)
85449318 if test "$GCC" = yes; then
8545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9319 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'
85469320 # Try to use the -exported_symbol ld option, if it does not
85479321 # work, assume that -exports_file does not work either and
85489322 # implicitly export all symbols.
8549 save_LDFLAGS="$LDFLAGS"
8550 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 # This should be the same for all languages, so no per-tag cache variable.
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9325 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9326 if ${lt_cv_irix_exported_symbol+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 save_LDFLAGS="$LDFLAGS"
9330 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85529332 /* end confdefs.h. */
8553 int foo(void) {}
9333 int foo (void) { return 0; }
85549334 _ACEOF
85559335 if ac_fn_c_try_link "$LINENO"; then :
8556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8557
9336 lt_cv_irix_exported_symbol=yes
9337 else
9338 lt_cv_irix_exported_symbol=no
85589339 fi
85599340 rm -f core conftest.err conftest.$ac_objext \
85609341 conftest$ac_exeext conftest.$ac_ext
8561 LDFLAGS="$save_LDFLAGS"
9342 LDFLAGS="$save_LDFLAGS"
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9345 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9346 if test "$lt_cv_irix_exported_symbol" = yes; then
9347 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'
9348 fi
85629349 else
8563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9350 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'
9351 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'
85659352 fi
85669353 archive_cmds_need_lc='no'
85679354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
85709357 link_all_deplibs=yes
85719358 ;;
85729359
8573 netbsd*)
9360 netbsd* | netbsdelf*-gnu)
85749361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
85759362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
85769363 else
86239410 hardcode_libdir_flag_spec='-L$libdir'
86249411 hardcode_minus_L=yes
86259412 allow_undefined_flag=unsupported
8626 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'
9413 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'
86279414 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
86289415 ;;
86299416
86309417 osf3*)
86319418 if test "$GCC" = yes; then
86329419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8633 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9420 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'
86349421 else
86359422 allow_undefined_flag=' -expect_unresolved \*'
8636 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9423 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'
86379424 fi
86389425 archive_cmds_need_lc='no'
86399426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86439430 osf4* | osf5*) # as osf3* with the addition of -msym flag
86449431 if test "$GCC" = yes; then
86459432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8646 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9433 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'
86479434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86489435 else
86499436 allow_undefined_flag=' -expect_unresolved \*'
8650 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9437 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'
86519438 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~
8652 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9439 $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'
86539440
86549441 # Both c and cxx compiler support -rpath directly
86559442 hardcode_libdir_flag_spec='-rpath $libdir'
86629449 no_undefined_flag=' -z defs'
86639450 if test "$GCC" = yes; then
86649451 wlarc='${wl}'
8665 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
86669453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8667 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9454 $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'
86689455 else
86699456 case `$CC -V 2>&1` in
86709457 *"Compilers 5.0"*)
88529639 # to ld, don't add -lc before -lgcc.
88539640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
88549641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8855 $RM conftest*
8856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8857
8858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9642 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 $RM conftest*
9646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647
9648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
88599649 (eval $ac_compile) 2>&5
88609650 ac_status=$?
88619651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88629652 test $ac_status = 0; } 2>conftest.err; then
8863 soname=conftest
8864 lib=conftest
8865 libobjs=conftest.$ac_objext
8866 deplibs=
8867 wl=$lt_prog_compiler_wl
8868 pic_flag=$lt_prog_compiler_pic
8869 compiler_flags=-v
8870 linker_flags=-v
8871 verstring=
8872 output_objdir=.
8873 libname=conftest
8874 lt_save_allow_undefined_flag=$allow_undefined_flag
8875 allow_undefined_flag=
8876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9653 soname=conftest
9654 lib=conftest
9655 libobjs=conftest.$ac_objext
9656 deplibs=
9657 wl=$lt_prog_compiler_wl
9658 pic_flag=$lt_prog_compiler_pic
9659 compiler_flags=-v
9660 linker_flags=-v
9661 verstring=
9662 output_objdir=.
9663 libname=conftest
9664 lt_save_allow_undefined_flag=$allow_undefined_flag
9665 allow_undefined_flag=
9666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
88779667 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
88789668 ac_status=$?
88799669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88809670 test $ac_status = 0; }
8881 then
8882 archive_cmds_need_lc=no
8883 else
8884 archive_cmds_need_lc=yes
8885 fi
8886 allow_undefined_flag=$lt_save_allow_undefined_flag
8887 else
8888 cat conftest.err 1>&5
8889 fi
8890 $RM conftest*
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8892 $as_echo "$archive_cmds_need_lc" >&6; }
9671 then
9672 lt_cv_archive_cmds_need_lc=no
9673 else
9674 lt_cv_archive_cmds_need_lc=yes
9675 fi
9676 allow_undefined_flag=$lt_save_allow_undefined_flag
9677 else
9678 cat conftest.err 1>&5
9679 fi
9680 $RM conftest*
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9684 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9685 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
88939686 ;;
88949687 esac
88959688 fi
90479840
90489841
90499842
9050
9051
9052
9053
9054
90559843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
90569844 $as_echo_n "checking dynamic linker characteristics... " >&6; }
90579845
90609848 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
90619849 *) lt_awk_arg="/^libraries:/" ;;
90629850 esac
9063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9064 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9851 case $host_os in
9852 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9853 *) lt_sed_strip_eq="s,=/,/,g" ;;
9854 esac
9855 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9856 case $lt_search_path_spec in
9857 *\;*)
90659858 # if the path contains ";" then we assume it to be the separator
90669859 # otherwise default to the standard path separator (i.e. ":") - it is
90679860 # assumed that no part of a normal pathname contains ";" but that should
90689861 # okay in the real world where ";" in dirpaths is itself problematic.
9069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9070 else
9071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9072 fi
9862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9863 ;;
9864 *)
9865 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9866 ;;
9867 esac
90739868 # Ok, now we have the path, separated by spaces, we can step through it
90749869 # and add multilib dir if necessary.
90759870 lt_tmp_lt_search_path_spec=
90829877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
90839878 fi
90849879 done
9085 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9880 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
90869881 BEGIN {RS=" "; FS="/|\n";} {
90879882 lt_foo="";
90889883 lt_count=0;
91029897 if (lt_foo != "") { lt_freq[lt_foo]++; }
91039898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
91049899 }'`
9105 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9900 # AWK program above erroneously prepends '/' to C:/dos/paths
9901 # for these hosts.
9902 case $host_os in
9903 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9904 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9905 esac
9906 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
91069907 else
91079908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
91089909 fi
91289929
91299930 case $host_os in
91309931 aix3*)
9131 version_type=linux
9932 version_type=linux # correct to gnu/linux during the next big refactor
91329933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
91339934 shlibpath_var=LIBPATH
91349935
91379938 ;;
91389939
91399940 aix[4-9]*)
9140 version_type=linux
9941 version_type=linux # correct to gnu/linux during the next big refactor
91419942 need_lib_prefix=no
91429943 need_version=no
91439944 hardcode_into_libs=yes
91909991 m68k)
91919992 library_names_spec='$libname.ixlibrary $libname.a'
91929993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9193 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9994 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'
91949995 ;;
91959996 esac
91969997 ;;
920210003 ;;
920310004
920410005 bsdi[45]*)
9205 version_type=linux
10006 version_type=linux # correct to gnu/linux during the next big refactor
920610007 need_version=no
920710008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
920810009 soname_spec='${libname}${release}${shared_ext}$major'
922110022 need_version=no
922210023 need_lib_prefix=no
922310024
9224 case $GCC,$host_os in
9225 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10025 case $GCC,$cc_basename in
10026 yes,*)
10027 # gcc
922610028 library_names_spec='$libname.dll.a'
922710029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
922810030 postinstall_cmds='base_file=`basename \${file}`~
924310045 cygwin*)
924410046 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
924510047 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10048
10049 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
924710050 ;;
924810051 mingw* | cegcc*)
924910052 # MinGW DLLs use traditional 'lib' prefix
925010053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9251 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9252 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9253 # It is most probably a Windows format PATH printed by
9254 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9255 # path with ; separators, and with drive letters. We can handle the
9256 # drive letters (cygwin fileutils understands them), so leave them,
9257 # especially as we might pass files found there to a mingw objdump,
9258 # which wouldn't understand a cygwinified path. Ahh.
9259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9260 else
9261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9262 fi
926310054 ;;
926410055 pw32*)
926510056 # pw32 DLLs use 'pw' prefix rather than 'lib'
926610057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
926710058 ;;
926810059 esac
10060 dynamic_linker='Win32 ld.exe'
926910061 ;;
927010062
10063 *,cl*)
10064 # Native MSVC
10065 libname_spec='$name'
10066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067 library_names_spec='${libname}.dll.lib'
10068
10069 case $build_os in
10070 mingw*)
10071 sys_lib_search_path_spec=
10072 lt_save_ifs=$IFS
10073 IFS=';'
10074 for lt_path in $LIB
10075 do
10076 IFS=$lt_save_ifs
10077 # Let DOS variable expansion print the short 8.3 style file name.
10078 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10079 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10080 done
10081 IFS=$lt_save_ifs
10082 # Convert to MSYS style.
10083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10084 ;;
10085 cygwin*)
10086 # Convert to unix form, then to dos form, then back to unix form
10087 # but this time dos style (no spaces!) so that the unix form looks
10088 # like /cygdrive/c/PROGRA~1:/cygdr...
10089 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10090 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10091 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10092 ;;
10093 *)
10094 sys_lib_search_path_spec="$LIB"
10095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10096 # It is most probably a Windows format PATH.
10097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10098 else
10099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10100 fi
10101 # FIXME: find the short name or the path components, as spaces are
10102 # common. (e.g. "Program Files" -> "PROGRA~1")
10103 ;;
10104 esac
10105
10106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10107 postinstall_cmds='base_file=`basename \${file}`~
10108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10109 dldir=$destdir/`dirname \$dlpath`~
10110 test -d \$dldir || mkdir -p \$dldir~
10111 $install_prog $dir/$dlname \$dldir/$dlname'
10112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10113 dlpath=$dir/\$dldll~
10114 $RM \$dlpath'
10115 shlibpath_overrides_runpath=yes
10116 dynamic_linker='Win32 link.exe'
10117 ;;
10118
927110119 *)
10120 # Assume MSVC wrapper
927210121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10122 dynamic_linker='Win32 ld.exe'
927310123 ;;
927410124 esac
9275 dynamic_linker='Win32 ld.exe'
927610125 # FIXME: first we should search . and the directory the executable is in
927710126 shlibpath_var=PATH
927810127 ;;
929310142 ;;
929410143
929510144 dgux*)
9296 version_type=linux
10145 version_type=linux # correct to gnu/linux during the next big refactor
929710146 need_lib_prefix=no
929810147 need_version=no
929910148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
930010149 soname_spec='${libname}${release}${shared_ext}$major'
930110150 shlibpath_var=LD_LIBRARY_PATH
9302 ;;
9303
9304 freebsd1*)
9305 dynamic_linker=no
930610151 ;;
930710152
930810153 freebsd* | dragonfly*)
931210157 objformat=`/usr/bin/objformat`
931310158 else
931410159 case $host_os in
9315 freebsd[123]*) objformat=aout ;;
10160 freebsd[23].*) objformat=aout ;;
931610161 *) objformat=elf ;;
931710162 esac
931810163 fi
933010175 esac
933110176 shlibpath_var=LD_LIBRARY_PATH
933210177 case $host_os in
9333 freebsd2*)
10178 freebsd2.*)
933410179 shlibpath_overrides_runpath=yes
933510180 ;;
933610181 freebsd3.[01]* | freebsdelf3.[01]*)
935010195 ;;
935110196
935210197 gnu*)
9353 version_type=linux
10198 version_type=linux # correct to gnu/linux during the next big refactor
935410199 need_lib_prefix=no
935510200 need_version=no
935610201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
935710202 soname_spec='${libname}${release}${shared_ext}$major'
935810203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 hardcode_into_libs=yes
10206 ;;
10207
10208 haiku*)
10209 version_type=linux # correct to gnu/linux during the next big refactor
10210 need_lib_prefix=no
10211 need_version=no
10212 dynamic_linker="$host_os runtime_loader"
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LIBRARY_PATH
10216 shlibpath_overrides_runpath=yes
10217 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
935910218 hardcode_into_libs=yes
936010219 ;;
936110220
940110260 soname_spec='${libname}${release}${shared_ext}$major'
940210261 ;;
940310262 esac
9404 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
940510264 postinstall_cmds='chmod 555 $lib'
10265 # or fails outright, so override atomically:
10266 install_override_mode=555
940610267 ;;
940710268
940810269 interix[3-9]*)
9409 version_type=linux
10270 version_type=linux # correct to gnu/linux during the next big refactor
941010271 need_lib_prefix=no
941110272 need_version=no
941210273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
942210283 nonstopux*) version_type=nonstopux ;;
942310284 *)
942410285 if test "$lt_cv_prog_gnu_ld" = yes; then
9425 version_type=linux
10286 version_type=linux # correct to gnu/linux during the next big refactor
942610287 else
942710288 version_type=irix
942810289 fi ;;
945910320 dynamic_linker=no
946010321 ;;
946110322
9462 # This must be Linux ELF.
9463 linux* | k*bsd*-gnu)
9464 version_type=linux
10323 # This must be glibc/ELF.
10324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10325 version_type=linux # correct to gnu/linux during the next big refactor
946510326 need_lib_prefix=no
946610327 need_version=no
946710328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
946910330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
947010331 shlibpath_var=LD_LIBRARY_PATH
947110332 shlibpath_overrides_runpath=no
10333
947210334 # Some binutils ld are patched to set DT_RUNPATH
9473 save_LDFLAGS=$LDFLAGS
9474 save_libdir=$libdir
9475 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9476 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 lt_cv_shlibpath_overrides_runpath=no
10339 save_LDFLAGS=$LDFLAGS
10340 save_libdir=$libdir
10341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
947810344 /* end confdefs.h. */
947910345
948010346 int
948710353 _ACEOF
948810354 if ac_fn_c_try_link "$LINENO"; then :
948910355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9490 shlibpath_overrides_runpath=yes
10356 lt_cv_shlibpath_overrides_runpath=yes
949110357 fi
949210358 fi
949310359 rm -f core conftest.err conftest.$ac_objext \
949410360 conftest$ac_exeext conftest.$ac_ext
9495 LDFLAGS=$save_LDFLAGS
9496 libdir=$save_libdir
10361 LDFLAGS=$save_LDFLAGS
10362 libdir=$save_libdir
10363
10364 fi
10365
10366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
949710367
949810368 # This implies no fast_install, which is unacceptable.
949910369 # Some rework will be needed to allow for fast_install
950010370 # before this can be enabled.
950110371 hardcode_into_libs=yes
950210372
9503 # Add ABI-specific directories to the system library path.
9504 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9505
950610373 # Append ld.so.conf contents to the search path
950710374 if test -f /etc/ld.so.conf; then
9508 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9509 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10375 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' ' '`
10376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
951010377 fi
951110378
951210379 # We used to test for /lib/ld.so.1 and disable shared libraries on
951610383 # people can always --disable-shared, the test was removed, and we
951710384 # assume the GNU/Linux dynamic linker is in use.
951810385 dynamic_linker='GNU/Linux ld.so'
10386 ;;
10387
10388 netbsdelf*-gnu)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 dynamic_linker='NetBSD ld.elf_so'
951910398 ;;
952010399
952110400 netbsd*)
953710416 ;;
953810417
953910418 newsos6)
9540 version_type=linux
10419 version_type=linux # correct to gnu/linux during the next big refactor
954110420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
954210421 shlibpath_var=LD_LIBRARY_PATH
954310422 shlibpath_overrides_runpath=yes
960610485 ;;
960710486
960810487 solaris*)
9609 version_type=linux
10488 version_type=linux # correct to gnu/linux during the next big refactor
961010489 need_lib_prefix=no
961110490 need_version=no
961210491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
963110510 ;;
963210511
963310512 sysv4 | sysv4.3*)
9634 version_type=linux
10513 version_type=linux # correct to gnu/linux during the next big refactor
963510514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
963610515 soname_spec='${libname}${release}${shared_ext}$major'
963710516 shlibpath_var=LD_LIBRARY_PATH
965510534
965610535 sysv4*MP*)
965710536 if test -d /usr/nec ;then
9658 version_type=linux
10537 version_type=linux # correct to gnu/linux during the next big refactor
965910538 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
966010539 soname_spec='$libname${shared_ext}.$major'
966110540 shlibpath_var=LD_LIBRARY_PATH
968610565
968710566 tpf*)
968810567 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9689 version_type=linux
10568 version_type=linux # correct to gnu/linux during the next big refactor
969010569 need_lib_prefix=no
969110570 need_version=no
969210571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
969610575 ;;
969710576
969810577 uts4*)
9699 version_type=linux
10578 version_type=linux # correct to gnu/linux during the next big refactor
970010579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
970110580 soname_spec='${libname}${release}${shared_ext}$major'
970210581 shlibpath_var=LD_LIBRARY_PATH
972110600 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
972210601 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
972310602 fi
10603
10604
10605
10606
10607
972410608
972510609
972610610
988010764 # if libdl is installed we need to link against it
988110765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
988210766 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10767 if ${ac_cv_lib_dl_dlopen+:} false; then :
988410768 $as_echo_n "(cached) " >&6
988510769 else
988610770 ac_check_lib_save_LIBS=$LIBS
991410798 fi
991510799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
991610800 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9917 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10801 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
991810802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
991910803 else
992010804
992810812
992910813 *)
993010814 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9931 if test "x$ac_cv_func_shl_load" = x""yes; then :
10815 if test "x$ac_cv_func_shl_load" = xyes; then :
993210816 lt_cv_dlopen="shl_load"
993310817 else
993410818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
993510819 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10820 if ${ac_cv_lib_dld_shl_load+:} false; then :
993710821 $as_echo_n "(cached) " >&6
993810822 else
993910823 ac_check_lib_save_LIBS=$LIBS
996710851 fi
996810852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
996910853 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9970 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10854 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
997110855 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
997210856 else
997310857 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9974 if test "x$ac_cv_func_dlopen" = x""yes; then :
10858 if test "x$ac_cv_func_dlopen" = xyes; then :
997510859 lt_cv_dlopen="dlopen"
997610860 else
997710861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
997810862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10863 if ${ac_cv_lib_dl_dlopen+:} false; then :
998010864 $as_echo_n "(cached) " >&6
998110865 else
998210866 ac_check_lib_save_LIBS=$LIBS
1001010894 fi
1001110895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1001210896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10013 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10897 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1001410898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1001510899 else
1001610900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1001710901 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10902 if ${ac_cv_lib_svld_dlopen+:} false; then :
1001910903 $as_echo_n "(cached) " >&6
1002010904 else
1002110905 ac_check_lib_save_LIBS=$LIBS
1004910933 fi
1005010934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1005110935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10052 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10936 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1005310937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1005410938 else
1005510939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1005610940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10941 if ${ac_cv_lib_dld_dld_link+:} false; then :
1005810942 $as_echo_n "(cached) " >&6
1005910943 else
1006010944 ac_check_lib_save_LIBS=$LIBS
1008810972 fi
1008910973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1009010974 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10091 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10975 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1009210976 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1009310977 fi
1009410978
1012911013
1013011014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1013111015 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10132 if test "${lt_cv_dlopen_self+set}" = set; then :
11016 if ${lt_cv_dlopen_self+:} false; then :
1013311017 $as_echo_n "(cached) " >&6
1013411018 else
1013511019 if test "$cross_compiling" = yes; then :
1013811022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1013911023 lt_status=$lt_dlunknown
1014011024 cat > conftest.$ac_ext <<_LT_EOF
10141 #line 10142 "configure"
11025 #line $LINENO "configure"
1014211026 #include "confdefs.h"
1014311027
1014411028 #if HAVE_DLFCN_H
1017911063 # endif
1018011064 #endif
1018111065
10182 void fnord() { int i=42;}
11066 /* When -fvisbility=hidden is used, assume the code has been annotated
11067 correspondingly for the symbols needed. */
11068 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11069 int fnord () __attribute__((visibility("default")));
11070 #endif
11071
11072 int fnord () { return 42; }
1018311073 int main ()
1018411074 {
1018511075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1018811078 if (self)
1018911079 {
1019011080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11081 else
11082 {
11083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11084 else puts (dlerror ());
11085 }
1019211086 /* dlclose (self); */
1019311087 }
1019411088 else
1022511119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1022611120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1022711121 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10228 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11122 if ${lt_cv_dlopen_self_static+:} false; then :
1022911123 $as_echo_n "(cached) " >&6
1023011124 else
1023111125 if test "$cross_compiling" = yes; then :
1023411128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1023511129 lt_status=$lt_dlunknown
1023611130 cat > conftest.$ac_ext <<_LT_EOF
10237 #line 10238 "configure"
11131 #line $LINENO "configure"
1023811132 #include "confdefs.h"
1023911133
1024011134 #if HAVE_DLFCN_H
1027511169 # endif
1027611170 #endif
1027711171
10278 void fnord() { int i=42;}
11172 /* When -fvisbility=hidden is used, assume the code has been annotated
11173 correspondingly for the symbols needed. */
11174 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11175 int fnord () __attribute__((visibility("default")));
11176 #endif
11177
11178 int fnord () { return 42; }
1027911179 int main ()
1028011180 {
1028111181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1028411184 if (self)
1028511185 {
1028611186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11187 else
11188 {
11189 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11190 else puts (dlerror ());
11191 }
1028811192 /* dlclose (self); */
1028911193 }
1029011194 else
1045311357
1045411358
1045511359
11360
11361
1045611362 ac_config_commands="$ac_config_commands libtool"
1045711363
1045811364
1047911385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1048011386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1048111387 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_prog_CXX+set}" = set; then :
11388 if ${ac_cv_prog_CXX+:} false; then :
1048311389 $as_echo_n "(cached) " >&6
1048411390 else
1048511391 if test -n "$CXX"; then
1052311429 set dummy $ac_prog; ac_word=$2
1052411430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1052511431 $as_echo_n "checking for $ac_word... " >&6; }
10526 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11432 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1052711433 $as_echo_n "(cached) " >&6
1052811434 else
1052911435 if test -n "$ac_ct_CXX"; then
1060111507
1060211508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
1060311509 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10604 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11510 if ${ac_cv_cxx_compiler_gnu+:} false; then :
1060511511 $as_echo_n "(cached) " >&6
1060611512 else
1060711513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1063811544 ac_save_CXXFLAGS=$CXXFLAGS
1063911545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
1064011546 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10641 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11547 if ${ac_cv_prog_cxx_g+:} false; then :
1064211548 $as_echo_n "(cached) " >&6
1064311549 else
1064411550 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1072411630
1072511631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
1072611632 $as_echo_n "checking dependency style of $depcc... " >&6; }
10727 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11633 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1072811634 $as_echo_n "(cached) " >&6
1072911635 else
1073011636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1073311639 # instance it was reported that on HP-UX the gcc test will end up
1073411640 # making a dummy file named `D' -- because `-MD' means `put the output
1073511641 # in D'.
11642 rm -rf conftest.dir
1073611643 mkdir conftest.dir
1073711644 # Copy depcomp to subdir because otherwise we won't find it if we're
1073811645 # using a relative directory.
1079211699 break
1079311700 fi
1079411701 ;;
10795 msvisualcpp | msvcmsys)
11702 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1079611703 # This compiler won't grok `-c -o', but also, the minuso test has
1079711704 # not run yet. These depmodes are late enough in the game, and
1079811705 # so weak that their functioning should not be impacted.
1084811755
1084911756
1085011757
10851 ac_ext=cpp
10852 ac_cpp='$CXXCPP $CPPFLAGS'
10853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10856 if test -z "$CXX"; then
10857 if test -n "$CCC"; then
10858 CXX=$CCC
10859 else
10860 if test -n "$ac_tool_prefix"; then
10861 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10862 do
10863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866 $as_echo_n "checking for $ac_word... " >&6; }
10867 if test "${ac_cv_prog_CXX+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 if test -n "$CXX"; then
10871 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10872 else
10873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874 for as_dir in $PATH
10875 do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_exec_ext in '' $ac_executable_extensions; do
10879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10880 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884 done
10885 done
10886 IFS=$as_save_IFS
10887
10888 fi
10889 fi
10890 CXX=$ac_cv_prog_CXX
10891 if test -n "$CXX"; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10893 $as_echo "$CXX" >&6; }
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10897 fi
10898
10899
10900 test -n "$CXX" && break
10901 done
10902 fi
10903 if test -z "$CXX"; then
10904 ac_ct_CXX=$CXX
10905 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10906 do
10907 # Extract the first word of "$ac_prog", so it can be a program name with args.
10908 set dummy $ac_prog; ac_word=$2
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910 $as_echo_n "checking for $ac_word... " >&6; }
10911 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 if test -n "$ac_ct_CXX"; then
10915 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10916 else
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918 for as_dir in $PATH
10919 do
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10924 ac_cv_prog_ac_ct_CXX="$ac_prog"
10925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10927 fi
10928 done
10929 done
10930 IFS=$as_save_IFS
10931
10932 fi
10933 fi
10934 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10935 if test -n "$ac_ct_CXX"; then
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10937 $as_echo "$ac_ct_CXX" >&6; }
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10940 $as_echo "no" >&6; }
10941 fi
10942
10943
10944 test -n "$ac_ct_CXX" && break
10945 done
10946
10947 if test "x$ac_ct_CXX" = x; then
10948 CXX="g++"
10949 else
10950 case $cross_compiling:$ac_tool_warned in
10951 yes:)
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10954 ac_tool_warned=yes ;;
10955 esac
10956 CXX=$ac_ct_CXX
10957 fi
10958 fi
10959
10960 fi
10961 fi
10962 # Provide some information about the compiler.
10963 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10964 set X $ac_compile
10965 ac_compiler=$2
10966 for ac_option in --version -v -V -qversion; do
10967 { { ac_try="$ac_compiler $ac_option >&5"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10973 $as_echo "$ac_try_echo"; } >&5
10974 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10975 ac_status=$?
10976 if test -s conftest.err; then
10977 sed '10a\
10978 ... rest of stderr output deleted ...
10979 10q' conftest.err >conftest.er1
10980 cat conftest.er1 >&5
10981 fi
10982 rm -f conftest.er1 conftest.err
10983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10984 test $ac_status = 0; }
10985 done
10986
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10988 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10989 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994
10995 int
10996 main ()
11758
11759 func_stripname_cnf ()
1099711760 {
10998 #ifndef __GNUC__
10999 choke me
11000 #endif
11001
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 if ac_fn_cxx_try_compile "$LINENO"; then :
11007 ac_compiler_gnu=yes
11008 else
11009 ac_compiler_gnu=no
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11013
11014 fi
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11016 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11017 if test $ac_compiler_gnu = yes; then
11018 GXX=yes
11019 else
11020 GXX=
11021 fi
11022 ac_test_CXXFLAGS=${CXXFLAGS+set}
11023 ac_save_CXXFLAGS=$CXXFLAGS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11025 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11026 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11030 ac_cxx_werror_flag=yes
11031 ac_cv_prog_cxx_g=no
11032 CXXFLAGS="-g"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035
11036 int
11037 main ()
11038 {
11039
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 if ac_fn_cxx_try_compile "$LINENO"; then :
11045 ac_cv_prog_cxx_g=yes
11046 else
11047 CXXFLAGS=""
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050
11051 int
11052 main ()
11053 {
11054
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_cxx_try_compile "$LINENO"; then :
11060
11061 else
11062 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11063 CXXFLAGS="-g"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066
11067 int
11068 main ()
11069 {
11070
11071 ;
11072 return 0;
11073 }
11074 _ACEOF
11075 if ac_fn_cxx_try_compile "$LINENO"; then :
11076 ac_cv_prog_cxx_g=yes
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 fi
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11086 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11087 if test "$ac_test_CXXFLAGS" = set; then
11088 CXXFLAGS=$ac_save_CXXFLAGS
11089 elif test $ac_cv_prog_cxx_g = yes; then
11090 if test "$GXX" = yes; then
11091 CXXFLAGS="-g -O2"
11092 else
11093 CXXFLAGS="-g"
11094 fi
11095 else
11096 if test "$GXX" = yes; then
11097 CXXFLAGS="-O2"
11098 else
11099 CXXFLAGS=
11100 fi
11101 fi
11102 ac_ext=c
11103 ac_cpp='$CPP $CPPFLAGS'
11104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107
11108 depcc="$CXX" am_compiler_list=
11109
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11111 $as_echo_n "checking dependency style of $depcc... " >&6; }
11112 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11116 # We make a subdir and do the tests there. Otherwise we can end up
11117 # making bogus files that we don't know about and never remove. For
11118 # instance it was reported that on HP-UX the gcc test will end up
11119 # making a dummy file named `D' -- because `-MD' means `put the output
11120 # in D'.
11121 mkdir conftest.dir
11122 # Copy depcomp to subdir because otherwise we won't find it if we're
11123 # using a relative directory.
11124 cp "$am_depcomp" conftest.dir
11125 cd conftest.dir
11126 # We will build objects and dependencies in a subdirectory because
11127 # it helps to detect inapplicable dependency modes. For instance
11128 # both Tru64's cc and ICC support -MD to output dependencies as a
11129 # side effect of compilation, but ICC will put the dependencies in
11130 # the current directory while Tru64 will put them in the object
11131 # directory.
11132 mkdir sub
11133
11134 am_cv_CXX_dependencies_compiler_type=none
11135 if test "$am_compiler_list" = ""; then
11136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11137 fi
11138 am__universal=false
11139 case " $depcc " in #(
11140 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11141 esac
11142
11143 for depmode in $am_compiler_list; do
11144 # Setup a source with many dependencies, because some compilers
11145 # like to wrap large dependency lists on column 80 (with \), and
11146 # we should not choose a depcomp mode which is confused by this.
11147 #
11148 # We need to recreate these files for each test, as the compiler may
11149 # overwrite some of them when testing with obscure command lines.
11150 # This happens at least with the AIX C compiler.
11151 : > sub/conftest.c
11152 for i in 1 2 3 4 5 6; do
11153 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11155 # Solaris 8's {/usr,}/bin/sh.
11156 touch sub/conftst$i.h
11157 done
11158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11159
11160 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11161 # mode. It turns out that the SunPro C++ compiler does not properly
11162 # handle `-M -o', and we need to detect this. Also, some Intel
11163 # versions had trouble with output in subdirs
11164 am__obj=sub/conftest.${OBJEXT-o}
11165 am__minus_obj="-o $am__obj"
11166 case $depmode in
11167 gcc)
11168 # This depmode causes a compiler race in universal mode.
11169 test "$am__universal" = false || continue
11170 ;;
11171 nosideeffect)
11172 # after this tag, mechanisms are not by side-effect, so they'll
11173 # only be used when explicitly requested
11174 if test "x$enable_dependency_tracking" = xyes; then
11175 continue
11176 else
11177 break
11178 fi
11179 ;;
11180 msvisualcpp | msvcmsys)
11181 # This compiler won't grok `-c -o', but also, the minuso test has
11182 # not run yet. These depmodes are late enough in the game, and
11183 # so weak that their functioning should not be impacted.
11184 am__obj=conftest.${OBJEXT-o}
11185 am__minus_obj=
11186 ;;
11187 none) break ;;
11188 esac
11189 if depmode=$depmode \
11190 source=sub/conftest.c object=$am__obj \
11191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11193 >/dev/null 2>conftest.err &&
11194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11198 # icc doesn't choke on unknown options, it will just issue warnings
11199 # or remarks (even with -Werror). So we grep stderr for any message
11200 # that says an option was ignored or not supported.
11201 # When given -MP, icc 7.0 and 7.1 complain thusly:
11202 # icc: Command line warning: ignoring option '-M'; no argument required
11203 # The diagnosis changed in icc 8.0:
11204 # icc: Command line remark: option '-MP' not supported
11205 if (grep 'ignoring option' conftest.err ||
11206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11207 am_cv_CXX_dependencies_compiler_type=$depmode
11208 break
11209 fi
11210 fi
11211 done
11212
11213 cd ..
11214 rm -rf conftest.dir
11215 else
11216 am_cv_CXX_dependencies_compiler_type=none
11217 fi
11218
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11221 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11222 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11223
11224 if
11225 test "x$enable_dependency_tracking" != xno \
11226 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11227 am__fastdepCXX_TRUE=
11228 am__fastdepCXX_FALSE='#'
11229 else
11230 am__fastdepCXX_TRUE='#'
11231 am__fastdepCXX_FALSE=
11232 fi
11233
11234
11235 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11761 case ${2} in
11762 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11763 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11764 esac
11765 } # func_stripname_cnf
11766
11767 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1123611768 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1123711769 (test "X$CXX" != "Xg++"))) ; then
1123811770 ac_ext=cpp
1124311775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
1124411776 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1124511777 if test -z "$CXXCPP"; then
11246 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11778 if ${ac_cv_prog_CXXCPP+:} false; then :
1124711779 $as_echo_n "(cached) " >&6
1124811780 else
1124911781 # Double quotes because CXXCPP needs to be expanded
1127311805 # Broken: fails on valid input.
1127411806 continue
1127511807 fi
11276 rm -f conftest.err conftest.$ac_ext
11808 rm -f conftest.err conftest.i conftest.$ac_ext
1127711809
1127811810 # OK, works on sane cases. Now check whether nonexistent headers
1127911811 # can be detected and how.
1128911821 ac_preproc_ok=:
1129011822 break
1129111823 fi
11292 rm -f conftest.err conftest.$ac_ext
11824 rm -f conftest.err conftest.i conftest.$ac_ext
1129311825
1129411826 done
1129511827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11296 rm -f conftest.err conftest.$ac_ext
11828 rm -f conftest.i conftest.err conftest.$ac_ext
1129711829 if $ac_preproc_ok; then :
1129811830 break
1129911831 fi
1133211864 # Broken: fails on valid input.
1133311865 continue
1133411866 fi
11335 rm -f conftest.err conftest.$ac_ext
11867 rm -f conftest.err conftest.i conftest.$ac_ext
1133611868
1133711869 # OK, works on sane cases. Now check whether nonexistent headers
1133811870 # can be detected and how.
1134811880 ac_preproc_ok=:
1134911881 break
1135011882 fi
11351 rm -f conftest.err conftest.$ac_ext
11883 rm -f conftest.err conftest.i conftest.$ac_ext
1135211884
1135311885 done
1135411886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11355 rm -f conftest.err conftest.$ac_ext
11887 rm -f conftest.i conftest.err conftest.$ac_ext
1135611888 if $ac_preproc_ok; then :
1135711889
1135811890 else
1135911891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1136011892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11361 _lt_caught_CXX_error=yes; }
11893 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11894 See \`config.log' for more details" "$LINENO" 5; }
1136211895 fi
1136311896
1136411897 ac_ext=c
1137011903 else
1137111904 _lt_caught_CXX_error=yes
1137211905 fi
11373
11374
11375
1137611906
1137711907 ac_ext=cpp
1137811908 ac_cpp='$CXXCPP $CPPFLAGS'
1138911919 hardcode_direct_CXX=no
1139011920 hardcode_direct_absolute_CXX=no
1139111921 hardcode_libdir_flag_spec_CXX=
11392 hardcode_libdir_flag_spec_ld_CXX=
1139311922 hardcode_libdir_separator_CXX=
1139411923 hardcode_minus_L_CXX=no
1139511924 hardcode_shlibpath_var_CXX=unsupported
1139911928 module_expsym_cmds_CXX=
1140011929 link_all_deplibs_CXX=unknown
1140111930 old_archive_cmds_CXX=$old_archive_cmds
11931 reload_flag_CXX=$reload_flag
11932 reload_cmds_CXX=$reload_cmds
1140211933 no_undefined_flag_CXX=
1140311934 whole_archive_flag_spec_CXX=
1140411935 enable_shared_with_static_runtimes_CXX=no
1145411985
1145511986 # Allow CC to be a program name with arguments.
1145611987 lt_save_CC=$CC
11988 lt_save_CFLAGS=$CFLAGS
1145711989 lt_save_LD=$LD
1145811990 lt_save_GCC=$GCC
1145911991 GCC=$GXX
1147112003 fi
1147212004 test -z "${LDCXX+set}" || LD=$LDCXX
1147312005 CC=${CXX-"c++"}
12006 CFLAGS=$CXXFLAGS
1147412007 compiler=$CC
1147512008 compiler_CXX=$CC
1147612009 for cc_temp in $compiler""; do
1148112014 *) break;;
1148212015 esac
1148312016 done
11484 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12017 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1148512018
1148612019
1148712020 if test -n "$compiler"; then
1154412077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1154512078 $as_echo_n "checking for non-GNU ld... " >&6; }
1154612079 fi
11547 if test "${lt_cv_path_LD+set}" = set; then :
12080 if ${lt_cv_path_LD+:} false; then :
1154812081 $as_echo_n "(cached) " >&6
1154912082 else
1155012083 if test -z "$LD"; then
1158112114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1158212115 $as_echo "no" >&6; }
1158312116 fi
11584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1158512118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1158612119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11587 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12120 if ${lt_cv_prog_gnu_ld+:} false; then :
1158812121 $as_echo_n "(cached) " >&6
1158912122 else
1159012123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1161012143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1161112144 # archiving commands below assume that GNU ld is being used.
1161212145 if test "$with_gnu_ld" = yes; then
11613 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11614 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12147 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1161512148
1161612149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1161712150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1164312176 # Commands to make compiler produce verbose output that lists
1164412177 # what "hidden" libraries, object files and flags are used when
1164512178 # linking a shared library.
11646 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1164712180
1164812181 else
1164912182 GXX=no
1175312286 allow_undefined_flag_CXX='-berok'
1175412287 # Determine the default libpath from the value encoded in an empty
1175512288 # executable.
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 if test "${lt_cv_aix_libpath+set}" = set; then
12290 aix_libpath=$lt_cv_aix_libpath
12291 else
12292 if ${lt_cv_aix_libpath__CXX+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1175712296 /* end confdefs.h. */
1175812297
1175912298 int
1176612305 _ACEOF
1176712306 if ac_fn_cxx_try_link "$LINENO"; then :
1176812307
11769 lt_aix_libpath_sed='
11770 /Import File Strings/,/^$/ {
11771 /^0/ {
11772 s/^0 *\(.*\)$/\1/
11773 p
11774 }
11775 }'
11776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11777 # Check for a 64-bit object if we didn't find anything.
11778 if test -z "$aix_libpath"; then
11779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11780 fi
12308 lt_aix_libpath_sed='
12309 /Import File Strings/,/^$/ {
12310 /^0/ {
12311 s/^0 *\([^ ]*\) *$/\1/
12312 p
12313 }
12314 }'
12315 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12316 # Check for a 64-bit object if we didn't find anything.
12317 if test -z "$lt_cv_aix_libpath__CXX"; then
12318 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12319 fi
1178112320 fi
1178212321 rm -f core conftest.err conftest.$ac_objext \
1178312322 conftest$ac_exeext conftest.$ac_ext
11784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12323 if test -z "$lt_cv_aix_libpath__CXX"; then
12324 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12325 fi
12326
12327 fi
12328
12329 aix_libpath=$lt_cv_aix_libpath__CXX
12330 fi
1178512331
1178612332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1178712333
11788 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12334 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1178912335 else
1179012336 if test "$host_cpu" = ia64; then
1179112337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
1179412340 else
1179512341 # Determine the default libpath from the value encoded in an
1179612342 # empty executable.
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 if test "${lt_cv_aix_libpath+set}" = set; then
12344 aix_libpath=$lt_cv_aix_libpath
12345 else
12346 if ${lt_cv_aix_libpath__CXX+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1179812350 /* end confdefs.h. */
1179912351
1180012352 int
1180712359 _ACEOF
1180812360 if ac_fn_cxx_try_link "$LINENO"; then :
1180912361
11810 lt_aix_libpath_sed='
11811 /Import File Strings/,/^$/ {
11812 /^0/ {
11813 s/^0 *\(.*\)$/\1/
11814 p
11815 }
11816 }'
11817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11818 # Check for a 64-bit object if we didn't find anything.
11819 if test -z "$aix_libpath"; then
11820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11821 fi
12362 lt_aix_libpath_sed='
12363 /Import File Strings/,/^$/ {
12364 /^0/ {
12365 s/^0 *\([^ ]*\) *$/\1/
12366 p
12367 }
12368 }'
12369 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12370 # Check for a 64-bit object if we didn't find anything.
12371 if test -z "$lt_cv_aix_libpath__CXX"; then
12372 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373 fi
1182212374 fi
1182312375 rm -f core conftest.err conftest.$ac_objext \
1182412376 conftest$ac_exeext conftest.$ac_ext
11825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12377 if test -z "$lt_cv_aix_libpath__CXX"; then
12378 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12379 fi
12380
12381 fi
12382
12383 aix_libpath=$lt_cv_aix_libpath__CXX
12384 fi
1182612385
1182712386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1182812387 # Warning - without using the other run time loading flags,
1182912388 # -berok will link without error, but may produce a broken library.
1183012389 no_undefined_flag_CXX=' ${wl}-bernotok'
1183112390 allow_undefined_flag_CXX=' ${wl}-berok'
11832 # Exported symbols can be pulled into shared objects from archives
11833 whole_archive_flag_spec_CXX='$convenience'
12391 if test "$with_gnu_ld" = yes; then
12392 # We only use this code for GNU lds that support --whole-archive.
12393 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12394 else
12395 # Exported symbols can be pulled into shared objects from archives
12396 whole_archive_flag_spec_CXX='$convenience'
12397 fi
1183412398 archive_cmds_need_lc_CXX=yes
1183512399 # This is similar to how AIX traditionally builds its shared
1183612400 # libraries.
1186012424 ;;
1186112425
1186212426 cygwin* | mingw* | pw32* | cegcc*)
11863 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11864 # as there is no search path for DLLs.
11865 hardcode_libdir_flag_spec_CXX='-L$libdir'
11866 allow_undefined_flag_CXX=unsupported
11867 always_export_symbols_CXX=no
11868 enable_shared_with_static_runtimes_CXX=yes
11869
11870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11871 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11872 # If the export-symbols file already is a .def file (1st line
11873 # is EXPORTS), use it as is; otherwise, prepend...
11874 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11875 cp $export_symbols $output_objdir/$soname.def;
11876 else
11877 echo EXPORTS > $output_objdir/$soname.def;
11878 cat $export_symbols >> $output_objdir/$soname.def;
11879 fi~
11880 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11881 else
11882 ld_shlibs_CXX=no
11883 fi
11884 ;;
12427 case $GXX,$cc_basename in
12428 ,cl* | no,cl*)
12429 # Native MSVC
12430 # hardcode_libdir_flag_spec is actually meaningless, as there is
12431 # no search path for DLLs.
12432 hardcode_libdir_flag_spec_CXX=' '
12433 allow_undefined_flag_CXX=unsupported
12434 always_export_symbols_CXX=yes
12435 file_list_spec_CXX='@'
12436 # Tell ltmain to make .lib files, not .a files.
12437 libext=lib
12438 # Tell ltmain to make .dll files, not .so files.
12439 shrext_cmds=".dll"
12440 # FIXME: Setting linknames here is a bad hack.
12441 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12442 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12443 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12444 else
12445 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12446 fi~
12447 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12448 linknames='
12449 # The linker will not automatically build a static lib if we build a DLL.
12450 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12451 enable_shared_with_static_runtimes_CXX=yes
12452 # Don't use ranlib
12453 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12454 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12455 lt_tool_outputfile="@TOOL_OUTPUT@"~
12456 case $lt_outputfile in
12457 *.exe|*.EXE) ;;
12458 *)
12459 lt_outputfile="$lt_outputfile.exe"
12460 lt_tool_outputfile="$lt_tool_outputfile.exe"
12461 ;;
12462 esac~
12463 func_to_tool_file "$lt_outputfile"~
12464 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12465 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12466 $RM "$lt_outputfile.manifest";
12467 fi'
12468 ;;
12469 *)
12470 # g++
12471 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12472 # as there is no search path for DLLs.
12473 hardcode_libdir_flag_spec_CXX='-L$libdir'
12474 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12475 allow_undefined_flag_CXX=unsupported
12476 always_export_symbols_CXX=no
12477 enable_shared_with_static_runtimes_CXX=yes
12478
12479 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12481 # If the export-symbols file already is a .def file (1st line
12482 # is EXPORTS), use it as is; otherwise, prepend...
12483 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12484 cp $export_symbols $output_objdir/$soname.def;
12485 else
12486 echo EXPORTS > $output_objdir/$soname.def;
12487 cat $export_symbols >> $output_objdir/$soname.def;
12488 fi~
12489 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12490 else
12491 ld_shlibs_CXX=no
12492 fi
12493 ;;
12494 esac
12495 ;;
1188512496 darwin* | rhapsody*)
1188612497
1188712498
1188912500 hardcode_direct_CXX=no
1189012501 hardcode_automatic_CXX=yes
1189112502 hardcode_shlibpath_var_CXX=unsupported
11892 whole_archive_flag_spec_CXX=''
12503 if test "$lt_cv_ld_force_load" = "yes"; then
12504 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12505
12506 else
12507 whole_archive_flag_spec_CXX=''
12508 fi
1189312509 link_all_deplibs_CXX=yes
1189412510 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
1189512511 case $cc_basename in
1189712513 *) _lt_dar_can_shared=$GCC ;;
1189812514 esac
1189912515 if test "$_lt_dar_can_shared" = "yes"; then
11900 output_verbose_link_cmd=echo
12516 output_verbose_link_cmd=func_echo_all
1190112517 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1190212518 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1190312519 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1193112547 esac
1193212548 ;;
1193312549
11934 freebsd[12]*)
12550 freebsd2.*)
1193512551 # C++ shared libraries reported to be fairly broken before
1193612552 # switch to ELF
1193712553 ld_shlibs_CXX=no
1194812564 ;;
1194912565
1195012566 gnu*)
12567 ;;
12568
12569 haiku*)
12570 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12571 link_all_deplibs_CXX=yes
1195112572 ;;
1195212573
1195312574 hpux9*)
1197412595 # explicitly linking system object files so we need to strip them
1197512596 # from the output so that they don't get included in the library
1197612597 # dependencies.
11977 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12598 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1197812599 ;;
1197912600 *)
1198012601 if test "$GXX" = yes; then
11981 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12602 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1198212603 else
1198312604 # FIXME: insert proper C++ library support
1198412605 ld_shlibs_CXX=no
1203912660 # explicitly linking system object files so we need to strip them
1204012661 # from the output so that they don't get included in the library
1204112662 # dependencies.
12042 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12663 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1204312664 ;;
1204412665 *)
1204512666 if test "$GXX" = yes; then
1204912670 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1205012671 ;;
1205112672 ia64*)
12052 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12673 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1205312674 ;;
1205412675 *)
12055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12676 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1205612677 ;;
1205712678 esac
1205812679 fi
1208212703 case $cc_basename in
1208312704 CC*)
1208412705 # SGI C++
12085 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12706 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1208612707
1208712708 # Archives containing C++ object files must be created using
1208812709 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1209312714 *)
1209412715 if test "$GXX" = yes; then
1209512716 if test "$with_gnu_ld" = no; then
12096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12717 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1209712718 else
12098 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12719 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
1209912720 fi
1210012721 fi
1210112722 link_all_deplibs_CXX=yes
1210612727 inherit_rpath_CXX=yes
1210712728 ;;
1210812729
12109 linux* | k*bsd*-gnu)
12730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1211012731 case $cc_basename in
1211112732 KCC*)
1211212733 # Kuck and Associates, Inc. (KAI) C++ Compiler
1212412745 # explicitly linking system object files so we need to strip them
1212512746 # from the output so that they don't get included in the library
1212612747 # dependencies.
12127 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12748 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1212812749
1212912750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1213012751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1216112782 pgCC* | pgcpp*)
1216212783 # Portland Group C++ compiler
1216312784 case `$CC -V` in
12164 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12785 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1216512786 prelink_cmds_CXX='tpldir=Template.dir~
1216612787 rm -rf $tpldir~
1216712788 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12168 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12789 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1216912790 old_archive_cmds_CXX='tpldir=Template.dir~
1217012791 rm -rf $tpldir~
1217112792 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12172 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12793 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
1217312794 $RANLIB $oldlib'
1217412795 archive_cmds_CXX='tpldir=Template.dir~
1217512796 rm -rf $tpldir~
1217612797 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12177 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12798 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1217812799 archive_expsym_cmds_CXX='tpldir=Template.dir~
1217912800 rm -rf $tpldir~
1218012801 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12181 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12802 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1218212803 ;;
12183 *) # Version 6 will use weak symbols
12804 *) # Version 6 and above use weak symbols
1218412805 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1218512806 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1218612807 ;;
1218812809
1218912810 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1219012811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12191 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12812 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1219212813 ;;
1219312814 cxx*)
1219412815 # Compaq C++
1220712828 # explicitly linking system object files so we need to strip them
1220812829 # from the output so that they don't get included in the library
1220912830 # dependencies.
12210 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12831 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
1221112832 ;;
12212 xl*)
12833 xl* | mpixl* | bgxl*)
1221312834 # IBM XL 8.0 on PPC, with GNU ld
1221412835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1221512836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1222912850 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1223012851 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
1223112852 hardcode_libdir_flag_spec_CXX='-R$libdir'
12232 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12853 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1223312854 compiler_needs_object_CXX=yes
1223412855
1223512856 # Not sure whether something based on
1223612857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
1223712858 # would be better.
12238 output_verbose_link_cmd='echo'
12859 output_verbose_link_cmd='func_echo_all'
1223912860
1224012861 # Archives containing C++ object files must be created using
1224112862 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1230412925 export_dynamic_flag_spec_CXX='${wl}-E'
1230512926 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1230612927 fi
12307 output_verbose_link_cmd=echo
12928 output_verbose_link_cmd=func_echo_all
1230812929 else
1230912930 ld_shlibs_CXX=no
1231012931 fi
1233912960 case $host in
1234012961 osf3*)
1234112962 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12342 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12963 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1234312964 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1234412965 ;;
1234512966 *)
1234612967 allow_undefined_flag_CXX=' -expect_unresolved \*'
12347 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12968 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1234812969 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1234912970 echo "-hidden">> $lib.exp~
12350 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12971 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
1235112972 $RM $lib.exp'
1235212973 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1235312974 ;;
1236312984 # explicitly linking system object files so we need to strip them
1236412985 # from the output so that they don't get included in the library
1236512986 # dependencies.
12366 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12987 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1236712988 ;;
1236812989 *)
1236912990 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1237012991 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1237112992 case $host in
1237212993 osf3*)
12373 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12994 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1237412995 ;;
1237512996 *)
12376 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12997 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1237712998 ;;
1237812999 esac
1237913000
1238313004 # Commands to make compiler produce verbose output that lists
1238413005 # what "hidden" libraries, object files and flags are used when
1238513006 # linking a shared library.
12386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1238713008
1238813009 else
1238913010 # FIXME: insert proper C++ library support
1241913040
1242013041 solaris*)
1242113042 case $cc_basename in
12422 CC*)
13043 CC* | sunCC*)
1242313044 # Sun C++ 4.2, 5.x and Centerline C++
1242413045 archive_cmds_need_lc_CXX=yes
1242513046 no_undefined_flag_CXX=' -zdefs'
1244013061 esac
1244113062 link_all_deplibs_CXX=yes
1244213063
12443 output_verbose_link_cmd='echo'
13064 output_verbose_link_cmd='func_echo_all'
1244413065
1244513066 # Archives containing C++ object files must be created using
1244613067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
1246013081 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1246113082 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1246213083 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12463 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13084 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1246413085 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12465 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13086 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1246613087
1246713088 # Commands to make compiler produce verbose output that lists
1246813089 # what "hidden" libraries, object files and flags are used when
1246913090 # linking a shared library.
12470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1247113092 else
1247213093 # g++ 2.7 appears to require `-G' NOT `-shared' on this
1247313094 # platform.
1247813099 # Commands to make compiler produce verbose output that lists
1247913100 # what "hidden" libraries, object files and flags are used when
1248013101 # linking a shared library.
12481 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13102 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1248213103 fi
1248313104
1248413105 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1253213153 CC*)
1253313154 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1253413155 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13156 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13157 '"$old_archive_cmds_CXX"
13158 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13159 '"$reload_cmds_CXX"
1253513160 ;;
1253613161 *)
1253713162 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1259313218 };
1259413219 _LT_EOF
1259513220
13221
13222 _lt_libdeps_save_CFLAGS=$CFLAGS
13223 case "$CC $CFLAGS " in #(
13224 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13225 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13226 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13227 esac
13228
1259613229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1259713230 (eval $ac_compile) 2>&5
1259813231 ac_status=$?
1260613239 pre_test_object_deps_done=no
1260713240
1260813241 for p in `eval "$output_verbose_link_cmd"`; do
12609 case $p in
13242 case ${prev}${p} in
1261013243
1261113244 -L* | -R* | -l*)
1261213245 # Some compilers place space between "-{L,R}" and the path.
1261513248 test $p = "-R"; then
1261613249 prev=$p
1261713250 continue
12618 else
12619 prev=
1262013251 fi
1262113252
13253 # Expand the sysroot to ease extracting the directories later.
13254 if test -z "$prev"; then
13255 case $p in
13256 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13257 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13258 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13259 esac
13260 fi
13261 case $p in
13262 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13263 esac
1262213264 if test "$pre_test_object_deps_done" = no; then
12623 case $p in
12624 -L* | -R*)
13265 case ${prev} in
13266 -L | -R)
1262513267 # Internal compiler library paths should come after those
1262613268 # provided the user. The postdeps already come after the
1262713269 # user supplied libs so there is no need to process them.
1264113283 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1264213284 fi
1264313285 fi
13286 prev=
1264413287 ;;
1264513288
13289 *.lto.$objext) ;; # Ignore GCC LTO objects
1264613290 *.$objext)
1264713291 # This assumes that the test object file only shows up
1264813292 # once in the compiler output.
1267813322 fi
1267913323
1268013324 $RM -f confest.$objext
13325 CFLAGS=$_lt_libdeps_save_CFLAGS
1268113326
1268213327 # PORTME: override above test on systems where it is broken
1268313328 case $host_os in
1271313358
1271413359 solaris*)
1271513360 case $cc_basename in
12716 CC*)
13361 CC* | sunCC*)
1271713362 # The more standards-conforming stlport4 library is
1271813363 # incompatible with the Cstd library. Avoid specifying
1271913364 # it if it's in CXXFLAGS. Ignore libCrun as
1277813423 lt_prog_compiler_pic_CXX=
1277913424 lt_prog_compiler_static_CXX=
1278013425
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12782 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1278313426
1278413427 # C++ specific cases for pic, static, wl, etc.
1278513428 if test "$GXX" = yes; then
1282813471 *djgpp*)
1282913472 # DJGPP does not support shared libraries at all
1283013473 lt_prog_compiler_pic_CXX=
13474 ;;
13475 haiku*)
13476 # PIC is the default for Haiku.
13477 # The "-static" flag exists, but is broken.
13478 lt_prog_compiler_static_CXX=
1283113479 ;;
1283213480 interix[3-9]*)
1283313481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
1287713525 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1287813526 ;;
1287913527 esac
13528 ;;
13529 mingw* | cygwin* | os2* | pw32* | cegcc*)
13530 # This hack is so that the source file can tell whether it is being
13531 # built for inclusion in a dll (and should export symbols for example).
13532 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1288013533 ;;
1288113534 dgux*)
1288213535 case $cc_basename in
1293413587 ;;
1293513588 esac
1293613589 ;;
12937 linux* | k*bsd*-gnu)
13590 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1293813591 case $cc_basename in
1293913592 KCC*)
1294013593 # KAI C++ Compiler
1296713620 lt_prog_compiler_pic_CXX=
1296813621 lt_prog_compiler_static_CXX='-non_shared'
1296913622 ;;
12970 xlc* | xlC*)
12971 # IBM XL 8.0 on PPC
13623 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13624 # IBM XL 8.0, 9.0 on PPC and BlueGene
1297213625 lt_prog_compiler_wl_CXX='-Wl,'
1297313626 lt_prog_compiler_pic_CXX='-qpic'
1297413627 lt_prog_compiler_static_CXX='-qstaticlink'
1299813651 ;;
1299913652 esac
1300013653 ;;
13001 netbsd*)
13654 netbsd* | netbsdelf*-gnu)
1300213655 ;;
1300313656 *qnx* | *nto*)
1300413657 # QNX uses GNU C++, but need to define -shared option too, otherwise
1303013683 ;;
1303113684 solaris*)
1303213685 case $cc_basename in
13033 CC*)
13686 CC* | sunCC*)
1303413687 # Sun C++ 4.2, 5.x and Centerline C++
1303513688 lt_prog_compiler_pic_CXX='-KPIC'
1303613689 lt_prog_compiler_static_CXX='-Bstatic'
1309513748 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1309613749 ;;
1309713750 esac
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13099 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13100
13101
13751
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13753 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13754 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13760 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13761 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1310213762
1310313763 #
1310413764 # Check to make sure the PIC flag actually works.
1310613766 if test -n "$lt_prog_compiler_pic_CXX"; then
1310713767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
1310813768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13109 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13769 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
1311013770 $as_echo_n "(cached) " >&6
1311113771 else
1311213772 lt_cv_prog_compiler_pic_works_CXX=no
1312213782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1312313783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1312413784 -e 's:$: $lt_compiler_flag:'`
13125 (eval echo "\"\$as_me:13126: $lt_compile\"" >&5)
13785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1312613786 (eval "$lt_compile" 2>conftest.err)
1312713787 ac_status=$?
1312813788 cat conftest.err >&5
13129 echo "$as_me:13130: \$? = $ac_status" >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1313013790 if (exit $ac_status) && test -s "$ac_outfile"; then
1313113791 # The compiler can only warn and ignore the option if not recognized
1313213792 # So say no if there are warnings other than the usual output.
13133 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1313413794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1313513795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1313613796 lt_cv_prog_compiler_pic_works_CXX=yes
1315613816
1315713817
1315813818
13819
13820
1315913821 #
1316013822 # Check to make sure the static flag actually works.
1316113823 #
1316213824 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1316313825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1316413826 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13165 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13827 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
1316613828 $as_echo_n "(cached) " >&6
1316713829 else
1316813830 lt_cv_prog_compiler_static_works_CXX=no
1317513837 if test -s conftest.err; then
1317613838 # Append any errors to the config.log.
1317713839 cat conftest.err 1>&5
13178 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13840 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1317913841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1318013842 if diff conftest.exp conftest.er2 >/dev/null; then
1318113843 lt_cv_prog_compiler_static_works_CXX=yes
1320213864
1320313865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1320413866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13205 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13867 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
1320613868 $as_echo_n "(cached) " >&6
1320713869 else
1320813870 lt_cv_prog_compiler_c_o_CXX=no
1322113883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1322213884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1322313885 -e 's:$: $lt_compiler_flag:'`
13224 (eval echo "\"\$as_me:13225: $lt_compile\"" >&5)
13886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1322513887 (eval "$lt_compile" 2>out/conftest.err)
1322613888 ac_status=$?
1322713889 cat out/conftest.err >&5
13228 echo "$as_me:13229: \$? = $ac_status" >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1322913891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1323013892 then
1323113893 # The compiler can only warn and ignore the option if not recognized
1323213894 # So say no if there are warnings
13233 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1323413896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1323513897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1323613898 lt_cv_prog_compiler_c_o_CXX=yes
1325413916
1325513917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1325613918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13257 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13919 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
1325813920 $as_echo_n "(cached) " >&6
1325913921 else
1326013922 lt_cv_prog_compiler_c_o_CXX=no
1327313935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1327413936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1327513937 -e 's:$: $lt_compiler_flag:'`
13276 (eval echo "\"\$as_me:13277: $lt_compile\"" >&5)
13938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1327713939 (eval "$lt_compile" 2>out/conftest.err)
1327813940 ac_status=$?
1327913941 cat out/conftest.err >&5
13280 echo "$as_me:13281: \$? = $ac_status" >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1328113943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1328213944 then
1328313945 # The compiler can only warn and ignore the option if not recognized
1328413946 # So say no if there are warnings
13285 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1328613948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1328713949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1328813950 lt_cv_prog_compiler_c_o_CXX=yes
1333313995 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1333413996
1333513997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13998 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1333613999 case $host_os in
1333714000 aix[4-9]*)
1333814001 # If we're using GNU nm, then we don't want the "-C" option.
1333914002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14003 # Also, AIX nm treats weak defined symbols like other global defined
14004 # symbols, whereas GNU nm marks them as "W".
1334014005 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13341 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14006 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1334214007 else
1334314008 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1334414009 fi
1334514010 ;;
1334614011 pw32*)
1334714012 export_symbols_cmds_CXX="$ltdll_cmds"
13348 ;;
14013 ;;
1334914014 cygwin* | mingw* | cegcc*)
13350 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13351 ;;
14015 case $cc_basename in
14016 cl*)
14017 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14018 ;;
14019 *)
14020 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14021 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14022 ;;
14023 esac
14024 ;;
14025 linux* | k*bsd*-gnu | gnu*)
14026 link_all_deplibs_CXX=no
14027 ;;
1335214028 *)
1335314029 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13354 ;;
14030 ;;
1335514031 esac
13356 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1335714032
1335814033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1335914034 $as_echo "$ld_shlibs_CXX" >&6; }
1338514060 # to ld, don't add -lc before -lgcc.
1338614061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1338714062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13388 $RM conftest*
13389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13390
13391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14063 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 $RM conftest*
14067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14068
14069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1339214070 (eval $ac_compile) 2>&5
1339314071 ac_status=$?
1339414072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1339514073 test $ac_status = 0; } 2>conftest.err; then
13396 soname=conftest
13397 lib=conftest
13398 libobjs=conftest.$ac_objext
13399 deplibs=
13400 wl=$lt_prog_compiler_wl_CXX
13401 pic_flag=$lt_prog_compiler_pic_CXX
13402 compiler_flags=-v
13403 linker_flags=-v
13404 verstring=
13405 output_objdir=.
13406 libname=conftest
13407 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13408 allow_undefined_flag_CXX=
13409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14074 soname=conftest
14075 lib=conftest
14076 libobjs=conftest.$ac_objext
14077 deplibs=
14078 wl=$lt_prog_compiler_wl_CXX
14079 pic_flag=$lt_prog_compiler_pic_CXX
14080 compiler_flags=-v
14081 linker_flags=-v
14082 verstring=
14083 output_objdir=.
14084 libname=conftest
14085 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14086 allow_undefined_flag_CXX=
14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1341014088 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1341114089 ac_status=$?
1341214090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1341314091 test $ac_status = 0; }
13414 then
13415 archive_cmds_need_lc_CXX=no
13416 else
13417 archive_cmds_need_lc_CXX=yes
13418 fi
13419 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13420 else
13421 cat conftest.err 1>&5
13422 fi
13423 $RM conftest*
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13425 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14092 then
14093 lt_cv_archive_cmds_need_lc_CXX=no
14094 else
14095 lt_cv_archive_cmds_need_lc_CXX=yes
14096 fi
14097 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14098 else
14099 cat conftest.err 1>&5
14100 fi
14101 $RM conftest*
14102
14103 fi
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14105 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14106 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1342614107 ;;
1342714108 esac
1342814109 fi
1342914110 ;;
1343014111 esac
13431
13432
1343314112
1343414113
1343514114
1351714196
1351814197 case $host_os in
1351914198 aix3*)
13520 version_type=linux
14199 version_type=linux # correct to gnu/linux during the next big refactor
1352114200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1352214201 shlibpath_var=LIBPATH
1352314202
1352614205 ;;
1352714206
1352814207 aix[4-9]*)
13529 version_type=linux
14208 version_type=linux # correct to gnu/linux during the next big refactor
1353014209 need_lib_prefix=no
1353114210 need_version=no
1353214211 hardcode_into_libs=yes
1357914258 m68k)
1358014259 library_names_spec='$libname.ixlibrary $libname.a'
1358114260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13582 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14261 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'
1358314262 ;;
1358414263 esac
1358514264 ;;
1359114270 ;;
1359214271
1359314272 bsdi[45]*)
13594 version_type=linux
14273 version_type=linux # correct to gnu/linux during the next big refactor
1359514274 need_version=no
1359614275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1359714276 soname_spec='${libname}${release}${shared_ext}$major'
1361014289 need_version=no
1361114290 need_lib_prefix=no
1361214291
13613 case $GCC,$host_os in
13614 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14292 case $GCC,$cc_basename in
14293 yes,*)
14294 # gcc
1361514295 library_names_spec='$libname.dll.a'
1361614296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1361714297 postinstall_cmds='base_file=`basename \${file}`~
1363214312 cygwin*)
1363314313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1363414314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14315
1363614316 ;;
1363714317 mingw* | cegcc*)
1363814318 # MinGW DLLs use traditional 'lib' prefix
1363914319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13640 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13642 # It is most probably a Windows format PATH printed by
13643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13644 # path with ; separators, and with drive letters. We can handle the
13645 # drive letters (cygwin fileutils understands them), so leave them,
13646 # especially as we might pass files found there to a mingw objdump,
13647 # which wouldn't understand a cygwinified path. Ahh.
13648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13649 else
13650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13651 fi
1365214320 ;;
1365314321 pw32*)
1365414322 # pw32 DLLs use 'pw' prefix rather than 'lib'
1365514323 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1365614324 ;;
1365714325 esac
14326 dynamic_linker='Win32 ld.exe'
1365814327 ;;
1365914328
14329 *,cl*)
14330 # Native MSVC
14331 libname_spec='$name'
14332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14333 library_names_spec='${libname}.dll.lib'
14334
14335 case $build_os in
14336 mingw*)
14337 sys_lib_search_path_spec=
14338 lt_save_ifs=$IFS
14339 IFS=';'
14340 for lt_path in $LIB
14341 do
14342 IFS=$lt_save_ifs
14343 # Let DOS variable expansion print the short 8.3 style file name.
14344 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14345 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14346 done
14347 IFS=$lt_save_ifs
14348 # Convert to MSYS style.
14349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14350 ;;
14351 cygwin*)
14352 # Convert to unix form, then to dos form, then back to unix form
14353 # but this time dos style (no spaces!) so that the unix form looks
14354 # like /cygdrive/c/PROGRA~1:/cygdr...
14355 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14356 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14357 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14358 ;;
14359 *)
14360 sys_lib_search_path_spec="$LIB"
14361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14362 # It is most probably a Windows format PATH.
14363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14364 else
14365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14366 fi
14367 # FIXME: find the short name or the path components, as spaces are
14368 # common. (e.g. "Program Files" -> "PROGRA~1")
14369 ;;
14370 esac
14371
14372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14373 postinstall_cmds='base_file=`basename \${file}`~
14374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14375 dldir=$destdir/`dirname \$dlpath`~
14376 test -d \$dldir || mkdir -p \$dldir~
14377 $install_prog $dir/$dlname \$dldir/$dlname'
14378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14379 dlpath=$dir/\$dldll~
14380 $RM \$dlpath'
14381 shlibpath_overrides_runpath=yes
14382 dynamic_linker='Win32 link.exe'
14383 ;;
14384
1366014385 *)
14386 # Assume MSVC wrapper
1366114387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14388 dynamic_linker='Win32 ld.exe'
1366214389 ;;
1366314390 esac
13664 dynamic_linker='Win32 ld.exe'
1366514391 # FIXME: first we should search . and the directory the executable is in
1366614392 shlibpath_var=PATH
1366714393 ;;
1368114407 ;;
1368214408
1368314409 dgux*)
13684 version_type=linux
14410 version_type=linux # correct to gnu/linux during the next big refactor
1368514411 need_lib_prefix=no
1368614412 need_version=no
1368714413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1368814414 soname_spec='${libname}${release}${shared_ext}$major'
1368914415 shlibpath_var=LD_LIBRARY_PATH
13690 ;;
13691
13692 freebsd1*)
13693 dynamic_linker=no
1369414416 ;;
1369514417
1369614418 freebsd* | dragonfly*)
1370014422 objformat=`/usr/bin/objformat`
1370114423 else
1370214424 case $host_os in
13703 freebsd[123]*) objformat=aout ;;
14425 freebsd[23].*) objformat=aout ;;
1370414426 *) objformat=elf ;;
1370514427 esac
1370614428 fi
1371814440 esac
1371914441 shlibpath_var=LD_LIBRARY_PATH
1372014442 case $host_os in
13721 freebsd2*)
14443 freebsd2.*)
1372214444 shlibpath_overrides_runpath=yes
1372314445 ;;
1372414446 freebsd3.[01]* | freebsdelf3.[01]*)
1373814460 ;;
1373914461
1374014462 gnu*)
13741 version_type=linux
14463 version_type=linux # correct to gnu/linux during the next big refactor
1374214464 need_lib_prefix=no
1374314465 need_version=no
1374414466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1374514467 soname_spec='${libname}${release}${shared_ext}$major'
1374614468 shlibpath_var=LD_LIBRARY_PATH
14469 shlibpath_overrides_runpath=no
14470 hardcode_into_libs=yes
14471 ;;
14472
14473 haiku*)
14474 version_type=linux # correct to gnu/linux during the next big refactor
14475 need_lib_prefix=no
14476 need_version=no
14477 dynamic_linker="$host_os runtime_loader"
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14479 soname_spec='${libname}${release}${shared_ext}$major'
14480 shlibpath_var=LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14482 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1374714483 hardcode_into_libs=yes
1374814484 ;;
1374914485
1378914525 soname_spec='${libname}${release}${shared_ext}$major'
1379014526 ;;
1379114527 esac
13792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1379314529 postinstall_cmds='chmod 555 $lib'
14530 # or fails outright, so override atomically:
14531 install_override_mode=555
1379414532 ;;
1379514533
1379614534 interix[3-9]*)
13797 version_type=linux
14535 version_type=linux # correct to gnu/linux during the next big refactor
1379814536 need_lib_prefix=no
1379914537 need_version=no
1380014538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1381014548 nonstopux*) version_type=nonstopux ;;
1381114549 *)
1381214550 if test "$lt_cv_prog_gnu_ld" = yes; then
13813 version_type=linux
14551 version_type=linux # correct to gnu/linux during the next big refactor
1381414552 else
1381514553 version_type=irix
1381614554 fi ;;
1384714585 dynamic_linker=no
1384814586 ;;
1384914587
13850 # This must be Linux ELF.
13851 linux* | k*bsd*-gnu)
13852 version_type=linux
14588 # This must be glibc/ELF.
14589 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14590 version_type=linux # correct to gnu/linux during the next big refactor
1385314591 need_lib_prefix=no
1385414592 need_version=no
1385514593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1385714595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1385814596 shlibpath_var=LD_LIBRARY_PATH
1385914597 shlibpath_overrides_runpath=no
14598
1386014599 # Some binutils ld are patched to set DT_RUNPATH
13861 save_LDFLAGS=$LDFLAGS
13862 save_libdir=$libdir
13863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 lt_cv_shlibpath_overrides_runpath=no
14604 save_LDFLAGS=$LDFLAGS
14605 save_libdir=$libdir
14606 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14607 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1386614609 /* end confdefs.h. */
1386714610
1386814611 int
1387514618 _ACEOF
1387614619 if ac_fn_cxx_try_link "$LINENO"; then :
1387714620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13878 shlibpath_overrides_runpath=yes
14621 lt_cv_shlibpath_overrides_runpath=yes
1387914622 fi
1388014623 fi
1388114624 rm -f core conftest.err conftest.$ac_objext \
1388214625 conftest$ac_exeext conftest.$ac_ext
13883 LDFLAGS=$save_LDFLAGS
13884 libdir=$save_libdir
14626 LDFLAGS=$save_LDFLAGS
14627 libdir=$save_libdir
14628
14629 fi
14630
14631 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1388514632
1388614633 # This implies no fast_install, which is unacceptable.
1388714634 # Some rework will be needed to allow for fast_install
1388814635 # before this can be enabled.
1388914636 hardcode_into_libs=yes
1389014637
13891 # Add ABI-specific directories to the system library path.
13892 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13893
1389414638 # Append ld.so.conf contents to the search path
1389514639 if test -f /etc/ld.so.conf; then
13896 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13897 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14640 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' ' '`
14641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1389814642 fi
1389914643
1390014644 # We used to test for /lib/ld.so.1 and disable shared libraries on
1390414648 # people can always --disable-shared, the test was removed, and we
1390514649 # assume the GNU/Linux dynamic linker is in use.
1390614650 dynamic_linker='GNU/Linux ld.so'
14651 ;;
14652
14653 netbsdelf*-gnu)
14654 version_type=linux
14655 need_lib_prefix=no
14656 need_version=no
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 shlibpath_overrides_runpath=no
14661 hardcode_into_libs=yes
14662 dynamic_linker='NetBSD ld.elf_so'
1390714663 ;;
1390814664
1390914665 netbsd*)
1392514681 ;;
1392614682
1392714683 newsos6)
13928 version_type=linux
14684 version_type=linux # correct to gnu/linux during the next big refactor
1392914685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1393014686 shlibpath_var=LD_LIBRARY_PATH
1393114687 shlibpath_overrides_runpath=yes
1399414750 ;;
1399514751
1399614752 solaris*)
13997 version_type=linux
14753 version_type=linux # correct to gnu/linux during the next big refactor
1399814754 need_lib_prefix=no
1399914755 need_version=no
1400014756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1401914775 ;;
1402014776
1402114777 sysv4 | sysv4.3*)
14022 version_type=linux
14778 version_type=linux # correct to gnu/linux during the next big refactor
1402314779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1402414780 soname_spec='${libname}${release}${shared_ext}$major'
1402514781 shlibpath_var=LD_LIBRARY_PATH
1404314799
1404414800 sysv4*MP*)
1404514801 if test -d /usr/nec ;then
14046 version_type=linux
14802 version_type=linux # correct to gnu/linux during the next big refactor
1404714803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1404814804 soname_spec='$libname${shared_ext}.$major'
1404914805 shlibpath_var=LD_LIBRARY_PATH
1407414830
1407514831 tpf*)
1407614832 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14077 version_type=linux
14833 version_type=linux # correct to gnu/linux during the next big refactor
1407814834 need_lib_prefix=no
1407914835 need_version=no
1408014836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1408414840 ;;
1408514841
1408614842 uts4*)
14087 version_type=linux
14843 version_type=linux # correct to gnu/linux during the next big refactor
1408814844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1408914845 soname_spec='${libname}${release}${shared_ext}$major'
1409014846 shlibpath_var=LD_LIBRARY_PATH
1410914865 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1411014866 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1411114867 fi
14868
14869
1411214870
1411314871
1411414872
1419214950 fi # test -n "$compiler"
1419314951
1419414952 CC=$lt_save_CC
14953 CFLAGS=$lt_save_CFLAGS
1419514954 LDCXX=$LD
1419614955 LD=$lt_save_LD
1419714956 GCC=$lt_save_GCC
1421014969
1421114970
1421214971
14972 debug_flags="-DNDEBUG"
1421314973 # Check whether --enable-debug was given.
1421414974 if test "${enable_debug+set}" = set; then :
14215 enableval=$enable_debug;
14216 if test "$enableval" = "yes"; then
14217 CXXFLAGS="$CXXFLAGS -Wall -DDEBUG"
14218 else
14219 CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
14220 fi
14221
14222 else
14223
14224 CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
14225
14975 enableval=$enable_debug; if test "x$enable_debug" = xyes; then :
14976 debug_flags="-DDEBUG"
14977 fi
1422614978
1422714979 fi
1422814980
1423414986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1423514987
1423614988
14989 supports_visibility=no
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
14991 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994
14995 void __attribute__((visibility ("hidden"))) bar (void) {}
14996 int
14997 main ()
14998 {
14999
15000 ;
15001 return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_cxx_try_compile "$LINENO"; then :
15005 supports_visibility=yes
15006 fi
15007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_visibility" >&5
15009 $as_echo "$supports_visibility" >&6; }
15010 if test "x$supports_visibility" = xyes; then :
15011 visibility_flags="-fvisibility=hidden -fvisibility-inlines-hidden"
15012 fi
15013
15014
1423715015
1423815016 succeeded=no
1423915017
1424215020 set dummy pkg-config; ac_word=$2
1424315021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1424415022 $as_echo_n "checking for $ac_word... " >&6; }
14245 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15023 if ${ac_cv_path_PKG_CONFIG+:} false; then :
1424615024 $as_echo_n "(cached) " >&6
1424715025 else
1424815026 case $PKG_CONFIG in
1433215110 VARCONF_REQUIRES="$VARCONF_REQUIRES sigc++-2.0"
1433315111
1433415112 else
14335 as_fn_error "Couldn't find sigc++ library!" "$LINENO" 5
15113 as_fn_error $? "Couldn't find sigc++ library!" "$LINENO" 5
1433615114 ]
1433715115 fi
1433815116
1434415122
1434515123
1434615124
15125
15126 AM_CXXFLAGS="-Wall $debug_flags -DBUILDING_VARCONF_DSO $visibility_flags"
1434715127
1434815128
1434915129 ac_config_files="$ac_config_files Makefile varconf.spec mingw32-varconf.spec doc/Makefile doc/old/Makefile tests/Makefile varconf/Makefile varconf-1.0.pc"
1441215192 :end' >>confcache
1441315193 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1441415194 if test -w "$cache_file"; then
14415 test "x$cache_file" != "x/dev/null" &&
15195 if test "x$cache_file" != "x/dev/null"; then
1441615196 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1441715197 $as_echo "$as_me: updating cache $cache_file" >&6;}
14418 cat confcache >$cache_file
15198 if test ! -f "$cache_file" || test -h "$cache_file"; then
15199 cat confcache >"$cache_file"
15200 else
15201 case $cache_file in #(
15202 */* | ?:*)
15203 mv -f confcache "$cache_file"$$ &&
15204 mv -f "$cache_file"$$ "$cache_file" ;; #(
15205 *)
15206 mv -f confcache "$cache_file" ;;
15207 esac
15208 fi
15209 fi
1441915210 else
1442015211 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1442115212 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1443115222
1443215223 ac_libobjs=
1443315224 ac_ltlibobjs=
15225 U=
1443415226 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1443515227 # 1. Remove the extension, and $U if already installed.
1443615228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1445415246 fi
1445515247
1445615248 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14457 as_fn_error "conditional \"AMDEP\" was never defined.
15249 as_fn_error $? "conditional \"AMDEP\" was never defined.
1445815250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1445915251 fi
1446015252 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14461 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15253 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1446215254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1446315255 fi
1446415256 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14465 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15257 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1446615258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1446715259 fi
14468 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14469 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14471 fi
14472
14473 : ${CONFIG_STATUS=./config.status}
15260
15261 : "${CONFIG_STATUS=./config.status}"
1447415262 ac_write_fail=0
1447515263 ac_clean_files_save=$ac_clean_files
1447615264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1457115359 IFS=" "" $as_nl"
1457215360
1457315361 # Find who we are. Look in the path if we contain no directory separator.
15362 as_myself=
1457415363 case $0 in #((
1457515364 *[\\/]* ) as_myself=$0 ;;
1457615365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461615405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1461715406
1461815407
14619 # as_fn_error ERROR [LINENO LOG_FD]
14620 # ---------------------------------
15408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15409 # ----------------------------------------
1462115410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1462215411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14623 # script with status $?, using 1 if that was 0.
15412 # script with STATUS, using 1 if that was 0.
1462415413 as_fn_error ()
1462515414 {
14626 as_status=$?; test $as_status -eq 0 && as_status=1
14627 if test "$3"; then
14628 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15415 as_status=$1; test $as_status -eq 0 && as_status=1
15416 if test "$4"; then
15417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1463015419 fi
14631 $as_echo "$as_me: error: $1" >&2
15420 $as_echo "$as_me: error: $2" >&2
1463215421 as_fn_exit $as_status
1463315422 } # as_fn_error
1463415423
1482415613 test -d "$as_dir" && break
1482515614 done
1482615615 test -z "$as_dirs" || eval "mkdir $as_dirs"
14827 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15616 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1482815617
1482915618
1483015619 } # as_fn_mkdir_p
1487715666 # report actual input values of CONFIG_FILES etc. instead of their
1487815667 # values after options handling.
1487915668 ac_log="
14880 This file was extended by varconf $as_me 0.6.7, which was
14881 generated by GNU Autoconf 2.65. Invocation command line was
15669 This file was extended by varconf $as_me 1.0.0, which was
15670 generated by GNU Autoconf 2.68. Invocation command line was
1488215671
1488315672 CONFIG_FILES = $CONFIG_FILES
1488415673 CONFIG_HEADERS = $CONFIG_HEADERS
1494315732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1494415733 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1494515734 ac_cs_version="\\
14946 varconf config.status 0.6.7
14947 configured by $0, generated by GNU Autoconf 2.65,
15735 varconf config.status 1.0.0
15736 configured by $0, generated by GNU Autoconf 2.68,
1494815737 with options \\"\$ac_cs_config\\"
1494915738
14950 Copyright (C) 2009 Free Software Foundation, Inc.
15739 Copyright (C) 2010 Free Software Foundation, Inc.
1495115740 This config.status script is free software; the Free Software Foundation
1495215741 gives unlimited permission to copy, distribute and modify it."
1495315742
1496515754 while test $# != 0
1496615755 do
1496715756 case $1 in
14968 --*=*)
15757 --*=?*)
1496915758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
1497015759 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15760 ac_shift=:
15761 ;;
15762 --*=)
15763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15764 ac_optarg=
1497115765 ac_shift=:
1497215766 ;;
1497315767 *)
1499115785 $ac_shift
1499215786 case $ac_optarg in
1499315787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15788 '') as_fn_error $? "missing file argument" ;;
1499415789 esac
1499515790 as_fn_append CONFIG_FILES " '$ac_optarg'"
1499615791 ac_need_defaults=false;;
1500315798 ac_need_defaults=false;;
1500415799 --he | --h)
1500515800 # Conflict between --help and --header
15006 as_fn_error "ambiguous option: \`$1'
15801 as_fn_error $? "ambiguous option: \`$1'
1500715802 Try \`$0 --help' for more information.";;
1500815803 --help | --hel | -h )
1500915804 $as_echo "$ac_cs_usage"; exit ;;
1501215807 ac_cs_silent=: ;;
1501315808
1501415809 # This is an error.
15015 -*) as_fn_error "unrecognized option: \`$1'
15810 -*) as_fn_error $? "unrecognized option: \`$1'
1501615811 Try \`$0 --help' for more information." ;;
1501715812
1501815813 *) as_fn_append ac_config_targets " $1"
1506615861 sed_quote_subst='$sed_quote_subst'
1506715862 double_quote_subst='$double_quote_subst'
1506815863 delay_variable_subst='$delay_variable_subst'
15069 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15070 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15071 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15072 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15073 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15074 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15075 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15076 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15077 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15078 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15079 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15080 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15081 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15082 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15083 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15084 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15085 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15086 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15087 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15088 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15089 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15090 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15091 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15092 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15093 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15094 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15095 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15096 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15097 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15098 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15099 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15100 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15101 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15102 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15103 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15104 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15105 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15106 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15107 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15108 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15109 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15110 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15111 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15112 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15113 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15114 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15115 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15116 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15117 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15118 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15119 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15120 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15121 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15122 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15123 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15124 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15125 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15126 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15127 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15128 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15129 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15130 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15131 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15132 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15133 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15134 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15135 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15136 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15137 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15138 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15139 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15140 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15141 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15142 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15143 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15144 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15145 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15146 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15147 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15148 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15149 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15150 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15151 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15152 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15153 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15154 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15155 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15156 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15157 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15158 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15159 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15160 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15161 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15162 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15163 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15164 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15165 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15166 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15167 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15168 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15169 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15170 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15171 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15172 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15173 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15174 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15175 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15176 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15177 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15178 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15179 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15180 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15181 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15182 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15183 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15184 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15185 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15186 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15187 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15188 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15189 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15190 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15191 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15192 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15193 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15194 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15195 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15196 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15197 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15198 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15199 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15200 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15201 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15202 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15203 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15204 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15205 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15206 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15207 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15208 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15209 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15210 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15211 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15212 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15213 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15214 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15215 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15216 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15217 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15218 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15219 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15220 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15221 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15222 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15223 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15224 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15225 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15226 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15227 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15228 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15229 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15230 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15231 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15232 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15233 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15234 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15235 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15236 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15237 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15238 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15239 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15864 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15865 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15866 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15867 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15868 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15869 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15870 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15871 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15872 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15873 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15874 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15875 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15876 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15877 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15878 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15879 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15880 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15881 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15882 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15883 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15884 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15885 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15886 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15887 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15888 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15889 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15890 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15891 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15892 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15893 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15894 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15895 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15896 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15897 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15898 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15899 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15900 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15901 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15902 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15903 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15904 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15905 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15906 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15907 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15908 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15909 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15910 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15911 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15912 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15913 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15914 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15915 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15916 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15917 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15918 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15919 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15920 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"`'
15921 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15922 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15923 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15924 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15925 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15926 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15927 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15928 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15929 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15930 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15931 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15932 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15933 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15934 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15935 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15936 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15937 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15938 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15939 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15940 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15941 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15942 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15943 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15944 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15945 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15946 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15947 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15948 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15949 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15950 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15951 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15952 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15953 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15954 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15955 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15956 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15957 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15958 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15959 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15960 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15961 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15962 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15963 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15964 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15965 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15966 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15967 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15968 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15969 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15970 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15971 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15972 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15973 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15974 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15975 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15976 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15977 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15978 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15979 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15980 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15981 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15982 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15983 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15984 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15985 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15986 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15987 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15988 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15989 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15990 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15991 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15992 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15993 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15994 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15995 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15996 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15997 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15998 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15999 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16000 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16001 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16002 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16003 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16004 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16005 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16006 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16007 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16008 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16009 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16010 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16011 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16012 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16013 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16014 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16015 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16016 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16017 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16018 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16019 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16020 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16021 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16022 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16023 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16024 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16025 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16026 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16027 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16028 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16029 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16030 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16031 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16032 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16033 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16034 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16035 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16036 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16037 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16038 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16039 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16040 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16041 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16042 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16043 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16044 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16045 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16046 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16047 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
1524016048
1524116049 LTCC='$LTCC'
1524216050 LTCFLAGS='$LTCFLAGS'
1524316051 compiler='$compiler_DEFAULT'
1524416052
16053 # A function that is used when there is no print builtin or printf.
16054 func_fallback_echo ()
16055 {
16056 eval 'cat <<_LTECHO_EOF
16057 \$1
16058 _LTECHO_EOF'
16059 }
16060
1524516061 # Quote evaled strings.
15246 for var in SED \
16062 for var in SHELL \
16063 ECHO \
16064 PATH_SEPARATOR \
16065 SED \
1524716066 GREP \
1524816067 EGREP \
1524916068 FGREP \
1525616075 OBJDUMP \
1525716076 deplibs_check_method \
1525816077 file_magic_cmd \
16078 file_magic_glob \
16079 want_nocaseglob \
16080 DLLTOOL \
16081 sharedlib_from_linklib_cmd \
1525916082 AR \
1526016083 AR_FLAGS \
16084 archiver_list_spec \
1526116085 STRIP \
1526216086 RANLIB \
1526316087 CC \
1526716091 lt_cv_sys_global_symbol_to_cdecl \
1526816092 lt_cv_sys_global_symbol_to_c_name_address \
1526916093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15270 SHELL \
15271 ECHO \
16094 nm_file_list_spec \
1527216095 lt_prog_compiler_no_builtin_flag \
16096 lt_prog_compiler_pic \
1527316097 lt_prog_compiler_wl \
15274 lt_prog_compiler_pic \
1527516098 lt_prog_compiler_static \
1527616099 lt_cv_prog_compiler_c_o \
1527716100 need_locks \
16101 MANIFEST_TOOL \
1527816102 DSYMUTIL \
1527916103 NMEDIT \
1528016104 LIPO \
1528816112 allow_undefined_flag \
1528916113 no_undefined_flag \
1529016114 hardcode_libdir_flag_spec \
15291 hardcode_libdir_flag_spec_ld \
1529216115 hardcode_libdir_separator \
15293 fix_srcfile_path \
1529416116 exclude_expsyms \
1529516117 include_expsyms \
1529616118 file_list_spec \
1529816120 libname_spec \
1529916121 library_names_spec \
1530016122 soname_spec \
16123 install_override_mode \
1530116124 finish_eval \
1530216125 old_striplib \
1530316126 striplib \
1530816131 postdeps \
1530916132 compiler_lib_search_path \
1531016133 LD_CXX \
16134 reload_flag_CXX \
1531116135 compiler_CXX \
1531216136 lt_prog_compiler_no_builtin_flag_CXX \
16137 lt_prog_compiler_pic_CXX \
1531316138 lt_prog_compiler_wl_CXX \
15314 lt_prog_compiler_pic_CXX \
1531516139 lt_prog_compiler_static_CXX \
1531616140 lt_cv_prog_compiler_c_o_CXX \
1531716141 export_dynamic_flag_spec_CXX \
1532116145 allow_undefined_flag_CXX \
1532216146 no_undefined_flag_CXX \
1532316147 hardcode_libdir_flag_spec_CXX \
15324 hardcode_libdir_flag_spec_ld_CXX \
1532516148 hardcode_libdir_separator_CXX \
15326 fix_srcfile_path_CXX \
1532716149 exclude_expsyms_CXX \
1532816150 include_expsyms_CXX \
1532916151 file_list_spec_CXX \
1533316155 predeps_CXX \
1533416156 postdeps_CXX \
1533516157 compiler_lib_search_path_CXX; do
15336 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1533716159 *[\\\\\\\`\\"\\\$]*)
15338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1533916161 ;;
1534016162 *)
1534116163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1535716179 module_expsym_cmds \
1535816180 export_symbols_cmds \
1535916181 prelink_cmds \
16182 postlink_cmds \
1536016183 postinstall_cmds \
1536116184 postuninstall_cmds \
1536216185 finish_cmds \
1536316186 sys_lib_search_path_spec \
1536416187 sys_lib_dlsearch_path_spec \
16188 reload_cmds_CXX \
1536516189 old_archive_cmds_CXX \
1536616190 old_archive_from_new_cmds_CXX \
1536716191 old_archive_from_expsyms_cmds_CXX \
1537016194 module_cmds_CXX \
1537116195 module_expsym_cmds_CXX \
1537216196 export_symbols_cmds_CXX \
15373 prelink_cmds_CXX; do
15374 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16197 prelink_cmds_CXX \
16198 postlink_cmds_CXX; do
16199 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1537516200 *[\\\\\\\`\\"\\\$]*)
15376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16201 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1537716202 ;;
1537816203 *)
1537916204 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1538016205 ;;
1538116206 esac
1538216207 done
15383
15384 # Fix-up fallback echo if it was mangled by the above quoting rules.
15385 case \$lt_ECHO in
15386 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15387 ;;
15388 esac
1538916208
1539016209 ac_aux_dir='$ac_aux_dir'
1539116210 xsi_shell='$xsi_shell'
1542916248 "varconf/Makefile") CONFIG_FILES="$CONFIG_FILES varconf/Makefile" ;;
1543016249 "varconf-1.0.pc") CONFIG_FILES="$CONFIG_FILES varconf-1.0.pc" ;;
1543116250
15432 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1543316252 esac
1543416253 done
1543516254
1545216271 # after its creation but before its name has been assigned to `$tmp'.
1545316272 $debug ||
1545416273 {
15455 tmp=
16274 tmp= ac_tmp=
1545616275 trap 'exit_status=$?
15457 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16276 : "${ac_tmp:=$tmp}"
16277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1545816278 ' 0
1545916279 trap 'as_fn_exit 1' 1 2 13 15
1546016280 }
1546216282
1546316283 {
1546416284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15465 test -n "$tmp" && test -d "$tmp"
16285 test -d "$tmp"
1546616286 } ||
1546716287 {
1546816288 tmp=./conf$$-$RANDOM
1546916289 (umask 077 && mkdir "$tmp")
15470 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16290 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16291 ac_tmp=$tmp
1547116292
1547216293 # Set up the scripts for CONFIG_FILES section.
1547316294 # No need to generate them if there are no CONFIG_FILES.
1548416305 fi
1548516306 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1548616307 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15487 ac_cs_awk_cr='\r'
16308 ac_cs_awk_cr='\\r'
1548816309 else
1548916310 ac_cs_awk_cr=$ac_cr
1549016311 fi
1549116312
15492 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16313 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1549316314 _ACEOF
1549416315
1549516316
1549816319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1549916320 echo "_ACEOF"
1550016321 } >conf$$subs.sh ||
15501 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15502 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1550316324 ac_delim='%!_!# '
1550416325 for ac_last_try in false false false false false :; do
1550516326 . ./conf$$subs.sh ||
15506 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1550716328
1550816329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1550916330 if test $ac_delim_n = $ac_delim_num; then
1551016331 break
1551116332 elif $ac_last_try; then
15512 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1551316334 else
1551416335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1551516336 fi
1551716338 rm -f conf$$subs.sh
1551816339
1551916340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15520 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16341 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1552116342 _ACEOF
1552216343 sed -n '
1552316344 h
1556516386 rm -f conf$$subs.awk
1556616387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1556716388 _ACAWK
15568 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16389 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1556916390 for (key in S) S_is_set[key] = 1
1557016391 FS = ""
1557116392
1559716418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1559816419 else
1559916420 cat
15600 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15601 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16421 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1560216423 _ACEOF
1560316424
15604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1560616427 # trailing colons and then remove the whole line if VPATH becomes empty
1560716428 # (actually we leave an empty line to preserve line numbers).
1560816429 if test "x$srcdir" = x.; then
15609 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15610 s/:*\$(srcdir):*/:/
15611 s/:*\${srcdir}:*/:/
15612 s/:*@srcdir@:*/:/
15613 s/^\([^=]*=[ ]*\):*/\1/
16430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16431 h
16432 s///
16433 s/^/:/
16434 s/[ ]*$/:/
16435 s/:\$(srcdir):/:/g
16436 s/:\${srcdir}:/:/g
16437 s/:@srcdir@:/:/g
16438 s/^:*//
1561416439 s/:*$//
16440 x
16441 s/\(=[ ]*\).*/\1/
16442 G
16443 s/\n//
1561516444 s/^[^=]*=[ ]*$//
1561616445 }'
1561716446 fi
1562316452 # No need to generate them if there are no CONFIG_HEADERS.
1562416453 # This happens for instance with `./config.status Makefile'.
1562516454 if test -n "$CONFIG_HEADERS"; then
15626 cat >"$tmp/defines.awk" <<\_ACAWK ||
16455 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1562716456 BEGIN {
1562816457 _ACEOF
1562916458
1563516464 # handling of long lines.
1563616465 ac_delim='%!_!# '
1563716466 for ac_last_try in false false :; do
15638 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15639 if test -z "$ac_t"; then
16467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16468 if test -z "$ac_tt"; then
1564016469 break
1564116470 elif $ac_last_try; then
15642 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1564316472 else
1564416473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1564516474 fi
1572416553 _ACAWK
1572516554 _ACEOF
1572616555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1572816557 fi # test -n "$CONFIG_HEADERS"
1572916558
1573016559
1573716566 esac
1573816567 case $ac_mode$ac_tag in
1573916568 :[FHL]*:*);;
15740 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1574116570 :[FH]-) ac_tag=-:-;;
1574216571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1574316572 esac
1575616585 for ac_f
1575716586 do
1575816587 case $ac_f in
15759 -) ac_f="$tmp/stdin";;
16588 -) ac_f="$ac_tmp/stdin";;
1576016589 *) # Look for the file first in the build tree, then in the source tree
1576116590 # (if the path is not absolute). The absolute path cannot be DOS-style,
1576216591 # because $ac_f cannot contain `:'.
1576516594 [\\/$]*) false;;
1576616595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1576716596 esac ||
15768 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1576916598 esac
1577016599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1577116600 as_fn_append ac_file_inputs " '$ac_f'"
1579116620 esac
1579216621
1579316622 case $ac_tag in
15794 *:-:* | *:-) cat >"$tmp/stdin" \
15795 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1579616625 esac
1579716626 ;;
1579816627 esac
1592816757 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1592916758 $ac_datarootdir_hack
1593016759 "
15931 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15932 || as_fn_error "could not create $ac_file" "$LINENO" 5
16760 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16761 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1593316762
1593416763 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15935 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15936 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16764 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16766 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1593716767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15938 which seems to be undefined. Please make sure it is defined." >&5
16768 which seems to be undefined. Please make sure it is defined" >&5
1593916769 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15940 which seems to be undefined. Please make sure it is defined." >&2;}
15941
15942 rm -f "$tmp/stdin"
16770 which seems to be undefined. Please make sure it is defined" >&2;}
16771
16772 rm -f "$ac_tmp/stdin"
1594316773 case $ac_file in
15944 -) cat "$tmp/out" && rm -f "$tmp/out";;
15945 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16774 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16775 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1594616776 esac \
15947 || as_fn_error "could not create $ac_file" "$LINENO" 5
16777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1594816778 ;;
1594916779 :H)
1595016780 #
1595316783 if test x"$ac_file" != x-; then
1595416784 {
1595516785 $as_echo "/* $configure_input */" \
15956 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15957 } >"$tmp/config.h" \
15958 || as_fn_error "could not create $ac_file" "$LINENO" 5
15959 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16787 } >"$ac_tmp/config.h" \
16788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16789 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1596016790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1596116791 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1596216792 else
1596316793 rm -f "$ac_file"
15964 mv "$tmp/config.h" "$ac_file" \
15965 || as_fn_error "could not create $ac_file" "$LINENO" 5
16794 mv "$ac_tmp/config.h" "$ac_file" \
16795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1596616796 fi
1596716797 else
1596816798 $as_echo "/* $configure_input */" \
15969 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15970 || as_fn_error "could not create -" "$LINENO" 5
16799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16800 || as_fn_error $? "could not create -" "$LINENO" 5
1597116801 fi
1597216802 # Compute "$ac_file"'s index in $config_headers.
1597316803 _am_arg="$ac_file"
1612816958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1612916959 #
1613016960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16131 # 2006, 2007, 2008 Free Software Foundation, Inc.
16961 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16962 # Foundation, Inc.
1613216963 # Written by Gordon Matzigkeit, 1996
1613316964 #
1613416965 # This file is part of GNU Libtool.
1617617007 # Whether or not to optimize for fast installation.
1617717008 fast_install=$enable_fast_install
1617817009
17010 # Shell to use when invoking shell scripts.
17011 SHELL=$lt_SHELL
17012
17013 # An echo program that protects backslashes.
17014 ECHO=$lt_ECHO
17015
17016 # The PATH separator for the build system.
17017 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17018
1617917019 # The host system.
1618017020 host_alias=$host_alias
1618117021 host=$host
1622517065 # turn newlines into spaces.
1622617066 NL2SP=$lt_lt_NL2SP
1622717067
16228 # How to create reloadable object files.
16229 reload_flag=$lt_reload_flag
16230 reload_cmds=$lt_reload_cmds
17068 # convert \$build file names to \$host format.
17069 to_host_file_cmd=$lt_cv_to_host_file_cmd
17070
17071 # convert \$build files to toolchain format.
17072 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1623117073
1623217074 # An object symbol dumper.
1623317075 OBJDUMP=$lt_OBJDUMP
1623517077 # Method to check whether dependent libraries are shared objects.
1623617078 deplibs_check_method=$lt_deplibs_check_method
1623717079
16238 # Command to use when deplibs_check_method == "file_magic".
17080 # Command to use when deplibs_check_method = "file_magic".
1623917081 file_magic_cmd=$lt_file_magic_cmd
17082
17083 # How to find potential files when deplibs_check_method = "file_magic".
17084 file_magic_glob=$lt_file_magic_glob
17085
17086 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17087 want_nocaseglob=$lt_want_nocaseglob
17088
17089 # DLL creation program.
17090 DLLTOOL=$lt_DLLTOOL
17091
17092 # Command to associate shared and link libraries.
17093 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1624017094
1624117095 # The archiver.
1624217096 AR=$lt_AR
17097
17098 # Flags to create an archive.
1624317099 AR_FLAGS=$lt_AR_FLAGS
17100
17101 # How to feed a file listing to the archiver.
17102 archiver_list_spec=$lt_archiver_list_spec
1624417103
1624517104 # A symbol stripping program.
1624617105 STRIP=$lt_STRIP
1625017109 old_postinstall_cmds=$lt_old_postinstall_cmds
1625117110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
1625217111
17112 # Whether to use a lock for old archive extraction.
17113 lock_old_archive_extraction=$lock_old_archive_extraction
17114
1625317115 # A C compiler.
1625417116 LTCC=$lt_CC
1625517117
1626817130 # Transform the output of nm in a C name address pair when lib prefix is needed.
1626917131 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1627017132
17133 # Specify filename containing input files for \$NM.
17134 nm_file_list_spec=$lt_nm_file_list_spec
17135
17136 # The root where to search for dependent libraries,and in which our libraries should be installed.
17137 lt_sysroot=$lt_sysroot
17138
1627117139 # The name of the directory that contains temporary libtool files.
1627217140 objdir=$objdir
1627317141
16274 # Shell to use when invoking shell scripts.
16275 SHELL=$lt_SHELL
16276
16277 # An echo program that does not interpret backslashes.
16278 ECHO=$lt_ECHO
16279
1628017142 # Used to examine libraries when file_magic_cmd begins with "file".
1628117143 MAGIC_CMD=$MAGIC_CMD
1628217144
1628317145 # Must we lock files when doing compilation?
1628417146 need_locks=$lt_need_locks
17147
17148 # Manifest tool.
17149 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1628517150
1628617151 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1628717152 DSYMUTIL=$lt_DSYMUTIL
1633917204 # The coded name of the library, if different from the real name.
1634017205 soname_spec=$lt_soname_spec
1634117206
17207 # Permission mode override for installation of shared libraries.
17208 install_override_mode=$lt_install_override_mode
17209
1634217210 # Command to use after installation of a shared archive.
1634317211 postinstall_cmds=$lt_postinstall_cmds
1634417212
1637817246 # The linker used to build libraries.
1637917247 LD=$lt_LD
1638017248
17249 # How to create reloadable object files.
17250 reload_flag=$lt_reload_flag
17251 reload_cmds=$lt_reload_cmds
17252
1638117253 # Commands used to build an old-style archive.
1638217254 old_archive_cmds=$lt_old_archive_cmds
1638317255
1639017262 # Compiler flag to turn off builtin functions.
1639117263 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1639217264
17265 # Additional compiler flags for building library objects.
17266 pic_flag=$lt_lt_prog_compiler_pic
17267
1639317268 # How to pass a linker flag through the compiler.
1639417269 wl=$lt_lt_prog_compiler_wl
16395
16396 # Additional compiler flags for building library objects.
16397 pic_flag=$lt_lt_prog_compiler_pic
1639817270
1639917271 # Compiler flag to prevent dynamic linking.
1640017272 link_static_flag=$lt_lt_prog_compiler_static
1644417316 # Flag to hardcode \$libdir into a binary during linking.
1644517317 # This must work even if \$libdir does not exist
1644617318 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16447
16448 # If ld is used when linking, flag to hardcode \$libdir into a binary
16449 # during linking. This must work even if \$libdir does not exist.
16450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1645117319
1645217320 # Whether we need a single "-rpath" flag with a separated argument.
1645317321 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1648217350 # Whether libtool must link a program against all its dependency libraries.
1648317351 link_all_deplibs=$link_all_deplibs
1648417352
16485 # Fix the shell variable \$srcfile for the compiler.
16486 fix_srcfile_path=$lt_fix_srcfile_path
16487
1648817353 # Set to "yes" if exported symbols are required.
1648917354 always_export_symbols=$always_export_symbols
1649017355
1649917364
1650017365 # Commands necessary for linking programs (against libraries) with templates.
1650117366 prelink_cmds=$lt_prelink_cmds
17367
17368 # Commands necessary for finishing linking programs.
17369 postlink_cmds=$lt_postlink_cmds
1650217370
1650317371 # Specify filename containing input files.
1650417372 file_list_spec=$lt_file_list_spec
1654617414 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1654717415 # text mode, it properly converts lines to CR/LF. This bash problem
1654817416 # is reportedly fixed, but why not run on old versions too?
16549 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16550 || (rm -f "$cfgfile"; exit 1)
16551
16552 case $xsi_shell in
16553 yes)
16554 cat << \_LT_EOF >> "$cfgfile"
16555
16556 # func_dirname file append nondir_replacement
16557 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16558 # otherwise set result to NONDIR_REPLACEMENT.
16559 func_dirname ()
16560 {
16561 case ${1} in
16562 */*) func_dirname_result="${1%/*}${2}" ;;
16563 * ) func_dirname_result="${3}" ;;
16564 esac
16565 }
16566
16567 # func_basename file
16568 func_basename ()
16569 {
16570 func_basename_result="${1##*/}"
16571 }
16572
16573 # func_dirname_and_basename file append nondir_replacement
16574 # perform func_basename and func_dirname in a single function
16575 # call:
16576 # dirname: Compute the dirname of FILE. If nonempty,
16577 # add APPEND to the result, otherwise set result
16578 # to NONDIR_REPLACEMENT.
16579 # value returned in "$func_dirname_result"
16580 # basename: Compute filename of FILE.
16581 # value retuned in "$func_basename_result"
16582 # Implementation must be kept synchronized with func_dirname
16583 # and func_basename. For efficiency, we do not delegate to
16584 # those functions but instead duplicate the functionality here.
16585 func_dirname_and_basename ()
16586 {
16587 case ${1} in
16588 */*) func_dirname_result="${1%/*}${2}" ;;
16589 * ) func_dirname_result="${3}" ;;
16590 esac
16591 func_basename_result="${1##*/}"
16592 }
16593
16594 # func_stripname prefix suffix name
16595 # strip PREFIX and SUFFIX off of NAME.
16596 # PREFIX and SUFFIX must not contain globbing or regex special
16597 # characters, hashes, percent signs, but SUFFIX may contain a leading
16598 # dot (in which case that matches only a dot).
16599 func_stripname ()
16600 {
16601 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16602 # positional parameters, so assign one to ordinary parameter first.
16603 func_stripname_result=${3}
16604 func_stripname_result=${func_stripname_result#"${1}"}
16605 func_stripname_result=${func_stripname_result%"${2}"}
16606 }
16607
16608 # func_opt_split
16609 func_opt_split ()
16610 {
16611 func_opt_split_opt=${1%%=*}
16612 func_opt_split_arg=${1#*=}
16613 }
16614
16615 # func_lo2o object
16616 func_lo2o ()
16617 {
16618 case ${1} in
16619 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16620 *) func_lo2o_result=${1} ;;
16621 esac
16622 }
16623
16624 # func_xform libobj-or-source
16625 func_xform ()
16626 {
16627 func_xform_result=${1%.*}.lo
16628 }
16629
16630 # func_arith arithmetic-term...
16631 func_arith ()
16632 {
16633 func_arith_result=$(( $* ))
16634 }
16635
16636 # func_len string
16637 # STRING may not start with a hyphen.
16638 func_len ()
16639 {
16640 func_len_result=${#1}
16641 }
16642
16643 _LT_EOF
16644 ;;
16645 *) # Bourne compatible functions.
16646 cat << \_LT_EOF >> "$cfgfile"
16647
16648 # func_dirname file append nondir_replacement
16649 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16650 # otherwise set result to NONDIR_REPLACEMENT.
16651 func_dirname ()
16652 {
16653 # Extract subdirectory from the argument.
16654 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16655 if test "X$func_dirname_result" = "X${1}"; then
16656 func_dirname_result="${3}"
16657 else
16658 func_dirname_result="$func_dirname_result${2}"
16659 fi
16660 }
16661
16662 # func_basename file
16663 func_basename ()
16664 {
16665 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16666 }
16667
16668
16669 # func_stripname prefix suffix name
16670 # strip PREFIX and SUFFIX off of NAME.
16671 # PREFIX and SUFFIX must not contain globbing or regex special
16672 # characters, hashes, percent signs, but SUFFIX may contain a leading
16673 # dot (in which case that matches only a dot).
16674 # func_strip_suffix prefix name
16675 func_stripname ()
16676 {
16677 case ${2} in
16678 .*) func_stripname_result=`$ECHO "X${3}" \
16679 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16680 *) func_stripname_result=`$ECHO "X${3}" \
16681 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16682 esac
16683 }
16684
16685 # sed scripts:
16686 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16687 my_sed_long_arg='1s/^-[^=]*=//'
16688
16689 # func_opt_split
16690 func_opt_split ()
16691 {
16692 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16693 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16694 }
16695
16696 # func_lo2o object
16697 func_lo2o ()
16698 {
16699 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16700 }
16701
16702 # func_xform libobj-or-source
16703 func_xform ()
16704 {
16705 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16706 }
16707
16708 # func_arith arithmetic-term...
16709 func_arith ()
16710 {
16711 func_arith_result=`expr "$@"`
16712 }
16713
16714 # func_len string
16715 # STRING may not start with a hyphen.
16716 func_len ()
16717 {
16718 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16719 }
16720
16721 _LT_EOF
16722 esac
16723
16724 case $lt_shell_append in
16725 yes)
16726 cat << \_LT_EOF >> "$cfgfile"
16727
16728 # func_append var value
16729 # Append VALUE to the end of shell variable VAR.
16730 func_append ()
16731 {
16732 eval "$1+=\$2"
16733 }
16734 _LT_EOF
16735 ;;
16736 *)
16737 cat << \_LT_EOF >> "$cfgfile"
16738
16739 # func_append var value
16740 # Append VALUE to the end of shell variable VAR.
16741 func_append ()
16742 {
16743 eval "$1=\$$1\$2"
16744 }
16745
16746 _LT_EOF
16747 ;;
16748 esac
16749
16750
16751 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16752 || (rm -f "$cfgfile"; exit 1)
16753
16754 mv -f "$cfgfile" "$ofile" ||
17417 sed '$q' "$ltmain" >> "$cfgfile" \
17418 || (rm -f "$cfgfile"; exit 1)
17419
17420 if test x"$xsi_shell" = xyes; then
17421 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17422 func_dirname ()\
17423 {\
17424 \ case ${1} in\
17425 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17426 \ * ) func_dirname_result="${3}" ;;\
17427 \ esac\
17428 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17429 && mv -f "$cfgfile.tmp" "$cfgfile" \
17430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17431 test 0 -eq $? || _lt_function_replace_fail=:
17432
17433
17434 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17435 func_basename ()\
17436 {\
17437 \ func_basename_result="${1##*/}"\
17438 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17439 && mv -f "$cfgfile.tmp" "$cfgfile" \
17440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17441 test 0 -eq $? || _lt_function_replace_fail=:
17442
17443
17444 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17445 func_dirname_and_basename ()\
17446 {\
17447 \ case ${1} in\
17448 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17449 \ * ) func_dirname_result="${3}" ;;\
17450 \ esac\
17451 \ func_basename_result="${1##*/}"\
17452 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17453 && mv -f "$cfgfile.tmp" "$cfgfile" \
17454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17455 test 0 -eq $? || _lt_function_replace_fail=:
17456
17457
17458 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17459 func_stripname ()\
17460 {\
17461 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17462 \ # positional parameters, so assign one to ordinary parameter first.\
17463 \ func_stripname_result=${3}\
17464 \ func_stripname_result=${func_stripname_result#"${1}"}\
17465 \ func_stripname_result=${func_stripname_result%"${2}"}\
17466 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17467 && mv -f "$cfgfile.tmp" "$cfgfile" \
17468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17469 test 0 -eq $? || _lt_function_replace_fail=:
17470
17471
17472 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17473 func_split_long_opt ()\
17474 {\
17475 \ func_split_long_opt_name=${1%%=*}\
17476 \ func_split_long_opt_arg=${1#*=}\
17477 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17478 && mv -f "$cfgfile.tmp" "$cfgfile" \
17479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17480 test 0 -eq $? || _lt_function_replace_fail=:
17481
17482
17483 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17484 func_split_short_opt ()\
17485 {\
17486 \ func_split_short_opt_arg=${1#??}\
17487 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17488 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17489 && mv -f "$cfgfile.tmp" "$cfgfile" \
17490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17491 test 0 -eq $? || _lt_function_replace_fail=:
17492
17493
17494 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17495 func_lo2o ()\
17496 {\
17497 \ case ${1} in\
17498 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17499 \ *) func_lo2o_result=${1} ;;\
17500 \ esac\
17501 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17502 && mv -f "$cfgfile.tmp" "$cfgfile" \
17503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17504 test 0 -eq $? || _lt_function_replace_fail=:
17505
17506
17507 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17508 func_xform ()\
17509 {\
17510 func_xform_result=${1%.*}.lo\
17511 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17512 && mv -f "$cfgfile.tmp" "$cfgfile" \
17513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17514 test 0 -eq $? || _lt_function_replace_fail=:
17515
17516
17517 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17518 func_arith ()\
17519 {\
17520 func_arith_result=$(( $* ))\
17521 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17522 && mv -f "$cfgfile.tmp" "$cfgfile" \
17523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17524 test 0 -eq $? || _lt_function_replace_fail=:
17525
17526
17527 sed -e '/^func_len ()$/,/^} # func_len /c\
17528 func_len ()\
17529 {\
17530 func_len_result=${#1}\
17531 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17532 && mv -f "$cfgfile.tmp" "$cfgfile" \
17533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17534 test 0 -eq $? || _lt_function_replace_fail=:
17535
17536 fi
17537
17538 if test x"$lt_shell_append" = xyes; then
17539 sed -e '/^func_append ()$/,/^} # func_append /c\
17540 func_append ()\
17541 {\
17542 eval "${1}+=\\${2}"\
17543 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17544 && mv -f "$cfgfile.tmp" "$cfgfile" \
17545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17546 test 0 -eq $? || _lt_function_replace_fail=:
17547
17548
17549 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17550 func_append_quoted ()\
17551 {\
17552 \ func_quote_for_eval "${2}"\
17553 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17554 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17555 && mv -f "$cfgfile.tmp" "$cfgfile" \
17556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17557 test 0 -eq $? || _lt_function_replace_fail=:
17558
17559
17560 # Save a `func_append' function call where possible by direct use of '+='
17561 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17562 && mv -f "$cfgfile.tmp" "$cfgfile" \
17563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17564 test 0 -eq $? || _lt_function_replace_fail=:
17565 else
17566 # Save a `func_append' function call even when '+=' is not available
17567 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17568 && mv -f "$cfgfile.tmp" "$cfgfile" \
17569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17570 test 0 -eq $? || _lt_function_replace_fail=:
17571 fi
17572
17573 if test x"$_lt_function_replace_fail" = x":"; then
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17575 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17576 fi
17577
17578
17579 mv -f "$cfgfile" "$ofile" ||
1675517580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1675617581 chmod +x "$ofile"
1675717582
1676317588 # The linker used to build libraries.
1676417589 LD=$lt_LD_CXX
1676517590
17591 # How to create reloadable object files.
17592 reload_flag=$lt_reload_flag_CXX
17593 reload_cmds=$lt_reload_cmds_CXX
17594
1676617595 # Commands used to build an old-style archive.
1676717596 old_archive_cmds=$lt_old_archive_cmds_CXX
1676817597
1677517604 # Compiler flag to turn off builtin functions.
1677617605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1677717606
17607 # Additional compiler flags for building library objects.
17608 pic_flag=$lt_lt_prog_compiler_pic_CXX
17609
1677817610 # How to pass a linker flag through the compiler.
1677917611 wl=$lt_lt_prog_compiler_wl_CXX
16780
16781 # Additional compiler flags for building library objects.
16782 pic_flag=$lt_lt_prog_compiler_pic_CXX
1678317612
1678417613 # Compiler flag to prevent dynamic linking.
1678517614 link_static_flag=$lt_lt_prog_compiler_static_CXX
1682917658 # Flag to hardcode \$libdir into a binary during linking.
1683017659 # This must work even if \$libdir does not exist
1683117660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16832
16833 # If ld is used when linking, flag to hardcode \$libdir into a binary
16834 # during linking. This must work even if \$libdir does not exist.
16835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
1683617661
1683717662 # Whether we need a single "-rpath" flag with a separated argument.
1683817663 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1686717692 # Whether libtool must link a program against all its dependency libraries.
1686817693 link_all_deplibs=$link_all_deplibs_CXX
1686917694
16870 # Fix the shell variable \$srcfile for the compiler.
16871 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16872
1687317695 # Set to "yes" if exported symbols are required.
1687417696 always_export_symbols=$always_export_symbols_CXX
1687517697
1688417706
1688517707 # Commands necessary for linking programs (against libraries) with templates.
1688617708 prelink_cmds=$lt_prelink_cmds_CXX
17709
17710 # Commands necessary for finishing linking programs.
17711 postlink_cmds=$lt_postlink_cmds_CXX
1688717712
1688817713 # Specify filename containing input files.
1688917714 file_list_spec=$lt_file_list_spec_CXX
1691917744 ac_clean_files=$ac_clean_files_save
1692017745
1692117746 test $ac_write_fail = 0 ||
16922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17747 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1692317748
1692417749
1692517750 # configure is writing to config.log, and then calls config.status.
1694017765 exec 5>>config.log
1694117766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1694217767 # would make configure fail if this is the last instruction.
16943 $ac_cs_success || as_fn_exit $?
17768 $ac_cs_success || as_fn_exit 1
1694417769 fi
1694517770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1694617771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
00 dnl Process this file with autoconf to generate configure
11
22 dnl Autoconf Initialization
3 AC_INIT([varconf], [0.6.7], [alriddoch@googlemail.com])
3 AC_INIT([varconf], [1.0.0], [alriddoch@googlemail.com])
44 AC_CONFIG_SRCDIR([varconf/variable.cpp])
55 AC_CONFIG_HEADERS([config.h])
66
1010
1111 dnl Information
1212
13 AM_INIT_AUTOMAKE([nostdinc dist-bzip2 check-news])
13 AM_INIT_AUTOMAKE([nostdinc dist-bzip2 check-news color-tests parallel-tests no-define silent-rules])
1414
1515 dnl versioning info for libtool
16 VARCONF_CURRENT=7
16 VARCONF_CURRENT=8
1717 VARCONF_REVISION=0
1818 VARCONF_AGE=0
1919 VARCONF_REQUIRES=""
3333 dnl Test for C++ Compiler
3434 AC_PROG_CXX
3535
36 debug_flags="-DNDEBUG"
3637 AC_ARG_ENABLE(debug,
37 [ --enable-debug enable debug information [default=no]],
38 [
39 if test "$enableval" = "yes"; then
40 CXXFLAGS="$CXXFLAGS -Wall -DDEBUG"
41 else
42 CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
43 fi
44 ],[
45 CXXFLAGS="$CXXFLAGS -Wall -DNDEBUG"
46 ]
38 [AS_HELP_STRING([--enable-debug],
39 [enable debug information [default=no]])],
40 [AS_IF([test "x$enable_debug" = xyes],
41 [debug_flags="-DDEBUG"])]
4742 )
4843
4944 AC_LANG(C++)
45
46 supports_visibility=no
47 AC_MSG_CHECKING([whether hidden visibility is supported])
48 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
49 void __attribute__((visibility ("hidden"))) bar (void) {}])],
50 [supports_visibility=yes])
51 AC_MSG_RESULT([$supports_visibility])
52 AS_IF([test "x$supports_visibility" = xyes],
53 [visibility_flags="-fvisibility=hidden -fvisibility-inlines-hidden"])
54
5055
5156 dnl Test for libsigc++
5257 PKG_CHECK_MODULES(SIGC, sigc++-2.0 >= $MIN_SIGC_VERSION,
6671 AC_SUBST(VARCONF_VERSION_INFO)
6772 AC_SUBST(VARCONF_LIB_SUFFIX)
6873 AC_SUBST(MIN_SIGC_VERSION)
74 AC_SUBST(AM_CXXFLAGS,
75 "-Wall $debug_flags -DBUILDING_VARCONF_DSO $visibility_flags")
6976
7077 dnl Generate files
7178 AC_CONFIG_FILES([
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
4343 CONFIG_HEADER = $(top_builddir)/config.h
4444 CONFIG_CLEAN_FILES =
4545 CONFIG_CLEAN_VPATH_FILES =
46 AM_V_GEN = $(am__v_GEN_@AM_V@)
47 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
48 am__v_GEN_0 = @echo " GEN " $@;
49 AM_V_at = $(am__v_at_@AM_V@)
50 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
51 am__v_at_0 = @
4652 SOURCES =
4753 DIST_SOURCES =
4854 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
8894 reldir="$$dir2"
8995 ACLOCAL = @ACLOCAL@
9096 AMTAR = @AMTAR@
97 AM_CXXFLAGS = @AM_CXXFLAGS@
98 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
9199 AR = @AR@
92100 AUTOCONF = @AUTOCONF@
93101 AUTOHEADER = @AUTOHEADER@
105113 CYGPATH_W = @CYGPATH_W@
106114 DEFS = @DEFS@
107115 DEPDIR = @DEPDIR@
116 DLLTOOL = @DLLTOOL@
108117 DSYMUTIL = @DSYMUTIL@
109118 DUMPBIN = @DUMPBIN@
110119 ECHO_C = @ECHO_C@
128137 LN_S = @LN_S@
129138 LTLIBOBJS = @LTLIBOBJS@
130139 MAKEINFO = @MAKEINFO@
140 MANIFEST_TOOL = @MANIFEST_TOOL@
131141 MIN_SIGC_VERSION = @MIN_SIGC_VERSION@
132142 MKDIR_P = @MKDIR_P@
133143 NM = @NM@
161171 abs_srcdir = @abs_srcdir@
162172 abs_top_builddir = @abs_top_builddir@
163173 abs_top_srcdir = @abs_top_srcdir@
174 ac_ct_AR = @ac_ct_AR@
164175 ac_ct_CC = @ac_ct_CC@
165176 ac_ct_CXX = @ac_ct_CXX@
166177 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
194205 libexecdir = @libexecdir@
195206 localedir = @localedir@
196207 localstatedir = @localstatedir@
197 lt_ECHO = @lt_ECHO@
198208 mandir = @mandir@
199209 mkdir_p = @mkdir_p@
200210 oldincludedir = @oldincludedir@
459469
460470 installcheck: installcheck-recursive
461471 install-strip:
462 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
463 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
464 `test -z '$(STRIP)' || \
465 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
472 if test -z '$(STRIP)'; then \
473 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
474 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
475 install; \
476 else \
477 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
478 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
479 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
480 fi
466481 mostlyclean-generic:
467482
468483 clean-generic:
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
4343 CONFIG_HEADER = $(top_builddir)/config.h
4444 CONFIG_CLEAN_FILES =
4545 CONFIG_CLEAN_VPATH_FILES =
46 AM_V_GEN = $(am__v_GEN_@AM_V@)
47 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
48 am__v_GEN_0 = @echo " GEN " $@;
49 AM_V_at = $(am__v_at_@AM_V@)
50 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
51 am__v_at_0 = @
4652 SOURCES =
4753 DIST_SOURCES =
4854 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
4955 ACLOCAL = @ACLOCAL@
5056 AMTAR = @AMTAR@
57 AM_CXXFLAGS = @AM_CXXFLAGS@
58 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
5159 AR = @AR@
5260 AUTOCONF = @AUTOCONF@
5361 AUTOHEADER = @AUTOHEADER@
6573 CYGPATH_W = @CYGPATH_W@
6674 DEFS = @DEFS@
6775 DEPDIR = @DEPDIR@
76 DLLTOOL = @DLLTOOL@
6877 DSYMUTIL = @DSYMUTIL@
6978 DUMPBIN = @DUMPBIN@
7079 ECHO_C = @ECHO_C@
8897 LN_S = @LN_S@
8998 LTLIBOBJS = @LTLIBOBJS@
9099 MAKEINFO = @MAKEINFO@
100 MANIFEST_TOOL = @MANIFEST_TOOL@
91101 MIN_SIGC_VERSION = @MIN_SIGC_VERSION@
92102 MKDIR_P = @MKDIR_P@
93103 NM = @NM@
121131 abs_srcdir = @abs_srcdir@
122132 abs_top_builddir = @abs_top_builddir@
123133 abs_top_srcdir = @abs_top_srcdir@
134 ac_ct_AR = @ac_ct_AR@
124135 ac_ct_CC = @ac_ct_CC@
125136 ac_ct_CXX = @ac_ct_CXX@
126137 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
154165 libexecdir = @libexecdir@
155166 localedir = @localedir@
156167 localstatedir = @localstatedir@
157 lt_ECHO = @lt_ECHO@
158168 mandir = @mandir@
159169 mkdir_p = @mkdir_p@
160170 oldincludedir = @oldincludedir@
261271
262272 installcheck: installcheck-am
263273 install-strip:
264 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
265 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
266 `test -z '$(STRIP)' || \
267 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
274 if test -z '$(STRIP)'; then \
275 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
276 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
277 install; \
278 else \
279 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
280 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
281 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
282 fi
268283 mostlyclean-generic:
269284
270285 clean-generic:
+2805
-1550
ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6b
0
1 # libtool (GNU libtool) 2.4.2
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
66 # This is free software; see the source for copying conditions. There is NO
77 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
88
3131 #
3232 # Provide generalized library-building support services.
3333 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
4549 #
4650 # MODE must be one of the following:
4751 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
5559 #
56 # MODE-ARGS vary depending on the MODE.
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
5762 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
5863 #
5964 # When reporting a bug, please describe a test case to reproduce it and
6065 # include the following information:
6166 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6b
68 # automake: $automake_version
69 # autoconf: $autoconf_version
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
7075 #
7176 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
79
80 PROGRAM=libtool
7481 PACKAGE=libtool
75 VERSION=2.2.6b
82 VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
7683 TIMESTAMP=""
77 package_revision=1.3017
84 package_revision=1.3337
7885
7986 # Be Bourne compatible
8087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9097 BIN_SH=xpg4; export BIN_SH # for Tru64
9198 DUALCASE=1; export DUALCASE # for MKS sh
9299
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
93108 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97109 lt_user_locale=
98110 lt_safe_locale=
99111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
106118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107119 fi"
108120 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
109124
110125 $lt_unset CDPATH
111126
112127
128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129 # is ksh but when the shell is invoked as "sh" and the current value of
130 # the _XPG environment variable is not equal to 1 (one), the special
131 # positional parameter $0, within a function call, is the name of the
132 # function.
133 progpath="$0"
113134
114135
115136
116137 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
122139 : ${MAKE="make"}
123140 : ${MKDIR="mkdir"}
124141 : ${MV="mv -f"}
125142 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128144 : ${Xsed="$SED -e 1s/^X//"}
129145
142158
143159 dirname="s,/[^/]*$,,"
144160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
145182
146183 # func_dirname_and_basename file append nondir_replacement
147184 # perform func_basename and func_dirname in a single function
157194 # those functions but instead duplicate the functionality here.
158195 func_dirname_and_basename ()
159196 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
232
233 # func_normal_abspath PATH
234 # Remove doubled-up and trailing slashes, "." path components,
235 # and cancel out any ".." path components in PATH after making
236 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238 func_normal_abspath ()
239 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
287 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
337 fi
338 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
166360 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
178370
179371 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182372 func_dirname_and_basename "$progpath"
183373 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187374
188375 # Make sure we have an absolute path for reexecution:
189376 case $progpath in
195382 ;;
196383 *)
197384 save_IFS="$IFS"
198 IFS=:
385 IFS=${PATH_SEPARATOR-:}
199386 for progdir in $PATH; do
200387 IFS="$save_IFS"
201388 test -x "$progdir/$progname" && break
213400
214401 # Same as above, but do not quote variable references.
215402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
216412
217413 # Re-`\' parameter expansions in output of double_quote_subst that were
218414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
242438 # name if it has been set yet.
243439 func_echo ()
244440 {
245 $ECHO "$progname${mode+: }$mode: $*"
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
246442 }
247443
248444 # func_verbose arg...
257453 :
258454 }
259455
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
260463 # func_error arg...
261464 # Echo program name prefixed message to standard error.
262465 func_error ()
263466 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
265468 }
266469
267470 # func_warning arg...
268471 # Echo program name prefixed warning message to standard error.
269472 func_warning ()
270473 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
272475
273476 # bash bug again:
274477 :
325528 case $my_directory_path in */*) ;; *) break ;; esac
326529
327530 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
329532 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
331534
332535 save_mkdir_p_IFS="$IFS"; IFS=':'
333536 for my_dir in $my_dir_list; do
377580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378581 fi
379582
380 $ECHO "X$my_tmpdir" | $Xsed
583 $ECHO "$my_tmpdir"
381584 }
382585
383586
391594 {
392595 case $1 in
393596 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
395598 *)
396599 func_quote_for_eval_unquoted_result="$1" ;;
397600 esac
418621 {
419622 case $1 in
420623 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
624 my_arg=`$ECHO "$1" | $SED \
422625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423626 *)
424627 my_arg="$1" ;;
487690 fi
488691 }
489692
490
491
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
492709
493710
494711 # func_version
495712 # Echo version message to standard output and exit.
496713 func_version ()
497714 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
499726 s/^# //
500727 s/^# *$//
501728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
508735 # Echo short help message to standard output and exit.
509736 func_usage ()
510737 {
511 $SED -n '/^# Usage:/,/# -h/ {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
512741 s/^# //
513742 s/^# *$//
514743 s/\$progname/'$progname'/
515744 p
516745 }' < "$progpath"
517 $ECHO
746 echo
518747 $ECHO "run \`$progname --help | more' for full usage"
519748 exit $?
520749 }
521750
522 # func_help
523 # Echo long help message to standard output and exit.
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
524754 func_help ()
525755 {
756 $opt_debug
757
526758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
527760 s/^# //
528761 s/^# *$//
529762 s*\$progname*'$progname'*
533766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534767 s*\$LD*'"$LD"'*
535768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
538771 p
539 }' < "$progpath"
540 exit $?
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
541781 }
542782
543783 # func_missing_arg argname
545785 # exit_cmd.
546786 func_missing_arg ()
547787 {
548 func_error "missing argument for $1"
788 $opt_debug
789
790 func_error "missing argument for $1."
549791 exit_cmd=exit
550792 }
551793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
552820 exit_cmd=:
553821
554822
555823
556824
557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
581825
582826 magic="%%%MAGIC variable%%%"
583827 magic_exe="%%%MAGIC EXE variable%%%"
584828
585829 # Global variables.
586 # $mode is unset
587830 nonopt=
588 execute_dlfiles=
589831 preserve_args=
590832 lo2o="s/\\.lo\$/.${objext}/"
591833 o2lo="s/\\.${objext}\$/.lo/"
592834 extracted_archives=
593835 extracted_serial=0
594836
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600837 # If this variable is set in any of the actions, the command in it
601838 # will be execed at the end. This prevents here-documents from being
602839 # left over by shells.
603840 exec_cmd=
604841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
605888 # func_fatal_configuration arg...
606889 # Echo program name prefixed message to standard error, followed by
607890 # a configuration failure hint, and exit.
635918 # Display the features supported by this script.
636919 func_features ()
637920 {
638 $ECHO "host: $host"
921 echo "host: $host"
639922 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
923 echo "enable shared libraries"
641924 else
642 $ECHO "disable shared libraries"
925 echo "disable shared libraries"
643926 fi
644927 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
928 echo "enable static libraries"
646929 else
647 $ECHO "disable static libraries"
930 echo "disable static libraries"
648931 fi
649932
650933 exit $?
689972 fi
690973 ;;
691974 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819975 }
820976
821977 # func_check_version_match
8541010 }
8551011
8561012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
1197 fi
1198
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
1219
1220
1221
8571222 ## ----------- ##
8581223 ## Main. ##
8591224 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
8881225
8891226 # func_lalib_p file
8901227 # True iff FILE is a libtool `.la' library or `.lo' object file.
9491286 # temporary ltwrapper_script.
9501287 func_ltwrapper_scriptname ()
9511288 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
9581292 }
9591293
9601294 # func_ltwrapper_p file
10001334 }
10011335
10021336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
10031368 # func_infer_tag arg
10041369 # Infer tagged configuration to use if any are available and
10051370 # if one wasn't chosen via the "--tag" command line option.
10121377 if test -n "$available_tags" && test -z "$tagname"; then
10131378 CC_quoted=
10141379 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1380 func_append_quoted CC_quoted "$arg"
10171381 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
10181384 case $@ in
10191385 # Blanks in the command may have been stripped by the calling shell,
10201386 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
10221389 # Blanks at the start of $base_compile will cause this to fail
10231390 # if we don't check for them as well.
10241391 *)
10291396 CC_quoted=
10301397 for arg in $CC; do
10311398 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1399 func_append_quoted CC_quoted "$arg"
10341400 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
10351403 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
10371406 # The compiler in the base compile command matches
10381407 # the one in the tagged configuration.
10391408 # Assume this is the tagged configuration we want.
10961465 }
10971466 }
10981467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
10991948 # func_mode_compile arg...
11001949 func_mode_compile ()
11011950 {
11361985 ;;
11371986
11381987 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1988 func_append pie_flag " $arg"
11401989 continue
11411990 ;;
11421991
11431992 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1993 func_append later " $arg"
11451994 continue
11461995 ;;
11471996
11622011 save_ifs="$IFS"; IFS=','
11632012 for arg in $args; do
11642013 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
2014 func_append_quoted lastarg "$arg"
11672015 done
11682016 IFS="$save_ifs"
11692017 func_stripname ' ' '' "$lastarg"
11702018 lastarg=$func_stripname_result
11712019
11722020 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
2021 func_append base_compile " $lastarg"
11742022 continue
11752023 ;;
11762024
11862034 esac # case $arg_mode
11872035
11882036 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
2037 func_append_quoted base_compile "$lastarg"
11912038 done # for arg
11922039
11932040 case $arg_mode in
12122059 *.[cCFSifmso] | \
12132060 *.ada | *.adb | *.ads | *.asm | \
12142061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
12162063 func_xform "$libobj"
12172064 libobj=$func_xform_result
12182065 ;;
12872134 # Calculate the filename of the output object if compiler does
12882135 # not support -o with -c
12892136 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
12912138 lockfile="$output_obj.lock"
12922139 else
12932140 output_obj=
13182165 $opt_dry_run || $RM $removelist
13192166 exit $EXIT_FAILURE
13202167 fi
1321 removelist="$removelist $output_obj"
2168 func_append removelist " $output_obj"
13222169 $ECHO "$srcfile" > "$lockfile"
13232170 fi
13242171
13252172 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
2173 func_append removelist " $lockfile"
13272174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
13282175
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
13322178 func_quote_for_eval "$srcfile"
13332179 qsrcfile=$func_quote_for_eval_result
13342180
13482194
13492195 if test -z "$output_obj"; then
13502196 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
2197 func_append command " -o $lobj"
13522198 fi
13532199
13542200 func_show_eval_locale "$command" \
13952241 command="$base_compile $qsrcfile $pic_flag"
13962242 fi
13972243 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
2244 func_append command " -o $obj"
13992245 fi
14002246
14012247 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
2248 func_append command "$suppress_output"
14032249 func_show_eval_locale "$command" \
14042250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
14052251
14442290 }
14452291
14462292 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
14482294 }
14492295
14502296 func_mode_help ()
14512297 {
14522298 # We need to display help for each of the modes.
1453 case $mode in
2299 case $opt_mode in
14542300 "")
14552301 # Generic help is extracted from the usage comments
14562302 # at the start of this file.
14812327
14822328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
14832329 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
14862332 -shared do not build a \`.o' file suitable for static linking
14872333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
14882335
14892336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
14902337 from the given SOURCEFILE.
15372384
15382385 The following components of INSTALL-COMMAND are treated specially:
15392386
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
15412388
15422389 The rest of the components are interpreted as arguments to that command (only
15432390 BSD-compatible install options are recognized)."
15572404
15582405 -all-static do not do any dynamic linking at all
15592406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2408 libraries must be found in the PATH setting at runtime)
15602409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
15612410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
15622411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
15852434 -version-info CURRENT[:REVISION[:AGE]]
15862435 specify library version info [each variable defaults to 0]
15872436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
15882442
15892443 All other options (arguments beginning with \`-') are ignored.
15902444
16182472 ;;
16192473
16202474 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
16222476 ;;
16232477 esac
16242478
1625 $ECHO
2479 echo
16262480 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
2481 }
2482
2483 # Now that we've collected a possible --mode arg, show help if necessary
2484 if $opt_help; then
2485 if test "$opt_help" = :; then
2486 func_mode_help
2487 else
2488 {
2489 func_help noexit
2490 for opt_mode in compile link execute install finish uninstall clean; do
2491 func_mode_help
2492 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2494 {
2495 func_help noexit
2496 for opt_mode in compile link execute install finish uninstall clean; do
2497 echo
2498 func_mode_help
2499 done
2500 } |
2501 sed '1d
2502 /^When reporting/,/^Report/{
2503 H
2504 d
2505 }
2506 $x
2507 /information about other modes/d
2508 /more detailed .*MODE/d
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2510 fi
2511 exit $?
2512 fi
16332513
16342514
16352515 # func_mode_execute arg...
16422522 func_fatal_help "you must specify a COMMAND"
16432523
16442524 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
2525 for file in $opt_dlopen; do
16462526 test -f "$file" \
16472527 || func_fatal_help "\`$file' is not a file"
16482528
16492529 dir=
16502530 case $file in
16512531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
16522535 # Check to see that this really is a libtool archive.
16532536 func_lalib_unsafe_p "$file" \
16542537 || func_fatal_help "\`$lib' is not a valid libtool archive"
16702553 dir="$func_dirname_result"
16712554
16722555 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
2556 func_append dir "/$objdir"
16742557 else
16752558 if test ! -f "$dir/$dlname"; then
16762559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
17112594 for file
17122595 do
17132596 case $file in
1714 -*) ;;
2597 -* | *.la | *.lo ) ;;
17152598 *)
17162599 # Do a test to see if this is really a libtool program.
17172600 if func_ltwrapper_script_p "$file"; then
17272610 ;;
17282611 esac
17292612 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
2613 func_append_quoted args "$file"
17322614 done
17332615
17342616 if test "X$opt_dry_run" = Xfalse; then
17532635 # Display what would be done.
17542636 if test -n "$shlibpath_var"; then
17552637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
2638 echo "export $shlibpath_var"
17572639 fi
17582640 $ECHO "$cmd$args"
17592641 exit $EXIT_SUCCESS
17602642 fi
17612643 }
17622644
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
17642646
17652647
17662648 # func_mode_finish arg...
17672649 func_mode_finish ()
17682650 {
17692651 $opt_debug
1770 libdirs="$nonopt"
2652 libs=
2653 libdirs=
17712654 admincmds=
17722655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
17732697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
17792698 for libdir in $libdirs; do
17802699 if test -n "$finish_cmds"; then
17812700 # Do each command in the finish commands.
17852704 if test -n "$finish_eval"; then
17862705 # Do the single finish_eval.
17872706 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
17892708 $cmds"
17902709 fi
17912710 done
17942713 # Exit here if they wanted silent mode.
17952714 $opt_silent && exit $EXIT_SUCCESS
17962715
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
18102760 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
18402761 exit $EXIT_SUCCESS
18412762 }
18422763
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
18442765
18452766
18462767 # func_mode_install arg...
18512772 # install_prog (especially on Windows NT).
18522773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
18532774 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
18552776 # Aesthetically quote it.
18562777 func_quote_for_eval "$nonopt"
18572778 install_prog="$func_quote_for_eval_result "
18652786 # The real first argument should be the name of the installation program.
18662787 # Aesthetically quote it.
18672788 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
2789 func_append install_prog "$func_quote_for_eval_result"
2790 install_shared_prog=$install_prog
2791 case " $install_prog " in
2792 *[\\\ /]cp\ *) install_cp=: ;;
2793 *) install_cp=false ;;
2794 esac
18692795
18702796 # We need to accept at least all the BSD install flags.
18712797 dest=
18752801 install_type=
18762802 isdir=no
18772803 stripme=
2804 no_mode=:
18782805 for arg
18792806 do
2807 arg2=
18802808 if test -n "$dest"; then
1881 files="$files $dest"
2809 func_append files " $dest"
18822810 dest=$arg
18832811 continue
18842812 fi
18862814 case $arg in
18872815 -d) isdir=yes ;;
18882816 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
18932820 ;;
18942821 -g | -m | -o)
18952822 prev=$arg
19032830 *)
19042831 # If the previous option needed an argument, then skip it.
19052832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2834 arg2=$install_override_mode
2835 no_mode=false
2836 fi
19062837 prev=
19072838 else
19082839 dest=$arg
19132844
19142845 # Aesthetically quote the argument.
19152846 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
2847 func_append install_prog " $func_quote_for_eval_result"
2848 if test -n "$arg2"; then
2849 func_quote_for_eval "$arg2"
2850 fi
2851 func_append install_shared_prog " $func_quote_for_eval_result"
19172852 done
19182853
19192854 test -z "$install_prog" && \
19212856
19222857 test -n "$prev" && \
19232858 func_fatal_help "the \`$prev' option requires an argument"
2859
2860 if test -n "$install_override_mode" && $no_mode; then
2861 if $install_cp; then :; else
2862 func_quote_for_eval "$install_override_mode"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2864 fi
2865 fi
19242866
19252867 if test -z "$files"; then
19262868 if test -z "$dest"; then
19762918 case $file in
19772919 *.$libext)
19782920 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
2921 func_append staticlibs " $file"
19802922 ;;
19812923
19822924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
19832928 # Check to see that this really is a libtool archive.
19842929 func_lalib_unsafe_p "$file" \
19852930 || func_fatal_help "\`$file' is not a valid libtool archive"
19932938 if test "X$destdir" = "X$libdir"; then
19942939 case "$current_libdirs " in
19952940 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
2941 *) func_append current_libdirs " $libdir" ;;
19972942 esac
19982943 else
19992944 # Note the libdir as a future libdir.
20002945 case "$future_libdirs " in
20012946 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2947 *) func_append future_libdirs " $libdir" ;;
20032948 esac
20042949 fi
20052950
20062951 func_dirname "$file" "/" ""
20072952 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2953 func_append dir "$objdir"
20092954
20102955 if test -n "$relink_command"; then
20112956 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
20132958
20142959 # Don't allow the user to place us outside of our expected
20152960 # location b/c this prevents finding dependent libraries that
20222967
20232968 if test -n "$inst_prefix_dir"; then
20242969 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
20262971 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
20282973 fi
20292974
20302975 func_warning "relinking \`$file'"
20422987 test -n "$relink_command" && srcname="$realname"T
20432988
20442989 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
20462991 'exit $?'
20472992 tstripme="$stripme"
20482993 case $host_os in
20823027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
20833028
20843029 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
20863031 ;;
20873032
20883033 *.lo)
21823127 if test -f "$lib"; then
21833128 func_source "$lib"
21843129 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
21863131 if test -n "$libdir" && test ! -f "$libfile"; then
21873132 func_warning "\`$lib' has not been installed in \`$libdir'"
21883133 finalize=no
22013146 file="$func_basename_result"
22023147 outputname="$tmpdir/$file"
22033148 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
22053150
22063151 $opt_silent || {
22073152 func_quote_for_expand "$relink_command"
22203165 }
22213166 else
22223167 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
22243169 fi
22253170 fi
22263171
22563201
22573202 # Set up the ranlib parameters.
22583203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
22593206
22603207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
22613208
22623209 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
22643211 fi
22653212
22663213 # Do each command in the postinstall commands.
22793226 fi
22803227 }
22813228
2282 test "$mode" = install && func_mode_install ${1+"$@"}
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
22833230
22843231
22853232 # func_generate_dlsyms outputname originator pic_p
23223269 extern \"C\" {
23233270 #endif
23243271
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3274 #endif
3275
3276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
23253288 /* External symbol declarations for the compiler. */\
23263289 "
23273290
23313294 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
23323295
23333296 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
23353298 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
23383302 done
23393303
23403304 if test -n "$exclude_expsyms"; then
23703334 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
23713335 eval '$MV "$nlist"T "$nlist"'
23723336 case $host in
2373 *cygwin | *mingw* | *cegcc* )
3337 *cygwin* | *mingw* | *cegcc* )
23743338 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
23753339 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
23763340 ;;
23833347 func_verbose "extracting global C symbols from \`$dlprefile'"
23843348 func_basename "$dlprefile"
23853349 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
23903396 done
23913397
23923398 $opt_dry_run || {
24143420 if test -f "$nlist"S; then
24153421 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
24163422 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
24183424 fi
24193425
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
3426 echo >> "$output_objdir/$my_dlsyms" "\
24213427
24223428 /* The mapping between symbol names and symbols. */
24233429 typedef struct {
24243430 const char *name;
24253431 void *address;
24263432 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
3433 extern LT_DLSYM_CONST lt_dlsymlist
24453434 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
3435 LT_DLSYM_CONST lt_dlsymlist
24473436 lt_${my_prefix}_LTX_preloaded_symbols[] =
24483437 {\
24493438 { \"$my_originator\", (void *) 0 },"
24563445 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
24573446 ;;
24583447 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
3448 echo >> "$output_objdir/$my_dlsyms" "\
24603449 {0, (void *) 0}
24613450 };
24623451
24833472 # linked before any other PIC object. But we must not use
24843473 # pic_flag when linking with -static. The problem exists in
24853474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
24873476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
24883477 *-*-hpux*)
24893478 pic_flag_for_symtable=" $pic_flag" ;;
24993488 for arg in $LTCFLAGS; do
25003489 case $arg in
25013490 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
3491 *) func_append symtab_cflags " $arg" ;;
25033492 esac
25043493 done
25053494
25143503 case $host in
25153504 *cygwin* | *mingw* | *cegcc* )
25163505 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
25193508 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25223511 fi
25233512 ;;
25243513 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25273516 ;;
25283517 esac
25293518 ;;
25373526 # really was required.
25383527
25393528 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
25423531 fi
25433532 }
25443533
25483537 # Need a lot of goo to handle *both* DLLs and import libs
25493538 # Has to be a shell function in order to 'eat' the argument
25503539 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
25513541 func_win32_libid ()
25523542 {
25533543 $opt_debug
25583548 win32_libid_type="x86 archive import"
25593549 ;;
25603550 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
25613552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
3553 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
25643556 $SED -n -e '
25653557 1,100{
25663558 / I /{
25893581 $ECHO "$win32_libid_type"
25903582 }
25913583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
25923709
25933710
25943711 # func_extract_an_archive dir oldlib
25973714 $opt_debug
25983715 f_ex_an_ar_dir="$1"; shift
25993716 f_ex_an_ar_oldlib="$1"
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3717 if test "$lock_old_archive_extraction" = yes; then
3718 lockfile=$f_ex_an_ar_oldlib.lock
3719 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3720 func_echo "Waiting for $lockfile to be removed"
3721 sleep 2
3722 done
3723 fi
3724 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3725 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
3727 $opt_dry_run || rm -f "$lockfile"
3728 fi
26013729 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
26023730 :
26033731 else
26683796 darwin_file=
26693797 darwin_files=
26703798 for darwin_file in $darwin_filelist; do
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
26723800 $LIPO -create -output "$darwin_file" $darwin_files
26733801 done # $darwin_filelist
26743802 $RM -rf unfat-$$
26833811 func_extract_an_archive "$my_xdir" "$my_xabs"
26843812 ;;
26853813 esac
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
26873815 done
26883816
26893817 func_extract_archives_result="$my_oldobjs"
26903818 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
29263819
29273820
29283821 # func_emit_wrapper [arg=no]
29413834 # behavior.
29423835 func_emit_wrapper ()
29433836 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2953 }
2954
2955
2956 # func_to_host_path arg
3837 func_emit_wrapper_arg1=${1-no}
3838
3839 $ECHO "\
3840 #! $SHELL
3841
3842 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
29573844 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
29733847 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3848 # This wrapper script should never be moved out of the build directory.
3849 # If it is, it will not operate correctly.
3850
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 sed_quote_subst='$sed_quote_subst'
3854
3855 # Be Bourne compatible
3856 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3857 emulate sh
3858 NULLCMD=:
3859 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3860 # is contrary to our usage. Disable this feature.
3861 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 setopt NO_GLOB_SUBST
3863 else
3864 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3865 fi
3866 BIN_SH=xpg4; export BIN_SH # for Tru64
3867 DUALCASE=1; export DUALCASE # for MKS sh
3868
3869 # The HP-UX ksh and POSIX shell print the target directory to stdout
3870 # if CDPATH is set.
3871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3872
3873 relink_command=\"$relink_command\"
3874
3875 # This environment variable determines our operation mode.
3876 if test \"\$libtool_install_magic\" = \"$magic\"; then
3877 # install mode needs the following variables:
3878 generated_by_libtool_version='$macro_version'
3879 notinst_deplibs='$notinst_deplibs'
3880 else
3881 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3882 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3883 file=\"\$0\""
3884
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3886 $ECHO "\
3887
3888 # A function that is used when there is no print builtin or printf.
3889 func_fallback_echo ()
3890 {
3891 eval 'cat <<_LTECHO_EOF
3892 \$1
3893 _LTECHO_EOF'
3894 }
3895 ECHO=\"$qECHO\"
3896 fi
3897
3898 # Very basic option parsing. These options are (a) specific to
3899 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
3901 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
3903 # this pattern).
3904 #
3905 # There are only two supported options: --lt-debug and
3906 # --lt-dump-script. There is, deliberately, no --lt-help.
3907 #
3908 # The first argument to this parsing function should be the
3909 # script's $0 value, followed by "$@".
3910 lt_option_debug=
3911 func_parse_lt_options ()
3912 {
3913 lt_script_arg0=\$0
3914 shift
3915 for lt_opt
3916 do
3917 case \"\$lt_opt\" in
3918 --lt-debug) lt_option_debug=1 ;;
3919 --lt-dump-script)
3920 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3921 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3922 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3923 cat \"\$lt_dump_D/\$lt_dump_F\"
3924 exit 0
3925 ;;
3926 --lt-*)
3927 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3928 exit 1
3929 ;;
3930 esac
3931 done
3932
3933 # Print the debug banner immediately:
3934 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3936 fi
3937 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
3942 {
3943 lt_dump_args_N=1;
3944 for lt_arg
3945 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3947 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3948 done
3949 }
3950
3951 # Core function for launching the target application
3952 func_exec_program_core ()
3953 {
3954 "
3955 case $host in
3956 # Backslashes separate directories on plain windows
3957 *-*-mingw | *-*-os2* | *-cegcc*)
3958 $ECHO "\
3959 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3961 func_lt_dump_args \${1+\"\$@\"} 1>&2
3962 fi
3963 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3964 "
3965 ;;
3966
3967 *)
3968 $ECHO "\
3969 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3971 func_lt_dump_args \${1+\"\$@\"} 1>&2
3972 fi
3973 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3974 "
3975 ;;
3976 esac
3977 $ECHO "\
3978 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3979 exit 1
3980 }
3981
3982 # A function to encapsulate launching the target application
3983 # Strips options in the --lt-* namespace from \$@ and
3984 # launches target application with the remaining arguments.
3985 func_exec_program ()
3986 {
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
3998 func_exec_program_core \${1+\"\$@\"}
3999 }
4000
4001 # Parse options
4002 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4003
4004 # Find the directory that this script lives in.
4005 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4006 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4007
4008 # Follow symbolic links until we get to the real thisdir.
4009 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4010 while test -n \"\$file\"; do
4011 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4012
4013 # If there was a directory component, then change thisdir.
4014 if test \"x\$destdir\" != \"x\$file\"; then
4015 case \"\$destdir\" in
4016 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 *) thisdir=\"\$thisdir/\$destdir\" ;;
4018 esac
4019 fi
4020
4021 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4022 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4023 done
4024
4025 # Usually 'no', except on cygwin/mingw when embedded into
4026 # the cwrapper.
4027 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4028 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4029 # special case for '.'
4030 if test \"\$thisdir\" = \".\"; then
4031 thisdir=\`pwd\`
4032 fi
4033 # remove .libs from thisdir
4034 case \"\$thisdir\" in
4035 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4036 $objdir ) thisdir=. ;;
30244037 esac
30254038 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
4039
4040 # Try to get the absolute directory name.
4041 absdir=\`cd \"\$thisdir\" && pwd\`
4042 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4043 "
4044
4045 if test "$fast_install" = yes; then
4046 $ECHO "\
4047 program=lt-'$outputname'$exeext
4048 progdir=\"\$thisdir/$objdir\"
4049
4050 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4053
4054 file=\"\$\$-\$program\"
4055
4056 if test ! -d \"\$progdir\"; then
4057 $MKDIR \"\$progdir\"
4058 else
4059 $RM \"\$progdir/\$file\"
4060 fi"
4061
4062 $ECHO "\
4063
4064 # relink executable if necessary
4065 if test -n \"\$relink_command\"; then
4066 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4067 else
4068 $ECHO \"\$relink_command_output\" >&2
4069 $RM \"\$progdir/\$file\"
4070 exit 1
4071 fi
4072 fi
4073
4074 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4075 { $RM \"\$progdir/\$program\";
4076 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4077 $RM \"\$progdir/\$file\"
4078 fi"
4079 else
4080 $ECHO "\
4081 program='$outputname'
4082 progdir=\"\$thisdir/$objdir\"
4083 "
4084 fi
4085
4086 $ECHO "\
4087
4088 if test -f \"\$progdir/\$program\"; then"
4089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
4102 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4104 $ECHO "\
4105 # Add our own library path to $shlibpath_var
4106 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4107
4108 # Some systems cannot cope with colon-terminated $shlibpath_var
4109 # The second colon is a workaround for a bug in BeOS R4 sed
4110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4111
4112 export $shlibpath_var
4113 "
4114 fi
4115
4116 $ECHO "\
4117 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4118 # Run the actual program with our arguments.
4119 func_exec_program \${1+\"\$@\"}
4120 fi
4121 else
4122 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4124 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4125 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4126 exit 1
31234127 fi
3124 }
3125 # end: func_to_host_pathlist
4128 fi\
4129 "
4130 }
4131
31264132
31274133 # func_emit_cwrapperexe_src
31284134 # emit the source code for a wrapper executable on stdout
31404146
31414147 This wrapper executable should never be moved out of the build directory.
31424148 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
31474149 */
31484150 EOF
31494151 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
31504155 #include <stdio.h>
31514156 #include <stdlib.h>
31524157 #ifdef _MSC_VER
31534158 # include <direct.h>
31544159 # include <process.h>
31554160 # include <io.h>
3156 # define setmode _setmode
31574161 #else
31584162 # include <unistd.h>
31594163 # include <stdint.h>
31604164 # ifdef __CYGWIN__
31614165 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
31684166 # endif
31694167 #endif
31704168 #include <malloc.h>
31764174 #include <fcntl.h>
31774175 #include <sys/stat.h>
31784176
4177 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
4179 # ifdef __STRICT_ANSI__
4180 int _putenv (const char *);
4181 # endif
4182 #elif defined(__CYGWIN__)
4183 # ifdef __STRICT_ANSI__
4184 char *realpath (const char *, char *);
4185 int putenv (char *);
4186 int setenv (const char *, const char *, int);
4187 # endif
4188 /* #elif defined (other platforms) ... */
4189 #endif
4190
4191 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
4193 # define setmode _setmode
4194 # define stat _stat
4195 # define chmod _chmod
4196 # define getcwd _getcwd
4197 # define putenv _putenv
4198 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
4204 # define setmode _setmode
4205 # define stat _stat
4206 # define chmod _chmod
4207 # define getcwd _getcwd
4208 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
4210 # define HAVE_SETENV
4211 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
4213 #endif
4214
31794215 #if defined(PATH_MAX)
31804216 # define LT_PATHMAX PATH_MAX
31814217 #elif defined(MAXPATHLEN)
31914227 # define S_IXGRP 0
31924228 #endif
31934229
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
4230 /* path handling portability macros */
32024231 #ifndef DIR_SEPARATOR
32034232 # define DIR_SEPARATOR '/'
32044233 # define PATH_SEPARATOR ':'
32294258 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
32304259 #endif /* PATH_SEPARATOR_2 */
32314260
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
32364261 #ifndef FOPEN_WB
32374262 # define FOPEN_WB "w"
32384263 #endif
32454270 if (stale) { free ((void *) stale); stale = 0; } \
32464271 } while (0)
32474272
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
32594275 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
4276 static int lt_debug = 0;
32614277 #endif
32624278
3263 const char *program_name = NULL;
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
32644280
32654281 void *xmalloc (size_t num);
32664282 char *xstrdup (const char *string);
32704286 int make_executable (const char *path);
32714287 int check_executable (const char *path);
32724288 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
4289 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4290 void lt_fatal (const char *file, int line, const char *message, ...);
4291 static const char *nonnull (const char *s);
4292 static const char *nonempty (const char *s);
32744293 void lt_setenv (const char *name, const char *value);
32754294 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
32804295 void lt_update_exe_path (const char *name, const char *value);
32814296 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
32844299 EOF
32854300
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
32904301 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
4302 volatile const char * MAGIC_EXE = "$magic_exe";
33014303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
33024304 EOF
33034305
33044306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
4307 func_to_host_path "$temp_rpath"
33064308 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
33084310 EOF
33094311 else
33104312 cat <<"EOF"
33134315 fi
33144316
33154317 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
4318 func_to_host_path "$dllsearchpath:"
33174319 cat <<EOF
33184320 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
33204322 EOF
33214323 else
33224324 cat <<"EOF"
33394341 cat <<"EOF"
33404342
33414343 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
4344
33454345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
33474346 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
33604348
33614349 int
33624350 main (int argc, char *argv[])
33734361 int i;
33744362
33754363 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
4364 newargz = XMALLOC (char *, argc + 1);
4365
4366 /* very simple arg parsing; don't want to rely on getopt
4367 * also, copy all non cwrapper options to newargz, except
4368 * argz[0], which is handled differently
4369 */
4370 newargc=0;
33804371 for (i = 1; i < argc; i++)
33814372 {
33824373 if (strcmp (argv[i], dumpscript_opt) == 0)
33904381 esac
33914382
33924383 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
4384 lt_dump_script (stdout);
33954385 return 0;
33964386 }
4387 if (strcmp (argv[i], debug_opt) == 0)
4388 {
4389 lt_debug = 1;
4390 continue;
4391 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4393 {
4394 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4395 namespace, but it is not one of the ones we know about and
4396 have already dealt with, above (inluding dump-script), then
4397 report an error. Otherwise, targets might begin to believe
4398 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4399 namespace. The first time any user complains about this, we'll
4400 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4401 or a configure.ac-settable value.
4402 */
4403 lt_fatal (__FILE__, __LINE__,
4404 "unrecognized %s option: '%s'",
4405 ltwrapper_option_prefix, argv[i]);
4406 }
4407 /* otherwise ... */
4408 newargz[++newargc] = xstrdup (argv[i]);
33974409 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
4410 newargz[++newargc] = NULL;
4411
4412 EOF
4413 cat <<EOF
4414 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4416 EOF
4417 cat <<"EOF"
4418 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4419 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4420
34004421 tmp_pathspec = find_executable (argv[0]);
34014422 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
4423 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4424 lt_debugprintf (__FILE__, __LINE__,
4425 "(main) found exe (before symlink chase) at: %s\n",
4426 tmp_pathspec);
34054427
34064428 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
34094432 XFREE (tmp_pathspec);
34104433
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
34124435 strendzap (actual_cwrapper_path, actual_cwrapper_name);
34134436
34144437 /* wrapper name transforms */
34264449 target_name = tmp_pathspec;
34274450 tmp_pathspec = 0;
34284451
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
34314455 EOF
34324456
34334457 cat <<EOF
34774501
34784502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
34794503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
34804509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
35514513 for (i = 0; i < newargc; i++)
35524514 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
35544517 }
35554518
35564519 EOF
35594522 mingw*)
35604523 cat <<"EOF"
35614524 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
35624526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
35634527 if (rval == -1)
35644528 {
35654529 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
35674533 return 127;
35684534 }
35694535 return rval;
35854551 {
35864552 void *p = (void *) malloc (num);
35874553 if (!p)
3588 lt_fatal ("Memory exhausted");
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
35894555
35904556 return p;
35914557 }
36194585 {
36204586 struct stat st;
36214587
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
36244590 if ((!path) || (!*path))
36254591 return 0;
36264592
36374603 int rval = 0;
36384604 struct stat st;
36394605
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
36424608 if ((!path) || (!*path))
36434609 return 0;
36444610
36644630 int tmp_len;
36654631 char *concat_name;
36664632
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
36694635
36704636 if ((wrapper == NULL) || (*wrapper == '\0'))
36714637 return NULL;
37184684 {
37194685 /* empty path: current directory */
37204686 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
37224689 tmp_len = strlen (tmp);
37234690 concat_name =
37244691 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37434710 }
37444711 /* Relative path | not found in path: prepend cwd */
37454712 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
37474715 tmp_len = strlen (tmp);
37484716 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37494717 memcpy (concat_name, tmp, tmp_len);
37694737 int has_symlinks = 0;
37704738 while (strlen (tmp_pathspec) && !has_symlinks)
37714739 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
37744743 if (lstat (tmp_pathspec, &s) == 0)
37754744 {
37764745 if (S_ISLNK (s.st_mode) != 0)
37924761 }
37934762 else
37944763 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
37974767 }
37984768 }
37994769 XFREE (tmp_pathspec);
38064776 tmp_pathspec = realpath (pathspec, buf);
38074777 if (tmp_pathspec == 0)
38084778 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
38104781 }
38114782 return xstrdup (tmp_pathspec);
38124783 #endif
38324803 return str;
38334804 }
38344805
4806 void
4807 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4808 {
4809 va_list args;
4810 if (lt_debug)
4811 {
4812 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4813 va_start (args, fmt);
4814 (void) vfprintf (stderr, fmt, args);
4815 va_end (args);
4816 }
4817 }
4818
38354819 static void
3836 lt_error_core (int exit_status, const char *mode,
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
38374822 const char *message, va_list ap)
38384823 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
38404825 vfprintf (stderr, message, ap);
38414826 fprintf (stderr, ".\n");
38424827
38454830 }
38464831
38474832 void
3848 lt_fatal (const char *message, ...)
4833 lt_fatal (const char *file, int line, const char *message, ...)
38494834 {
38504835 va_list ap;
38514836 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
38534838 va_end (ap);
4839 }
4840
4841 static const char *
4842 nonnull (const char *s)
4843 {
4844 return s ? s : "(null)";
4845 }
4846
4847 static const char *
4848 nonempty (const char *s)
4849 {
4850 return (s && !*s) ? "(empty)" : nonnull (s);
38544851 }
38554852
38564853 void
38574854 lt_setenv (const char *name, const char *value)
38584855 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
38624859 {
38634860 #ifdef HAVE_SETENV
38644861 /* always make a copy, for consistency with !HAVE_SETENV */
39034900 return new_value;
39044901 }
39054902
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
39894903 void
39904904 lt_update_exe_path (const char *name, const char *value)
39914905 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
39954909
39964910 if (name && *name && value && *value)
39974911 {
40104924 void
40114925 lt_update_lib_path (const char *name, const char *value)
40124926 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
40164930
40174931 if (name && *name && value && *value)
40184932 {
40224936 }
40234937 }
40244938
4025
40264939 EOF
4940 case $host_os in
4941 mingw*)
4942 cat <<"EOF"
4943
4944 /* Prepares an argument vector before calling spawn().
4945 Note that spawn() does not by itself call the command interpreter
4946 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4947 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4948 GetVersionEx(&v);
4949 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4950 }) ? "cmd.exe" : "command.com").
4951 Instead it simply concatenates the arguments, separated by ' ', and calls
4952 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4953 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4954 special way:
4955 - Space and tab are interpreted as delimiters. They are not treated as
4956 delimiters if they are surrounded by double quotes: "...".
4957 - Unescaped double quotes are removed from the input. Their only effect is
4958 that within double quotes, space and tab are treated like normal
4959 characters.
4960 - Backslashes not followed by double quotes are not special.
4961 - But 2*n+1 backslashes followed by a double quote become
4962 n backslashes followed by a double quote (n >= 0):
4963 \" -> "
4964 \\\" -> \"
4965 \\\\\" -> \\"
4966 */
4967 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4968 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4969 char **
4970 prepare_spawn (char **argv)
4971 {
4972 size_t argc;
4973 char **new_argv;
4974 size_t i;
4975
4976 /* Count number of arguments. */
4977 for (argc = 0; argv[argc] != NULL; argc++)
4978 ;
4979
4980 /* Allocate new argument vector. */
4981 new_argv = XMALLOC (char *, argc + 1);
4982
4983 /* Put quoted arguments into the new argument vector. */
4984 for (i = 0; i < argc; i++)
4985 {
4986 const char *string = argv[i];
4987
4988 if (string[0] == '\0')
4989 new_argv[i] = xstrdup ("\"\"");
4990 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4991 {
4992 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4993 size_t length;
4994 unsigned int backslashes;
4995 const char *s;
4996 char *quoted_string;
4997 char *p;
4998
4999 length = 0;
5000 backslashes = 0;
5001 if (quote_around)
5002 length++;
5003 for (s = string; *s != '\0'; s++)
5004 {
5005 char c = *s;
5006 if (c == '"')
5007 length += backslashes + 1;
5008 length++;
5009 if (c == '\\')
5010 backslashes++;
5011 else
5012 backslashes = 0;
5013 }
5014 if (quote_around)
5015 length += backslashes + 1;
5016
5017 quoted_string = XMALLOC (char, length + 1);
5018
5019 p = quoted_string;
5020 backslashes = 0;
5021 if (quote_around)
5022 *p++ = '"';
5023 for (s = string; *s != '\0'; s++)
5024 {
5025 char c = *s;
5026 if (c == '"')
5027 {
5028 unsigned int j;
5029 for (j = backslashes + 1; j > 0; j--)
5030 *p++ = '\\';
5031 }
5032 *p++ = c;
5033 if (c == '\\')
5034 backslashes++;
5035 else
5036 backslashes = 0;
5037 }
5038 if (quote_around)
5039 {
5040 unsigned int j;
5041 for (j = backslashes; j > 0; j--)
5042 *p++ = '\\';
5043 *p++ = '"';
5044 }
5045 *p = '\0';
5046
5047 new_argv[i] = quoted_string;
5048 }
5049 else
5050 new_argv[i] = (char *) string;
5051 }
5052 new_argv[argc] = NULL;
5053
5054 return new_argv;
5055 }
5056 EOF
5057 ;;
5058 esac
5059
5060 cat <<"EOF"
5061 void lt_dump_script (FILE* f)
5062 {
5063 EOF
5064 func_emit_wrapper yes |
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
5074 cat <<"EOF"
5075 }
5076 EOF
40275077 }
40285078 # end: func_emit_cwrapperexe_src
5079
5080 # func_win32_import_lib_p ARG
5081 # True if ARG is an import lib, as indicated by $file_magic_cmd
5082 func_win32_import_lib_p ()
5083 {
5084 $opt_debug
5085 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5086 *import*) : ;;
5087 *) false ;;
5088 esac
5089 }
40295090
40305091 # func_mode_link arg...
40315092 func_mode_link ()
40715132 new_inherited_linker_flags=
40725133
40735134 avoid_version=no
5135 bindir=
40745136 dlfiles=
40755137 dlprefiles=
40765138 dlself=no
41635225 esac
41645226
41655227 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
41665233 dlfiles|dlprefiles)
41675234 if test "$preload" = no; then
41685235 # Add the symbol object into the linking commands.
41945261 ;;
41955262 *)
41965263 if test "$prev" = dlfiles; then
4197 dlfiles="$dlfiles $arg"
5264 func_append dlfiles " $arg"
41985265 else
4199 dlprefiles="$dlprefiles $arg"
5266 func_append dlprefiles " $arg"
42005267 fi
42015268 prev=
42025269 continue
42205287 *-*-darwin*)
42215288 case "$deplibs " in
42225289 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
42245291 ;;
42255292 esac
42265293 ;;
42395306 moreargs=
42405307 for fil in `cat "$save_arg"`
42415308 do
4242 # moreargs="$moreargs $fil"
5309 # func_append moreargs " $fil"
42435310 arg=$fil
42445311 # A libtool-controlled object.
42455312
42685335
42695336 if test "$prev" = dlfiles; then
42705337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
5338 func_append dlfiles " $pic_object"
42725339 prev=
42735340 continue
42745341 else
42805347 # CHECK ME: I think I busted this. -Ossama
42815348 if test "$prev" = dlprefiles; then
42825349 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
5350 func_append dlprefiles " $pic_object"
42845351 prev=
42855352 fi
42865353
43505417 if test "$prev" = rpath; then
43515418 case "$rpath " in
43525419 *" $arg "*) ;;
4353 *) rpath="$rpath $arg" ;;
5420 *) func_append rpath " $arg" ;;
43545421 esac
43555422 else
43565423 case "$xrpath " in
43575424 *" $arg "*) ;;
4358 *) xrpath="$xrpath $arg" ;;
5425 *) func_append xrpath " $arg" ;;
43595426 esac
43605427 fi
43615428 prev=
43675434 continue
43685435 ;;
43695436 weak)
4370 weak_libs="$weak_libs $arg"
5437 func_append weak_libs " $arg"
43715438 prev=
43725439 continue
43735440 ;;
43745441 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
43775444 prev=
43785445 func_append compile_command " $qarg"
43795446 func_append finalize_command " $qarg"
43805447 continue
43815448 ;;
43825449 xcompiler)
4383 compiler_flags="$compiler_flags $qarg"
5450 func_append compiler_flags " $qarg"
43845451 prev=
43855452 func_append compile_command " $qarg"
43865453 func_append finalize_command " $qarg"
43875454 continue
43885455 ;;
43895456 xlinker)
4390 linker_flags="$linker_flags $qarg"
4391 compiler_flags="$compiler_flags $wl$qarg"
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
43925459 prev=
43935460 func_append compile_command " $wl$qarg"
43945461 func_append finalize_command " $wl$qarg"
44245491 continue
44255492 ;;
44265493
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
44275499 -dlopen)
44285500 prev=dlfiles
44295501 continue
44745546 ;;
44755547
44765548 -L*)
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
44805551 if test "$#" -gt 0; then
44815552 func_fatal_error "require no space between \`-L' and \`$1'"
44825553 else
44835554 func_fatal_error "need path for \`-L' option"
44845555 fi
44855556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
44865559 # We need an absolute path.
44875560 case $dir in
44885561 [\\/]* | [A-Za-z]:[\\/]*) ;;
44945567 ;;
44955568 esac
44965569 case "$deplibs " in
4497 *" -L$dir "*) ;;
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
44985573 *)
4499 deplibs="$deplibs -L$dir"
4500 lib_search_path="$lib_search_path $dir"
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
45015580 ;;
45025581 esac
45035582 case $host in
45045583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
45065585 case :$dllsearchpath: in
45075586 *":$dir:"*) ;;
45085587 ::) dllsearchpath=$dir;;
4509 *) dllsearchpath="$dllsearchpath:$dir";;
5588 *) func_append dllsearchpath ":$dir";;
45105589 esac
45115590 case :$dllsearchpath: in
45125591 *":$testbindir:"*) ;;
45135592 ::) dllsearchpath=$testbindir;;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
5593 *) func_append dllsearchpath ":$testbindir";;
45155594 esac
45165595 ;;
45175596 esac
45215600 -l*)
45225601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
45235602 case $host in
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
45255604 # These systems don't actually have a C or math library (as such)
45265605 continue
45275606 ;;
45355614 ;;
45365615 *-*-rhapsody* | *-*-darwin1.[012])
45375616 # Rhapsody C and math libraries are in the System framework
4538 deplibs="$deplibs System.ltframework"
5617 func_append deplibs " System.ltframework"
45395618 continue
45405619 ;;
45415620 *-*-sco3.2v5* | *-*-sco5v6*)
45555634 ;;
45565635 esac
45575636 fi
4558 deplibs="$deplibs $arg"
5637 func_append deplibs " $arg"
45595638 continue
45605639 ;;
45615640
45675646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
45685647 # classes, name mangling, and exception handling.
45695648 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
45725651 func_append compile_command " $arg"
45735652 func_append finalize_command " $arg"
45745653 prev=xcompiler
45755654 continue
45765655 ;;
45775656
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
45805660 func_append compile_command " $arg"
45815661 func_append finalize_command " $arg"
45825662 case "$new_inherited_linker_flags " in
45835663 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
45855665 esac
45865666 continue
45875667 ;;
46485728 # We need an absolute path.
46495729 case $dir in
46505730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
46515735 *)
46525736 func_fatal_error "only absolute run-paths are allowed"
46535737 ;;
46545738 esac
46555739 case "$xrpath " in
46565740 *" $dir "*) ;;
4657 *) xrpath="$xrpath $dir" ;;
5741 *) func_append xrpath " $dir" ;;
46585742 esac
46595743 continue
46605744 ;;
47075791 for flag in $args; do
47085792 IFS="$save_ifs"
47095793 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
47125796 done
47135797 IFS="$save_ifs"
47145798 func_stripname ' ' '' "$arg"
47235807 for flag in $args; do
47245808 IFS="$save_ifs"
47255809 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
47295813 done
47305814 IFS="$save_ifs"
47315815 func_stripname ' ' '' "$arg"
47535837 arg="$func_quote_for_eval_result"
47545838 ;;
47555839
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
5840 # Flags to be passed through unchanged, with rationale:
5841 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5842 # -r[0-9][0-9]* specify processor for the SGI compiler
5843 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5844 # +DA*, +DD* enable 64-bit mode for the HP compiler
5845 # -q* compiler args for the IBM compiler
5846 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5847 # -F/path path to uninstalled frameworks, gcc on darwin
5848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5849 # @file GCC response files
5850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
47665853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
47685856 func_quote_for_eval "$arg"
47695857 arg="$func_quote_for_eval_result"
47705858 func_append compile_command " $arg"
47715859 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
5860 func_append compiler_flags " $arg"
47735861 continue
47745862 ;;
47755863
47815869
47825870 *.$objext)
47835871 # A standard object.
4784 objs="$objs $arg"
5872 func_append objs " $arg"
47855873 ;;
47865874
47875875 *.lo)
48125900
48135901 if test "$prev" = dlfiles; then
48145902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4815 dlfiles="$dlfiles $pic_object"
5903 func_append dlfiles " $pic_object"
48165904 prev=
48175905 continue
48185906 else
48245912 # CHECK ME: I think I busted this. -Ossama
48255913 if test "$prev" = dlprefiles; then
48265914 # Preload the old-style object.
4827 dlprefiles="$dlprefiles $pic_object"
5915 func_append dlprefiles " $pic_object"
48285916 prev=
48295917 fi
48305918
48695957
48705958 *.$libext)
48715959 # An archive.
4872 deplibs="$deplibs $arg"
4873 old_deplibs="$old_deplibs $arg"
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
48745962 continue
48755963 ;;
48765964
48775965 *.la)
48785966 # A libtool-controlled library.
48795967
5968 func_resolve_sysroot "$arg"
48805969 if test "$prev" = dlfiles; then
48815970 # This library was specified with -dlopen.
4882 dlfiles="$dlfiles $arg"
5971 func_append dlfiles " $func_resolve_sysroot_result"
48835972 prev=
48845973 elif test "$prev" = dlprefiles; then
48855974 # The library was specified with -dlpreopen.
4886 dlprefiles="$dlprefiles $arg"
5975 func_append dlprefiles " $func_resolve_sysroot_result"
48875976 prev=
48885977 else
4889 deplibs="$deplibs $arg"
5978 func_append deplibs " $func_resolve_sysroot_result"
48905979 fi
48915980 continue
48925981 ;;
49246013
49256014 if test -n "$shlibpath_var"; then
49266015 # get the directories listed in $shlibpath_var
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
49286017 else
49296018 shlib_search_path=
49306019 fi
49336022
49346023 func_dirname "$output" "/" ""
49356024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
49366027 # Create the object directory.
49376028 func_mkdir_p "$output_objdir"
49386029
49536044 # Find all interdependent deplibs by searching for libraries
49546045 # that are linked more than once (e.g. -la -lb -la)
49556046 for deplib in $deplibs; do
4956 if $opt_duplicate_deps ; then
6047 if $opt_preserve_dup_deps ; then
49576048 case "$libs " in
4958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
49596050 esac
49606051 fi
4961 libs="$libs $deplib"
6052 func_append libs " $deplib"
49626053 done
49636054
49646055 if test "$linkmode" = lib; then
49716062 if $opt_duplicate_compiler_generated_deps; then
49726063 for pre_post_dep in $predeps $postdeps; do
49736064 case "$pre_post_deps " in
4974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
49756066 esac
4976 pre_post_deps="$pre_post_deps $pre_post_dep"
6067 func_append pre_post_deps " $pre_post_dep"
49776068 done
49786069 fi
49796070 pre_post_deps=
50326123 case $pass in
50336124 dlopen) libs="$dlfiles" ;;
50346125 dlpreopen) libs="$dlprefiles" ;;
5035 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
6126 link)
6127 libs="$deplibs %DEPLIBS%"
6128 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
6129 ;;
50366130 esac
50376131 fi
50386132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
50406134 for lib in $dlprefiles; do
50416135 # Ignore non-libtool-libs
50426136 dependency_libs=
6137 func_resolve_sysroot "$lib"
50436138 case $lib in
5044 *.la) func_source "$lib" ;;
6139 *.la) func_source "$func_resolve_sysroot_result" ;;
50456140 esac
50466141
50476142 # Collect preopened libtool deplibs, except any this library
50486143 # has declared as weak libs
50496144 for deplib in $dependency_libs; do
5050 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
6145 func_basename "$deplib"
6146 deplib_base=$func_basename_result
50516147 case " $weak_libs " in
50526148 *" $deplib_base "*) ;;
5053 *) deplibs="$deplibs $deplib" ;;
6149 *) func_append deplibs " $deplib" ;;
50546150 esac
50556151 done
50566152 done
50666162 lib=
50676163 found=no
50686164 case $deplib in
5069 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6165 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6166 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
50706167 if test "$linkmode,$pass" = "prog,link"; then
50716168 compile_deplibs="$deplib $compile_deplibs"
50726169 finalize_deplibs="$deplib $finalize_deplibs"
50736170 else
5074 compiler_flags="$compiler_flags $deplib"
6171 func_append compiler_flags " $deplib"
50756172 if test "$linkmode" = lib ; then
50766173 case "$new_inherited_linker_flags " in
50776174 *" $deplib "*) ;;
5078 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6175 * ) func_append new_inherited_linker_flags " $deplib" ;;
50796176 esac
50806177 fi
50816178 fi
51606257 if test "$linkmode" = lib ; then
51616258 case "$new_inherited_linker_flags " in
51626259 *" $deplib "*) ;;
5163 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6260 * ) func_append new_inherited_linker_flags " $deplib" ;;
51646261 esac
51656262 fi
51666263 fi
51736270 test "$pass" = conv && continue
51746271 newdependency_libs="$deplib $newdependency_libs"
51756272 func_stripname '-L' '' "$deplib"
5176 newlib_search_path="$newlib_search_path $func_stripname_result"
6273 func_resolve_sysroot "$func_stripname_result"
6274 func_append newlib_search_path " $func_resolve_sysroot_result"
51776275 ;;
51786276 prog)
51796277 if test "$pass" = conv; then
51876285 finalize_deplibs="$deplib $finalize_deplibs"
51886286 fi
51896287 func_stripname '-L' '' "$deplib"
5190 newlib_search_path="$newlib_search_path $func_stripname_result"
6288 func_resolve_sysroot "$func_stripname_result"
6289 func_append newlib_search_path " $func_resolve_sysroot_result"
51916290 ;;
51926291 *)
51936292 func_warning "\`-L' is ignored for archives/objects"
51986297 -R*)
51996298 if test "$pass" = link; then
52006299 func_stripname '-R' '' "$deplib"
5201 dir=$func_stripname_result
6300 func_resolve_sysroot "$func_stripname_result"
6301 dir=$func_resolve_sysroot_result
52026302 # Make sure the xrpath contains only unique directories.
52036303 case "$xrpath " in
52046304 *" $dir "*) ;;
5205 *) xrpath="$xrpath $dir" ;;
6305 *) func_append xrpath " $dir" ;;
52066306 esac
52076307 fi
52086308 deplibs="$deplib $deplibs"
52096309 continue
52106310 ;;
5211 *.la) lib="$deplib" ;;
6311 *.la)
6312 func_resolve_sysroot "$deplib"
6313 lib=$func_resolve_sysroot_result
6314 ;;
52126315 *.$libext)
52136316 if test "$pass" = conv; then
52146317 deplibs="$deplib $deplibs"
52266329 match_pattern*)
52276330 set dummy $deplibs_check_method; shift
52286331 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5229 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
6332 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
52306333 | $EGREP "$match_pattern_regex" > /dev/null; then
52316334 valid_a_lib=yes
52326335 fi
52366339 ;;
52376340 esac
52386341 if test "$valid_a_lib" != yes; then
5239 $ECHO
6342 echo
52406343 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5241 $ECHO "*** I have the capability to make that library automatically link in when"
5242 $ECHO "*** you link to this library. But I can only do this if you have a"
5243 $ECHO "*** shared version of the library, which you do not appear to have"
5244 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5245 $ECHO "*** that it is just a static archive that I should not use here."
6344 echo "*** I have the capability to make that library automatically link in when"
6345 echo "*** you link to this library. But I can only do this if you have a"
6346 echo "*** shared version of the library, which you do not appear to have"
6347 echo "*** because the file extensions .$libext of this argument makes me believe"
6348 echo "*** that it is just a static archive that I should not use here."
52466349 else
5247 $ECHO
6350 echo
52486351 $ECHO "*** Warning: Linking the shared library $output against the"
52496352 $ECHO "*** static library $deplib is not portable!"
52506353 deplibs="$deplib $deplibs"
52716374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
52726375 # If there is no dlopen support or we're linking statically,
52736376 # we need to preload.
5274 newdlprefiles="$newdlprefiles $deplib"
6377 func_append newdlprefiles " $deplib"
52756378 compile_deplibs="$deplib $compile_deplibs"
52766379 finalize_deplibs="$deplib $finalize_deplibs"
52776380 else
5278 newdlfiles="$newdlfiles $deplib"
6381 func_append newdlfiles " $deplib"
52796382 fi
52806383 fi
52816384 continue
53176420
53186421 # Convert "-framework foo" to "foo.ltframework"
53196422 if test -n "$inherited_linker_flags"; then
5320 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
6423 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
53216424 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
53226425 case " $new_inherited_linker_flags " in
53236426 *" $tmp_inherited_linker_flag "*) ;;
5324 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6427 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
53256428 esac
53266429 done
53276430 fi
5328 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6431 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
53296432 if test "$linkmode,$pass" = "lib,link" ||
53306433 test "$linkmode,$pass" = "prog,scan" ||
53316434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5332 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5333 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6435 test -n "$dlopen" && func_append dlfiles " $dlopen"
6436 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
53346437 fi
53356438
53366439 if test "$pass" = conv; then
53416444 func_fatal_error "cannot find name of link library for \`$lib'"
53426445 fi
53436446 # It is a libtool convenience library, so add in its objects.
5344 convenience="$convenience $ladir/$objdir/$old_library"
5345 old_convenience="$old_convenience $ladir/$objdir/$old_library"
6447 func_append convenience " $ladir/$objdir/$old_library"
6448 func_append old_convenience " $ladir/$objdir/$old_library"
6449 tmp_libs=
6450 for deplib in $dependency_libs; do
6451 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
6453 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6455 esac
6456 fi
6457 func_append tmp_libs " $deplib"
6458 done
53466459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
53476460 func_fatal_error "\`$lib' is not a convenience library"
53486461 fi
5349 tmp_libs=
5350 for deplib in $dependency_libs; do
5351 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
5357 tmp_libs="$tmp_libs $deplib"
5358 done
53596462 continue
53606463 fi # $pass = conv
53616464
53626465
53636466 # Get the name of the library we link against.
53646467 linklib=
5365 for l in $old_library $library_names; do
5366 linklib="$l"
5367 done
6468 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
6471 linklib=$old_library
6472 else
6473 for l in $old_library $library_names; do
6474 linklib="$l"
6475 done
6476 fi
53686477 if test -z "$linklib"; then
53696478 func_fatal_error "cannot find name of link library for \`$lib'"
53706479 fi
53816490 # statically, we need to preload. We also need to preload any
53826491 # dependent libraries so libltdl's deplib preloader doesn't
53836492 # bomb out in the load deplibs phase.
5384 dlprefiles="$dlprefiles $lib $dependency_libs"
6493 func_append dlprefiles " $lib $dependency_libs"
53856494 else
5386 newdlfiles="$newdlfiles $lib"
6495 func_append newdlfiles " $lib"
53876496 fi
53886497 continue
53896498 fi # $pass = dlopen
54056514
54066515 # Find the relevant object directory and library name.
54076516 if test "X$installed" = Xyes; then
5408 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6517 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
54096518 func_warning "library \`$lib' was moved."
54106519 dir="$ladir"
54116520 absdir="$abs_ladir"
54126521 libdir="$abs_ladir"
54136522 else
5414 dir="$libdir"
5415 absdir="$libdir"
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
54166525 fi
54176526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
54186527 else
54206529 dir="$ladir"
54216530 absdir="$abs_ladir"
54226531 # Remove this search path later
5423 notinst_path="$notinst_path $abs_ladir"
6532 func_append notinst_path " $abs_ladir"
54246533 else
54256534 dir="$ladir/$objdir"
54266535 absdir="$abs_ladir/$objdir"
54276536 # Remove this search path later
5428 notinst_path="$notinst_path $abs_ladir"
6537 func_append notinst_path " $abs_ladir"
54296538 fi
54306539 fi # $installed = yes
54316540 func_stripname 'lib' '.la' "$laname"
54366545 if test -z "$libdir" && test "$linkmode" = prog; then
54376546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
54386547 fi
5439 # Prefer using a static library (so that no silly _DYNAMIC symbols
5440 # are required to link).
5441 if test -n "$old_library"; then
5442 newdlprefiles="$newdlprefiles $dir/$old_library"
5443 # Keep a list of preopened convenience libraries to check
5444 # that they are being used correctly in the link pass.
5445 test -z "$libdir" && \
5446 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5447 # Otherwise, use the dlname, so that lt_dlopen finds it.
5448 elif test -n "$dlname"; then
5449 newdlprefiles="$newdlprefiles $dir/$dlname"
5450 else
5451 newdlprefiles="$newdlprefiles $dir/$linklib"
5452 fi
6548 case "$host" in
6549 # special handling for platforms with PE-DLLs.
6550 *cygwin* | *mingw* | *cegcc* )
6551 # Linker will automatically link against shared library if both
6552 # static and shared are present. Therefore, ensure we extract
6553 # symbols from the import library if a shared library is present
6554 # (otherwise, the dlopen module name will be incorrect). We do
6555 # this by putting the import library name into $newdlprefiles.
6556 # We recover the dlopen module name by 'saving' the la file
6557 # name in a special purpose variable, and (later) extracting the
6558 # dlname from the la file.
6559 if test -n "$dlname"; then
6560 func_tr_sh "$dir/$linklib"
6561 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6562 func_append newdlprefiles " $dir/$linklib"
6563 else
6564 func_append newdlprefiles " $dir/$old_library"
6565 # Keep a list of preopened convenience libraries to check
6566 # that they are being used correctly in the link pass.
6567 test -z "$libdir" && \
6568 func_append dlpreconveniencelibs " $dir/$old_library"
6569 fi
6570 ;;
6571 * )
6572 # Prefer using a static library (so that no silly _DYNAMIC symbols
6573 # are required to link).
6574 if test -n "$old_library"; then
6575 func_append newdlprefiles " $dir/$old_library"
6576 # Keep a list of preopened convenience libraries to check
6577 # that they are being used correctly in the link pass.
6578 test -z "$libdir" && \
6579 func_append dlpreconveniencelibs " $dir/$old_library"
6580 # Otherwise, use the dlname, so that lt_dlopen finds it.
6581 elif test -n "$dlname"; then
6582 func_append newdlprefiles " $dir/$dlname"
6583 else
6584 func_append newdlprefiles " $dir/$linklib"
6585 fi
6586 ;;
6587 esac
54536588 fi # $pass = dlpreopen
54546589
54556590 if test -z "$libdir"; then
54676602
54686603
54696604 if test "$linkmode" = prog && test "$pass" != link; then
5470 newlib_search_path="$newlib_search_path $ladir"
6605 func_append newlib_search_path " $ladir"
54716606 deplibs="$lib $deplibs"
54726607
54736608 linkalldeplibs=no
54806615 for deplib in $dependency_libs; do
54816616 case $deplib in
54826617 -L*) func_stripname '-L' '' "$deplib"
5483 newlib_search_path="$newlib_search_path $func_stripname_result"
6618 func_resolve_sysroot "$func_stripname_result"
6619 func_append newlib_search_path " $func_resolve_sysroot_result"
54846620 ;;
54856621 esac
54866622 # Need to link against all dependency_libs?
54916627 # or/and link against static libraries
54926628 newdependency_libs="$deplib $newdependency_libs"
54936629 fi
5494 if $opt_duplicate_deps ; then
6630 if $opt_preserve_dup_deps ; then
54956631 case "$tmp_libs " in
5496 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6632 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
54976633 esac
54986634 fi
5499 tmp_libs="$tmp_libs $deplib"
6635 func_append tmp_libs " $deplib"
55006636 done # for deplib
55016637 continue
55026638 fi # $linkmode = prog...
55116647 # Make sure the rpath contains only unique directories.
55126648 case "$temp_rpath:" in
55136649 *"$absdir:"*) ;;
5514 *) temp_rpath="$temp_rpath$absdir:" ;;
6650 *) func_append temp_rpath "$absdir:" ;;
55156651 esac
55166652 fi
55176653
55236659 *)
55246660 case "$compile_rpath " in
55256661 *" $absdir "*) ;;
5526 *) compile_rpath="$compile_rpath $absdir"
6662 *) func_append compile_rpath " $absdir" ;;
55276663 esac
55286664 ;;
55296665 esac
55326668 *)
55336669 case "$finalize_rpath " in
55346670 *" $libdir "*) ;;
5535 *) finalize_rpath="$finalize_rpath $libdir"
6671 *) func_append finalize_rpath " $libdir" ;;
55366672 esac
55376673 ;;
55386674 esac
55576693 case $host in
55586694 *cygwin* | *mingw* | *cegcc*)
55596695 # No point in relinking DLLs because paths are not encoded
5560 notinst_deplibs="$notinst_deplibs $lib"
6696 func_append notinst_deplibs " $lib"
55616697 need_relink=no
55626698 ;;
55636699 *)
55646700 if test "$installed" = no; then
5565 notinst_deplibs="$notinst_deplibs $lib"
6701 func_append notinst_deplibs " $lib"
55666702 need_relink=yes
55676703 fi
55686704 ;;
55796715 fi
55806716 done
55816717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5582 $ECHO
6718 echo
55836719 if test "$linkmode" = prog; then
55846720 $ECHO "*** Warning: Linking the executable $output against the loadable module"
55856721 else
55976733 *)
55986734 case "$compile_rpath " in
55996735 *" $absdir "*) ;;
5600 *) compile_rpath="$compile_rpath $absdir"
6736 *) func_append compile_rpath " $absdir" ;;
56016737 esac
56026738 ;;
56036739 esac
56066742 *)
56076743 case "$finalize_rpath " in
56086744 *" $libdir "*) ;;
5609 *) finalize_rpath="$finalize_rpath $libdir"
6745 *) func_append finalize_rpath " $libdir" ;;
56106746 esac
56116747 ;;
56126748 esac
56606796 linklib=$newlib
56616797 fi # test -n "$old_archive_from_expsyms_cmds"
56626798
5663 if test "$linkmode" = prog || test "$mode" != relink; then
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
56646800 add_shlibpath=
56656801 add_dir=
56666802 add=
56826818 if test "X$dlopenmodule" != "X$lib"; then
56836819 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
56846820 if test -z "$old_library" ; then
5685 $ECHO
5686 $ECHO "*** And there doesn't seem to be a static archive available"
5687 $ECHO "*** The link will probably fail, sorry"
6821 echo
6822 echo "*** And there doesn't seem to be a static archive available"
6823 echo "*** The link will probably fail, sorry"
56886824 else
56896825 add="$dir/$old_library"
56906826 fi
57116847 test "$hardcode_direct_absolute" = no; then
57126848 add="$dir/$linklib"
57136849 elif test "$hardcode_minus_L" = yes; then
5714 add_dir="-L$dir"
6850 add_dir="-L$absdir"
57156851 # Try looking first in the location we're being installed to.
57166852 if test -n "$inst_prefix_dir"; then
57176853 case $libdir in
57186854 [\\/]*)
5719 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6855 func_append add_dir " -L$inst_prefix_dir$libdir"
57206856 ;;
57216857 esac
57226858 fi
57386874 if test -n "$add_shlibpath"; then
57396875 case :$compile_shlibpath: in
57406876 *":$add_shlibpath:"*) ;;
5741 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6877 *) func_append compile_shlibpath "$add_shlibpath:" ;;
57426878 esac
57436879 fi
57446880 if test "$linkmode" = prog; then
57526888 test "$hardcode_shlibpath_var" = yes; then
57536889 case :$finalize_shlibpath: in
57546890 *":$libdir:"*) ;;
5755 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6891 *) func_append finalize_shlibpath "$libdir:" ;;
57566892 esac
57576893 fi
57586894 fi
57596895 fi
57606896
5761 if test "$linkmode" = prog || test "$mode" = relink; then
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
57626898 add_shlibpath=
57636899 add_dir=
57646900 add=
57726908 elif test "$hardcode_shlibpath_var" = yes; then
57736909 case :$finalize_shlibpath: in
57746910 *":$libdir:"*) ;;
5775 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6911 *) func_append finalize_shlibpath "$libdir:" ;;
57766912 esac
57776913 add="-l$name"
57786914 elif test "$hardcode_automatic" = yes; then
57896925 if test -n "$inst_prefix_dir"; then
57906926 case $libdir in
57916927 [\\/]*)
5792 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6928 func_append add_dir " -L$inst_prefix_dir$libdir"
57936929 ;;
57946930 esac
57956931 fi
58246960
58256961 # Just print a warning and add the library to dependency_libs so
58266962 # that the program can be linked against the static library.
5827 $ECHO
6963 echo
58286964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5829 $ECHO "*** I have the capability to make that library automatically link in when"
5830 $ECHO "*** you link to this library. But I can only do this if you have a"
5831 $ECHO "*** shared version of the library, which you do not appear to have."
6965 echo "*** I have the capability to make that library automatically link in when"
6966 echo "*** you link to this library. But I can only do this if you have a"
6967 echo "*** shared version of the library, which you do not appear to have."
58326968 if test "$module" = yes; then
5833 $ECHO "*** But as you try to build a module library, libtool will still create "
5834 $ECHO "*** a static module, that should work as long as the dlopening application"
5835 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
6969 echo "*** But as you try to build a module library, libtool will still create "
6970 echo "*** a static module, that should work as long as the dlopening application"
6971 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
58366972 if test -z "$global_symbol_pipe"; then
5837 $ECHO
5838 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5839 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5840 $ECHO "*** not find such a program. So, this module is probably useless."
5841 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
6973 echo
6974 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6976 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
58426978 fi
58436979 if test "$build_old_libs" = no; then
58446980 build_libtool_libs=module
58667002 temp_xrpath=$func_stripname_result
58677003 case " $xrpath " in
58687004 *" $temp_xrpath "*) ;;
5869 *) xrpath="$xrpath $temp_xrpath";;
7005 *) func_append xrpath " $temp_xrpath";;
58707006 esac;;
5871 *) temp_deplibs="$temp_deplibs $libdir";;
7007 *) func_append temp_deplibs " $libdir";;
58727008 esac
58737009 done
58747010 dependency_libs="$temp_deplibs"
58757011 fi
58767012
5877 newlib_search_path="$newlib_search_path $absdir"
7013 func_append newlib_search_path " $absdir"
58787014 # Link against this library
58797015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
58807016 # ... and its dependency_libs
58817017 tmp_libs=
58827018 for deplib in $dependency_libs; do
58837019 newdependency_libs="$deplib $newdependency_libs"
5884 if $opt_duplicate_deps ; then
7020 case $deplib in
7021 -L*) func_stripname '-L' '' "$deplib"
7022 func_resolve_sysroot "$func_stripname_result";;
7023 *) func_resolve_sysroot "$deplib" ;;
7024 esac
7025 if $opt_preserve_dup_deps ; then
58857026 case "$tmp_libs " in
5886 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7027 *" $func_resolve_sysroot_result "*)
7028 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
58877029 esac
58887030 fi
5889 tmp_libs="$tmp_libs $deplib"
7031 func_append tmp_libs " $func_resolve_sysroot_result"
58907032 done
58917033
58927034 if test "$link_all_deplibs" != no; then
58937035 # Add the search paths of all dependency libraries
58947036 for deplib in $dependency_libs; do
7037 path=
58957038 case $deplib in
58967039 -L*) path="$deplib" ;;
58977040 *.la)
7041 func_resolve_sysroot "$deplib"
7042 deplib=$func_resolve_sysroot_result
58987043 func_dirname "$deplib" "" "."
5899 dir="$func_dirname_result"
7044 dir=$func_dirname_result
59007045 # We need an absolute path.
59017046 case $dir in
59027047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
59237068 if test -z "$darwin_install_name"; then
59247069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
59257070 fi
5926 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5927 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
59287073 path=
59297074 fi
59307075 fi
59577102 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
59587103 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
59597104 else
5960 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7105 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
59617106 fi
59627107 fi
59637108 dependency_libs="$newdependency_libs"
59747119 for dir in $newlib_search_path; do
59757120 case "$lib_search_path " in
59767121 *" $dir "*) ;;
5977 *) lib_search_path="$lib_search_path $dir" ;;
7122 *) func_append lib_search_path " $dir" ;;
59787123 esac
59797124 done
59807125 newlib_search_path=
60327177 -L*)
60337178 case " $tmp_libs " in
60347179 *" $deplib "*) ;;
6035 *) tmp_libs="$tmp_libs $deplib" ;;
7180 *) func_append tmp_libs " $deplib" ;;
60367181 esac
60377182 ;;
6038 *) tmp_libs="$tmp_libs $deplib" ;;
7183 *) func_append tmp_libs " $deplib" ;;
60397184 esac
60407185 done
60417186 eval $var=\"$tmp_libs\"
60517196 ;;
60527197 esac
60537198 if test -n "$i" ; then
6054 tmp_libs="$tmp_libs $i"
7199 func_append tmp_libs " $i"
60557200 fi
60567201 done
60577202 dependency_libs=$tmp_libs
60927237 # Now set the variables for building old libraries.
60937238 build_libtool_libs=no
60947239 oldlibs="$output"
6095 objs="$objs$old_deplibs"
7240 func_append objs "$old_deplibs"
60967241 ;;
60977242
60987243 lib)
61257270 if test "$deplibs_check_method" != pass_all; then
61267271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
61277272 else
6128 $ECHO
7273 echo
61297274 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
61307275 $ECHO "*** objects $objs is not portable!"
6131 libobjs="$libobjs $objs"
7276 func_append libobjs " $objs"
61327277 fi
61337278 fi
61347279
61877332 # which has an extra 1 added just for fun
61887333 #
61897334 case $version_type in
7335 # correct linux to gnu/linux during the next big refactor
61907336 darwin|linux|osf|windows|none)
61917337 func_arith $number_major + $number_minor
61927338 current=$func_arith_result
61937339 age="$number_minor"
61947340 revision="$number_revision"
61957341 ;;
6196 freebsd-aout|freebsd-elf|sunos)
7342 freebsd-aout|freebsd-elf|qnx|sunos)
61977343 current="$number_major"
61987344 revision="$number_minor"
61997345 age="0"
62047350 age="$number_minor"
62057351 revision="$number_minor"
62067352 lt_irix_increment=no
7353 ;;
7354 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
62077356 ;;
62087357 esac
62097358 ;;
63037452 versuffix="$major.$revision"
63047453 ;;
63057454
6306 linux)
7455 linux) # correct to gnu/linux during the next big refactor
63077456 func_arith $current - $age
63087457 major=.$func_arith_result
63097458 versuffix="$major.$age.$revision"
63267475 done
63277476
63287477 # Make executables depend on our current version.
6329 verstring="$verstring:${current}.0"
7478 func_append verstring ":${current}.0"
63307479 ;;
63317480
63327481 qnx)
63947543 fi
63957544
63967545 func_generate_dlsyms "$libname" "$libname" "yes"
6397 libobjs="$libobjs $symfileobj"
7546 func_append libobjs " $symfileobj"
63987547 test "X$libobjs" = "X " && libobjs=
63997548
6400 if test "$mode" != relink; then
7549 if test "$opt_mode" != relink; then
64017550 # Remove our outputs, but don't remove object files since they
64027551 # may have been created when compiling PIC objects.
64037552 removelist=
64137562 continue
64147563 fi
64157564 fi
6416 removelist="$removelist $p"
7565 func_append removelist " $p"
64177566 ;;
64187567 *) ;;
64197568 esac
64247573
64257574 # Now set the variables for building old libraries.
64267575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6427 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7576 func_append oldlibs " $output_objdir/$libname.$libext"
64287577
64297578 # Transform .lo files to .o files.
6430 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
64317580 fi
64327581
64337582 # Eliminate all temporary directories.
64347583 #for path in $notinst_path; do
6435 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6436 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6437 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
7584 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7585 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7586 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
64387587 #done
64397588
64407589 if test -n "$xrpath"; then
64417590 # If the user specified any rpath flags, then add them.
64427591 temp_xrpath=
64437592 for libdir in $xrpath; do
6444 temp_xrpath="$temp_xrpath -R$libdir"
7593 func_replace_sysroot "$libdir"
7594 func_append temp_xrpath " -R$func_replace_sysroot_result"
64457595 case "$finalize_rpath " in
64467596 *" $libdir "*) ;;
6447 *) finalize_rpath="$finalize_rpath $libdir" ;;
7597 *) func_append finalize_rpath " $libdir" ;;
64487598 esac
64497599 done
64507600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
64587608 for lib in $old_dlfiles; do
64597609 case " $dlprefiles $dlfiles " in
64607610 *" $lib "*) ;;
6461 *) dlfiles="$dlfiles $lib" ;;
7611 *) func_append dlfiles " $lib" ;;
64627612 esac
64637613 done
64647614
64687618 for lib in $old_dlprefiles; do
64697619 case "$dlprefiles " in
64707620 *" $lib "*) ;;
6471 *) dlprefiles="$dlprefiles $lib" ;;
7621 *) func_append dlprefiles " $lib" ;;
64727622 esac
64737623 done
64747624
64757625 if test "$build_libtool_libs" = yes; then
64767626 if test -n "$rpath"; then
64777627 case $host in
6478 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
7628 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
64797629 # these systems don't actually have a c library (as such)!
64807630 ;;
64817631 *-*-rhapsody* | *-*-darwin1.[012])
64827632 # Rhapsody C library is in the System framework
6483 deplibs="$deplibs System.ltframework"
7633 func_append deplibs " System.ltframework"
64847634 ;;
64857635 *-*-netbsd*)
64867636 # Don't link with libc until the a.out ld.so is fixed.
64977647 *)
64987648 # Add libc to deplibs on all other systems if necessary.
64997649 if test "$build_libtool_need_lc" = "yes"; then
6500 deplibs="$deplibs -lc"
7650 func_append deplibs " -lc"
65017651 fi
65027652 ;;
65037653 esac
65467696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65477697 case " $predeps $postdeps " in
65487698 *" $i "*)
6549 newdeplibs="$newdeplibs $i"
7699 func_append newdeplibs " $i"
65507700 i=""
65517701 ;;
65527702 esac
65577707 set dummy $deplib_matches; shift
65587708 deplib_match=$1
65597709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6560 newdeplibs="$newdeplibs $i"
7710 func_append newdeplibs " $i"
65617711 else
65627712 droppeddeps=yes
6563 $ECHO
7713 echo
65647714 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6565 $ECHO "*** I have the capability to make that library automatically link in when"
6566 $ECHO "*** you link to this library. But I can only do this if you have a"
6567 $ECHO "*** shared version of the library, which I believe you do not have"
6568 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6569 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
7715 echo "*** I have the capability to make that library automatically link in when"
7716 echo "*** you link to this library. But I can only do this if you have a"
7717 echo "*** shared version of the library, which I believe you do not have"
7718 echo "*** because a test_compile did reveal that the linker did not use it for"
7719 echo "*** its dynamic dependency list that programs get resolved with at runtime."
65707720 fi
65717721 fi
65727722 ;;
65737723 *)
6574 newdeplibs="$newdeplibs $i"
7724 func_append newdeplibs " $i"
65757725 ;;
65767726 esac
65777727 done
65897739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65907740 case " $predeps $postdeps " in
65917741 *" $i "*)
6592 newdeplibs="$newdeplibs $i"
7742 func_append newdeplibs " $i"
65937743 i=""
65947744 ;;
65957745 esac
66007750 set dummy $deplib_matches; shift
66017751 deplib_match=$1
66027752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6603 newdeplibs="$newdeplibs $i"
7753 func_append newdeplibs " $i"
66047754 else
66057755 droppeddeps=yes
6606 $ECHO
7756 echo
66077757 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6608 $ECHO "*** I have the capability to make that library automatically link in when"
6609 $ECHO "*** you link to this library. But I can only do this if you have a"
6610 $ECHO "*** shared version of the library, which you do not appear to have"
6611 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6612 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
7758 echo "*** I have the capability to make that library automatically link in when"
7759 echo "*** you link to this library. But I can only do this if you have a"
7760 echo "*** shared version of the library, which you do not appear to have"
7761 echo "*** because a test_compile did reveal that the linker did not use this one"
7762 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
66137763 fi
66147764 fi
66157765 else
66167766 droppeddeps=yes
6617 $ECHO
7767 echo
66187768 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6619 $ECHO "*** make it link in! You will probably need to install it or some"
6620 $ECHO "*** library that it depends on before this library will be fully"
6621 $ECHO "*** functional. Installing it before continuing would be even better."
7769 echo "*** make it link in! You will probably need to install it or some"
7770 echo "*** library that it depends on before this library will be fully"
7771 echo "*** functional. Installing it before continuing would be even better."
66227772 fi
66237773 ;;
66247774 *)
6625 newdeplibs="$newdeplibs $i"
7775 func_append newdeplibs " $i"
66267776 ;;
66277777 esac
66287778 done
66397789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
66407790 case " $predeps $postdeps " in
66417791 *" $a_deplib "*)
6642 newdeplibs="$newdeplibs $a_deplib"
7792 func_append newdeplibs " $a_deplib"
66437793 a_deplib=""
66447794 ;;
66457795 esac
66467796 fi
66477797 if test -n "$a_deplib" ; then
66487798 libname=`eval "\\$ECHO \"$libname_spec\""`
7799 if test -n "$file_magic_glob"; then
7800 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7801 else
7802 libnameglob=$libname
7803 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
66497805 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6650 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7806 if test "$want_nocaseglob" = yes; then
7807 shopt -s nocaseglob
7808 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7809 $nocaseglob
7810 else
7811 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7812 fi
66517813 for potent_lib in $potential_libs; do
66527814 # Follow soft links.
66537815 if ls -lLd "$potent_lib" 2>/dev/null |
66647826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
66657827 case $potliblink in
66667828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6667 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
66687830 esac
66697831 done
66707832 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
66717833 $SED -e 10q |
66727834 $EGREP "$file_magic_regex" > /dev/null; then
6673 newdeplibs="$newdeplibs $a_deplib"
7835 func_append newdeplibs " $a_deplib"
66747836 a_deplib=""
66757837 break 2
66767838 fi
66797841 fi
66807842 if test -n "$a_deplib" ; then
66817843 droppeddeps=yes
6682 $ECHO
7844 echo
66837845 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6684 $ECHO "*** I have the capability to make that library automatically link in when"
6685 $ECHO "*** you link to this library. But I can only do this if you have a"
6686 $ECHO "*** shared version of the library, which you do not appear to have"
6687 $ECHO "*** because I did check the linker path looking for a file starting"
7846 echo "*** I have the capability to make that library automatically link in when"
7847 echo "*** you link to this library. But I can only do this if you have a"
7848 echo "*** shared version of the library, which you do not appear to have"
7849 echo "*** because I did check the linker path looking for a file starting"
66887850 if test -z "$potlib" ; then
66897851 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
66907852 else
66957857 ;;
66967858 *)
66977859 # Add a -L argument.
6698 newdeplibs="$newdeplibs $a_deplib"
7860 func_append newdeplibs " $a_deplib"
66997861 ;;
67007862 esac
67017863 done # Gone through all deplibs.
67117873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67127874 case " $predeps $postdeps " in
67137875 *" $a_deplib "*)
6714 newdeplibs="$newdeplibs $a_deplib"
7876 func_append newdeplibs " $a_deplib"
67157877 a_deplib=""
67167878 ;;
67177879 esac
67227884 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
67237885 for potent_lib in $potential_libs; do
67247886 potlib="$potent_lib" # see symlink-check above in file_magic test
6725 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
7887 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
67267888 $EGREP "$match_pattern_regex" > /dev/null; then
6727 newdeplibs="$newdeplibs $a_deplib"
7889 func_append newdeplibs " $a_deplib"
67287890 a_deplib=""
67297891 break 2
67307892 fi
67337895 fi
67347896 if test -n "$a_deplib" ; then
67357897 droppeddeps=yes
6736 $ECHO
7898 echo
67377899 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6738 $ECHO "*** I have the capability to make that library automatically link in when"
6739 $ECHO "*** you link to this library. But I can only do this if you have a"
6740 $ECHO "*** shared version of the library, which you do not appear to have"
6741 $ECHO "*** because I did check the linker path looking for a file starting"
7900 echo "*** I have the capability to make that library automatically link in when"
7901 echo "*** you link to this library. But I can only do this if you have a"
7902 echo "*** shared version of the library, which you do not appear to have"
7903 echo "*** because I did check the linker path looking for a file starting"
67427904 if test -z "$potlib" ; then
67437905 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
67447906 else
67497911 ;;
67507912 *)
67517913 # Add a -L argument.
6752 newdeplibs="$newdeplibs $a_deplib"
7914 func_append newdeplibs " $a_deplib"
67537915 ;;
67547916 esac
67557917 done # Gone through all deplibs.
67567918 ;;
67577919 none | unknown | *)
67587920 newdeplibs=""
6759 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6760 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
7921 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
67617922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67627923 for i in $predeps $postdeps ; do
67637924 # can't use Xsed below, because $i might contain '/'
6764 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
67657926 done
67667927 fi
6767 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6768 $GREP . >/dev/null; then
6769 $ECHO
7928 case $tmp_deplibs in
7929 *[!\ \ ]*)
7930 echo
67707931 if test "X$deplibs_check_method" = "Xnone"; then
6771 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
7932 echo "*** Warning: inter-library dependencies are not supported in this platform."
67727933 else
6773 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
7934 echo "*** Warning: inter-library dependencies are not known to be supported."
67747935 fi
6775 $ECHO "*** All declared inter-library dependencies are being dropped."
7936 echo "*** All declared inter-library dependencies are being dropped."
67767937 droppeddeps=yes
6777 fi
7938 ;;
7939 esac
67787940 ;;
67797941 esac
67807942 versuffix=$versuffix_save
67867948 case $host in
67877949 *-*-rhapsody* | *-*-darwin1.[012])
67887950 # On Rhapsody replace the C library with the System framework
6789 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7951 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
67907952 ;;
67917953 esac
67927954
67937955 if test "$droppeddeps" = yes; then
67947956 if test "$module" = yes; then
6795 $ECHO
6796 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
7957 echo
7958 echo "*** Warning: libtool could not satisfy all declared inter-library"
67977959 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6798 $ECHO "*** a static module, that should work as long as the dlopening"
6799 $ECHO "*** application is linked with the -dlopen flag."
7960 echo "*** a static module, that should work as long as the dlopening"
7961 echo "*** application is linked with the -dlopen flag."
68007962 if test -z "$global_symbol_pipe"; then
6801 $ECHO
6802 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6803 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6804 $ECHO "*** not find such a program. So, this module is probably useless."
6805 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
7963 echo
7964 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7966 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
68067968 fi
68077969 if test "$build_old_libs" = no; then
68087970 oldlibs="$output_objdir/$libname.$libext"
68127974 build_libtool_libs=no
68137975 fi
68147976 else
6815 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6816 $ECHO "*** automatically added whenever a program is linked with this library"
6817 $ECHO "*** or is declared to -dlopen it."
7977 echo "*** The inter-library dependencies that have been dropped here will be"
7978 echo "*** automatically added whenever a program is linked with this library"
7979 echo "*** or is declared to -dlopen it."
68187980
68197981 if test "$allow_undefined" = no; then
6820 $ECHO
6821 $ECHO "*** Since this library must not contain undefined symbols,"
6822 $ECHO "*** because either the platform does not support them or"
6823 $ECHO "*** it was explicitly requested with -no-undefined,"
6824 $ECHO "*** libtool will only create a static version of it."
7982 echo
7983 echo "*** Since this library must not contain undefined symbols,"
7984 echo "*** because either the platform does not support them or"
7985 echo "*** it was explicitly requested with -no-undefined,"
7986 echo "*** libtool will only create a static version of it."
68257987 if test "$build_old_libs" = no; then
68267988 oldlibs="$output_objdir/$libname.$libext"
68277989 build_libtool_libs=module
68388000 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
68398001 case $host in
68408002 *-*-darwin*)
6841 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6842 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6843 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8003 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8004 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8005 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
68448006 ;;
68458007 esac
68468008
68538015 *)
68548016 case " $deplibs " in
68558017 *" -L$path/$objdir "*)
6856 new_libs="$new_libs -L$path/$objdir" ;;
8018 func_append new_libs " -L$path/$objdir" ;;
68578019 esac
68588020 ;;
68598021 esac
68638025 -L*)
68648026 case " $new_libs " in
68658027 *" $deplib "*) ;;
6866 *) new_libs="$new_libs $deplib" ;;
8028 *) func_append new_libs " $deplib" ;;
68678029 esac
68688030 ;;
6869 *) new_libs="$new_libs $deplib" ;;
8031 *) func_append new_libs " $deplib" ;;
68708032 esac
68718033 done
68728034 deplibs="$new_libs"
68788040
68798041 # Test again, we may have decided not to build it any more
68808042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
8044 # FIXME: should test the right _cmds variable.
8045 case $archive_cmds in
8046 *\$LD\ *) wl= ;;
8047 esac
68818048 if test "$hardcode_into_libs" = yes; then
68828049 # Hardcode the library paths
68838050 hardcode_libdirs=
68848051 dep_rpath=
68858052 rpath="$finalize_rpath"
6886 test "$mode" != relink && rpath="$compile_rpath$rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
68878054 for libdir in $rpath; do
68888055 if test -n "$hardcode_libdir_flag_spec"; then
68898056 if test -n "$hardcode_libdir_separator"; then
8057 func_replace_sysroot "$libdir"
8058 libdir=$func_replace_sysroot_result
68908059 if test -z "$hardcode_libdirs"; then
68918060 hardcode_libdirs="$libdir"
68928061 else
68958064 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
68968065 ;;
68978066 *)
6898 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8067 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
68998068 ;;
69008069 esac
69018070 fi
69028071 else
69038072 eval flag=\"$hardcode_libdir_flag_spec\"
6904 dep_rpath="$dep_rpath $flag"
8073 func_append dep_rpath " $flag"
69058074 fi
69068075 elif test -n "$runpath_var"; then
69078076 case "$perm_rpath " in
69088077 *" $libdir "*) ;;
6909 *) perm_rpath="$perm_rpath $libdir" ;;
8078 *) func_append perm_rpath " $libdir" ;;
69108079 esac
69118080 fi
69128081 done
69148083 if test -n "$hardcode_libdir_separator" &&
69158084 test -n "$hardcode_libdirs"; then
69168085 libdir="$hardcode_libdirs"
6917 if test -n "$hardcode_libdir_flag_spec_ld"; then
6918 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6919 else
6920 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6921 fi
8086 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
69228087 fi
69238088 if test -n "$runpath_var" && test -n "$perm_rpath"; then
69248089 # We should set the runpath_var.
69258090 rpath=
69268091 for dir in $perm_rpath; do
6927 rpath="$rpath$dir:"
8092 func_append rpath "$dir:"
69288093 done
69298094 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
69308095 fi
69328097 fi
69338098
69348099 shlibpath="$finalize_shlibpath"
6935 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
69368101 if test -n "$shlibpath"; then
69378102 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
69388103 fi
69588123 linknames=
69598124 for link
69608125 do
6961 linknames="$linknames $link"
8126 func_append linknames " $link"
69628127 done
69638128
69648129 # Use standard objects if they are pic
6965 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8130 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
69668131 test "X$libobjs" = "X " && libobjs=
69678132
69688133 delfiles=
69698134 if test -n "$export_symbols" && test -n "$include_expsyms"; then
69708135 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
69718136 export_symbols="$output_objdir/$libname.uexp"
6972 delfiles="$delfiles $export_symbols"
8137 func_append delfiles " $export_symbols"
69738138 fi
69748139
69758140 orig_export_symbols=
70008165 $opt_dry_run || $RM $export_symbols
70018166 cmds=$export_symbols_cmds
70028167 save_ifs="$IFS"; IFS='~'
7003 for cmd in $cmds; do
8168 for cmd1 in $cmds; do
70048169 IFS="$save_ifs"
7005 eval cmd=\"$cmd\"
7006 func_len " $cmd"
7007 len=$func_len_result
7008 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8170 # Take the normal branch if the nm_file_list_spec branch
8171 # doesn't work or if tool conversion is not needed.
8172 case $nm_file_list_spec~$to_tool_file_cmd in
8173 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8174 try_normal_branch=yes
8175 eval cmd=\"$cmd1\"
8176 func_len " $cmd"
8177 len=$func_len_result
8178 ;;
8179 *)
8180 try_normal_branch=no
8181 ;;
8182 esac
8183 if test "$try_normal_branch" = yes \
8184 && { test "$len" -lt "$max_cmd_len" \
8185 || test "$max_cmd_len" -le -1; }
8186 then
70098187 func_show_eval "$cmd" 'exit $?'
8188 skipped_export=false
8189 elif test -n "$nm_file_list_spec"; then
8190 func_basename "$output"
8191 output_la=$func_basename_result
8192 save_libobjs=$libobjs
8193 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
8195 func_to_tool_file "$output"
8196 libobjs=$nm_file_list_spec$func_to_tool_file_result
8197 func_append delfiles " $output"
8198 func_verbose "creating $NM input file list: $output"
8199 for obj in $save_libobjs; do
8200 func_to_tool_file "$obj"
8201 $ECHO "$func_to_tool_file_result"
8202 done > "$output"
8203 eval cmd=\"$cmd1\"
8204 func_show_eval "$cmd" 'exit $?'
8205 output=$save_output
8206 libobjs=$save_libobjs
70108207 skipped_export=false
70118208 else
70128209 # The command line is too long to execute in one step.
70288225 if test -n "$export_symbols" && test -n "$include_expsyms"; then
70298226 tmp_export_symbols="$export_symbols"
70308227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7031 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8228 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
70328229 fi
70338230
70348231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
70408237 # global variables. join(1) would be nice here, but unfortunately
70418238 # isn't a blessed tool.
70428239 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7043 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8240 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
70448241 export_symbols=$output_objdir/$libname.def
70458242 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
70468243 fi
70508247 case " $convenience " in
70518248 *" $test_deplib "*) ;;
70528249 *)
7053 tmp_deplibs="$tmp_deplibs $test_deplib"
8250 func_append tmp_deplibs " $test_deplib"
70548251 ;;
70558252 esac
70568253 done
70708267 test "X$libobjs" = "X " && libobjs=
70718268 else
70728269 gentop="$output_objdir/${outputname}x"
7073 generated="$generated $gentop"
8270 func_append generated " $gentop"
70748271
70758272 func_extract_archives $gentop $convenience
7076 libobjs="$libobjs $func_extract_archives_result"
8273 func_append libobjs " $func_extract_archives_result"
70778274 test "X$libobjs" = "X " && libobjs=
70788275 fi
70798276 fi
70808277
70818278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
70828279 eval flag=\"$thread_safe_flag_spec\"
7083 linker_flags="$linker_flags $flag"
8280 func_append linker_flags " $flag"
70848281 fi
70858282
70868283 # Make a backup of the uninstalled library when relinking
7087 if test "$mode" = relink; then
8284 if test "$opt_mode" = relink; then
70888285 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
70898286 fi
70908287
71298326 save_libobjs=$libobjs
71308327 fi
71318328 save_output=$output
7132 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
8329 func_basename "$output"
8330 output_la=$func_basename_result
71338331
71348332 # Clear the reloadable object creation command queue and
71358333 # initialize k to one.
71428340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
71438341 output=${output_objdir}/${output_la}.lnkscript
71448342 func_verbose "creating GNU ld script: $output"
7145 $ECHO 'INPUT (' > $output
8343 echo 'INPUT (' > $output
71468344 for obj in $save_libobjs
71478345 do
7148 $ECHO "$obj" >> $output
8346 func_to_tool_file "$obj"
8347 $ECHO "$func_to_tool_file_result" >> $output
71498348 done
7150 $ECHO ')' >> $output
7151 delfiles="$delfiles $output"
8349 echo ')' >> $output
8350 func_append delfiles " $output"
8351 func_to_tool_file "$output"
8352 output=$func_to_tool_file_result
71528353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
71538354 output=${output_objdir}/${output_la}.lnk
71548355 func_verbose "creating linker input file list: $output"
71628363 fi
71638364 for obj
71648365 do
7165 $ECHO "$obj" >> $output
8366 func_to_tool_file "$obj"
8367 $ECHO "$func_to_tool_file_result" >> $output
71668368 done
7167 delfiles="$delfiles $output"
7168 output=$firstobj\"$file_list_spec$output\"
8369 func_append delfiles " $output"
8370 func_to_tool_file "$output"
8371 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
71698372 else
71708373 if test -n "$save_libobjs"; then
71718374 func_verbose "creating reloadable object files..."
71898392 # command to the queue.
71908393 if test "$k" -eq 1 ; then
71918394 # The first file doesn't have a previous command to add.
7192 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
8395 reload_objs=$objlist
8396 eval concat_cmds=\"$reload_cmds\"
71938397 else
71948398 # All subsequent reloadable object files will link in
71958399 # the last one created.
7196 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
8400 reload_objs="$objlist $last_robj"
8401 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
71978402 fi
71988403 last_robj=$output_objdir/$output_la-${k}.$objext
71998404 func_arith $k + 1
72008405 k=$func_arith_result
72018406 output=$output_objdir/$output_la-${k}.$objext
7202 objlist=$obj
8407 objlist=" $obj"
72038408 func_len " $last_robj"
72048409 func_arith $len0 + $func_len_result
72058410 len=$func_arith_result
72098414 # reloadable object file. All subsequent reloadable object
72108415 # files will link in the last one created.
72118416 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7212 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
8417 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
72138419 if test -n "$last_robj"; then
72148420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
72158421 fi
7216 delfiles="$delfiles $output"
8422 func_append delfiles " $output"
72178423
72188424 else
72198425 output=
72478453 lt_exit=$?
72488454
72498455 # Restore the uninstalled library and exit
7250 if test "$mode" = relink; then
8456 if test "$opt_mode" = relink; then
72518457 ( cd "$output_objdir" && \
72528458 $RM "${realname}T" && \
72538459 $MV "${realname}U" "$realname" )
72688474 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72698475 tmp_export_symbols="$export_symbols"
72708476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7271 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8477 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
72728478 fi
72738479
72748480 if test -n "$orig_export_symbols"; then
72808486 # global variables. join(1) would be nice here, but unfortunately
72818487 # isn't a blessed tool.
72828488 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7283 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8489 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
72848490 export_symbols=$output_objdir/$libname.def
72858491 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
72868492 fi
73218527 # Add any objects from preloaded convenience libraries
73228528 if test -n "$dlprefiles"; then
73238529 gentop="$output_objdir/${outputname}x"
7324 generated="$generated $gentop"
8530 func_append generated " $gentop"
73258531
73268532 func_extract_archives $gentop $dlprefiles
7327 libobjs="$libobjs $func_extract_archives_result"
8533 func_append libobjs " $func_extract_archives_result"
73288534 test "X$libobjs" = "X " && libobjs=
73298535 fi
73308536
73408546 lt_exit=$?
73418547
73428548 # Restore the uninstalled library and exit
7343 if test "$mode" = relink; then
8549 if test "$opt_mode" = relink; then
73448550 ( cd "$output_objdir" && \
73458551 $RM "${realname}T" && \
73468552 $MV "${realname}U" "$realname" )
73528558 IFS="$save_ifs"
73538559
73548560 # Restore the uninstalled library and exit
7355 if test "$mode" = relink; then
8561 if test "$opt_mode" = relink; then
73568562 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
73578563
73588564 if test -n "$convenience"; then
74338639 if test -n "$convenience"; then
74348640 if test -n "$whole_archive_flag_spec"; then
74358641 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7436 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
74378643 else
74388644 gentop="$output_objdir/${obj}x"
7439 generated="$generated $gentop"
8645 func_append generated " $gentop"
74408646
74418647 func_extract_archives $gentop $convenience
74428648 reload_conv_objs="$reload_objs $func_extract_archives_result"
74438649 fi
74448650 fi
74458651
8652 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8654
74468655 # Create the old-style object.
7447 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
74488657
74498658 output="$obj"
74508659 func_execute_cmds "$reload_cmds" 'exit $?'
75048713 case $host in
75058714 *-*-rhapsody* | *-*-darwin1.[012])
75068715 # On Rhapsody replace the C library is the System framework
7507 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7508 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
8716 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
75098718 ;;
75108719 esac
75118720
75168725 if test "$tagname" = CXX ; then
75178726 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
75188727 10.[0123])
7519 compile_command="$compile_command ${wl}-bind_at_load"
7520 finalize_command="$finalize_command ${wl}-bind_at_load"
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
75218730 ;;
75228731 esac
75238732 fi
75248733 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7525 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7526 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8734 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8735 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
75278736 ;;
75288737 esac
75298738
75378746 *)
75388747 case " $compile_deplibs " in
75398748 *" -L$path/$objdir "*)
7540 new_libs="$new_libs -L$path/$objdir" ;;
8749 func_append new_libs " -L$path/$objdir" ;;
75418750 esac
75428751 ;;
75438752 esac
75478756 -L*)
75488757 case " $new_libs " in
75498758 *" $deplib "*) ;;
7550 *) new_libs="$new_libs $deplib" ;;
8759 *) func_append new_libs " $deplib" ;;
75518760 esac
75528761 ;;
7553 *) new_libs="$new_libs $deplib" ;;
8762 *) func_append new_libs " $deplib" ;;
75548763 esac
75558764 done
75568765 compile_deplibs="$new_libs"
75578766
75588767
7559 compile_command="$compile_command $compile_deplibs"
7560 finalize_command="$finalize_command $finalize_deplibs"
8768 func_append compile_command " $compile_deplibs"
8769 func_append finalize_command " $finalize_deplibs"
75618770
75628771 if test -n "$rpath$xrpath"; then
75638772 # If the user specified any rpath flags, then add them.
75658774 # This is the magic to use -rpath.
75668775 case "$finalize_rpath " in
75678776 *" $libdir "*) ;;
7568 *) finalize_rpath="$finalize_rpath $libdir" ;;
8777 *) func_append finalize_rpath " $libdir" ;;
75698778 esac
75708779 done
75718780 fi
75848793 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
75858794 ;;
75868795 *)
7587 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8796 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
75888797 ;;
75898798 esac
75908799 fi
75918800 else
75928801 eval flag=\"$hardcode_libdir_flag_spec\"
7593 rpath="$rpath $flag"
8802 func_append rpath " $flag"
75948803 fi
75958804 elif test -n "$runpath_var"; then
75968805 case "$perm_rpath " in
75978806 *" $libdir "*) ;;
7598 *) perm_rpath="$perm_rpath $libdir" ;;
8807 *) func_append perm_rpath " $libdir" ;;
75998808 esac
76008809 fi
76018810 case $host in
76048813 case :$dllsearchpath: in
76058814 *":$libdir:"*) ;;
76068815 ::) dllsearchpath=$libdir;;
7607 *) dllsearchpath="$dllsearchpath:$libdir";;
8816 *) func_append dllsearchpath ":$libdir";;
76088817 esac
76098818 case :$dllsearchpath: in
76108819 *":$testbindir:"*) ;;
76118820 ::) dllsearchpath=$testbindir;;
7612 *) dllsearchpath="$dllsearchpath:$testbindir";;
8821 *) func_append dllsearchpath ":$testbindir";;
76138822 esac
76148823 ;;
76158824 esac
76358844 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
76368845 ;;
76378846 *)
7638 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8847 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
76398848 ;;
76408849 esac
76418850 fi
76428851 else
76438852 eval flag=\"$hardcode_libdir_flag_spec\"
7644 rpath="$rpath $flag"
8853 func_append rpath " $flag"
76458854 fi
76468855 elif test -n "$runpath_var"; then
76478856 case "$finalize_perm_rpath " in
76488857 *" $libdir "*) ;;
7649 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8858 *) func_append finalize_perm_rpath " $libdir" ;;
76508859 esac
76518860 fi
76528861 done
76608869
76618870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
76628871 # Transform all the library objects into standard objects.
7663 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7664 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8872 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8873 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
76658874 fi
76668875
76678876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
76738882
76748883 wrappers_required=yes
76758884 case $host in
8885 *cegcc* | *mingw32ce*)
8886 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
8888 ;;
76768889 *cygwin* | *mingw* )
76778890 if test "$build_libtool_libs" != yes; then
76788891 wrappers_required=no
76798892 fi
7680 ;;
7681 *cegcc)
7682 # Disable wrappers for cegcc, we are cross compiling anyway.
7683 wrappers_required=no
76848893 ;;
76858894 *)
76868895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
76908899 esac
76918900 if test "$wrappers_required" = no; then
76928901 # Replace the output file specification.
7693 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8902 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
76948903 link_command="$compile_command$compile_rpath"
76958904
76968905 # We have no uninstalled library dependencies, so finalize right now.
76978906 exit_status=0
76988907 func_show_eval "$link_command" 'exit_status=$?'
8908
8909 if test -n "$postlink_cmds"; then
8910 func_to_tool_file "$output"
8911 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8912 func_execute_cmds "$postlink_cmds" 'exit $?'
8913 fi
76998914
77008915 # Delete the generated files.
77018916 if test -f "$output_objdir/${outputname}S.${objext}"; then
77198934 # We should set the runpath_var.
77208935 rpath=
77218936 for dir in $perm_rpath; do
7722 rpath="$rpath$dir:"
8937 func_append rpath "$dir:"
77238938 done
77248939 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
77258940 fi
77278942 # We should set the runpath_var.
77288943 rpath=
77298944 for dir in $finalize_perm_rpath; do
7730 rpath="$rpath$dir:"
8945 func_append rpath "$dir:"
77318946 done
77328947 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
77338948 fi
77378952 # We don't need to create a wrapper script.
77388953 link_command="$compile_var$compile_command$compile_rpath"
77398954 # Replace the output file specification.
7740 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8955 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77418956 # Delete the old output file.
77428957 $opt_dry_run || $RM $output
77438958 # Link the executable and exit
77448959 func_show_eval "$link_command" 'exit $?'
8960
8961 if test -n "$postlink_cmds"; then
8962 func_to_tool_file "$output"
8963 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8964 func_execute_cmds "$postlink_cmds" 'exit $?'
8965 fi
8966
77458967 exit $EXIT_SUCCESS
77468968 fi
77478969
77568978 if test "$fast_install" != no; then
77578979 link_command="$finalize_var$compile_command$finalize_rpath"
77588980 if test "$fast_install" = yes; then
7759 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
77608982 else
77618983 # fast_install is set to needless
77628984 relink_command=
77688990 fi
77698991
77708992 # Replace the output file specification.
7771 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8993 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
77728994
77738995 # Delete the old output files.
77748996 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
77758997
77768998 func_show_eval "$link_command" 'exit $?'
8999
9000 if test -n "$postlink_cmds"; then
9001 func_to_tool_file "$output_objdir/$outputname"
9002 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'`
9003 func_execute_cmds "$postlink_cmds" 'exit $?'
9004 fi
77779005
77789006 # Now create the wrapper script.
77799007 func_verbose "creating $output"
77929020 fi
77939021 done
77949022 relink_command="(cd `pwd`; $relink_command)"
7795 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7796 fi
7797
7798 # Quote $ECHO for shipping.
7799 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7800 case $progpath in
7801 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7802 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7803 esac
7804 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7805 else
7806 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
9023 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
78079024 fi
78089025
78099026 # Only actually do things if not in dry run mode.
78839100 else
78849101 oldobjs="$old_deplibs $non_pic_objects"
78859102 if test "$preload" = yes && test -f "$symfileobj"; then
7886 oldobjs="$oldobjs $symfileobj"
9103 func_append oldobjs " $symfileobj"
78879104 fi
78889105 fi
78899106 addlibs="$old_convenience"
78919108
78929109 if test -n "$addlibs"; then
78939110 gentop="$output_objdir/${outputname}x"
7894 generated="$generated $gentop"
9111 func_append generated " $gentop"
78959112
78969113 func_extract_archives $gentop $addlibs
7897 oldobjs="$oldobjs $func_extract_archives_result"
9114 func_append oldobjs " $func_extract_archives_result"
78989115 fi
78999116
79009117 # Do each command in the archive commands.
79059122 # Add any objects from preloaded convenience libraries
79069123 if test -n "$dlprefiles"; then
79079124 gentop="$output_objdir/${outputname}x"
7908 generated="$generated $gentop"
9125 func_append generated " $gentop"
79099126
79109127 func_extract_archives $gentop $dlprefiles
7911 oldobjs="$oldobjs $func_extract_archives_result"
9128 func_append oldobjs " $func_extract_archives_result"
79129129 fi
79139130
79149131 # POSIX demands no paths to be encoded in archives. We have
79249141 done | sort | sort -uc >/dev/null 2>&1); then
79259142 :
79269143 else
7927 $ECHO "copying selected object files to avoid basename conflicts..."
9144 echo "copying selected object files to avoid basename conflicts..."
79289145 gentop="$output_objdir/${outputname}x"
7929 generated="$generated $gentop"
9146 func_append generated " $gentop"
79309147 func_mkdir_p "$gentop"
79319148 save_oldobjs=$oldobjs
79329149 oldobjs=
79509167 esac
79519168 done
79529169 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7953 oldobjs="$oldobjs $gentop/$newobj"
9170 func_append oldobjs " $gentop/$newobj"
79549171 ;;
7955 *) oldobjs="$oldobjs $obj" ;;
9172 *) func_append oldobjs " $obj" ;;
79569173 esac
79579174 done
79589175 fi
9176 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9177 tool_oldlib=$func_to_tool_file_result
79599178 eval cmds=\"$old_archive_cmds\"
79609179
79619180 func_len " $cmds"
79629181 len=$func_len_result
79639182 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9183 cmds=$old_archive_cmds
9184 elif test -n "$archiver_list_spec"; then
9185 func_verbose "using command file archive linking..."
9186 for obj in $oldobjs
9187 do
9188 func_to_tool_file "$obj"
9189 $ECHO "$func_to_tool_file_result"
9190 done > $output_objdir/$libname.libcmd
9191 func_to_tool_file "$output_objdir/$libname.libcmd"
9192 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
79649193 cmds=$old_archive_cmds
79659194 else
79669195 # the command line is too long to link in one step, link in parts
80359264 done
80369265 # Quote the link command for shipping.
80379266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8038 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9267 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
80399268 if test "$hardcode_automatic" = yes ; then
80409269 relink_command=
80419270 fi
80559284 *.la)
80569285 func_basename "$deplib"
80579286 name="$func_basename_result"
8058 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9287 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
80599289 test -z "$libdir" && \
80609290 func_fatal_error "\`$deplib' is not a valid libtool archive"
8061 newdependency_libs="$newdependency_libs $libdir/$name"
9291 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
80629292 ;;
8063 *) newdependency_libs="$newdependency_libs $deplib" ;;
9293 -L*)
9294 func_stripname -L '' "$deplib"
9295 func_replace_sysroot "$func_stripname_result"
9296 func_append newdependency_libs " -L$func_replace_sysroot_result"
9297 ;;
9298 -R*)
9299 func_stripname -R '' "$deplib"
9300 func_replace_sysroot "$func_stripname_result"
9301 func_append newdependency_libs " -R$func_replace_sysroot_result"
9302 ;;
9303 *) func_append newdependency_libs " $deplib" ;;
80649304 esac
80659305 done
80669306 dependency_libs="$newdependency_libs"
80749314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
80759315 test -z "$libdir" && \
80769316 func_fatal_error "\`$lib' is not a valid libtool archive"
8077 newdlfiles="$newdlfiles $libdir/$name"
9317 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
80789318 ;;
8079 *) newdlfiles="$newdlfiles $lib" ;;
9319 *) func_append newdlfiles " $lib" ;;
80809320 esac
80819321 done
80829322 dlfiles="$newdlfiles"
80939333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
80949334 test -z "$libdir" && \
80959335 func_fatal_error "\`$lib' is not a valid libtool archive"
8096 newdlprefiles="$newdlprefiles $libdir/$name"
9336 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
80979337 ;;
80989338 esac
80999339 done
81059345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81069346 *) abs=`pwd`"/$lib" ;;
81079347 esac
8108 newdlfiles="$newdlfiles $abs"
9348 func_append newdlfiles " $abs"
81099349 done
81109350 dlfiles="$newdlfiles"
81119351 newdlprefiles=
81149354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81159355 *) abs=`pwd`"/$lib" ;;
81169356 esac
8117 newdlprefiles="$newdlprefiles $abs"
9357 func_append newdlprefiles " $abs"
81189358 done
81199359 dlprefiles="$newdlprefiles"
81209360 fi
81219361 $RM $output
81229362 # place dlname in correct position for cygwin
9363 # In fact, it would be nice if we could use this code for all target
9364 # systems that can't hard-code library paths into their executables
9365 # and that have no shared library path variable independent of PATH,
9366 # but it turns out we can't easily determine that from inspecting
9367 # libtool variables, so we have to hard-code the OSs to which it
9368 # applies here; at the moment, that means platforms that use the PE
9369 # object format with DLL files. See the long comment at the top of
9370 # tests/bindir.at for full details.
81239371 tdlname=$dlname
81249372 case $host,$output,$installed,$module,$dlname in
8125 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
9373 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9374 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
9377 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
9379 else
9380 # Otherwise fall back on heuristic.
9381 tdlname=../bin/$dlname
9382 fi
9383 ;;
81269384 esac
81279385 $ECHO > $output "\
81289386 # $outputname - a libtool library file
81819439 exit $EXIT_SUCCESS
81829440 }
81839441
8184 { test "$mode" = link || test "$mode" = relink; } &&
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
81859443 func_mode_link ${1+"$@"}
81869444
81879445
82019459 for arg
82029460 do
82039461 case $arg in
8204 -f) RM="$RM $arg"; rmforce=yes ;;
8205 -*) RM="$RM $arg" ;;
8206 *) files="$files $arg" ;;
9462 -f) func_append RM " $arg"; rmforce=yes ;;
9463 -*) func_append RM " $arg" ;;
9464 *) func_append files " $arg" ;;
82079465 esac
82089466 done
82099467
82129470
82139471 rmdirs=
82149472
8215 origobjdir="$objdir"
82169473 for file in $files; do
82179474 func_dirname "$file" "" "."
82189475 dir="$func_dirname_result"
82199476 if test "X$dir" = X.; then
8220 objdir="$origobjdir"
9477 odir="$objdir"
82219478 else
8222 objdir="$dir/$origobjdir"
9479 odir="$dir/$objdir"
82239480 fi
82249481 func_basename "$file"
82259482 name="$func_basename_result"
8226 test "$mode" = uninstall && objdir="$dir"
8227
8228 # Remember objdir for removal later, being careful to avoid duplicates
8229 if test "$mode" = clean; then
9483 test "$opt_mode" = uninstall && odir="$dir"
9484
9485 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
82309487 case " $rmdirs " in
8231 *" $objdir "*) ;;
8232 *) rmdirs="$rmdirs $objdir" ;;
9488 *" $odir "*) ;;
9489 *) func_append rmdirs " $odir" ;;
82339490 esac
82349491 fi
82359492
82559512
82569513 # Delete the libtool libraries and symlinks.
82579514 for n in $library_names; do
8258 rmfiles="$rmfiles $objdir/$n"
9515 func_append rmfiles " $odir/$n"
82599516 done
8260 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8261
8262 case "$mode" in
9517 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518
9519 case "$opt_mode" in
82639520 clean)
8264 case " $library_names " in
8265 # " " in the beginning catches empty $dlname
9521 case " $library_names " in
82669522 *" $dlname "*) ;;
8267 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9523 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
82689524 esac
8269 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9525 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
82709526 ;;
82719527 uninstall)
82729528 if test -n "$library_names"; then
82949550 # Add PIC object to the list of files to remove.
82959551 if test -n "$pic_object" &&
82969552 test "$pic_object" != none; then
8297 rmfiles="$rmfiles $dir/$pic_object"
9553 func_append rmfiles " $dir/$pic_object"
82989554 fi
82999555
83009556 # Add non-PIC object to the list of files to remove.
83019557 if test -n "$non_pic_object" &&
83029558 test "$non_pic_object" != none; then
8303 rmfiles="$rmfiles $dir/$non_pic_object"
9559 func_append rmfiles " $dir/$non_pic_object"
83049560 fi
83059561 fi
83069562 ;;
83079563
83089564 *)
8309 if test "$mode" = clean ; then
9565 if test "$opt_mode" = clean ; then
83109566 noexename=$name
83119567 case $file in
83129568 *.exe)
83169572 noexename=$func_stripname_result
83179573 # $file with .exe has already been added to rmfiles,
83189574 # add $file without .exe
8319 rmfiles="$rmfiles $file"
9575 func_append rmfiles " $file"
83209576 ;;
83219577 esac
83229578 # Do a test to see if this is a libtool program.
83259581 func_ltwrapper_scriptname "$file"
83269582 relink_command=
83279583 func_source $func_ltwrapper_scriptname_result
8328 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9584 func_append rmfiles " $func_ltwrapper_scriptname_result"
83299585 else
83309586 relink_command=
83319587 func_source $dir/$noexename
83339589
83349590 # note $name still contains .exe if it was in $file originally
83359591 # as does the version of $file that was added into $rmfiles
8336 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
83379593 if test "$fast_install" = yes && test -n "$relink_command"; then
8338 rmfiles="$rmfiles $objdir/lt-$name"
9594 func_append rmfiles " $odir/lt-$name"
83399595 fi
83409596 if test "X$noexename" != "X$name" ; then
8341 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9597 func_append rmfiles " $odir/lt-${noexename}.c"
83429598 fi
83439599 fi
83449600 fi
83469602 esac
83479603 func_show_eval "$RM $rmfiles" 'exit_status=1'
83489604 done
8349 objdir="$origobjdir"
83509605
83519606 # Try to remove the ${objdir}s in the directories where we deleted files
83529607 for dir in $rmdirs; do
83589613 exit $exit_status
83599614 }
83609615
8361 { test "$mode" = uninstall || test "$mode" = clean; } &&
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
83629617 func_mode_uninstall ${1+"$@"}
83639618
8364 test -z "$mode" && {
9619 test -z "$opt_mode" && {
83659620 help="$generic_help"
83669621 func_fatal_help "you must specify a MODE"
83679622 }
83689623
83699624 test -z "$exec_cmd" && \
8370 func_fatal_help "invalid operation mode \`$mode'"
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
83719626
83729627 if test -n "$exec_cmd"; then
83739628 eval exec "$exec_cmd"
00 ## Process this file with automake to generate Makefile.in
11
2 check_PROGRAMS = conftest
2 check_PROGRAMS = symbol-check conftest
33
4 TESTS = $(check_PROGRAMS)
4 TESTS = conftest
55
66 EXTRA_DIST = conf.cfg
77
88 DISTCLEANFILES = conf2.cfg
9
10 RECHECK_LOGS =
911
1012 INCLUDES = -I$(top_srcdir) -DSRCDIR=\"$(srcdir)\"
1113 LDADD = $(top_builddir)/varconf/libvarconf-1.0.la
1214
1315 conftest_SOURCES = conftest.cpp
1416
17 symbol-check:
18 @set -e; \
19 newsymbols=$$(mktemp); \
20 test -f ${srcdir}/symbols.${host_cpu} && \
21 nm --defined-only --dynamic --demangle $(top_builddir)/varconf/.libs/libvarconf-1.0.so \
22 | cut --delimiter=' ' --fields=3- \
23 | sort -u > $${newsymbols} && \
24 diff ${srcdir}/symbols.${host_cpu} $${newsymbols} && \
25 echo "symbol check passed" || \
26 echo "*** symbols have changed"
27
28 nodist_symbol_check_SOURCES =
29 .PHONY: symbol-check
30
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
3232 POST_UNINSTALL = :
3333 build_triplet = @build@
3434 host_triplet = @host@
35 check_PROGRAMS = conftest$(EXEEXT)
35 check_PROGRAMS = symbol-check$(EXEEXT) conftest$(EXEEXT)
36 TESTS = conftest$(EXEEXT)
3637 subdir = tests
3738 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
3839 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4849 conftest_OBJECTS = $(am_conftest_OBJECTS)
4950 conftest_LDADD = $(LDADD)
5051 conftest_DEPENDENCIES = $(top_builddir)/varconf/libvarconf-1.0.la
52 AM_V_lt = $(am__v_lt_@AM_V@)
53 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
54 am__v_lt_0 = --silent
55 nodist_symbol_check_OBJECTS =
56 symbol_check_OBJECTS = $(nodist_symbol_check_OBJECTS)
57 symbol_check_LDADD = $(LDADD)
58 symbol_check_DEPENDENCIES = $(top_builddir)/varconf/libvarconf-1.0.la
5159 DEFAULT_INCLUDES =
5260 depcomp = $(SHELL) $(top_srcdir)/depcomp
5361 am__depfiles_maybe = depfiles
5462 am__mv = mv -f
5563 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
5664 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
57 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
58 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
59 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
65 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
66 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
67 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
68 $(AM_CXXFLAGS) $(CXXFLAGS)
69 AM_V_CXX = $(am__v_CXX_@AM_V@)
70 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
71 am__v_CXX_0 = @echo " CXX " $@;
72 AM_V_at = $(am__v_at_@AM_V@)
73 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
74 am__v_at_0 = @
6075 CXXLD = $(CXX)
61 CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
62 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
63 $(LDFLAGS) -o $@
64 SOURCES = $(conftest_SOURCES)
76 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
77 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
78 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
79 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
80 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
81 am__v_CXXLD_0 = @echo " CXXLD " $@;
82 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
83 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
84 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
85 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
86 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
87 $(AM_CFLAGS) $(CFLAGS)
88 AM_V_CC = $(am__v_CC_@AM_V@)
89 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
90 am__v_CC_0 = @echo " CC " $@;
91 CCLD = $(CC)
92 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
93 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
94 $(AM_LDFLAGS) $(LDFLAGS) -o $@
95 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
96 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
97 am__v_CCLD_0 = @echo " CCLD " $@;
98 AM_V_GEN = $(am__v_GEN_@AM_V@)
99 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
100 am__v_GEN_0 = @echo " GEN " $@;
101 SOURCES = $(conftest_SOURCES) $(nodist_symbol_check_SOURCES)
65102 DIST_SOURCES = $(conftest_SOURCES)
66103 ETAGS = etags
67104 CTAGS = ctags
105 # If stdout is a non-dumb tty, use colors. If test -t is not supported,
106 # then this fails; a conservative approach. Of course do not redirect
107 # stdout here, just stderr.
68108 am__tty_colors = \
69 red=; grn=; lgn=; blu=; std=
109 red=; grn=; lgn=; blu=; std=; \
110 test "X$(AM_COLOR_TESTS)" != Xno \
111 && test "X$$TERM" != Xdumb \
112 && { test "X$(AM_COLOR_TESTS)" = Xalways || test -t 1 2>/dev/null; } \
113 && { \
114 red=''; \
115 grn=''; \
116 lgn=''; \
117 blu=''; \
118 std=''; \
119 }
120 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
121 am__vpath_adj = case $$p in \
122 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
123 *) f=$$p;; \
124 esac;
125 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
126 am__install_max = 40
127 am__nobase_strip_setup = \
128 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
129 am__nobase_strip = \
130 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
131 am__nobase_list = $(am__nobase_strip_setup); \
132 for p in $$list; do echo "$$p $$p"; done | \
133 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
134 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
135 if (++n[$$2] == $(am__install_max)) \
136 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
137 END { for (dir in files) print dir, files[dir] }'
138 am__base_list = \
139 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
140 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
141 am__uninstall_files_from_dir = { \
142 test -z "$$files" \
143 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
144 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
145 $(am__cd) "$$dir" && rm -f $$files; }; \
146 }
147 # Restructured Text title and section.
148 am__rst_title = sed 's/.*/ & /;h;s/./=/g;p;x;p;g;p;s/.*//'
149 am__rst_section = sed 'p;s/./=/g;p;g'
150 # Put stdin (possibly several lines separated by ". ") in a box.
151 # Prefix each line by 'col' and terminate each with 'std', for coloring.
152 # Multi line coloring is problematic with "less -R", so we really need
153 # to color each line individually.
154 am__text_box = $(AWK) '{ \
155 n = split($$0, lines, "\\. "); max = 0; \
156 for (i = 1; i <= n; ++i) \
157 if (max < length(lines[i])) \
158 max = length(lines[i]); \
159 for (i = 0; i < max; ++i) \
160 line = line "="; \
161 print col line std; \
162 for (i = 1; i <= n; ++i) \
163 if (lines[i]) \
164 print col lines[i] std; \
165 print col line std; \
166 }'
167 # Solaris 10 'make', and several other traditional 'make' implementations,
168 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
169 # by disabling -e (using the XSI extension "set +e") if it's set.
170 am__sh_e_setup = case $$- in *e*) set +e;; esac
171 # To be inserted before the command running the test. Creates the
172 # directory for the log if needed. Stores in $dir the directory
173 # containing $f, in $tst the test, in $log the log, and passes
174 # TESTS_ENVIRONMENT. Save and restore TERM around use of
175 # TESTS_ENVIRONMENT, in case that unsets it.
176 am__check_pre = \
177 $(am__sh_e_setup); \
178 $(am__vpath_adj_setup) $(am__vpath_adj) \
179 srcdir=$(srcdir); export srcdir; \
180 rm -f $@-t; \
181 am__trap='rm -f '\''$(abs_builddir)/$@-t'\''; (exit $$st); exit $$st'; \
182 trap "st=129; $$am__trap" 1; trap "st=130; $$am__trap" 2; \
183 trap "st=141; $$am__trap" 13; trap "st=143; $$am__trap" 15; \
184 am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`; \
185 test "x$$am__odir" = x. || $(MKDIR_P) "$$am__odir" || exit $$?; \
186 if test -f "./$$f"; then dir=./; \
187 elif test -f "$$f"; then dir=; \
188 else dir="$(srcdir)/"; fi; \
189 tst=$$dir$$f; log='$@'; __SAVED_TERM=$$TERM; \
190 $(TESTS_ENVIRONMENT)
191 # To be appended to the command running the test. Handle the stdout
192 # and stderr redirection, and catch the exit status.
193 am__check_post = \
194 >$@-t 2>&1; \
195 estatus=$$?; \
196 if test -n '$(DISABLE_HARD_ERRORS)' \
197 && test $$estatus -eq 99; then \
198 estatus=1; \
199 fi; \
200 TERM=$$__SAVED_TERM; export TERM; \
201 $(am__tty_colors); \
202 xfailed=PASS; \
203 case " $(XFAIL_TESTS) " in \
204 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
205 xfailed=XFAIL;; \
206 esac; \
207 case $$estatus.$$xfailed in \
208 0.XFAIL) col=$$red; res=XPASS;; \
209 0.*) col=$$grn; res=PASS ;; \
210 77.*) col=$$blu; res=SKIP ;; \
211 99.*) col=$$red; res=FAIL ;; \
212 *.XFAIL) col=$$lgn; res=XFAIL;; \
213 *.*) col=$$red; res=FAIL ;; \
214 esac; \
215 echo "$${col}$$res$${std}: $$f"; \
216 echo "$$res: $$f (exit: $$estatus)" | \
217 $(am__rst_section) >$@; \
218 cat $@-t >>$@; \
219 rm -f $@-t
220 AM_RECURSIVE_TARGETS = check recheck check-html recheck-html
221 TEST_SUITE_HTML = $(TEST_SUITE_LOG:.log=.html)
222 TEST_SUITE_LOG = test-suite.log
223 TEST_EXTENSIONS = @EXEEXT@ .test
224 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
225 am__test_logs1 = $(TESTS:=.log)
226 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
227 TEST_LOGS = $(am__test_logs2:.test.log=.log)
228 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
229 $(TEST_LOG_FLAGS)
230 TEST_LOGS_TMP = $(TEST_LOGS:.log=.log-t)
70231 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
71232 ACLOCAL = @ACLOCAL@
72233 AMTAR = @AMTAR@
234 AM_CXXFLAGS = @AM_CXXFLAGS@
235 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
73236 AR = @AR@
74237 AUTOCONF = @AUTOCONF@
75238 AUTOHEADER = @AUTOHEADER@
87250 CYGPATH_W = @CYGPATH_W@
88251 DEFS = @DEFS@
89252 DEPDIR = @DEPDIR@
253 DLLTOOL = @DLLTOOL@
90254 DSYMUTIL = @DSYMUTIL@
91255 DUMPBIN = @DUMPBIN@
92256 ECHO_C = @ECHO_C@
110274 LN_S = @LN_S@
111275 LTLIBOBJS = @LTLIBOBJS@
112276 MAKEINFO = @MAKEINFO@
277 MANIFEST_TOOL = @MANIFEST_TOOL@
113278 MIN_SIGC_VERSION = @MIN_SIGC_VERSION@
114279 MKDIR_P = @MKDIR_P@
115280 NM = @NM@
143308 abs_srcdir = @abs_srcdir@
144309 abs_top_builddir = @abs_top_builddir@
145310 abs_top_srcdir = @abs_top_srcdir@
311 ac_ct_AR = @ac_ct_AR@
146312 ac_ct_CC = @ac_ct_CC@
147313 ac_ct_CXX = @ac_ct_CXX@
148314 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
176342 libexecdir = @libexecdir@
177343 localedir = @localedir@
178344 localstatedir = @localstatedir@
179 lt_ECHO = @lt_ECHO@
180345 mandir = @mandir@
181346 mkdir_p = @mkdir_p@
182347 oldincludedir = @oldincludedir@
192357 top_build_prefix = @top_build_prefix@
193358 top_builddir = @top_builddir@
194359 top_srcdir = @top_srcdir@
195 TESTS = $(check_PROGRAMS)
196360 EXTRA_DIST = conf.cfg
197361 DISTCLEANFILES = conf2.cfg
362 RECHECK_LOGS =
198363 INCLUDES = -I$(top_srcdir) -DSRCDIR=\"$(srcdir)\"
199364 LDADD = $(top_builddir)/varconf/libvarconf-1.0.la
200365 conftest_SOURCES = conftest.cpp
366 nodist_symbol_check_SOURCES =
201367 all: all-am
202368
203369 .SUFFIXES:
204 .SUFFIXES: .cpp .lo .o .obj
370 .SUFFIXES: .cpp .html .lo .log .o .obj .test .test$(EXEEXT)
205371 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
206372 @for dep in $?; do \
207373 case '$(am__configure_deps)' in \
241407 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
242408 echo " rm -f" $$list; \
243409 rm -f $$list
244 conftest$(EXEEXT): $(conftest_OBJECTS) $(conftest_DEPENDENCIES)
410 conftest$(EXEEXT): $(conftest_OBJECTS) $(conftest_DEPENDENCIES) $(EXTRA_conftest_DEPENDENCIES)
245411 @rm -f conftest$(EXEEXT)
246 $(CXXLINK) $(conftest_OBJECTS) $(conftest_LDADD) $(LIBS)
412 $(AM_V_CXXLD)$(CXXLINK) $(conftest_OBJECTS) $(conftest_LDADD) $(LIBS)
247413
248414 mostlyclean-compile:
249415 -rm -f *.$(OBJEXT)
254420 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conftest.Po@am__quote@
255421
256422 .cpp.o:
257 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
258 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
259 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
423 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
424 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
425 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
260426 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
261 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
427 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
262428
263429 .cpp.obj:
264 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
265 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
266 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
430 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
431 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
432 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
267433 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
268 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
434 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
269435
270436 .cpp.lo:
271 @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
272 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
273 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
437 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
438 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
439 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
274440 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
275 @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
441 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
276442
277443 mostlyclean-libtool:
278444 -rm -f *.lo
332498 distclean-tags:
333499 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
334500
335 check-TESTS: $(TESTS)
336 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
337 srcdir=$(srcdir); export srcdir; \
338 list=' $(TESTS) '; \
339 $(am__tty_colors); \
340 if test -n "$$list"; then \
341 for tst in $$list; do \
342 if test -f ./$$tst; then dir=./; \
343 elif test -f $$tst; then dir=; \
344 else dir="$(srcdir)/"; fi; \
345 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
346 all=`expr $$all + 1`; \
347 case " $(XFAIL_TESTS) " in \
348 *[\ \ ]$$tst[\ \ ]*) \
349 xpass=`expr $$xpass + 1`; \
350 failed=`expr $$failed + 1`; \
351 col=$$red; res=XPASS; \
352 ;; \
353 *) \
354 col=$$grn; res=PASS; \
355 ;; \
356 esac; \
357 elif test $$? -ne 77; then \
358 all=`expr $$all + 1`; \
359 case " $(XFAIL_TESTS) " in \
360 *[\ \ ]$$tst[\ \ ]*) \
361 xfail=`expr $$xfail + 1`; \
362 col=$$lgn; res=XFAIL; \
363 ;; \
364 *) \
365 failed=`expr $$failed + 1`; \
366 col=$$red; res=FAIL; \
367 ;; \
368 esac; \
369 else \
370 skip=`expr $$skip + 1`; \
371 col=$$blu; res=SKIP; \
372 fi; \
373 echo "$${col}$$res$${std}: $$tst"; \
374 done; \
375 if test "$$all" -eq 1; then \
376 tests="test"; \
377 All=""; \
378 else \
379 tests="tests"; \
380 All="All "; \
381 fi; \
382 if test "$$failed" -eq 0; then \
383 if test "$$xfail" -eq 0; then \
384 banner="$$All$$all $$tests passed"; \
385 else \
386 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
387 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
388 fi; \
389 else \
390 if test "$$xpass" -eq 0; then \
391 banner="$$failed of $$all $$tests failed"; \
392 else \
393 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
394 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__sh_e_setup); \
503 list='$(TEST_LOGS)'; \
504 results=`for f in $$list; do \
505 test -r $$f && read line < $$f && echo "$$line" \
506 || echo FAIL; \
507 done`; \
508 all=`echo "$$results" | sed '/^$$/d' | wc -l | sed -e 's/^[ ]*//'`; \
509 fail=`echo "$$results" | grep -c '^FAIL'`; \
510 pass=`echo "$$results" | grep -c '^PASS'`; \
511 skip=`echo "$$results" | grep -c '^SKIP'`; \
512 xfail=`echo "$$results" | grep -c '^XFAIL'`; \
513 xpass=`echo "$$results" | grep -c '^XPASS'`; \
514 failures=`expr $$fail + $$xpass`; \
515 all=`expr $$all - $$skip`; \
516 if test "$$all" -eq 1; then tests=test; All=; \
517 else tests=tests; All="All "; fi; \
518 case fail=$$fail:xpass=$$xpass:xfail=$$xfail in \
519 fail=0:xpass=0:xfail=0) \
520 msg="$$All$$all $$tests passed. "; \
521 exit=true;; \
522 fail=0:xpass=0:xfail=*) \
523 msg="$$All$$all $$tests behaved as expected"; \
524 if test "$$xfail" -eq 1; then xfailures=failure; \
525 else xfailures=failures; fi; \
526 msg="$$msg ($$xfail expected $$xfailures). "; \
527 exit=true;; \
528 fail=*:xpass=0:xfail=*) \
529 msg="$$fail of $$all $$tests failed. "; \
530 exit=false;; \
531 fail=*:xpass=*:xfail=*) \
532 msg="$$failures of $$all $$tests did not behave as expected"; \
533 if test "$$xpass" -eq 1; then xpasses=pass; \
534 else xpasses=passes; fi; \
535 msg="$$msg ($$xpass unexpected $$xpasses). "; \
536 exit=false;; \
537 *) \
538 echo >&2 "incorrect case"; exit 4;; \
539 esac; \
540 if test "$$skip" -ne 0; then \
541 if test "$$skip" -eq 1; then \
542 msg="$$msg($$skip test was not run). "; \
543 else \
544 msg="$$msg($$skip tests were not run). "; \
545 fi; \
546 fi; \
547 { \
548 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
549 $(am__rst_title); \
550 echo "$$msg"; \
551 echo; \
552 echo ".. contents:: :depth: 2"; \
553 echo; \
554 for f in $$list; do \
555 test -r $$f && read line < $$f || line=; \
556 case $$line in \
557 PASS:*|XFAIL:*);; \
558 *) echo; cat $$f;; \
559 esac; \
560 done; \
561 } >$(TEST_SUITE_LOG).tmp; \
562 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
563 if test "$$failures" -ne 0; then \
564 msg="$${msg}See $(subdir)/$(TEST_SUITE_LOG). "; \
565 if test -n "$(PACKAGE_BUGREPORT)"; then \
566 msg="$${msg}Please report to $(PACKAGE_BUGREPORT). "; \
567 fi; \
568 fi; \
569 test x"$$VERBOSE" = x || $$exit || cat $(TEST_SUITE_LOG); \
570 $(am__tty_colors); \
571 if $$exit; then \
572 col="$$grn"; \
573 else \
574 col="$$red"; \
575 fi; \
576 echo "$$msg" | $(am__text_box) "col=$$col" "std=$$std"; \
577 $$exit || exit 1
578
579 check-TESTS recheck:
580 @if test $@ != recheck; then \
581 list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list; \
582 fi
583 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
584 @list='' list2='$(TEST_LOGS)'; for f in $$list2; do \
585 test .log = $$f && continue; \
586 if test $@ = recheck; then \
587 test -f $$f || continue; \
588 if test -r $$f && read line < $$f; then \
589 case $$line in FAIL*|XPASS*) : ;; *) continue;; esac; \
395590 fi; \
396591 fi; \
397 dashes="$$banner"; \
398 skipped=""; \
399 if test "$$skip" -ne 0; then \
400 if test "$$skip" -eq 1; then \
401 skipped="($$skip test was not run)"; \
402 else \
403 skipped="($$skip tests were not run)"; \
404 fi; \
405 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
406 dashes="$$skipped"; \
407 fi; \
408 report=""; \
409 if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
410 report="Please report to $(PACKAGE_BUGREPORT)"; \
411 test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
412 dashes="$$report"; \
413 fi; \
414 dashes=`echo "$$dashes" | sed s/./=/g`; \
415 if test "$$failed" -eq 0; then \
416 echo "$$grn$$dashes"; \
417 else \
418 echo "$$red$$dashes"; \
419 fi; \
420 echo "$$banner"; \
421 test -z "$$skipped" || echo "$$skipped"; \
422 test -z "$$report" || echo "$$report"; \
423 echo "$$dashes$$std"; \
424 test "$$failed" -eq 0; \
425 else :; fi
592 if test -z "$$list"; then list=$$f; else list="$$list $$f"; fi; \
593 done; \
594 if test $@ = recheck && test -n "$$list"; then \
595 echo "am--clean: ; rm -f $$list" \
596 | $(MAKE) $(AM_MAKEFLAGS) -f - am--clean || exit 1; \
597 fi; \
598 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$list"
599 recheck: $(check_PROGRAMS)
600
601 am--mostlyclean-test-html:
602 list='$(TEST_LOGS:.log=.html)'; test -z "$$list" || rm -f $$list
603 rm -f $(TEST_SUITE_HTML)
604
605 .log.html:
606 @list='$(RST2HTML) $$RST2HTML rst2html rst2html.py'; \
607 for r2h in $$list; do \
608 if ($$r2h --version) >/dev/null 2>&1; then \
609 R2H=$$r2h; \
610 fi; \
611 done; \
612 if test -z "$$R2H"; then \
613 echo >&2 "cannot find rst2html, cannot create $@"; \
614 exit 2; \
615 fi; \
616 $$R2H $< >$@.tmp
617 @mv $@.tmp $@
618
619 # Be sure to run check first, and then to convert the result.
620 # Beware of concurrent executions. Run "check" not "check-TESTS", as
621 # check-SCRIPTS and other dependencies are rebuilt by the former only.
622 # And expect check to fail.
623 check-html recheck-html:
624 @target=`echo $@ | sed 's/-html$$//'`; \
625 rv=0; $(MAKE) $(AM_MAKEFLAGS) $$target || rv=$$?; \
626 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_HTML) TEST_LOGS= || exit 4; \
627 exit $$rv
628 conftest.log: conftest$(EXEEXT)
629 @p='conftest$(EXEEXT)'; $(am__check_pre) $(LOG_COMPILE) "$$tst" $(am__check_post)
630 .test.log:
631 @p='$<'; $(am__check_pre) $(TEST_LOG_COMPILE) "$$tst" $(am__check_post)
632 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
633 @am__EXEEXT_TRUE@ @p='$<'; $(am__check_pre) $(TEST_LOG_COMPILE) "$$tst" $(am__check_post)
426634
427635 distdir: $(DISTFILES)
428636 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
470678
471679 installcheck: installcheck-am
472680 install-strip:
473 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
474 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
475 `test -z '$(STRIP)' || \
476 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
681 if test -z '$(STRIP)'; then \
682 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
683 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
684 install; \
685 else \
686 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
687 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
688 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
689 fi
477690 mostlyclean-generic:
691 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
692 -test -z "$(TEST_LOGS_TMP)" || rm -f $(TEST_LOGS_TMP)
693 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
478694
479695 clean-generic:
480696
544760
545761 mostlyclean: mostlyclean-am
546762
547 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
548 mostlyclean-libtool
763 mostlyclean-am: am--mostlyclean-test-html mostlyclean-compile \
764 mostlyclean-generic mostlyclean-libtool
549765
550766 pdf: pdf-am
551767
557773
558774 uninstall-am:
559775
560 .MAKE: check-am install-am install-strip
561
562 .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
563 clean-checkPROGRAMS clean-generic clean-libtool ctags \
564 distclean distclean-compile distclean-generic \
565 distclean-libtool distclean-tags distdir dvi dvi-am html \
566 html-am info info-am install install-am install-data \
567 install-data-am install-dvi install-dvi-am install-exec \
568 install-exec-am install-html install-html-am install-info \
569 install-info-am install-man install-pdf install-pdf-am \
570 install-ps install-ps-am install-strip installcheck \
571 installcheck-am installdirs maintainer-clean \
776 .MAKE: check-am check-html install-am install-strip recheck-html
777
778 .PHONY: CTAGS GTAGS all all-am am--mostlyclean-test-html check \
779 check-TESTS check-am check-html clean clean-checkPROGRAMS \
780 clean-generic clean-libtool ctags distclean distclean-compile \
781 distclean-generic distclean-libtool distclean-tags distdir dvi \
782 dvi-am html html-am info info-am install install-am \
783 install-data install-data-am install-dvi install-dvi-am \
784 install-exec install-exec-am install-html install-html-am \
785 install-info install-info-am install-man install-pdf \
786 install-pdf-am install-ps install-ps-am install-strip \
787 installcheck installcheck-am installdirs maintainer-clean \
572788 maintainer-clean-generic mostlyclean mostlyclean-compile \
573789 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
574 tags uninstall uninstall-am
575
790 recheck recheck-html tags uninstall uninstall-am
791
792
793 symbol-check:
794 @set -e; \
795 newsymbols=$$(mktemp); \
796 test -f ${srcdir}/symbols.${host_cpu} && \
797 nm --defined-only --dynamic --demangle $(top_builddir)/varconf/.libs/libvarconf-1.0.so \
798 | cut --delimiter=' ' --fields=3- \
799 | sort -u > $${newsymbols} && \
800 diff ${srcdir}/symbols.${host_cpu} $${newsymbols} && \
801 echo "symbol check passed" || \
802 echo "*** symbols have changed"
803 .PHONY: symbol-check
576804
577805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
578806 # Otherwise a system limit (for SysV at least) may be exceeded.
1212 libvarconfincludedir = $(includedir)/varconf-1.0/varconf
1313 libvarconfinclude_HEADERS = \
1414 config.h parse_error.h varconf.h variable.h \
15 dynbase.h dyntypes.h dyncmp.h dynvar.h
15 dynbase.h dyntypes.h dyncmp.h dynvar.h varconf_defs.h
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
6767 am__base_list = \
6868 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
6969 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
70 am__uninstall_files_from_dir = { \
71 test -z "$$files" \
72 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
73 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
74 $(am__cd) "$$dir" && rm -f $$files; }; \
75 }
7076 am__installdirs = "$(DESTDIR)$(libdir)" \
7177 "$(DESTDIR)$(libvarconfincludedir)"
7278 LTLIBRARIES = $(lib_LTLIBRARIES)
7480 am_libvarconf_1_0_la_OBJECTS = config.lo parse_error.lo variable.lo \
7581 dynbase.lo dyntypes.lo dyncmp.lo
7682 libvarconf_1_0_la_OBJECTS = $(am_libvarconf_1_0_la_OBJECTS)
77 libvarconf_1_0_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
78 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
79 $(CXXFLAGS) $(libvarconf_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
83 AM_V_lt = $(am__v_lt_@AM_V@)
84 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
85 am__v_lt_0 = --silent
86 libvarconf_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
87 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
88 $(AM_CXXFLAGS) $(CXXFLAGS) $(libvarconf_1_0_la_LDFLAGS) \
89 $(LDFLAGS) -o $@
8090 DEFAULT_INCLUDES =
8191 depcomp = $(SHELL) $(top_srcdir)/depcomp
8292 am__depfiles_maybe = depfiles
8393 am__mv = mv -f
8494 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
8595 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
86 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
87 --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
88 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
96 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
97 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
98 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
99 $(AM_CXXFLAGS) $(CXXFLAGS)
100 AM_V_CXX = $(am__v_CXX_@AM_V@)
101 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
102 am__v_CXX_0 = @echo " CXX " $@;
103 AM_V_at = $(am__v_at_@AM_V@)
104 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
105 am__v_at_0 = @
89106 CXXLD = $(CXX)
90 CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
91 --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
92 $(LDFLAGS) -o $@
107 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
108 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
109 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
110 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
111 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
112 am__v_CXXLD_0 = @echo " CXXLD " $@;
113 AM_V_GEN = $(am__v_GEN_@AM_V@)
114 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
115 am__v_GEN_0 = @echo " GEN " $@;
93116 SOURCES = $(libvarconf_1_0_la_SOURCES)
94117 DIST_SOURCES = $(libvarconf_1_0_la_SOURCES)
95118 HEADERS = $(libvarconfinclude_HEADERS)
98121 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
99122 ACLOCAL = @ACLOCAL@
100123 AMTAR = @AMTAR@
124 AM_CXXFLAGS = @AM_CXXFLAGS@
125 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
101126 AR = @AR@
102127 AUTOCONF = @AUTOCONF@
103128 AUTOHEADER = @AUTOHEADER@
115140 CYGPATH_W = @CYGPATH_W@
116141 DEFS = @DEFS@
117142 DEPDIR = @DEPDIR@
143 DLLTOOL = @DLLTOOL@
118144 DSYMUTIL = @DSYMUTIL@
119145 DUMPBIN = @DUMPBIN@
120146 ECHO_C = @ECHO_C@
138164 LN_S = @LN_S@
139165 LTLIBOBJS = @LTLIBOBJS@
140166 MAKEINFO = @MAKEINFO@
167 MANIFEST_TOOL = @MANIFEST_TOOL@
141168 MIN_SIGC_VERSION = @MIN_SIGC_VERSION@
142169 MKDIR_P = @MKDIR_P@
143170 NM = @NM@
171198 abs_srcdir = @abs_srcdir@
172199 abs_top_builddir = @abs_top_builddir@
173200 abs_top_srcdir = @abs_top_srcdir@
201 ac_ct_AR = @ac_ct_AR@
174202 ac_ct_CC = @ac_ct_CC@
175203 ac_ct_CXX = @ac_ct_CXX@
176204 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
204232 libexecdir = @libexecdir@
205233 localedir = @localedir@
206234 localstatedir = @localstatedir@
207 lt_ECHO = @lt_ECHO@
208235 mandir = @mandir@
209236 mkdir_p = @mkdir_p@
210237 oldincludedir = @oldincludedir@
230257 libvarconfincludedir = $(includedir)/varconf-1.0/varconf
231258 libvarconfinclude_HEADERS = \
232259 config.h parse_error.h varconf.h variable.h \
233 dynbase.h dyntypes.h dyncmp.h dynvar.h
260 dynbase.h dyntypes.h dyncmp.h dynvar.h varconf_defs.h
234261
235262 all: all-am
236263
297324 echo "rm -f \"$${dir}/so_locations\""; \
298325 rm -f "$${dir}/so_locations"; \
299326 done
300 libvarconf-1.0.la: $(libvarconf_1_0_la_OBJECTS) $(libvarconf_1_0_la_DEPENDENCIES)
301 $(libvarconf_1_0_la_LINK) -rpath $(libdir) $(libvarconf_1_0_la_OBJECTS) $(libvarconf_1_0_la_LIBADD) $(LIBS)
327 libvarconf-1.0.la: $(libvarconf_1_0_la_OBJECTS) $(libvarconf_1_0_la_DEPENDENCIES) $(EXTRA_libvarconf_1_0_la_DEPENDENCIES)
328 $(AM_V_CXXLD)$(libvarconf_1_0_la_LINK) -rpath $(libdir) $(libvarconf_1_0_la_OBJECTS) $(libvarconf_1_0_la_LIBADD) $(LIBS)
302329
303330 mostlyclean-compile:
304331 -rm -f *.$(OBJEXT)
314341 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/variable.Plo@am__quote@
315342
316343 .cpp.o:
317 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
344 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
345 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
346 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
320347 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
348 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
322349
323350 .cpp.obj:
324 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
325 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
326 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
351 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
352 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
353 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
327354 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
355 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
329356
330357 .cpp.lo:
331 @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
332 @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
333 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
358 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
359 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
360 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
334361 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
335 @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
362 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
336363
337364 mostlyclean-libtool:
338365 -rm -f *.lo
356383 @$(NORMAL_UNINSTALL)
357384 @list='$(libvarconfinclude_HEADERS)'; test -n "$(libvarconfincludedir)" || list=; \
358385 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
359 test -n "$$files" || exit 0; \
360 echo " ( cd '$(DESTDIR)$(libvarconfincludedir)' && rm -f" $$files ")"; \
361 cd "$(DESTDIR)$(libvarconfincludedir)" && rm -f $$files
386 dir='$(DESTDIR)$(libvarconfincludedir)'; $(am__uninstall_files_from_dir)
362387
363388 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
364389 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
459484
460485 installcheck: installcheck-am
461486 install-strip:
462 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
463 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
464 `test -z '$(STRIP)' || \
465 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
487 if test -z '$(STRIP)'; then \
488 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
489 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
490 install; \
491 else \
492 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
493 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
494 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
495 fi
466496 mostlyclean-generic:
467497
468498 clean-generic:
112112 m_par_lookup = conf.m_par_lookup;
113113 }
114114
115 Config::~Config()
116 {
117 if (m_instance == this)
118 m_instance = NULL;
119 }
120
115121 std::ostream & operator <<(std::ostream & out, Config & conf)
116122 {
117123 if (!conf.writeToStream(out, USER)) {
2626 #ifndef VARCONF_CONFIG_H
2727 #define VARCONF_CONFIG_H
2828
29 #include <varconf/varconf_defs.h>
2930 #include <varconf/parse_error.h>
3031 #include <varconf/variable.h>
3132
4243 typedef std::map< std::string, sec_map> conf_map;
4344 typedef std::map< char, std::pair<std::string, bool> > parameter_map;
4445
45 class Config : virtual protected sigc::trackable {
46 class VARCONF_API Config : virtual protected sigc::trackable {
4647 public:
4748 // Allows use as a singleton, if desired.
4849 static Config* inst();
5354 // passed Config object.
5455 Config(const Config & conf);
5556
56 virtual ~Config() {if(m_instance == this) m_instance = 0;}
57 virtual ~Config();
5758
5859 friend std::ostream & operator <<(std::ostream & out, Config & conf);
5960 friend std::istream & operator >>(std::istream & in, Config & conf);
130131 parameter_map m_par_lookup;
131132 };
132133
134
135 VARCONF_API std::ostream & operator <<(std::ostream & out, Config & conf);
136 VARCONF_API std::istream & operator >>(std::istream & in, Config & conf);
137 VARCONF_API bool operator ==(const Config & one, const Config & two);
138
133139 } // namespace varconf
134140
135141 #endif // VARCONF_CONFIG_H
2626 #ifndef VARCONF_PARSEERROR_H
2727 #define VARCONF_PARSEERROR_H
2828
29 #include <varconf/varconf_defs.h>
2930 #include <iostream>
3031 #include <string>
3132
3233 namespace varconf {
3334
34 class ParseError {
35 class VARCONF_API ParseError {
3536 public:
3637 ParseError() {}
3738 ParseError(const ParseError& p);
4849 int m_line, m_col;
4950 };
5051
52 VARCONF_API std::ostream& operator<<(std::ostream& os, const ParseError& p);
53
5154 } // namespace varconf
5255
5356 #endif
0 /**
1 * varconf_defs.h - project-wide definitions for the varconf library
2 *
3 * Copyright 2012 Stephen M. Webb <stephen.webb@bregmasoft.ca>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 #ifndef VARCONF_VARCONF_DEFS_H
20 #define VARCONF_VARCONF_DEFS_H
21
22 #if defined _WIN32 || defined __CYGWIN__
23 #ifdef BUILDING_VARCONF_DSO
24 #define VARCONF_API __declspec(dllexport)
25 #else
26 #define VARCONF_API __declspec(dllimport)
27 #endif
28 #define DLL_LOCAL
29 #else
30 #if __GNUC__ >= 4
31 #define VARCONF_API __attribute__ ((visibility ("default")))
32 #else
33 #define VARCONF_API
34 #endif
35 #endif
36
37 #endif /* VARCONF_VARCONF_DEFS_H */
352352 }
353353
354354
355 VarArray::~VarArray()
356 { }
357
355358 std::ostream& operator<<( std::ostream& out, const VarArray& v)
356359 {
357360 out << "(";
2626 #ifndef VARCONF_VARIABLE_H
2727 #define VARCONF_VARIABLE_H
2828
29 #include "varconf/varconf_defs.h"
30
2931 #include <sigc++/trackable.h>
3032
3133 #include <string>
3941 INSTANCE = 0x1 << 2
4042 } Scope;
4143
42 class VarBase : virtual public sigc::trackable {
44 class VARCONF_API VarBase : virtual public sigc::trackable {
4345 public:
4446 VarBase();
4547 VarBase(const VarBase& c);
9193 Scope m_scope;
9294 };
9395
96 VARCONF_API std::ostream& operator<<(std::ostream& out, const VarBase& v);
97 VARCONF_API bool operator ==(const VarBase& one, const VarBase& two);
98
9499 // The next two classes manage a reference count to
95100 // a pointer to class VarBase.
96101
113118 unsigned long m_ref;
114119 };
115120
116 class VarPtr
121 class VARCONF_API VarPtr
117122 {
118123 public:
119124 VarPtr(VarBase *vb) : m_box(new VarBox(vb)) {}
141146 class Variable;
142147 typedef std::vector<Variable> VarList;
143148
144 class Variable : public VarPtr {
149 class VARCONF_API Variable : public VarPtr {
145150 public:
146151 Variable() : VarPtr(new VarBase()) {}
147152 Variable(const Variable& c);
194199 bool is_array() const {return array() != 0;}
195200 };
196201
197 class VarArray : public VarBase, public VarList {
202 class VARCONF_API VarArray : public VarBase, public VarList {
198203 public:
199204 VarArray() : VarBase(), VarList() {}
200205 VarArray(const VarArray& v) : VarBase(), VarList(v) {}
201206 VarArray(const int n, const Variable& v = Variable())
202207 : VarBase(), VarList(n, v) {}
203208 VarArray(const VarList& v) : VarBase(), VarList(v) {}
209 ~VarArray();
204210
205211 friend std::ostream& operator<<(std::ostream& out, const VarArray& v);
206212 friend bool operator ==(const VarBase& one, const VarArray& two) {return false;}
00 %define name varconf
1 %define version 0.6.7
1 %define version 1.0.0
22 %define release 1
33 %define libsuffix -1.0
44