Codebase list ssh-contact / e4f48cc
Imported Upstream version 0.7 Laurent Bigonville 12 years ago
34 changed file(s) with 7190 addition(s) and 6704 deletion(s). Raw diff Collapse all Expand all
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
4 Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
225225
226226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
228233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230235 a workaround. If GNU CC is not installed, it is therefore recommended
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.
5050 CONFIG_HEADER = config.h
5151 CONFIG_CLEAN_FILES =
5252 CONFIG_CLEAN_VPATH_FILES =
53 AM_V_GEN = $(am__v_GEN_$(V))
54 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
53 AM_V_GEN = $(am__v_GEN_@AM_V@)
54 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
5555 am__v_GEN_0 = @echo " GEN " $@;
56 AM_V_at = $(am__v_at_$(V))
57 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
56 AM_V_at = $(am__v_at_@AM_V@)
57 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5858 am__v_at_0 = @
5959 SOURCES =
6060 DIST_SOURCES =
7777 distdir = $(PACKAGE)-$(VERSION)
7878 top_distdir = $(distdir)
7979 am__remove_distdir = \
80 { test ! -d "$(distdir)" \
81 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
82 && rm -fr "$(distdir)"; }; }
80 if test -d "$(distdir)"; then \
81 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
82 && rm -rf "$(distdir)" \
83 || { sleep 5 && rm -rf "$(distdir)"; }; \
84 else :; fi
8385 am__relativize = \
8486 dir0=`pwd`; \
8587 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
108110 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
109111 GZIP_ENV = --best
110112 distuninstallcheck_listfiles = find . -type f -print
113 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
114 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
111115 distcleancheck_listfiles = find . -type f -print
112116 ACLOCAL = @ACLOCAL@
113117 ALL_LINGUAS = @ALL_LINGUAS@
129133 DATADIRNAME = @DATADIRNAME@
130134 DEFS = @DEFS@
131135 DEPDIR = @DEPDIR@
136 DLLTOOL = @DLLTOOL@
132137 DSYMUTIL = @DSYMUTIL@
133138 DUMPBIN = @DUMPBIN@
134139 ECHO_C = @ECHO_C@
140145 FGREP = @FGREP@
141146 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
142147 GLIB_CFLAGS = @GLIB_CFLAGS@
148 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
143149 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
144150 GLIB_LIBS = @GLIB_LIBS@
145151 GLIB_MKENUMS = @GLIB_MKENUMS@
158164 INTLTOOL_MERGE = @INTLTOOL_MERGE@
159165 INTLTOOL_PERL = @INTLTOOL_PERL@
160166 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
167 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
168 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
169 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
170 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
161171 LD = @LD@
162172 LDFLAGS = @LDFLAGS@
163173 LIBOBJS = @LIBOBJS@
168178 LTLIBOBJS = @LTLIBOBJS@
169179 MAINT = @MAINT@
170180 MAKEINFO = @MAKEINFO@
181 MANIFEST_TOOL = @MANIFEST_TOOL@
171182 MKDIR_P = @MKDIR_P@
172183 MKINSTALLDIRS = @MKINSTALLDIRS@
173184 MSGFMT = @MSGFMT@
203214 STRIP = @STRIP@
204215 USE_NLS = @USE_NLS@
205216 VERSION = @VERSION@
206 VINAGRE_CFLAGS = @VINAGRE_CFLAGS@
207 VINAGRE_LIBS = @VINAGRE_LIBS@
208217 XGETTEXT = @XGETTEXT@
209218 XMKMF = @XMKMF@
210219 X_CFLAGS = @X_CFLAGS@
215224 abs_srcdir = @abs_srcdir@
216225 abs_top_builddir = @abs_top_builddir@
217226 abs_top_srcdir = @abs_top_srcdir@
227 ac_ct_AR = @ac_ct_AR@
218228 ac_ct_CC = @ac_ct_CC@
219229 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
220230 am__include = @am__include@
243253 includedir = @includedir@
244254 infodir = @infodir@
245255 install_sh = @install_sh@
256 intltool__v_merge_options_ = @intltool__v_merge_options_@
257 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
246258 libdir = @libdir@
247259 libexecdir = @libexecdir@
248260 localedir = @localedir@
249261 localstatedir = @localstatedir@
250 lt_ECHO = @lt_ECHO@
251262 mandir = @mandir@
252263 mkdir_p = @mkdir_p@
253264 oldincludedir = @oldincludedir@
269280 $(MAKE) $(AM_MAKEFLAGS) all-recursive
270281
271282 .SUFFIXES:
272 am--refresh:
283 am--refresh: Makefile
273284 @:
274285 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
275286 @for dep in $?; do \
305316 $(am__aclocal_m4_deps):
306317
307318 config.h: stamp-h1
308 @if test ! -f $@; then \
309 rm -f stamp-h1; \
310 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
311 else :; fi
319 @if test ! -f $@; then rm -f stamp-h1; else :; fi
320 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
312321
313322 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
314323 @rm -f stamp-h1
536545 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
537546 $(am__remove_distdir)
538547 dist-bzip2: distdir
539 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
548 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
549 $(am__remove_distdir)
550
551 dist-lzip: distdir
552 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
540553 $(am__remove_distdir)
541554
542555 dist-lzma: distdir
544557 $(am__remove_distdir)
545558
546559 dist-xz: distdir
547 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
560 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
548561 $(am__remove_distdir)
549562
550563 dist-tarZ: distdir
562575
563576 dist dist-all: distdir
564577 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
565 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
578 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
566579 $(am__remove_distdir)
567580
568581 # This target untars the dist file and tries a VPATH configuration. Then
576589 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
577590 *.tar.lzma*) \
578591 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
592 *.tar.lz*) \
593 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
579594 *.tar.xz*) \
580595 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
581596 *.tar.Z*) \
595610 && am__cwd=`pwd` \
596611 && $(am__cd) $(distdir)/_build \
597612 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
613 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
598614 $(DISTCHECK_CONFIGURE_FLAGS) \
599615 && $(MAKE) $(AM_MAKEFLAGS) \
600616 && $(MAKE) $(AM_MAKEFLAGS) dvi \
623639 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
624640 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
625641 distuninstallcheck:
626 @$(am__cd) '$(distuninstallcheck_dir)' \
627 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
642 @test -n '$(distuninstallcheck_dir)' || { \
643 echo 'ERROR: trying to run $@ with an empty' \
644 '$$(distuninstallcheck_dir)' >&2; \
645 exit 1; \
646 }; \
647 $(am__cd) '$(distuninstallcheck_dir)' || { \
648 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
649 exit 1; \
650 }; \
651 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
628652 || { echo "ERROR: files left after uninstall:" ; \
629653 if test -n "$(DESTDIR)"; then \
630654 echo " (check DESTDIR support)"; \
655679
656680 installcheck: installcheck-recursive
657681 install-strip:
658 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
659 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
660 `test -z '$(STRIP)' || \
661 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
682 if test -z '$(STRIP)'; then \
683 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
684 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
685 install; \
686 else \
687 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
688 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
689 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
690 fi
662691 mostlyclean-generic:
663692
664693 clean-generic:
746775 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
747776 all all-am am--refresh check check-am clean clean-generic \
748777 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
749 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
750 distcheck distclean distclean-generic distclean-hdr \
778 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
779 dist-zip distcheck distclean distclean-generic distclean-hdr \
751780 distclean-libtool distclean-tags distcleancheck distdir \
752781 distuninstallcheck dvi dvi-am html html-am info info-am \
753782 install install-am install-data install-data-am install-dvi \
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.67],,
16 [m4_warning([this file was generated for autoconf 2.67.
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'.])])
8485 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
8586 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
8687 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
88 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
8789
8890 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
8991 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
220222 GLIB_GENMARSHAL=""
221223 GOBJECT_QUERY=""
222224 GLIB_MKENUMS=""
225 GLIB_COMPILE_RESOURCES=""
223226 ifelse([$3], , :, [$3])
224227 fi
225228 AC_SUBST(GLIB_CFLAGS)
227230 AC_SUBST(GLIB_GENMARSHAL)
228231 AC_SUBST(GOBJECT_QUERY)
229232 AC_SUBST(GLIB_MKENUMS)
233 AC_SUBST(GLIB_COMPILE_RESOURCES)
230234 rm -f conf.glibtest
231235 ])
232236
471475 [CATOBJEXT=.mo
472476 DATADIRNAME=lib])
473477 ;;
478 *-*-openbsd*)
479 CATOBJEXT=.mo
480 DATADIRNAME=share
481 ;;
474482 *)
475483 CATOBJEXT=.mo
476484 DATADIRNAME=lib
665673
666674
667675 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
668 # serial 40 IT_PROG_INTLTOOL
676 # serial 42 IT_PROG_INTLTOOL
669677 AC_DEFUN([IT_PROG_INTLTOOL], [
670678 AC_PREREQ([2.50])dnl
671679 AC_REQUIRE([AM_NLS])dnl
678686 ;;
679687 esac
680688
689 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
690 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
691 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
681692 if test -n "$1"; then
682693 AC_MSG_CHECKING([for intltool >= $1])
683
684 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
685 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
686 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
687 ]
688694 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
689695 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
690696 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
697703 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
698704 fi
699705
700 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
701 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
702 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
703 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
704 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
705 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
706 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
707 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
708 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
709 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
710 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
711 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
712 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
713 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
714 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
715 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
716 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
717 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
718 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
706 if test -z "$AM_DEFAULT_VERBOSITY"; then
707 AM_DEFAULT_VERBOSITY=1
708 fi
709 AC_SUBST([AM_DEFAULT_VERBOSITY])
710
711 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
712 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
713 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
714 AC_SUBST(INTLTOOL_V_MERGE)
715 AC_SUBST(INTLTOOL__v_MERGE_)
716 AC_SUBST(INTLTOOL__v_MERGE_0)
717
718 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
719 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
720 intltool__v_merge_options_0='-q'
721 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
722 AC_SUBST(intltool__v_merge_options_)
723 AC_SUBST(intltool__v_merge_options_0)
724
725 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
726 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
727 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
728 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
729 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
730 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
731 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
732 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
733 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
734 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
735 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
736 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
737 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
738 else
739 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
740 fi
741 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
742 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
743 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
744 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
745 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
746 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
747 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
719748
720749 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
721750 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
761790 if test $? -ne 0; then
762791 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
763792 else
764 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
793 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
765794 AC_MSG_RESULT([$IT_PERL_VERSION])
766795 fi
767796 if test "x$2" != "xno-xml"; then
918947 # ----------------------------------
919948 AC_DEFUN([PKG_PROG_PKG_CONFIG],
920949 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
921 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
950 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
951 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
922952 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
923953 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
924954 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
964994 pkg_cv_[]$1="$$1"
965995 elif test -n "$PKG_CONFIG"; then
966996 PKG_CHECK_EXISTS([$3],
967 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
997 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
998 test "x$?" != "x0" && pkg_failed=yes ],
968999 [pkg_failed=yes])
9691000 else
9701001 pkg_failed=untried
10121043 AC_MSG_RESULT([no])
10131044 _PKG_SHORT_ERRORS_SUPPORTED
10141045 if test $_pkg_short_errors_supported = yes; then
1015 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1046 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
10161047 else
1017 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1048 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
10181049 fi
10191050 # Put the nasty error message in config.log where it belongs
10201051 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
10481079 fi[]dnl
10491080 ])# PKG_CHECK_MODULES
10501081
1051 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1082 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
1083 # Foundation, Inc.
10521084 #
10531085 # This file is free software; the Free Software Foundation
10541086 # gives unlimited permission to copy and/or distribute it,
10551087 # with or without modifications, as long as this notice is preserved.
1088
1089 # serial 1
10561090
10571091 # AM_AUTOMAKE_VERSION(VERSION)
10581092 # ----------------------------
10631097 [am__api_version='1.11'
10641098 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
10651099 dnl require some minimum version. Point them to the right macro.
1066 m4_if([$1], [1.11.1], [],
1100 m4_if([$1], [1.11.3], [],
10671101 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
10681102 ])
10691103
10791113 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
10801114 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
10811115 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1082 [AM_AUTOMAKE_VERSION([1.11.1])dnl
1116 [AM_AUTOMAKE_VERSION([1.11.3])dnl
10831117 m4_ifndef([AC_AUTOCONF_VERSION],
10841118 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
10851119 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
10861120
10871121 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
10881122
1089 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1123 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10901124 #
10911125 # This file is free software; the Free Software Foundation
10921126 # gives unlimited permission to copy and/or distribute it,
10931127 # with or without modifications, as long as this notice is preserved.
1128
1129 # serial 1
10941130
10951131 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
10961132 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
11731209 Usually this means the macro was only invoked conditionally.]])
11741210 fi])])
11751211
1176 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
1177 # Free Software Foundation, Inc.
1212 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
1213 # 2010, 2011 Free Software Foundation, Inc.
11781214 #
11791215 # This file is free software; the Free Software Foundation
11801216 # gives unlimited permission to copy and/or distribute it,
11811217 # with or without modifications, as long as this notice is preserved.
11821218
1183 # serial 10
1219 # serial 12
11841220
11851221 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
11861222 # written in clear, in which case automake, when reading aclocal.m4,
12201256 # instance it was reported that on HP-UX the gcc test will end up
12211257 # making a dummy file named `D' -- because `-MD' means `put the output
12221258 # in D'.
1259 rm -rf conftest.dir
12231260 mkdir conftest.dir
12241261 # Copy depcomp to subdir because otherwise we won't find it if we're
12251262 # using a relative directory.
12841321 break
12851322 fi
12861323 ;;
1287 msvisualcpp | msvcmsys)
1324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12881325 # This compiler won't grok `-c -o', but also, the minuso test has
12891326 # not run yet. These depmodes are late enough in the game, and
12901327 # so weak that their functioning should not be impacted.
13491386 if test "x$enable_dependency_tracking" != xno; then
13501387 am_depcomp="$ac_aux_dir/depcomp"
13511388 AMDEPBACKSLASH='\'
1389 am__nodep='_no'
13521390 fi
13531391 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
13541392 AC_SUBST([AMDEPBACKSLASH])dnl
13551393 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1394 AC_SUBST([am__nodep])dnl
1395 _AM_SUBST_NOTMAKE([am__nodep])dnl
13561396 ])
13571397
13581398 # Generate code to set up dependency tracking. -*- Autoconf -*-
15741614 done
15751615 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
15761616
1577 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1617 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1618 # Inc.
15781619 #
15791620 # This file is free software; the Free Software Foundation
15801621 # gives unlimited permission to copy and/or distribute it,
15811622 # with or without modifications, as long as this notice is preserved.
1623
1624 # serial 1
15821625
15831626 # AM_PROG_INSTALL_SH
15841627 # ------------------
16191662 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
16201663 # From Jim Meyering
16211664
1622 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1623 # Free Software Foundation, Inc.
1665 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1666 # 2011 Free Software Foundation, Inc.
16241667 #
16251668 # This file is free software; the Free Software Foundation
16261669 # gives unlimited permission to copy and/or distribute it,
16401683 [disable], [m4_define([am_maintainer_other], [enable])],
16411684 [m4_define([am_maintainer_other], [enable])
16421685 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1643 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1686 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
16441687 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
16451688 AC_ARG_ENABLE([maintainer-mode],
16461689 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
17511794 fi
17521795 ])
17531796
1754 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1797 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1798 # Inc.
17551799 #
17561800 # This file is free software; the Free Software Foundation
17571801 # gives unlimited permission to copy and/or distribute it,
17581802 # with or without modifications, as long as this notice is preserved.
1803
1804 # serial 1
17591805
17601806 # AM_PROG_MKDIR_P
17611807 # ---------------
17791825
17801826 # Helper functions for option handling. -*- Autoconf -*-
17811827
1782 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1828 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1829 # Foundation, Inc.
17831830 #
17841831 # This file is free software; the Free Software Foundation
17851832 # gives unlimited permission to copy and/or distribute it,
17861833 # with or without modifications, as long as this notice is preserved.
17871834
1788 # serial 4
1835 # serial 5
17891836
17901837 # _AM_MANGLE_OPTION(NAME)
17911838 # -----------------------
17931840 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
17941841
17951842 # _AM_SET_OPTION(NAME)
1796 # ------------------------------
1843 # --------------------
17971844 # Set option NAME. Presently that only means defining a flag for this option.
17981845 AC_DEFUN([_AM_SET_OPTION],
17991846 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
18001847
18011848 # _AM_SET_OPTIONS(OPTIONS)
1802 # ----------------------------------
1849 # ------------------------
18031850 # OPTIONS is a space-separated list of Automake options.
18041851 AC_DEFUN([_AM_SET_OPTIONS],
18051852 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
18751922 fi
18761923 AC_MSG_RESULT(yes)])
18771924
1878 # Copyright (C) 2009 Free Software Foundation, Inc.
1925 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
18791926 #
18801927 # This file is free software; the Free Software Foundation
18811928 # gives unlimited permission to copy and/or distribute it,
18821929 # with or without modifications, as long as this notice is preserved.
18831930
1884 # serial 1
1931 # serial 2
18851932
18861933 # AM_SILENT_RULES([DEFAULT])
18871934 # --------------------------
18961943 no) AM_DEFAULT_VERBOSITY=1;;
18971944 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
18981945 esac
1946 dnl
1947 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1948 dnl do not support nested variable expansions.
1949 dnl See automake bug#9928 and bug#10237.
1950 am_make=${MAKE-make}
1951 AC_CACHE_CHECK([whether $am_make supports nested variables],
1952 [am_cv_make_support_nested_variables],
1953 [if AS_ECHO([['TRUE=$(BAR$(V))
1954 BAR0=false
1955 BAR1=true
1956 V=1
1957 am__doit:
1958 @$(TRUE)
1959 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1960 am_cv_make_support_nested_variables=yes
1961 else
1962 am_cv_make_support_nested_variables=no
1963 fi])
1964 if test $am_cv_make_support_nested_variables = yes; then
1965 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1966 AM_V='$(V)'
1967 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1968 else
1969 AM_V=$AM_DEFAULT_VERBOSITY
1970 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1971 fi
1972 AC_SUBST([AM_V])dnl
1973 AM_SUBST_NOTMAKE([AM_V])dnl
1974 AC_SUBST([AM_DEFAULT_V])dnl
1975 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
18991976 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
19001977 AM_BACKSLASH='\'
19011978 AC_SUBST([AM_BACKSLASH])dnl
19021979 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
19031980 ])
19041981
1905 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1982 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
19061983 #
19071984 # This file is free software; the Free Software Foundation
19081985 # gives unlimited permission to copy and/or distribute it,
19091986 # with or without modifications, as long as this notice is preserved.
1987
1988 # serial 1
19101989
19111990 # AM_PROG_INSTALL_STRIP
19121991 # ---------------------
19302009 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19312010 AC_SUBST([INSTALL_STRIP_PROGRAM])])
19322011
1933 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
2012 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
19342013 #
19352014 # This file is free software; the Free Software Foundation
19362015 # gives unlimited permission to copy and/or distribute it,
19372016 # with or without modifications, as long as this notice is preserved.
19382017
1939 # serial 2
2018 # serial 3
19402019
19412020 # _AM_SUBST_NOTMAKE(VARIABLE)
19422021 # ---------------------------
19452024 AC_DEFUN([_AM_SUBST_NOTMAKE])
19462025
19472026 # AM_SUBST_NOTMAKE(VARIABLE)
1948 # ---------------------------
2027 # --------------------------
19492028 # Public sister of _AM_SUBST_NOTMAKE.
19502029 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
19512030
19522031 # Check how to create a tarball. -*- Autoconf -*-
19532032
1954 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
2033 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
19552034 #
19562035 # This file is free software; the Free Software Foundation
19572036 # gives unlimited permission to copy and/or distribute it,
19732052 # a tarball read from stdin.
19742053 # $(am__untar) < result.tar
19752054 AC_DEFUN([_AM_PROG_TAR],
1976 [# Always define AMTAR for backward compatibility.
1977 AM_MISSING_PROG([AMTAR], [tar])
2055 [# Always define AMTAR for backward compatibility. Yes, it's still used
2056 # in the wild :-( We should find a proper way to deprecate it ...
2057 AC_SUBST([AMTAR], ['$${TAR-tar}'])
19782058 m4_if([$1], [v7],
1979 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
2059 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
19802060 [m4_case([$1], [ustar],, [pax],,
19812061 [m4_fatal([Unknown tar format])])
19822062 AC_MSG_CHECKING([how to create a $1 tar archive])
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-12-30'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-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
1616 # General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2220 #
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
5654
5755 Originally written by Per Bothner.
5856 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60 Software Foundation, Inc.
57 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
58 Free Software Foundation, Inc.
6159
6260 This is free software; see the source for copying conditions. There is NO
6361 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
144142 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145143 *:NetBSD:*:*)
146144 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
145 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148146 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149147 # switched to ELF, *-*-netbsd* would select the old
150148 # object file format. This provides both forward
180178 fi
181179 ;;
182180 *)
183 os=netbsd
181 os=netbsd
184182 ;;
185183 esac
186184 # The OS release
223221 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224222 ;;
225223 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227225 ;;
228226 esac
229227 # According to Compaq, /usr/sbin/psrinfo has been available on
269267 # A Xn.n version is an unreleased experimental baselevel.
270268 # 1.2 uses "1.2" for uname -r.
271269 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
270 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
271 exitcode=$?
272 trap '' 0
273 exit $exitcode ;;
273274 Alpha\ *:Windows_NT*:*)
274275 # How do we know it's Interix rather than the generic POSIX subsystem?
275276 # Should we change UNAME_MACHINE based on the output of uname instead
295296 echo s390-ibm-zvmoe
296297 exit ;;
297298 *:OS400:*:*)
298 echo powerpc-ibm-os400
299 echo powerpc-ibm-os400
299300 exit ;;
300301 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301302 echo arm-acorn-riscix${UNAME_RELEASE}
394395 # MiNT. But MiNT is downward compatible to TOS, so this should
395396 # be no problem.
396397 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
398 echo m68k-atari-mint${UNAME_RELEASE}
398399 exit ;;
399400 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400401 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
402 exit ;;
402403 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
404 echo m68k-atari-mint${UNAME_RELEASE}
404405 exit ;;
405406 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
407 echo m68k-milan-mint${UNAME_RELEASE}
408 exit ;;
408409 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
410 echo m68k-hades-mint${UNAME_RELEASE}
411 exit ;;
411412 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
413 echo m68k-unknown-mint${UNAME_RELEASE}
414 exit ;;
414415 m68k:machten:*:*)
415416 echo m68k-apple-machten${UNAME_RELEASE}
416417 exit ;;
480481 echo m88k-motorola-sysv3
481482 exit ;;
482483 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
484 # DG/UX returns AViiON for all architectures
485 UNAME_PROCESSOR=`/usr/bin/uname -p`
485486 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
486487 then
487488 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
494495 else
495496 echo i586-dg-dgux${UNAME_RELEASE}
496497 fi
497 exit ;;
498 exit ;;
498499 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499500 echo m88k-dolphin-sysv3
500501 exit ;;
551552 echo rs6000-ibm-aix3.2
552553 fi
553554 exit ;;
554 *:AIX:*:[456])
555 *:AIX:*:[4567])
555556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
557558 IBM_ARCH=rs6000
594595 9000/[678][0-9][0-9])
595596 if [ -x /usr/bin/getconf ]; then
596597 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
598 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599 case "${sc_cpu_version}" in
600 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602 532) # CPU_PA_RISC2_0
603 case "${sc_kernel_bits}" in
604 32) HP_ARCH="hppa2.0n" ;;
605 64) HP_ARCH="hppa2.0w" ;;
605606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
607 esac ;;
608 esac
608609 fi
609610 if [ "${HP_ARCH}" = "" ]; then
610611 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
612 sed 's/^ //' << EOF >$dummy.c
613
614 #define _HPUX_SOURCE
615 #include <stdlib.h>
616 #include <unistd.h>
617
618 int main ()
619 {
620 #if defined(_SC_KERNEL_BITS)
621 long bits = sysconf(_SC_KERNEL_BITS);
622 #endif
623 long cpu = sysconf (_SC_CPU_VERSION);
624
625 switch (cpu)
626 {
627 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629 case CPU_PA_RISC2_0:
630 #if defined(_SC_KERNEL_BITS)
631 switch (bits)
632 {
633 case 64: puts ("hppa2.0w"); break;
634 case 32: puts ("hppa2.0n"); break;
635 default: puts ("hppa2.0"); break;
636 } break;
637 #else /* !defined(_SC_KERNEL_BITS) */
638 puts ("hppa2.0"); break;
639 #endif
640 default: puts ("hppa1.0"); break;
641 }
642 exit (0);
643 }
643644 EOF
644645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645646 test -z "$HP_ARCH" && HP_ARCH=hppa
730731 exit ;;
731732 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732733 echo c1-convex-bsd
733 exit ;;
734 exit ;;
734735 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735736 if getsysinfo -f scalar_acc
736737 then echo c32-convex-bsd
737738 else echo c2-convex-bsd
738739 fi
739 exit ;;
740 exit ;;
740741 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741742 echo c34-convex-bsd
742 exit ;;
743 exit ;;
743744 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744745 echo c38-convex-bsd
745 exit ;;
746 exit ;;
746747 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747748 echo c4-convex-bsd
748 exit ;;
749 exit ;;
749750 CRAY*Y-MP:*:*:*)
750751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751752 exit ;;
769770 exit ;;
770771 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775 exit ;;
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776 exit ;;
776777 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780781 exit ;;
781782 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
788789 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
789790 exit ;;
790791 *:FreeBSD:*:*)
791 case ${UNAME_MACHINE} in
792 pc98)
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792 UNAME_PROCESSOR=`/usr/bin/uname -p`
793 case ${UNAME_PROCESSOR} in
794794 amd64)
795795 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796796 *)
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798798 esac
799799 exit ;;
800800 i*:CYGWIN*:*)
803803 *:MINGW*:*)
804804 echo ${UNAME_MACHINE}-pc-mingw32
805805 exit ;;
806 i*:MSYS*:*)
807 echo ${UNAME_MACHINE}-pc-msys
808 exit ;;
806809 i*:windows32*:*)
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
810 # uname -m includes "-pc" on this system.
811 echo ${UNAME_MACHINE}-mingw32
809812 exit ;;
810813 i*:PW*:*)
811814 echo ${UNAME_MACHINE}-pc-pw32
812815 exit ;;
813816 *:Interix*:*)
814 case ${UNAME_MACHINE} in
817 case ${UNAME_MACHINE} in
815818 x86)
816819 echo i586-pc-interix${UNAME_RELEASE}
817820 exit ;;
857860 i*86:Minix:*:*)
858861 echo ${UNAME_MACHINE}-pc-minix
859862 exit ;;
863 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 aarch64_be:Linux:*:*)
867 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
869 exit ;;
860870 alpha:Linux:*:*)
861871 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
862872 EV5) UNAME_MACHINE=alphaev5 ;;
866876 EV6) UNAME_MACHINE=alphaev6 ;;
867877 EV67) UNAME_MACHINE=alphaev67 ;;
868878 EV68*) UNAME_MACHINE=alphaev68 ;;
869 esac
879 esac
870880 objdump --private-headers /bin/sh | grep -q ld.so.1
871881 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872882 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
878888 then
879889 echo ${UNAME_MACHINE}-unknown-linux-gnu
880890 else
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
891 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
892 | grep -q __ARM_PCS_VFP
893 then
894 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
895 else
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
897 fi
882898 fi
883899 exit ;;
884900 avr32*:Linux:*:*)
885901 echo ${UNAME_MACHINE}-unknown-linux-gnu
886902 exit ;;
887903 cris:Linux:*:*)
888 echo cris-axis-linux-gnu
904 echo ${UNAME_MACHINE}-axis-linux-gnu
889905 exit ;;
890906 crisv32:Linux:*:*)
891 echo crisv32-axis-linux-gnu
907 echo ${UNAME_MACHINE}-axis-linux-gnu
892908 exit ;;
893909 frv:Linux:*:*)
894 echo frv-unknown-linux-gnu
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 exit ;;
912 hexagon:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
895914 exit ;;
896915 i*86:Linux:*:*)
897916 LIBC=gnu
933952 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
934953 ;;
935954 or32:Linux:*:*)
936 echo or32-unknown-linux-gnu
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
937956 exit ;;
938957 padre:Linux:*:*)
939958 echo sparc-unknown-linux-gnu
959978 echo ${UNAME_MACHINE}-ibm-linux
960979 exit ;;
961980 sh64*:Linux:*:*)
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
981 echo ${UNAME_MACHINE}-unknown-linux-gnu
963982 exit ;;
964983 sh*:Linux:*:*)
965984 echo ${UNAME_MACHINE}-unknown-linux-gnu
967986 sparc:Linux:*:* | sparc64:Linux:*:*)
968987 echo ${UNAME_MACHINE}-unknown-linux-gnu
969988 exit ;;
989 tile*:Linux:*:*)
990 echo ${UNAME_MACHINE}-unknown-linux-gnu
991 exit ;;
970992 vax:Linux:*:*)
971993 echo ${UNAME_MACHINE}-dec-linux-gnu
972994 exit ;;
973995 x86_64:Linux:*:*)
974 echo x86_64-unknown-linux-gnu
996 echo ${UNAME_MACHINE}-unknown-linux-gnu
975997 exit ;;
976998 xtensa*:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
999 echo ${UNAME_MACHINE}-unknown-linux-gnu
9781000 exit ;;
9791001 i*86:DYNIX/ptx:4*:*)
9801002 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9831005 echo i386-sequent-sysv4
9841006 exit ;;
9851007 i*86:UNIX_SV:4.2MP:2.*)
986 # Unixware is an offshoot of SVR4, but it has its own version
987 # number series starting with 2...
988 # I am not positive that other SVR4 systems won't match this,
1008 # Unixware is an offshoot of SVR4, but it has its own version
1009 # number series starting with 2...
1010 # I am not positive that other SVR4 systems won't match this,
9891011 # I just have to hope. -- rms.
990 # Use sysv4.2uw... so that sysv4* matches it.
1012 # Use sysv4.2uw... so that sysv4* matches it.
9911013 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9921014 exit ;;
9931015 i*86:OS/2:*:*)
10191041 fi
10201042 exit ;;
10211043 i*86:*:5:[678]*)
1022 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1044 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10231045 case `/bin/uname -X | grep "^Machine"` in
10241046 *486*) UNAME_MACHINE=i486 ;;
10251047 *Pentium) UNAME_MACHINE=i586 ;;
10471069 exit ;;
10481070 pc:*:*:*)
10491071 # Left here for compatibility:
1050 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1051 # the processor, so we play safe by assuming i586.
1072 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1073 # the processor, so we play safe by assuming i586.
10521074 # Note: whatever this is, it MUST be the same as what config.sub
10531075 # prints for the "djgpp" host, or else GDB configury will decide that
10541076 # this is a cross-build.
10551077 echo i586-pc-msdosdjgpp
1056 exit ;;
1078 exit ;;
10571079 Intel:Mach:3*:*)
10581080 echo i386-pc-mach3
10591081 exit ;;
10881110 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10891111 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10901112 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && { echo i486-ncr-sysv4; exit; } ;;
1113 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1114 && { echo i486-ncr-sysv4; exit; } ;;
10931115 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10941116 OS_REL='.3'
10951117 test -r /etc/.relid \
11321154 echo ns32k-sni-sysv
11331155 fi
11341156 exit ;;
1135 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1136 # says <Richard.M.Bartel@ccMail.Census.GOV>
1137 echo i586-unisys-sysv4
1138 exit ;;
1157 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1158 # says <Richard.M.Bartel@ccMail.Census.GOV>
1159 echo i586-unisys-sysv4
1160 exit ;;
11391161 *:UNIX_System_V:4*:FTX*)
11401162 # From Gerald Hewes <hewes@openmarket.com>.
11411163 # How about differentiating between stratus architectures? -djm
11611183 exit ;;
11621184 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11631185 if [ -d /usr/nec ]; then
1164 echo mips-nec-sysv${UNAME_RELEASE}
1186 echo mips-nec-sysv${UNAME_RELEASE}
11651187 else
1166 echo mips-unknown-sysv${UNAME_RELEASE}
1167 fi
1168 exit ;;
1188 echo mips-unknown-sysv${UNAME_RELEASE}
1189 fi
1190 exit ;;
11691191 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11701192 echo powerpc-be-beos
11711193 exit ;;
12301252 *:QNX:*:4*)
12311253 echo i386-pc-qnx
12321254 exit ;;
1255 NEO-?:NONSTOP_KERNEL:*:*)
1256 echo neo-tandem-nsk${UNAME_RELEASE}
1257 exit ;;
12331258 NSE-?:NONSTOP_KERNEL:*:*)
12341259 echo nse-tandem-nsk${UNAME_RELEASE}
12351260 exit ;;
12751300 echo pdp10-unknown-its
12761301 exit ;;
12771302 SEI:*:*:SEIUX)
1278 echo mips-sei-seiux${UNAME_RELEASE}
1303 echo mips-sei-seiux${UNAME_RELEASE}
12791304 exit ;;
12801305 *:DragonFly:*:*)
12811306 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12821307 exit ;;
12831308 *:*VMS:*:*)
1284 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1309 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12851310 case "${UNAME_MACHINE}" in
12861311 A*) echo alpha-dec-vms ; exit ;;
12871312 I*) echo ia64-dec-vms ; exit ;;
12981323 exit ;;
12991324 i*86:AROS:*:*)
13001325 echo ${UNAME_MACHINE}-pc-aros
1326 exit ;;
1327 x86_64:VMkernel:*:*)
1328 echo ${UNAME_MACHINE}-unknown-esx
13011329 exit ;;
13021330 esac
13031331
13211349 #include <sys/param.h>
13221350 printf ("m68k-sony-newsos%s\n",
13231351 #ifdef NEWSOS4
1324 "4"
1352 "4"
13251353 #else
1326 ""
1327 #endif
1328 ); exit (0);
1354 ""
1355 #endif
1356 ); exit (0);
13291357 #endif
13301358 #endif
13311359
5050 /* Define to 1 if you have the <unistd.h> header file. */
5151 #undef HAVE_UNISTD_H
5252
53 /* Define if you have libvinagre */
54 #undef HAVE_VINAGRE
55
5653 /* Define to the sub-directory in which libtool stores uninstalled libraries.
5754 */
5855 #undef LT_OBJDIR
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-01-22'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
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
2020 # GNU General Public License for more details.
2121 #
2222 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
23 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2624 #
2725 # As a special exception to the GNU General Public License, if you
2826 # distribute this file as part of a program that contains a
7573 GNU config.sub ($timestamp)
7674
7775 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
79 Software Foundation, Inc.
76 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
77 Free Software Foundation, Inc.
8078
8179 This is free software; see the source for copying conditions. There is NO
8280 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123121 # Here we must recognize all the valid KERNEL-OS combinations.
124122 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125123 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
125 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
126 knetbsd*-gnu* | netbsd*-gnu* | \
128127 kopensolaris*-gnu* | \
129128 storm-chaos* | os2-emx* | rtmk-nova*)
130129 os=-$maybe_os
131130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
131 ;;
132 android-linux)
133 os=-linux-android
134 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
132135 ;;
133136 *)
134137 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
156159 os=
157160 basic_machine=$1
158161 ;;
159 -bluegene*)
160 os=-cnk
162 -bluegene*)
163 os=-cnk
161164 ;;
162165 -sim | -cisco | -oki | -wec | -winbond)
163166 os=
173176 os=-chorusos
174177 basic_machine=$1
175178 ;;
176 -chorusrdb)
177 os=-chorusrdb
179 -chorusrdb)
180 os=-chorusrdb
178181 basic_machine=$1
179 ;;
182 ;;
180183 -hiux*)
181184 os=-hiuxwe2
182185 ;;
245248 # Some are omitted here because they have special meanings below.
246249 1750a | 580 \
247250 | a29k \
251 | aarch64 | aarch64_be \
248252 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
249253 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250254 | am33_2.0 \
251255 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
256 | be32 | be64 \
252257 | bfin \
253258 | c4x | clipper \
254259 | d10v | d30v | dlx | dsp16xx \
260 | epiphany \
255261 | fido | fr30 | frv \
256262 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
263 | hexagon \
257264 | i370 | i860 | i960 | ia64 \
258265 | ip2k | iq2000 \
266 | le32 | le64 \
259267 | lm32 \
260268 | m32c | m32r | m32rle | m68000 | m68k | m88k \
261269 | maxq | mb | microblaze | mcore | mep | metag \
281289 | moxie \
282290 | mt \
283291 | msp430 \
292 | nds32 | nds32le | nds32be \
284293 | nios | nios2 \
285294 | ns16k | ns32k \
295 | open8 \
286296 | or32 \
287297 | pdp10 | pdp11 | pj | pjl \
288 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
298 | powerpc | powerpc64 | powerpc64le | powerpcle \
289299 | pyramid \
290 | rx \
300 | rl78 | rx \
291301 | score \
292302 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293303 | sh64 | sh64le \
294304 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295305 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296 | spu | strongarm \
297 | tahoe | thumb | tic4x | tic80 | tron \
306 | spu \
307 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298308 | ubicom32 \
299 | v850 | v850e \
309 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
300310 | we32k \
301 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
311 | x86 | xc16x | xstormy16 | xtensa \
302312 | z8k | z80)
303313 basic_machine=$basic_machine-unknown
304314 ;;
305 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306 # Motorola 68HC11/12.
315 c54x)
316 basic_machine=tic54x-unknown
317 ;;
318 c55x)
319 basic_machine=tic55x-unknown
320 ;;
321 c6x)
322 basic_machine=tic6x-unknown
323 ;;
324 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
307325 basic_machine=$basic_machine-unknown
308326 os=-none
309327 ;;
311329 ;;
312330 ms1)
313331 basic_machine=mt-unknown
332 ;;
333
334 strongarm | thumb | xscale)
335 basic_machine=arm-unknown
336 ;;
337 xgate)
338 basic_machine=$basic_machine-unknown
339 os=-none
340 ;;
341 xscaleeb)
342 basic_machine=armeb-unknown
343 ;;
344
345 xscaleel)
346 basic_machine=armel-unknown
314347 ;;
315348
316349 # We use `pc' rather than `unknown'
327360 # Recognize the basic CPU types with company name.
328361 580-* \
329362 | a29k-* \
363 | aarch64-* | aarch64_be-* \
330364 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
331365 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
332366 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
333367 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
334368 | avr-* | avr32-* \
369 | be32-* | be64-* \
335370 | bfin-* | bs2000-* \
336 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
371 | c[123]* | c30-* | [cjt]90-* | c4x-* \
337372 | clipper-* | craynv-* | cydra-* \
338373 | d10v-* | d30v-* | dlx-* \
339374 | elxsi-* \
340375 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
341376 | h8300-* | h8500-* \
342377 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
378 | hexagon-* \
343379 | i*86-* | i860-* | i960-* | ia64-* \
344380 | ip2k-* | iq2000-* \
381 | le32-* | le64-* \
345382 | lm32-* \
346383 | m32c-* | m32r-* | m32rle-* \
347384 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
367404 | mmix-* \
368405 | mt-* \
369406 | msp430-* \
407 | nds32-* | nds32le-* | nds32be-* \
370408 | nios-* | nios2-* \
371409 | none-* | np1-* | ns16k-* | ns32k-* \
410 | open8-* \
372411 | orion-* \
373412 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
413 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375414 | pyramid-* \
376 | romp-* | rs6000-* | rx-* \
415 | rl78-* | romp-* | rs6000-* | rx-* \
377416 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378417 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379418 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380419 | sparclite-* \
381 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382 | tahoe-* | thumb-* \
420 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
421 | tahoe-* \
383422 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
384 | tile-* | tilegx-* \
423 | tile*-* \
385424 | tron-* \
386425 | ubicom32-* \
387 | v850-* | v850e-* | vax-* \
426 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
427 | vax-* \
388428 | we32k-* \
389 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
429 | x86-* | x86_64-* | xc16x-* | xps100-* \
390430 | xstormy16-* | xtensa*-* \
391431 | ymp-* \
392432 | z8k-* | z80-*)
411451 basic_machine=a29k-amd
412452 os=-udi
413453 ;;
414 abacus)
454 abacus)
415455 basic_machine=abacus-unknown
416456 ;;
417457 adobe68k)
481521 basic_machine=powerpc-ibm
482522 os=-cnk
483523 ;;
524 c54x-*)
525 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
526 ;;
527 c55x-*)
528 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
529 ;;
530 c6x-*)
531 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
532 ;;
484533 c90)
485534 basic_machine=c90-cray
486535 os=-unicos
487536 ;;
488 cegcc)
537 cegcc)
489538 basic_machine=arm-unknown
490539 os=-cegcc
491540 ;;
517566 basic_machine=craynv-cray
518567 os=-unicosmp
519568 ;;
520 cr16)
569 cr16 | cr16-*)
521570 basic_machine=cr16-unknown
522571 os=-elf
523572 ;;
675724 i370-ibm* | ibm*)
676725 basic_machine=i370-ibm
677726 ;;
678 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
679727 i*86v32)
680728 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
681729 os=-sysv32
733781 basic_machine=ns32k-utek
734782 os=-sysv
735783 ;;
736 microblaze)
784 microblaze)
737785 basic_machine=microblaze-xilinx
738786 ;;
739787 mingw32)
772820 ms1-*)
773821 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
774822 ;;
823 msys)
824 basic_machine=i386-pc
825 os=-msys
826 ;;
775827 mvs)
776828 basic_machine=i370-ibm
777829 os=-mvs
830 ;;
831 nacl)
832 basic_machine=le32-unknown
833 os=-nacl
778834 ;;
779835 ncr3000)
780836 basic_machine=i486-ncr
840896 np1)
841897 basic_machine=np1-gould
842898 ;;
899 neo-tandem)
900 basic_machine=neo-tandem
901 ;;
902 nse-tandem)
903 basic_machine=nse-tandem
904 ;;
843905 nsr-tandem)
844906 basic_machine=nsr-tandem
845907 ;;
922984 ;;
923985 power) basic_machine=power-ibm
924986 ;;
925 ppc) basic_machine=powerpc-unknown
926 ;;
927 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
987 ppc | ppcbe) basic_machine=powerpc-unknown
988 ;;
989 ppc-* | ppcbe-*)
990 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
928991 ;;
929992 ppcle | powerpclittle | ppc-le | powerpc-little)
930993 basic_machine=powerpcle-unknown
10181081 basic_machine=i860-stratus
10191082 os=-sysv4
10201083 ;;
1084 strongarm-* | thumb-*)
1085 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1086 ;;
10211087 sun2)
10221088 basic_machine=m68000-sun
10231089 ;;
10741140 basic_machine=t90-cray
10751141 os=-unicos
10761142 ;;
1077 tic54x | c54x*)
1078 basic_machine=tic54x-unknown
1079 os=-coff
1080 ;;
1081 tic55x | c55x*)
1082 basic_machine=tic55x-unknown
1083 os=-coff
1084 ;;
1085 tic6x | c6x*)
1086 basic_machine=tic6x-unknown
1087 os=-coff
1088 ;;
1089 # This must be matched before tile*.
1090 tilegx*)
1091 basic_machine=tilegx-unknown
1092 os=-linux-gnu
1093 ;;
10941143 tile*)
1095 basic_machine=tile-unknown
1144 basic_machine=$basic_machine-unknown
10961145 os=-linux-gnu
10971146 ;;
10981147 tx39)
11611210 ;;
11621211 xps | xps100)
11631212 basic_machine=xps100-honeywell
1213 ;;
1214 xscale-* | xscalee[bl]-*)
1215 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11641216 ;;
11651217 ymp)
11661218 basic_machine=ymp-cray
12591311 if [ x"$os" != x"" ]
12601312 then
12611313 case $os in
1262 # First match some system type aliases
1263 # that might get confused with valid system types.
1314 # First match some system type aliases
1315 # that might get confused with valid system types.
12641316 # -solaris* is a basic system type, with this one exception.
1265 -auroraux)
1266 os=-auroraux
1317 -auroraux)
1318 os=-auroraux
12671319 ;;
12681320 -solaris1 | -solaris1.*)
12691321 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12991351 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13001352 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13011353 | -chorusos* | -chorusrdb* | -cegcc* \
1302 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1303 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1354 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1355 | -mingw32* | -linux-gnu* | -linux-android* \
1356 | -linux-newlib* | -linux-uclibc* \
13041357 | -uxpv* | -beos* | -mpeix* | -udk* \
13051358 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13061359 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13471400 -opened*)
13481401 os=-openedition
13491402 ;;
1350 -os400*)
1403 -os400*)
13511404 os=-os400
13521405 ;;
13531406 -wince*)
13961449 -sinix*)
13971450 os=-sysv4
13981451 ;;
1399 -tpf*)
1452 -tpf*)
14001453 os=-tpf
14011454 ;;
14021455 -triton*)
14411494 -dicos*)
14421495 os=-dicos
14431496 ;;
1444 -nacl*)
1445 ;;
1497 -nacl*)
1498 ;;
14461499 -none)
14471500 ;;
14481501 *)
14651518 # system, and we'll never get to this point.
14661519
14671520 case $basic_machine in
1468 score-*)
1521 score-*)
14691522 os=-elf
14701523 ;;
1471 spu-*)
1524 spu-*)
14721525 os=-elf
14731526 ;;
14741527 *-acorn)
14801533 arm*-semi)
14811534 os=-aout
14821535 ;;
1483 c4x-* | tic4x-*)
1484 os=-coff
1536 c4x-* | tic4x-*)
1537 os=-coff
1538 ;;
1539 tic54x-*)
1540 os=-coff
1541 ;;
1542 tic55x-*)
1543 os=-coff
1544 ;;
1545 tic6x-*)
1546 os=-coff
14851547 ;;
14861548 # This must come before the *-dec entry.
14871549 pdp10-*)
15011563 ;;
15021564 m68000-sun)
15031565 os=-sunos3
1504 # This also exists in the configure program, but was not the
1505 # default.
1506 # os=-sunos4
15071566 ;;
15081567 m68*-cisco)
15091568 os=-aout
15101569 ;;
1511 mep-*)
1570 mep-*)
15121571 os=-elf
15131572 ;;
15141573 mips*-cisco)
15351594 *-ibm)
15361595 os=-aix
15371596 ;;
1538 *-knuth)
1597 *-knuth)
15391598 os=-mmixware
15401599 ;;
15411600 *-wec)
+2065
-1264
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.67 for ssh-contact 0.6.
2 # Generated by GNU Autoconf 2.68 for ssh-contact 0.7.
33 #
44 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=ssh-contact>.
55 #
9494 IFS=" "" $as_nl"
9595
9696 # Find who we are. Look in the path if we contain no directory separator.
97 as_myself=
9798 case $0 in #((
9899 *[\\/]* ) as_myself=$0 ;;
99100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
176177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 test \$(( 1 + 1 )) = 2 || exit 1
181
182 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
183 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
184 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
185 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
186 PATH=/empty FPATH=/empty; export PATH FPATH
187 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
188 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
180189 if (eval "$as_required") 2>/dev/null; then :
181190 as_have_required=yes
182191 else
219228 # We cannot yet assume a decent shell, so we have to provide a
220229 # neutralization value for shells without unset; and this also
221230 # works around shells that cannot unset nonexistent variables.
231 # Preserve -v and -x to the replacement shell.
222232 BASH_ENV=/dev/null
223233 ENV=/dev/null
224234 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225235 export CONFIG_SHELL
226 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
236 case $- in # ((((
237 *v*x* | *x*v* ) as_opts=-vx ;;
238 *v* ) as_opts=-v ;;
239 *x* ) as_opts=-x ;;
240 * ) as_opts= ;;
241 esac
242 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
227243 fi
228244
229245 if test x$as_have_required = xno; then :
532548 # Sed expression to map a string onto a valid variable name.
533549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534550
535
536
537 # Check that we are running under the correct shell.
538551 SHELL=${CONFIG_SHELL-/bin/sh}
539
540 case X$lt_ECHO in
541 X*--fallback-echo)
542 # Remove one level of quotation (which was required for Make).
543 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 ;;
545 esac
546
547 ECHO=${lt_ECHO-echo}
548 if test "X$1" = X--no-reexec; then
549 # Discard the --no-reexec flag, and continue.
550 shift
551 elif test "X$1" = X--fallback-echo; then
552 # Avoid inline document here, it may be left over
553 :
554 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
555 # Yippee, $ECHO works!
556 :
557 else
558 # Restart under the correct shell.
559 exec $SHELL "$0" --no-reexec ${1+"$@"}
560 fi
561
562 if test "X$1" = X--fallback-echo; then
563 # used as fallback echo
564 shift
565 cat <<_LT_EOF
566 $*
567 _LT_EOF
568 exit 0
569 fi
570
571 # The HP-UX ksh and POSIX shell print the target directory to stdout
572 # if CDPATH is set.
573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
574
575 if test -z "$lt_ECHO"; then
576 if test "X${echo_test_string+set}" != Xset; then
577 # find a string as large as possible, as long as the shell can cope with it
578 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
579 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
580 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
581 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 then
583 break
584 fi
585 done
586 fi
587
588 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
589 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
590 test "X$echo_testing_string" = "X$echo_test_string"; then
591 :
592 else
593 # The Solaris, AIX, and Digital Unix default echo programs unquote
594 # backslashes. This makes it impossible to quote backslashes using
595 # echo "$something" | sed 's/\\/\\\\/g'
596 #
597 # So, first we look for a working echo in the user's PATH.
598
599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
600 for dir in $PATH /usr/ucb; do
601 IFS="$lt_save_ifs"
602 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
603 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
604 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
605 test "X$echo_testing_string" = "X$echo_test_string"; then
606 ECHO="$dir/echo"
607 break
608 fi
609 done
610 IFS="$lt_save_ifs"
611
612 if test "X$ECHO" = Xecho; then
613 # We didn't find a better echo, so look for alternatives.
614 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
615 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
616 test "X$echo_testing_string" = "X$echo_test_string"; then
617 # This shell has a builtin print -r that does the trick.
618 ECHO='print -r'
619 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
620 test "X$CONFIG_SHELL" != X/bin/ksh; then
621 # If we have ksh, try running configure again with it.
622 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
623 export ORIGINAL_CONFIG_SHELL
624 CONFIG_SHELL=/bin/ksh
625 export CONFIG_SHELL
626 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
627 else
628 # Try using printf.
629 ECHO='printf %s\n'
630 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # Cool, printf works
634 :
635 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
640 export CONFIG_SHELL
641 SHELL="$CONFIG_SHELL"
642 export SHELL
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
645 test "X$echo_testing_string" = 'X\t' &&
646 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 ECHO="$CONFIG_SHELL $0 --fallback-echo"
649 else
650 # maybe with a smaller string...
651 prev=:
652
653 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
654 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 then
656 break
657 fi
658 prev="$cmd"
659 done
660
661 if test "$prev" != 'sed 50q "$0"'; then
662 echo_test_string=`eval $prev`
663 export echo_test_string
664 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
665 else
666 # Oops. We lost completely, so just stick with echo.
667 ECHO=echo
668 fi
669 fi
670 fi
671 fi
672 fi
673 fi
674
675 # Copy echo and quote the copy suitably for passing to libtool from
676 # the Makefile, instead of quoting the original, which is used later.
677 lt_ECHO=$ECHO
678 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
679 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
680 fi
681
682
683552
684553
685554 test -n "$DJDIR" || exec 7<&0 </dev/null
705574 # Identity of this package.
706575 PACKAGE_NAME='ssh-contact'
707576 PACKAGE_TARNAME='ssh-contact'
708 PACKAGE_VERSION='0.6'
709 PACKAGE_STRING='ssh-contact 0.6'
577 PACKAGE_VERSION='0.7'
578 PACKAGE_STRING='ssh-contact 0.7'
710579 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=ssh-contact'
711580 PACKAGE_URL=''
712581
751620 am__EXEEXT_TRUE
752621 LTLIBOBJS
753622 LIBOBJS
754 HAVE_VINAGRE_FALSE
755 HAVE_VINAGRE_TRUE
756 VINAGRE_LIBS
757 VINAGRE_CFLAGS
758623 MKINSTALLDIRS
759624 POSUB
760625 POFILES
796661 INTLTOOL_KEYS_RULE
797662 INTLTOOL_DIRECTORY_RULE
798663 INTLTOOL_DESKTOP_RULE
664 intltool__v_merge_options_0
665 intltool__v_merge_options_
666 INTLTOOL_V_MERGE_OPTIONS
667 INTLTOOL__v_MERGE_0
668 INTLTOOL__v_MERGE_
669 INTLTOOL_V_MERGE
799670 INTLTOOL_EXTRACT
800671 INTLTOOL_MERGE
801672 INTLTOOL_UPDATE
805676 X_PRE_LIBS
806677 X_CFLAGS
807678 XMKMF
679 GLIB_COMPILE_RESOURCES
808680 GLIB_MKENUMS
809681 GOBJECT_QUERY
810682 GLIB_GENMARSHAL
818690 LIPO
819691 NMEDIT
820692 DSYMUTIL
821 lt_ECHO
693 MANIFEST_TOOL
822694 RANLIB
695 ac_ct_AR
823696 AR
697 DLLTOOL
824698 OBJDUMP
825699 LN_S
826700 NM
844718 am__fastdepCC_FALSE
845719 am__fastdepCC_TRUE
846720 CCDEPMODE
721 am__nodep
847722 AMDEPBACKSLASH
848723 AMDEP_FALSE
849724 AMDEP_TRUE
859734 CC
860735 AM_BACKSLASH
861736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
862739 am__untar
863740 am__tar
864741 AMTAR
934811 with_pic
935812 enable_fast_install
936813 with_gnu_ld
814 with_sysroot
937815 enable_libtool_lock
938816 enable_glibtest
939817 with_x
940818 enable_nls
941819 enable_Werror
942 enable_vinagre
943820 '
944821 ac_precious_vars='build_alias
945822 host_alias
955832 PKG_CONFIG_LIBDIR
956833 XMKMF
957834 SSH_CONTACT_CFLAGS
958 SSH_CONTACT_LIBS
959 VINAGRE_CFLAGS
960 VINAGRE_LIBS'
835 SSH_CONTACT_LIBS'
961836
962837
963838 # Initialize some variables set by options.
13621237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13631238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
13641239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
13661241 ;;
13671242
13681243 esac
15001375 # Omit some internal or obsolete options to make the list less imposing.
15011376 # This message is too long to be a string in the A/UX 3.1 sh.
15021377 cat <<_ACEOF
1503 \`configure' configures ssh-contact 0.6 to adapt to many kinds of systems.
1378 \`configure' configures ssh-contact 0.7 to adapt to many kinds of systems.
15041379
15051380 Usage: $0 [OPTION]... [VAR=VALUE]...
15061381
15741449
15751450 if test -n "$ac_init_help"; then
15761451 case $ac_init_help in
1577 short | recursive ) echo "Configuration of ssh-contact 0.6:";;
1452 short | recursive ) echo "Configuration of ssh-contact 0.7:";;
15781453 esac
15791454 cat <<\_ACEOF
15801455
15971472 --disable-nls do not use Native Language Support
15981473 --disable-Werror compile without -Werror (normally enabled in
15991474 development builds)
1600 --enable-vinagre=[no/yes/auto]
1601 build with vinagre plugin
16021475
16031476 Optional Packages:
16041477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
16051478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-pic try to use only PIC/non-PIC objects [default=use
1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
16071480 both]
16081481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-sysroot=DIR Search for dependent libraries within DIR
1483 (or the compiler's sysroot if not specified).
16091484 --with-x use the X Window System
16101485
16111486 Some influential environment variables:
16271502 C compiler flags for SSH_CONTACT, overriding pkg-config
16281503 SSH_CONTACT_LIBS
16291504 linker flags for SSH_CONTACT, overriding pkg-config
1630 VINAGRE_CFLAGS
1631 C compiler flags for VINAGRE, overriding pkg-config
1632 VINAGRE_LIBS
1633 linker flags for VINAGRE, overriding pkg-config
16341505
16351506 Use these variables to override the choices made by `configure' or to help
16361507 it to find libraries and programs with nonstandard names/locations.
16981569 test -n "$ac_init_help" && exit $ac_status
16991570 if $ac_init_version; then
17001571 cat <<\_ACEOF
1701 ssh-contact configure 0.6
1702 generated by GNU Autoconf 2.67
1572 ssh-contact configure 0.7
1573 generated by GNU Autoconf 2.68
17031574
17041575 Copyright (C) 2010 Free Software Foundation, Inc.
17051576 This configure script is free software; the Free Software Foundation
17491620
17501621 ac_retval=1
17511622 fi
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17531624 as_fn_set_status $ac_retval
17541625
17551626 } # ac_fn_c_try_compile
17951666 # interfere with the next link command; also delete a directory that is
17961667 # left behind by Apple's compiler. We do this before executing the actions.
17971668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17991670 as_fn_set_status $ac_retval
18001671
18011672 } # ac_fn_c_try_link
18321703
18331704 ac_retval=1
18341705 fi
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18361707 as_fn_set_status $ac_retval
18371708
18381709 } # ac_fn_c_try_cpp
18741745 ac_retval=$ac_status
18751746 fi
18761747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18781749 as_fn_set_status $ac_retval
18791750
18801751 } # ac_fn_c_try_run
18881759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18891760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18901761 $as_echo_n "checking for $2... " >&6; }
1891 if eval "test \"\${$3+set}\"" = set; then :
1762 if eval \${$3+:} false; then :
18921763 $as_echo_n "(cached) " >&6
18931764 else
18941765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061777 eval ac_res=\$$3
19071778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19081779 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19101781
19111782 } # ac_fn_c_check_header_compile
19121783
19181789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19191790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19201791 $as_echo_n "checking for $2... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1792 if eval \${$3+:} false; then :
19221793 $as_echo_n "(cached) " >&6
19231794 else
19241795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731844 eval ac_res=\$$3
19741845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19751846 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19771848
19781849 } # ac_fn_c_check_func
19791850
19851856 ac_fn_c_check_header_mongrel ()
19861857 {
19871858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if eval "test \"\${$3+set}\"" = set; then :
1859 if eval \${$3+:} false; then :
19891860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19901861 $as_echo_n "checking for $2... " >&6; }
1991 if eval "test \"\${$3+set}\"" = set; then :
1862 if eval \${$3+:} false; then :
19921863 $as_echo_n "(cached) " >&6
19931864 fi
19941865 eval ac_res=\$$3
20551926 esac
20561927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
20571928 $as_echo_n "checking for $2... " >&6; }
2058 if eval "test \"\${$3+set}\"" = set; then :
1929 if eval \${$3+:} false; then :
20591930 $as_echo_n "(cached) " >&6
20601931 else
20611932 eval "$3=\$ac_header_compiler"
20641935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20651936 $as_echo "$ac_res" >&6; }
20661937 fi
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20681939
20691940 } # ac_fn_c_check_header_mongrel
20701941 cat >config.log <<_ACEOF
20711942 This file contains any messages produced by compilers while
20721943 running configure, to aid debugging if configure makes a mistake.
20731944
2074 It was created by ssh-contact $as_me 0.6, which was
2075 generated by GNU Autoconf 2.67. Invocation command line was
1945 It was created by ssh-contact $as_me 0.7, which was
1946 generated by GNU Autoconf 2.68. Invocation command line was
20761947
20771948 $ $0 $@
20781949
23302201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23312202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23322203 as_fn_error $? "failed to load site script $ac_site_file
2333 See \`config.log' for more details" "$LINENO" 5 ; }
2204 See \`config.log' for more details" "$LINENO" 5; }
23342205 fi
23352206 done
23362207
24992370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
25002371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
25012372 if test -z "$INSTALL"; then
2502 if test "${ac_cv_path_install+set}" = set; then :
2373 if ${ac_cv_path_install+:} false; then :
25032374 $as_echo_n "(cached) " >&6
25042375 else
25052376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25862457 '
25872458 case `pwd` in
25882459 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2460 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
25902461 esac
25912462 case $srcdir in
25922463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2464 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
25942465 esac
25952466
25962467 # Do `set' in a subshell so we don't clobber the current shell's
26762547 set dummy ${ac_tool_prefix}strip; ac_word=$2
26772548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26782549 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_STRIP+set}" = set; then :
2550 if ${ac_cv_prog_STRIP+:} false; then :
26802551 $as_echo_n "(cached) " >&6
26812552 else
26822553 if test -n "$STRIP"; then
27162587 set dummy strip; ac_word=$2
27172588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27182589 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2590 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
27202591 $as_echo_n "(cached) " >&6
27212592 else
27222593 if test -n "$ac_ct_STRIP"; then
27692640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
27702641 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
27712642 if test -z "$MKDIR_P"; then
2772 if test "${ac_cv_path_mkdir+set}" = set; then :
2643 if ${ac_cv_path_mkdir+:} false; then :
27732644 $as_echo_n "(cached) " >&6
27742645 else
27752646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28202691 set dummy $ac_prog; ac_word=$2
28212692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28222693 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_AWK+set}" = set; then :
2694 if ${ac_cv_prog_AWK+:} false; then :
28242695 $as_echo_n "(cached) " >&6
28252696 else
28262697 if test -n "$AWK"; then
28602731 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28612732 set x ${MAKE-make}
28622733 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2863 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2734 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28642735 $as_echo_n "(cached) " >&6
28652736 else
28662737 cat >conftest.make <<\_ACEOF
29182789
29192790 # Define the identity of the package.
29202791 PACKAGE='ssh-contact'
2921 VERSION='0.6'
2792 VERSION='0.7'
29222793
29232794
29242795 # Some tools Automake needs.
29392810
29402811 # We need awk for the "check" target. The system "awk" is bad on
29412812 # some platforms.
2942 # Always define AMTAR for backward compatibility.
2943
2944 AMTAR=${AMTAR-"${am_missing_run}tar"}
2945
2946 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2813 # Always define AMTAR for backward compatibility. Yes, it's still used
2814 # in the wild :-( We should find a proper way to deprecate it ...
2815 AMTAR='$${TAR-tar}'
2816
2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
29472818
29482819
29492820
29592830 no) AM_DEFAULT_VERBOSITY=1;;
29602831 *) AM_DEFAULT_VERBOSITY=0;;
29612832 esac
2833 am_make=${MAKE-make}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2835 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2836 if ${am_cv_make_support_nested_variables+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if $as_echo 'TRUE=$(BAR$(V))
2840 BAR0=false
2841 BAR1=true
2842 V=1
2843 am__doit:
2844 @$(TRUE)
2845 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2846 am_cv_make_support_nested_variables=yes
2847 else
2848 am_cv_make_support_nested_variables=no
2849 fi
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2852 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2853 if test $am_cv_make_support_nested_variables = yes; then
2854 AM_V='$(V)'
2855 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2856 else
2857 AM_V=$AM_DEFAULT_VERBOSITY
2858 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2859 fi
29622860 AM_BACKSLASH='\'
29632861
29642862 DEPDIR="${am__leading_dot}deps"
30132911 if test "x$enable_dependency_tracking" != xno; then
30142912 am_depcomp="$ac_aux_dir/depcomp"
30152913 AMDEPBACKSLASH='\'
2914 am__nodep='_no'
30162915 fi
30172916 if test "x$enable_dependency_tracking" != xno; then
30182917 AMDEP_TRUE=
30332932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30342933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30352934 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then :
2935 if ${ac_cv_prog_CC+:} false; then :
30372936 $as_echo_n "(cached) " >&6
30382937 else
30392938 if test -n "$CC"; then
30732972 set dummy gcc; ac_word=$2
30742973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30752974 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
30772976 $as_echo_n "(cached) " >&6
30782977 else
30792978 if test -n "$ac_ct_CC"; then
31263025 set dummy ${ac_tool_prefix}cc; ac_word=$2
31273026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31283027 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_CC+set}" = set; then :
3028 if ${ac_cv_prog_CC+:} false; then :
31303029 $as_echo_n "(cached) " >&6
31313030 else
31323031 if test -n "$CC"; then
31663065 set dummy cc; ac_word=$2
31673066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31683067 $as_echo_n "checking for $ac_word... " >&6; }
3169 if test "${ac_cv_prog_CC+set}" = set; then :
3068 if ${ac_cv_prog_CC+:} false; then :
31703069 $as_echo_n "(cached) " >&6
31713070 else
31723071 if test -n "$CC"; then
32253124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32263125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32273126 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_CC+set}" = set; then :
3127 if ${ac_cv_prog_CC+:} false; then :
32293128 $as_echo_n "(cached) " >&6
32303129 else
32313130 if test -n "$CC"; then
32693168 set dummy $ac_prog; ac_word=$2
32703169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32713170 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
32733172 $as_echo_n "(cached) " >&6
32743173 else
32753174 if test -n "$ac_ct_CC"; then
33243223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33253224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33263225 as_fn_error $? "no acceptable C compiler found in \$PATH
3327 See \`config.log' for more details" "$LINENO" 5 ; }
3226 See \`config.log' for more details" "$LINENO" 5; }
33283227
33293228 # Provide some information about the compiler.
33303229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
34393338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34403339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34413340 as_fn_error 77 "C compiler cannot create executables
3442 See \`config.log' for more details" "$LINENO" 5 ; }
3341 See \`config.log' for more details" "$LINENO" 5; }
34433342 else
34443343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34453344 $as_echo "yes" >&6; }
34823381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34833382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34843383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3485 See \`config.log' for more details" "$LINENO" 5 ; }
3384 See \`config.log' for more details" "$LINENO" 5; }
34863385 fi
34873386 rm -f conftest conftest$ac_cv_exeext
34883387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
35413440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35423441 as_fn_error $? "cannot run C compiled programs.
35433442 If you meant to cross compile, use \`--host'.
3544 See \`config.log' for more details" "$LINENO" 5 ; }
3443 See \`config.log' for more details" "$LINENO" 5; }
35453444 fi
35463445 fi
35473446 fi
35523451 ac_clean_files=$ac_clean_files_save
35533452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35543453 $as_echo_n "checking for suffix of object files... " >&6; }
3555 if test "${ac_cv_objext+set}" = set; then :
3454 if ${ac_cv_objext+:} false; then :
35563455 $as_echo_n "(cached) " >&6
35573456 else
35583457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35933492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35943493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35953494 as_fn_error $? "cannot compute suffix of object files: cannot compile
3596 See \`config.log' for more details" "$LINENO" 5 ; }
3495 See \`config.log' for more details" "$LINENO" 5; }
35973496 fi
35983497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
35993498 fi
36033502 ac_objext=$OBJEXT
36043503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
36053504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3505 if ${ac_cv_c_compiler_gnu+:} false; then :
36073506 $as_echo_n "(cached) " >&6
36083507 else
36093508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36403539 ac_save_CFLAGS=$CFLAGS
36413540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
36423541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3643 if test "${ac_cv_prog_cc_g+set}" = set; then :
3542 if ${ac_cv_prog_cc_g+:} false; then :
36443543 $as_echo_n "(cached) " >&6
36453544 else
36463545 ac_save_c_werror_flag=$ac_c_werror_flag
37183617 fi
37193618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
37203619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3620 if ${ac_cv_prog_cc_c89+:} false; then :
37223621 $as_echo_n "(cached) " >&6
37233622 else
37243623 ac_cv_prog_cc_c89=no
38173716
38183717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
38193718 $as_echo_n "checking dependency style of $depcc... " >&6; }
3820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3719 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
38213720 $as_echo_n "(cached) " >&6
38223721 else
38233722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38263725 # instance it was reported that on HP-UX the gcc test will end up
38273726 # making a dummy file named `D' -- because `-MD' means `put the output
38283727 # in D'.
3728 rm -rf conftest.dir
38293729 mkdir conftest.dir
38303730 # Copy depcomp to subdir because otherwise we won't find it if we're
38313731 # using a relative directory.
38853785 break
38863786 fi
38873787 ;;
3888 msvisualcpp | msvcmsys)
3788 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
38893789 # This compiler won't grok `-c -o', but also, the minuso test has
38903790 # not run yet. These depmodes are late enough in the game, and
38913791 # so weak that their functioning should not be impacted.
39433843
39443844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
39453845 $as_echo_n "checking for library containing strerror... " >&6; }
3946 if test "${ac_cv_search_strerror+set}" = set; then :
3846 if ${ac_cv_search_strerror+:} false; then :
39473847 $as_echo_n "(cached) " >&6
39483848 else
39493849 ac_func_search_save_LIBS=$LIBS
39773877 fi
39783878 rm -f core conftest.err conftest.$ac_objext \
39793879 conftest$ac_exeext
3980 if test "${ac_cv_search_strerror+set}" = set; then :
3880 if ${ac_cv_search_strerror+:} false; then :
39813881 break
39823882 fi
39833883 done
3984 if test "${ac_cv_search_strerror+set}" = set; then :
3884 if ${ac_cv_search_strerror+:} false; then :
39853885
39863886 else
39873887 ac_cv_search_strerror=no
40073907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
40083908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40093909 $as_echo_n "checking for $ac_word... " >&6; }
4010 if test "${ac_cv_prog_CC+set}" = set; then :
3910 if ${ac_cv_prog_CC+:} false; then :
40113911 $as_echo_n "(cached) " >&6
40123912 else
40133913 if test -n "$CC"; then
40473947 set dummy gcc; ac_word=$2
40483948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40493949 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
40513951 $as_echo_n "(cached) " >&6
40523952 else
40533953 if test -n "$ac_ct_CC"; then
41004000 set dummy ${ac_tool_prefix}cc; ac_word=$2
41014001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41024002 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_CC+set}" = set; then :
4003 if ${ac_cv_prog_CC+:} false; then :
41044004 $as_echo_n "(cached) " >&6
41054005 else
41064006 if test -n "$CC"; then
41404040 set dummy cc; ac_word=$2
41414041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41424042 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_CC+set}" = set; then :
4043 if ${ac_cv_prog_CC+:} false; then :
41444044 $as_echo_n "(cached) " >&6
41454045 else
41464046 if test -n "$CC"; then
41994099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
42004100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42014101 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_CC+set}" = set; then :
4102 if ${ac_cv_prog_CC+:} false; then :
42034103 $as_echo_n "(cached) " >&6
42044104 else
42054105 if test -n "$CC"; then
42434143 set dummy $ac_prog; ac_word=$2
42444144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42454145 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
42474147 $as_echo_n "(cached) " >&6
42484148 else
42494149 if test -n "$ac_ct_CC"; then
42984198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42994199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43004200 as_fn_error $? "no acceptable C compiler found in \$PATH
4301 See \`config.log' for more details" "$LINENO" 5 ; }
4201 See \`config.log' for more details" "$LINENO" 5; }
43024202
43034203 # Provide some information about the compiler.
43044204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
43274227
43284228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
43294229 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4330 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4230 if ${ac_cv_c_compiler_gnu+:} false; then :
43314231 $as_echo_n "(cached) " >&6
43324232 else
43334233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43644264 ac_save_CFLAGS=$CFLAGS
43654265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
43664266 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4367 if test "${ac_cv_prog_cc_g+set}" = set; then :
4267 if ${ac_cv_prog_cc_g+:} false; then :
43684268 $as_echo_n "(cached) " >&6
43694269 else
43704270 ac_save_c_werror_flag=$ac_c_werror_flag
44424342 fi
44434343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
44444344 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4445 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4345 if ${ac_cv_prog_cc_c89+:} false; then :
44464346 $as_echo_n "(cached) " >&6
44474347 else
44484348 ac_cv_prog_cc_c89=no
45414441
45424442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
45434443 $as_echo_n "checking dependency style of $depcc... " >&6; }
4544 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4444 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
45454445 $as_echo_n "(cached) " >&6
45464446 else
45474447 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
45504450 # instance it was reported that on HP-UX the gcc test will end up
45514451 # making a dummy file named `D' -- because `-MD' means `put the output
45524452 # in D'.
4453 rm -rf conftest.dir
45534454 mkdir conftest.dir
45544455 # Copy depcomp to subdir because otherwise we won't find it if we're
45554456 # using a relative directory.
46094510 break
46104511 fi
46114512 ;;
4612 msvisualcpp | msvcmsys)
4513 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
46134514 # This compiler won't grok `-c -o', but also, the minuso test has
46144515 # not run yet. These depmodes are late enough in the game, and
46154516 # so weak that their functioning should not be impacted.
46764577 CPP=
46774578 fi
46784579 if test -z "$CPP"; then
4679 if test "${ac_cv_prog_CPP+set}" = set; then :
4580 if ${ac_cv_prog_CPP+:} false; then :
46804581 $as_echo_n "(cached) " >&6
46814582 else
46824583 # Double quotes because CPP needs to be expanded
47924693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47934694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47944695 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4795 See \`config.log' for more details" "$LINENO" 5 ; }
4696 See \`config.log' for more details" "$LINENO" 5; }
47964697 fi
47974698
47984699 ac_ext=c
48044705
48054706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
48064707 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4807 if test "${ac_cv_path_GREP+set}" = set; then :
4708 if ${ac_cv_path_GREP+:} false; then :
48084709 $as_echo_n "(cached) " >&6
48094710 else
48104711 if test -z "$GREP"; then
48674768
48684769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
48694770 $as_echo_n "checking for egrep... " >&6; }
4870 if test "${ac_cv_path_EGREP+set}" = set; then :
4771 if ${ac_cv_path_EGREP+:} false; then :
48714772 $as_echo_n "(cached) " >&6
48724773 else
48734774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
49344835
49354836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
49364837 $as_echo_n "checking for ANSI C header files... " >&6; }
4937 if test "${ac_cv_header_stdc+set}" = set; then :
4838 if ${ac_cv_header_stdc+:} false; then :
49384839 $as_echo_n "(cached) " >&6
49394840 else
49404841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50524953
50534954
50544955
5055 macro_version='2.2.6b'
5056 macro_revision='1.3017'
4956 macro_version='2.4.2'
4957 macro_revision='1.3337'
50574958
50584959
50594960
50754976
50764977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
50774978 $as_echo_n "checking build system type... " >&6; }
5078 if test "${ac_cv_build+set}" = set; then :
4979 if ${ac_cv_build+:} false; then :
50794980 $as_echo_n "(cached) " >&6
50804981 else
50814982 ac_build_alias=$build_alias
50914992 $as_echo "$ac_cv_build" >&6; }
50924993 case $ac_cv_build in
50934994 *-*-*) ;;
5094 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4995 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
50954996 esac
50964997 build=$ac_cv_build
50974998 ac_save_IFS=$IFS; IFS='-'
51095010
51105011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
51115012 $as_echo_n "checking host system type... " >&6; }
5112 if test "${ac_cv_host+set}" = set; then :
5013 if ${ac_cv_host+:} false; then :
51135014 $as_echo_n "(cached) " >&6
51145015 else
51155016 if test "x$host_alias" = x; then
51245025 $as_echo "$ac_cv_host" >&6; }
51255026 case $ac_cv_host in
51265027 *-*-*) ;;
5127 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5028 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
51285029 esac
51295030 host=$ac_cv_host
51305031 ac_save_IFS=$IFS; IFS='-'
51405041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
51415042
51425043
5044 # Backslashify metacharacters that are still active within
5045 # double-quoted strings.
5046 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5047
5048 # Same as above, but do not quote variable references.
5049 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5050
5051 # Sed substitution to delay expansion of an escaped shell variable in a
5052 # double_quote_subst'ed string.
5053 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5054
5055 # Sed substitution to delay expansion of an escaped single quote.
5056 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5057
5058 # Sed substitution to avoid accidental globbing in evaled expressions
5059 no_glob_subst='s/\*/\\\*/g'
5060
5061 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5062 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5063 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5066 $as_echo_n "checking how to print strings... " >&6; }
5067 # Test print first, because it will be a builtin if present.
5068 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5069 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5070 ECHO='print -r --'
5071 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5072 ECHO='printf %s\n'
5073 else
5074 # Use this function as a fallback that always works.
5075 func_fallback_echo ()
5076 {
5077 eval 'cat <<_LTECHO_EOF
5078 $1
5079 _LTECHO_EOF'
5080 }
5081 ECHO='func_fallback_echo'
5082 fi
5083
5084 # func_echo_all arg...
5085 # Invoke $ECHO with all args, space-separated.
5086 func_echo_all ()
5087 {
5088 $ECHO ""
5089 }
5090
5091 case "$ECHO" in
5092 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5093 $as_echo "printf" >&6; } ;;
5094 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5095 $as_echo "print -r" >&6; } ;;
5096 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5097 $as_echo "cat" >&6; } ;;
5098 esac
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
51435113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
51445114 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5145 if test "${ac_cv_path_SED+set}" = set; then :
5115 if ${ac_cv_path_SED+:} false; then :
51465116 $as_echo_n "(cached) " >&6
51475117 else
51485118 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
52245194
52255195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
52265196 $as_echo_n "checking for fgrep... " >&6; }
5227 if test "${ac_cv_path_FGREP+set}" = set; then :
5197 if ${ac_cv_path_FGREP+:} false; then :
52285198 $as_echo_n "(cached) " >&6
52295199 else
52305200 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
53555325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
53565326 $as_echo_n "checking for non-GNU ld... " >&6; }
53575327 fi
5358 if test "${lt_cv_path_LD+set}" = set; then :
5328 if ${lt_cv_path_LD+:} false; then :
53595329 $as_echo_n "(cached) " >&6
53605330 else
53615331 if test -z "$LD"; then
53955365 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
53965366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
53975367 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5368 if ${lt_cv_prog_gnu_ld+:} false; then :
53995369 $as_echo_n "(cached) " >&6
54005370 else
54015371 # I'd rather use --version here, but apparently some GNU lds only accept -v.
54225392
54235393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
54245394 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425 if test "${lt_cv_path_NM+set}" = set; then :
5395 if ${lt_cv_path_NM+:} false; then :
54265396 $as_echo_n "(cached) " >&6
54275397 else
54285398 if test -n "$NM"; then
54755445 NM="$lt_cv_path_NM"
54765446 else
54775447 # Didn't find any BSD compatible name lister, look for dumpbin.
5478 if test -n "$ac_tool_prefix"; then
5479 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5448 if test -n "$DUMPBIN"; then :
5449 # Let the user override the test.
5450 else
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in dumpbin "link -dump"
54805453 do
54815454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
54825455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54835456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54845457 $as_echo_n "checking for $ac_word... " >&6; }
5485 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5458 if ${ac_cv_prog_DUMPBIN+:} false; then :
54865459 $as_echo_n "(cached) " >&6
54875460 else
54885461 if test -n "$DUMPBIN"; then
55205493 fi
55215494 if test -z "$DUMPBIN"; then
55225495 ac_ct_DUMPBIN=$DUMPBIN
5523 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5496 for ac_prog in dumpbin "link -dump"
55245497 do
55255498 # Extract the first word of "$ac_prog", so it can be a program name with args.
55265499 set dummy $ac_prog; ac_word=$2
55275500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55285501 $as_echo_n "checking for $ac_word... " >&6; }
5529 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5502 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
55305503 $as_echo_n "(cached) " >&6
55315504 else
55325505 if test -n "$ac_ct_DUMPBIN"; then
55755548 fi
55765549 fi
55775550
5551 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5552 *COFF*)
5553 DUMPBIN="$DUMPBIN -symbols"
5554 ;;
5555 *)
5556 DUMPBIN=:
5557 ;;
5558 esac
5559 fi
55785560
55795561 if test "$DUMPBIN" != ":"; then
55805562 NM="$DUMPBIN"
55895571
55905572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
55915573 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5592 if test "${lt_cv_nm_interface+set}" = set; then :
5574 if ${lt_cv_nm_interface+:} false; then :
55935575 $as_echo_n "(cached) " >&6
55945576 else
55955577 lt_cv_nm_interface="BSD nm"
55965578 echo "int some_variable = 0;" > conftest.$ac_ext
5597 (eval echo "\"\$as_me:5598: $ac_compile\"" >&5)
5579 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
55985580 (eval "$ac_compile" 2>conftest.err)
55995581 cat conftest.err >&5
5600 (eval echo "\"\$as_me:5601: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5582 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
56015583 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
56025584 cat conftest.err >&5
5603 (eval echo "\"\$as_me:5604: output\"" >&5)
5585 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
56045586 cat conftest.out >&5
56055587 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
56065588 lt_cv_nm_interface="MS dumpbin"
56245606 # find the maximum length of command line arguments
56255607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
56265608 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5627 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5609 if ${lt_cv_sys_max_cmd_len+:} false; then :
56285610 $as_echo_n "(cached) " >&6
56295611 else
56305612 i=0
56545636 # the test eventually succeeds (with a max line length of 256k).
56555637 # Instead, let's just punt: use the minimum linelength reported by
56565638 # all of the supported platforms: 8192 (on NT/2K/XP).
5639 lt_cv_sys_max_cmd_len=8192;
5640 ;;
5641
5642 mint*)
5643 # On MiNT this can take a long time and run out of memory.
56575644 lt_cv_sys_max_cmd_len=8192;
56585645 ;;
56595646
56805667 interix*)
56815668 # We know the value 262144 and hardcode it with a safety zone (like BSD)
56825669 lt_cv_sys_max_cmd_len=196608
5670 ;;
5671
5672 os2*)
5673 # The test takes a long time on OS/2.
5674 lt_cv_sys_max_cmd_len=8192
56835675 ;;
56845676
56855677 osf*)
57215713 # If test is not a shell built-in, we'll probably end up computing a
57225714 # maximum length that is only half of the actual maximum length, but
57235715 # we can't tell.
5724 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5725 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5716 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5717 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
57265718 test $i != 17 # 1/2 MB should be enough
57275719 do
57285720 i=`expr $i + 1`
57645756 # Try some XSI features
57655757 xsi_shell=no
57665758 ( _lt_dummy="a/b/c"
5767 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5768 = c,a/b,, \
5759 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5760 = c,a/b,b/c, \
57695761 && eval 'test $(( 1 + 1 )) -eq 2 \
57705762 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
57715763 && xsi_shell=yes
58145806
58155807
58165808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5810 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5811 if ${lt_cv_to_host_file_cmd+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 case $host in
5815 *-*-mingw* )
5816 case $build in
5817 *-*-mingw* ) # actually msys
5818 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5819 ;;
5820 *-*-cygwin* )
5821 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5822 ;;
5823 * ) # otherwise, assume *nix
5824 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5825 ;;
5826 esac
5827 ;;
5828 *-*-cygwin* )
5829 case $build in
5830 *-*-mingw* ) # actually msys
5831 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5832 ;;
5833 *-*-cygwin* )
5834 lt_cv_to_host_file_cmd=func_convert_file_noop
5835 ;;
5836 * ) # otherwise, assume *nix
5837 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5838 ;;
5839 esac
5840 ;;
5841 * ) # unhandled hosts (and "normal" native builds)
5842 lt_cv_to_host_file_cmd=func_convert_file_noop
5843 ;;
5844 esac
5845
5846 fi
5847
5848 to_host_file_cmd=$lt_cv_to_host_file_cmd
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5850 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5851
5852
5853
5854
5855
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5857 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5858 if ${lt_cv_to_tool_file_cmd+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 #assume ordinary cross tools, or native build.
5862 lt_cv_to_tool_file_cmd=func_convert_file_noop
5863 case $host in
5864 *-*-mingw* )
5865 case $build in
5866 *-*-mingw* ) # actually msys
5867 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5868 ;;
5869 esac
5870 ;;
5871 esac
5872
5873 fi
5874
5875 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5877 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5878
5879
5880
5881
5882
58175883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
58185884 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5819 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5885 if ${lt_cv_ld_reload_flag+:} false; then :
58205886 $as_echo_n "(cached) " >&6
58215887 else
58225888 lt_cv_ld_reload_flag='-r'
58305896 esac
58315897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
58325898 case $host_os in
5899 cygwin* | mingw* | pw32* | cegcc*)
5900 if test "$GCC" != yes; then
5901 reload_cmds=false
5902 fi
5903 ;;
58335904 darwin*)
58345905 if test "$GCC" = yes; then
58355906 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
58525923 set dummy ${ac_tool_prefix}objdump; ac_word=$2
58535924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58545925 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5926 if ${ac_cv_prog_OBJDUMP+:} false; then :
58565927 $as_echo_n "(cached) " >&6
58575928 else
58585929 if test -n "$OBJDUMP"; then
58925963 set dummy objdump; ac_word=$2
58935964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58945965 $as_echo_n "checking for $ac_word... " >&6; }
5895 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5966 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
58965967 $as_echo_n "(cached) " >&6
58975968 else
58985969 if test -n "$ac_ct_OBJDUMP"; then
59516022
59526023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
59536024 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5954 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6025 if ${lt_cv_deplibs_check_method+:} false; then :
59556026 $as_echo_n "(cached) " >&6
59566027 else
59576028 lt_cv_file_magic_cmd='$MAGIC_CMD'
59936064 # Base MSYS/MinGW do not provide the 'file' command needed by
59946065 # func_win32_libid shell function, so use a weaker test based on 'objdump',
59956066 # unless we find 'file', for example because we are cross-compiling.
5996 if ( file / ) >/dev/null 2>&1; then
6067 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6068 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
59976069 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
59986070 lt_cv_file_magic_cmd='func_win32_libid'
59996071 else
6000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6072 # Keep this pattern in sync with the one in func_win32_libid.
6073 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
60016074 lt_cv_file_magic_cmd='$OBJDUMP -f'
60026075 fi
60036076 ;;
60046077
6005 cegcc)
6078 cegcc*)
60066079 # use the weaker test based on 'objdump'. See mingw*.
60076080 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
60086081 lt_cv_file_magic_cmd='$OBJDUMP -f'
60326105 lt_cv_deplibs_check_method=pass_all
60336106 ;;
60346107
6108 haiku*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
6111
60356112 hpux10.20* | hpux11*)
60366113 lt_cv_file_magic_cmd=/usr/bin/file
60376114 case $host_cpu in
60406117 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
60416118 ;;
60426119 hppa*64*)
6043 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]'
6120 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]'
60446121 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
60456122 ;;
60466123 *)
6047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
60486125 lt_cv_file_magic_test_file=/usr/lib/libc.sl
60496126 ;;
60506127 esac
60656142 lt_cv_deplibs_check_method=pass_all
60666143 ;;
60676144
6068 # This must be Linux ELF.
6145 # This must be glibc/ELF.
60696146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
60706147 lt_cv_deplibs_check_method=pass_all
60716148 ;;
61476224 fi
61486225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
61496226 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6227
6228 file_magic_glob=
6229 want_nocaseglob=no
6230 if test "$build" = "$host"; then
6231 case $host_os in
6232 mingw* | pw32*)
6233 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6234 want_nocaseglob=yes
6235 else
6236 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6237 fi
6238 ;;
6239 esac
6240 fi
6241
61506242 file_magic_cmd=$lt_cv_file_magic_cmd
61516243 deplibs_check_method=$lt_cv_deplibs_check_method
61526244 test -z "$deplibs_check_method" && deplibs_check_method=unknown
61626254
61636255
61646256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
61656267 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}ar; ac_word=$2
6268 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
61686270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61696271 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_AR+set}" = set; then :
6272 if ${ac_cv_prog_DLLTOOL+:} false; then :
61716273 $as_echo_n "(cached) " >&6
61726274 else
6173 if test -n "$AR"; then
6174 ac_cv_prog_AR="$AR" # Let the user override the test.
6275 if test -n "$DLLTOOL"; then
6276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
61756277 else
61766278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61776279 for as_dir in $PATH
61806282 test -z "$as_dir" && as_dir=.
61816283 for ac_exec_ext in '' $ac_executable_extensions; do
61826284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_AR="${ac_tool_prefix}ar"
6285 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
61846286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61856287 break 2
61866288 fi
61906292
61916293 fi
61926294 fi
6193 AR=$ac_cv_prog_AR
6194 if test -n "$AR"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6196 $as_echo "$AR" >&6; }
6295 DLLTOOL=$ac_cv_prog_DLLTOOL
6296 if test -n "$DLLTOOL"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6298 $as_echo "$DLLTOOL" >&6; }
61976299 else
61986300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61996301 $as_echo "no" >&6; }
62016303
62026304
62036305 fi
6204 if test -z "$ac_cv_prog_AR"; then
6205 ac_ct_AR=$AR
6206 # Extract the first word of "ar", so it can be a program name with args.
6207 set dummy ar; ac_word=$2
6306 if test -z "$ac_cv_prog_DLLTOOL"; then
6307 ac_ct_DLLTOOL=$DLLTOOL
6308 # Extract the first word of "dlltool", so it can be a program name with args.
6309 set dummy dlltool; ac_word=$2
62086310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62096311 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6312 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
62116313 $as_echo_n "(cached) " >&6
62126314 else
6213 if test -n "$ac_ct_AR"; then
6214 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6315 if test -n "$ac_ct_DLLTOOL"; then
6316 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
62156317 else
62166318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62176319 for as_dir in $PATH
62206322 test -z "$as_dir" && as_dir=.
62216323 for ac_exec_ext in '' $ac_executable_extensions; do
62226324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_AR="ar"
6325 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6336 if test -n "$ac_ct_DLLTOOL"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6338 $as_echo "$ac_ct_DLLTOOL" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344 if test "x$ac_ct_DLLTOOL" = x; then
6345 DLLTOOL="false"
6346 else
6347 case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353 DLLTOOL=$ac_ct_DLLTOOL
6354 fi
6355 else
6356 DLLTOOL="$ac_cv_prog_DLLTOOL"
6357 fi
6358
6359 test -z "$DLLTOOL" && DLLTOOL=dlltool
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6371 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6372 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 lt_cv_sharedlib_from_linklib_cmd='unknown'
6376
6377 case $host_os in
6378 cygwin* | mingw* | pw32* | cegcc*)
6379 # two different shell functions defined in ltmain.sh
6380 # decide which to use based on capabilities of $DLLTOOL
6381 case `$DLLTOOL --help 2>&1` in
6382 *--identify-strict*)
6383 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6384 ;;
6385 *)
6386 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6387 ;;
6388 esac
6389 ;;
6390 *)
6391 # fallback: assume linklib IS sharedlib
6392 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6393 ;;
6394 esac
6395
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6398 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6399 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6400 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6401
6402
6403
6404
6405
6406
6407
6408 if test -n "$ac_tool_prefix"; then
6409 for ac_prog in ar
6410 do
6411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_AR+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$AR"; then
6419 ac_cv_prog_AR="$AR" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 AR=$ac_cv_prog_AR
6439 if test -n "$AR"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6441 $as_echo "$AR" >&6; }
6442 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447
6448 test -n "$AR" && break
6449 done
6450 fi
6451 if test -z "$AR"; then
6452 ac_ct_AR=$AR
6453 for ac_prog in ar
6454 do
6455 # Extract the first word of "$ac_prog", so it can be a program name with args.
6456 set dummy $ac_prog; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$ac_ct_AR"; then
6463 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_AR="$ac_prog"
62246473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62256474 break 2
62266475 fi
62386487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62396488 $as_echo "no" >&6; }
62406489 fi
6490
6491
6492 test -n "$ac_ct_AR" && break
6493 done
62416494
62426495 if test "x$ac_ct_AR" = x; then
62436496 AR="false"
62506503 esac
62516504 AR=$ac_ct_AR
62526505 fi
6253 else
6254 AR="$ac_cv_prog_AR"
6255 fi
6256
6257 test -z "$AR" && AR=ar
6258 test -z "$AR_FLAGS" && AR_FLAGS=cru
6259
6260
6261
6262
6506 fi
6507
6508 : ${AR=ar}
6509 : ${AR_FLAGS=cru}
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6522 $as_echo_n "checking for archiver @FILE support... " >&6; }
6523 if ${lt_cv_ar_at_file+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 lt_cv_ar_at_file=no
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 echo conftest.$ac_objext > conftest.lst
6540 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6542 (eval $lt_ar_try) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }
6546 if test "$ac_status" -eq 0; then
6547 # Ensure the archiver fails upon bogus file names.
6548 rm -f conftest.$ac_objext libconftest.a
6549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6550 (eval $lt_ar_try) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; }
6554 if test "$ac_status" -ne 0; then
6555 lt_cv_ar_at_file=@
6556 fi
6557 fi
6558 rm -f conftest.* libconftest.a
6559
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562
6563 fi
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6565 $as_echo "$lt_cv_ar_at_file" >&6; }
6566
6567 if test "x$lt_cv_ar_at_file" = xno; then
6568 archiver_list_spec=
6569 else
6570 archiver_list_spec=$lt_cv_ar_at_file
6571 fi
62636572
62646573
62656574
62726581 set dummy ${ac_tool_prefix}strip; ac_word=$2
62736582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62746583 $as_echo_n "checking for $ac_word... " >&6; }
6275 if test "${ac_cv_prog_STRIP+set}" = set; then :
6584 if ${ac_cv_prog_STRIP+:} false; then :
62766585 $as_echo_n "(cached) " >&6
62776586 else
62786587 if test -n "$STRIP"; then
63126621 set dummy strip; ac_word=$2
63136622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63146623 $as_echo_n "checking for $ac_word... " >&6; }
6315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6624 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
63166625 $as_echo_n "(cached) " >&6
63176626 else
63186627 if test -n "$ac_ct_STRIP"; then
63716680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
63726681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63736682 $as_echo_n "checking for $ac_word... " >&6; }
6374 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6683 if ${ac_cv_prog_RANLIB+:} false; then :
63756684 $as_echo_n "(cached) " >&6
63766685 else
63776686 if test -n "$RANLIB"; then
64116720 set dummy ranlib; ac_word=$2
64126721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
64136722 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6723 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
64156724 $as_echo_n "(cached) " >&6
64166725 else
64176726 if test -n "$ac_ct_RANLIB"; then
64736782 if test -n "$RANLIB"; then
64746783 case $host_os in
64756784 openbsd*)
6476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
64776786 ;;
64786787 *)
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
64806789 ;;
64816790 esac
6482 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6483 fi
6791 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6792 fi
6793
6794 case $host_os in
6795 darwin*)
6796 lock_old_archive_extraction=yes ;;
6797 *)
6798 lock_old_archive_extraction=no ;;
6799 esac
6800
6801
6802
6803
6804
64846805
64856806
64866807
65286849 # Check for command to grab the raw symbol name followed by C symbol from nm.
65296850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
65306851 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6531 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6852 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
65326853 $as_echo_n "(cached) " >&6
65336854 else
65346855
65896910 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
65906911
65916912 # Transform an extracted symbol line into symbol name and symbol address
6592 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6593 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'"
6913 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6914 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'"
65946915
65956916 # Handle CRLF in mingw tool chain
65966917 opt_cr=
66146935 # which start with @ or ?.
66156936 lt_cv_sys_global_symbol_pipe="$AWK '"\
66166937 " {last_section=section; section=\$ 3};"\
6938 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
66176939 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
66186940 " \$ 0!~/External *\|/{next};"\
66196941 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
66266948 else
66276949 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
66286950 fi
6951 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
66296952
66306953 # Check to see that the pipe works correctly.
66316954 pipe_works=no
66516974 test $ac_status = 0; }; then
66526975 # Now try to grab the symbols.
66536976 nlist=conftest.nm
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6655 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6978 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
66566979 ac_status=$?
66576980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66586981 test $ac_status = 0; } && test -s "$nlist"; then
66676990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
66686991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
66696992 cat <<_LT_EOF > conftest.$ac_ext
6993 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6994 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6995 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6996 relocations are performed -- see ld's documentation on pseudo-relocs. */
6997 # define LT_DLSYM_CONST
6998 #elif defined(__osf__)
6999 /* This system does not cope well with relocations in const data. */
7000 # define LT_DLSYM_CONST
7001 #else
7002 # define LT_DLSYM_CONST const
7003 #endif
7004
66707005 #ifdef __cplusplus
66717006 extern "C" {
66727007 #endif
66787013 cat <<_LT_EOF >> conftest.$ac_ext
66797014
66807015 /* The mapping between symbol names and symbols. */
6681 const struct {
7016 LT_DLSYM_CONST struct {
66827017 const char *name;
66837018 void *address;
66847019 }
67047039 _LT_EOF
67057040 # Now try linking the two files.
67067041 mv conftest.$ac_objext conftstm.$ac_objext
6707 lt_save_LIBS="$LIBS"
6708 lt_save_CFLAGS="$CFLAGS"
7042 lt_globsym_save_LIBS=$LIBS
7043 lt_globsym_save_CFLAGS=$CFLAGS
67097044 LIBS="conftstm.$ac_objext"
67107045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
67117046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
67157050 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
67167051 pipe_works=yes
67177052 fi
6718 LIBS="$lt_save_LIBS"
6719 CFLAGS="$lt_save_CFLAGS"
7053 LIBS=$lt_globsym_save_LIBS
7054 CFLAGS=$lt_globsym_save_CFLAGS
67207055 else
67217056 echo "cannot find nm_test_func in $nlist" >&5
67227057 fi
67537088 $as_echo "ok" >&6; }
67547089 fi
67557090
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
7091 # Response file support.
7092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7093 nm_file_list_spec='@'
7094 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7095 nm_file_list_spec='@'
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7125 $as_echo_n "checking for sysroot... " >&6; }
7126
7127 # Check whether --with-sysroot was given.
7128 if test "${with_sysroot+set}" = set; then :
7129 withval=$with_sysroot;
7130 else
7131 with_sysroot=no
7132 fi
7133
7134
7135 lt_sysroot=
7136 case ${with_sysroot} in #(
7137 yes)
7138 if test "$GCC" = yes; then
7139 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7140 fi
7141 ;; #(
7142 /*)
7143 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7144 ;; #(
7145 no|'')
7146 ;; #(
7147 *)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7149 $as_echo "${with_sysroot}" >&6; }
7150 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7151 ;;
7152 esac
7153
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7155 $as_echo "${lt_sysroot:-no}" >&6; }
67727156
67737157
67747158
68057189 ;;
68067190 *-*-irix6*)
68077191 # Find out which ABI we are using.
6808 echo '#line 6809 "configure"' > conftest.$ac_ext
7192 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
68097193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68107194 (eval $ac_compile) 2>&5
68117195 ac_status=$?
68997283 CFLAGS="$CFLAGS -belf"
69007284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
69017285 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6902 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7286 if ${lt_cv_cc_needs_belf+:} false; then :
69037287 $as_echo_n "(cached) " >&6
69047288 else
69057289 ac_ext=c
69407324 CFLAGS="$SAVE_CFLAGS"
69417325 fi
69427326 ;;
6943 sparc*-*solaris*)
7327 *-*solaris*)
69447328 # Find out which ABI we are using.
69457329 echo 'int i;' > conftest.$ac_ext
69467330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
69517335 case `/usr/bin/file conftest.o` in
69527336 *64-bit*)
69537337 case $lt_cv_prog_gnu_ld in
6954 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7338 yes*)
7339 case $host in
7340 i?86-*-solaris*)
7341 LD="${LD-ld} -m elf_x86_64"
7342 ;;
7343 sparc*-*-solaris*)
7344 LD="${LD-ld} -m elf64_sparc"
7345 ;;
7346 esac
7347 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7348 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7349 LD="${LD-ld}_sol2"
7350 fi
7351 ;;
69557352 *)
69567353 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
69577354 LD="${LD-ld} -64"
69677364
69687365 need_locks="$enable_libtool_lock"
69697366
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}mt; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$MANIFEST_TOOL"; then
7376 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7396 if test -n "$MANIFEST_TOOL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7398 $as_echo "$MANIFEST_TOOL" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405 fi
7406 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7407 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7408 # Extract the first word of "mt", so it can be a program name with args.
7409 set dummy mt; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$ac_ct_MANIFEST_TOOL"; then
7416 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7436 if test -n "$ac_ct_MANIFEST_TOOL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7438 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7445 MANIFEST_TOOL=":"
7446 else
7447 case $cross_compiling:$ac_tool_warned in
7448 yes:)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451 ac_tool_warned=yes ;;
7452 esac
7453 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7454 fi
7455 else
7456 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7457 fi
7458
7459 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7461 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7462 if ${lt_cv_path_mainfest_tool+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 lt_cv_path_mainfest_tool=no
7466 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7467 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7468 cat conftest.err >&5
7469 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7470 lt_cv_path_mainfest_tool=yes
7471 fi
7472 rm -f conftest*
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7475 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7476 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7477 MANIFEST_TOOL=:
7478 fi
7479
7480
7481
7482
7483
69707484
69717485 case $host_os in
69727486 rhapsody* | darwin*)
69757489 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
69767490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
69777491 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7492 if ${ac_cv_prog_DSYMUTIL+:} false; then :
69797493 $as_echo_n "(cached) " >&6
69807494 else
69817495 if test -n "$DSYMUTIL"; then
70157529 set dummy dsymutil; ac_word=$2
70167530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70177531 $as_echo_n "checking for $ac_word... " >&6; }
7018 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7532 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
70197533 $as_echo_n "(cached) " >&6
70207534 else
70217535 if test -n "$ac_ct_DSYMUTIL"; then
70677581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
70687582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70697583 $as_echo_n "checking for $ac_word... " >&6; }
7070 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7584 if ${ac_cv_prog_NMEDIT+:} false; then :
70717585 $as_echo_n "(cached) " >&6
70727586 else
70737587 if test -n "$NMEDIT"; then
71077621 set dummy nmedit; ac_word=$2
71087622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71097623 $as_echo_n "checking for $ac_word... " >&6; }
7110 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7624 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
71117625 $as_echo_n "(cached) " >&6
71127626 else
71137627 if test -n "$ac_ct_NMEDIT"; then
71597673 set dummy ${ac_tool_prefix}lipo; ac_word=$2
71607674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71617675 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_LIPO+set}" = set; then :
7676 if ${ac_cv_prog_LIPO+:} false; then :
71637677 $as_echo_n "(cached) " >&6
71647678 else
71657679 if test -n "$LIPO"; then
71997713 set dummy lipo; ac_word=$2
72007714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72017715 $as_echo_n "checking for $ac_word... " >&6; }
7202 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7716 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
72037717 $as_echo_n "(cached) " >&6
72047718 else
72057719 if test -n "$ac_ct_LIPO"; then
72517765 set dummy ${ac_tool_prefix}otool; ac_word=$2
72527766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72537767 $as_echo_n "checking for $ac_word... " >&6; }
7254 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7768 if ${ac_cv_prog_OTOOL+:} false; then :
72557769 $as_echo_n "(cached) " >&6
72567770 else
72577771 if test -n "$OTOOL"; then
72917805 set dummy otool; ac_word=$2
72927806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72937807 $as_echo_n "checking for $ac_word... " >&6; }
7294 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7808 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
72957809 $as_echo_n "(cached) " >&6
72967810 else
72977811 if test -n "$ac_ct_OTOOL"; then
73437857 set dummy ${ac_tool_prefix}otool64; ac_word=$2
73447858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73457859 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7860 if ${ac_cv_prog_OTOOL64+:} false; then :
73477861 $as_echo_n "(cached) " >&6
73487862 else
73497863 if test -n "$OTOOL64"; then
73837897 set dummy otool64; ac_word=$2
73847898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73857899 $as_echo_n "checking for $ac_word... " >&6; }
7386 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7900 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
73877901 $as_echo_n "(cached) " >&6
73887902 else
73897903 if test -n "$ac_ct_OTOOL64"; then
74587972
74597973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
74607974 $as_echo_n "checking for -single_module linker flag... " >&6; }
7461 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7975 if ${lt_cv_apple_cc_single_mod+:} false; then :
74627976 $as_echo_n "(cached) " >&6
74637977 else
74647978 lt_cv_apple_cc_single_mod=no
74747988 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
74757989 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
74767990 _lt_result=$?
7477 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7991 # If there is a non-empty error log, and "single_module"
7992 # appears in it, assume the flag caused a linker warning
7993 if test -s conftest.err && $GREP single_module conftest.err; then
7994 cat conftest.err >&5
7995 # Otherwise, if the output was created with a 0 exit code from
7996 # the compiler, it worked.
7997 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
74787998 lt_cv_apple_cc_single_mod=yes
74797999 else
74808000 cat conftest.err >&5
74858005 fi
74868006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
74878007 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8008
74888009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
74898010 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7490 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8011 if ${lt_cv_ld_exported_symbols_list+:} false; then :
74918012 $as_echo_n "(cached) " >&6
74928013 else
74938014 lt_cv_ld_exported_symbols_list=no
75178038 fi
75188039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
75198040 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8043 $as_echo_n "checking for -force_load linker flag... " >&6; }
8044 if ${lt_cv_ld_force_load+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 lt_cv_ld_force_load=no
8048 cat > conftest.c << _LT_EOF
8049 int forced_loaded() { return 2;}
8050 _LT_EOF
8051 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8052 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8053 echo "$AR cru libconftest.a conftest.o" >&5
8054 $AR cru libconftest.a conftest.o 2>&5
8055 echo "$RANLIB libconftest.a" >&5
8056 $RANLIB libconftest.a 2>&5
8057 cat > conftest.c << _LT_EOF
8058 int main() { return 0;}
8059 _LT_EOF
8060 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8061 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8062 _lt_result=$?
8063 if test -s conftest.err && $GREP force_load conftest.err; then
8064 cat conftest.err >&5
8065 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8066 lt_cv_ld_force_load=yes
8067 else
8068 cat conftest.err >&5
8069 fi
8070 rm -f conftest.err libconftest.a conftest conftest.c
8071 rm -rf conftest.dSYM
8072
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8075 $as_echo "$lt_cv_ld_force_load" >&6; }
75208076 case $host_os in
75218077 rhapsody* | darwin1.[012])
75228078 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
75448100 else
75458101 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
75468102 fi
7547 if test "$DSYMUTIL" != ":"; then
8103 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
75488104 _lt_dsymutil='~$DSYMUTIL $lib || :'
75498105 else
75508106 _lt_dsymutil=
75738129 do :
75748130 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
75758131 "
7576 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8132 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
75778133 cat >>confdefs.h <<_ACEOF
75788134 #define HAVE_DLFCN_H 1
75798135 _ACEOF
75818137 fi
75828138
75838139 done
8140
8141
75848142
75858143
75868144
76598217
76608218 # Check whether --with-pic was given.
76618219 if test "${with_pic+set}" = set; then :
7662 withval=$with_pic; pic_mode="$withval"
8220 withval=$with_pic; lt_p=${PACKAGE-default}
8221 case $withval in
8222 yes|no) pic_mode=$withval ;;
8223 *)
8224 pic_mode=default
8225 # Look at the argument we got. We use all the common list separators.
8226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8227 for lt_pkg in $withval; do
8228 IFS="$lt_save_ifs"
8229 if test "X$lt_pkg" = "X$lt_p"; then
8230 pic_mode=yes
8231 fi
8232 done
8233 IFS="$lt_save_ifs"
8234 ;;
8235 esac
76638236 else
76648237 pic_mode=default
76658238 fi
77368309
77378310
77388311
8312
8313
8314
8315
8316
77398317 test -z "$LN_S" && LN_S="ln -s"
77408318
77418319
77578335
77588336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
77598337 $as_echo_n "checking for objdir... " >&6; }
7760 if test "${lt_cv_objdir+set}" = set; then :
8338 if ${lt_cv_objdir+:} false; then :
77618339 $as_echo_n "(cached) " >&6
77628340 else
77638341 rm -f .libs 2>/dev/null
77818359 cat >>confdefs.h <<_ACEOF
77828360 #define LT_OBJDIR "$lt_cv_objdir/"
77838361 _ACEOF
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
77978362
77988363
77998364
78108375 ;;
78118376 esac
78128377
7813 # Sed substitution that helps us do robust quoting. It backslashifies
7814 # metacharacters that are still active within double-quoted strings.
7815 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7816
7817 # Same as above, but do not quote variable references.
7818 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7819
7820 # Sed substitution to delay expansion of an escaped shell variable in a
7821 # double_quote_subst'ed string.
7822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7823
7824 # Sed substitution to delay expansion of an escaped single quote.
7825 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7826
7827 # Sed substitution to avoid accidental globbing in evaled expressions
7828 no_glob_subst='s/\*/\\\*/g'
7829
78308378 # Global variables:
78318379 ofile=libtool
78328380 can_build_shared=yes
78558403 *) break;;
78568404 esac
78578405 done
7858 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8406 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
78598407
78608408
78618409 # Only perform the check for file, if the check method requires it
78658413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
78668414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
78678415 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8416 if ${lt_cv_path_MAGIC_CMD+:} false; then :
78698417 $as_echo_n "(cached) " >&6
78708418 else
78718419 case $MAGIC_CMD in
79318479 if test -n "$ac_tool_prefix"; then
79328480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
79338481 $as_echo_n "checking for file... " >&6; }
7934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
79358483 $as_echo_n "(cached) " >&6
79368484 else
79378485 case $MAGIC_CMD in
80648612 lt_prog_compiler_no_builtin_flag=
80658613
80668614 if test "$GCC" = yes; then
8067 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8615 case $cc_basename in
8616 nvcc*)
8617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8618 *)
8619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620 esac
80688621
80698622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
80708623 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8071 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
80728625 $as_echo_n "(cached) " >&6
80738626 else
80748627 lt_cv_prog_compiler_rtti_exceptions=no
80848637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
80858638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
80868639 -e 's:$: $lt_compiler_flag:'`
8087 (eval echo "\"\$as_me:8088: $lt_compile\"" >&5)
8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
80888641 (eval "$lt_compile" 2>conftest.err)
80898642 ac_status=$?
80908643 cat conftest.err >&5
8091 echo "$as_me:8092: \$? = $ac_status" >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
80928645 if (exit $ac_status) && test -s "$ac_outfile"; then
80938646 # The compiler can only warn and ignore the option if not recognized
80948647 # So say no if there are warnings other than the usual output.
8095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
80968649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
80978650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80988651 lt_cv_prog_compiler_rtti_exceptions=yes
81218674 lt_prog_compiler_pic=
81228675 lt_prog_compiler_static=
81238676
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8125 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
81268677
81278678 if test "$GCC" = yes; then
81288679 lt_prog_compiler_wl='-Wl,'
81708721 lt_prog_compiler_pic='-fno-common'
81718722 ;;
81728723
8724 haiku*)
8725 # PIC is the default for Haiku.
8726 # The "-static" flag exists, but is broken.
8727 lt_prog_compiler_static=
8728 ;;
8729
81738730 hpux*)
81748731 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
81758732 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
82108767
82118768 *)
82128769 lt_prog_compiler_pic='-fPIC'
8770 ;;
8771 esac
8772
8773 case $cc_basename in
8774 nvcc*) # Cuda Compiler Driver 2.2
8775 lt_prog_compiler_wl='-Xlinker '
8776 if test -n "$lt_prog_compiler_pic"; then
8777 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8778 fi
82138779 ;;
82148780 esac
82158781 else
82748840 lt_prog_compiler_pic='--shared'
82758841 lt_prog_compiler_static='--static'
82768842 ;;
8277 pgcc* | pgf77* | pgf90* | pgf95*)
8843 nagfor*)
8844 # NAG Fortran compiler
8845 lt_prog_compiler_wl='-Wl,-Wl,,'
8846 lt_prog_compiler_pic='-PIC'
8847 lt_prog_compiler_static='-Bstatic'
8848 ;;
8849 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
82788850 # Portland Group compilers (*not* the Pentium gcc compiler,
82798851 # which looks to be a dead project)
82808852 lt_prog_compiler_wl='-Wl,'
82868858 # All Alpha code is PIC.
82878859 lt_prog_compiler_static='-non_shared'
82888860 ;;
8289 xl*)
8290 # IBM XL C 8.0/Fortran 10.1 on PPC
8861 xl* | bgxl* | bgf* | mpixl*)
8862 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
82918863 lt_prog_compiler_wl='-Wl,'
82928864 lt_prog_compiler_pic='-qpic'
82938865 lt_prog_compiler_static='-qstaticlink'
82948866 ;;
82958867 *)
82968868 case `$CC -V 2>&1 | sed 5q` in
8869 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8870 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8871 lt_prog_compiler_pic='-KPIC'
8872 lt_prog_compiler_static='-Bstatic'
8873 lt_prog_compiler_wl=''
8874 ;;
8875 *Sun\ F* | *Sun*Fortran*)
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Qoption ld '
8879 ;;
82978880 *Sun\ C*)
82988881 # Sun C 5.9
82998882 lt_prog_compiler_pic='-KPIC'
83008883 lt_prog_compiler_static='-Bstatic'
83018884 lt_prog_compiler_wl='-Wl,'
83028885 ;;
8303 *Sun\ F*)
8304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8305 lt_prog_compiler_pic='-KPIC'
8886 *Intel*\ [CF]*Compiler*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-fPIC'
8889 lt_prog_compiler_static='-static'
8890 ;;
8891 *Portland\ Group*)
8892 lt_prog_compiler_wl='-Wl,'
8893 lt_prog_compiler_pic='-fpic'
83068894 lt_prog_compiler_static='-Bstatic'
8307 lt_prog_compiler_wl=''
83088895 ;;
83098896 esac
83108897 ;;
83368923 lt_prog_compiler_pic='-KPIC'
83378924 lt_prog_compiler_static='-Bstatic'
83388925 case $cc_basename in
8339 f77* | f90* | f95*)
8926 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
83408927 lt_prog_compiler_wl='-Qoption ld ';;
83418928 *)
83428929 lt_prog_compiler_wl='-Wl,';;
83938980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
83948981 ;;
83958982 esac
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8397 $as_echo "$lt_prog_compiler_pic" >&6; }
8398
8399
8400
8401
8402
8983
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8986 if ${lt_cv_prog_compiler_pic+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8992 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8993 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
84038994
84048995 #
84058996 # Check to make sure the PIC flag actually works.
84078998 if test -n "$lt_prog_compiler_pic"; then
84088999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
84099000 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8410 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9001 if ${lt_cv_prog_compiler_pic_works+:} false; then :
84119002 $as_echo_n "(cached) " >&6
84129003 else
84139004 lt_cv_prog_compiler_pic_works=no
84239014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
84249015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
84259016 -e 's:$: $lt_compiler_flag:'`
8426 (eval echo "\"\$as_me:8427: $lt_compile\"" >&5)
9017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
84279018 (eval "$lt_compile" 2>conftest.err)
84289019 ac_status=$?
84299020 cat conftest.err >&5
8430 echo "$as_me:8431: \$? = $ac_status" >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84319022 if (exit $ac_status) && test -s "$ac_outfile"; then
84329023 # The compiler can only warn and ignore the option if not recognized
84339024 # So say no if there are warnings other than the usual output.
8434 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
84359026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
84369027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
84379028 lt_cv_prog_compiler_pic_works=yes
84609051
84619052
84629053
9054
9055
9056
9057
9058
84639059 #
84649060 # Check to make sure the static flag actually works.
84659061 #
84669062 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
84679063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
84689064 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8469 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9065 if ${lt_cv_prog_compiler_static_works+:} false; then :
84709066 $as_echo_n "(cached) " >&6
84719067 else
84729068 lt_cv_prog_compiler_static_works=no
84799075 if test -s conftest.err; then
84809076 # Append any errors to the config.log.
84819077 cat conftest.err 1>&5
8482 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9078 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
84839079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
84849080 if diff conftest.exp conftest.er2 >/dev/null; then
84859081 lt_cv_prog_compiler_static_works=yes
85099105
85109106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
85119107 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9108 if ${lt_cv_prog_compiler_c_o+:} false; then :
85139109 $as_echo_n "(cached) " >&6
85149110 else
85159111 lt_cv_prog_compiler_c_o=no
85289124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
85299125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
85309126 -e 's:$: $lt_compiler_flag:'`
8531 (eval echo "\"\$as_me:8532: $lt_compile\"" >&5)
9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
85329128 (eval "$lt_compile" 2>out/conftest.err)
85339129 ac_status=$?
85349130 cat out/conftest.err >&5
8535 echo "$as_me:8536: \$? = $ac_status" >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
85369132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
85379133 then
85389134 # The compiler can only warn and ignore the option if not recognized
85399135 # So say no if there are warnings
8540 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
85419137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
85429138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
85439139 lt_cv_prog_compiler_c_o=yes
85649160
85659161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
85669162 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9163 if ${lt_cv_prog_compiler_c_o+:} false; then :
85689164 $as_echo_n "(cached) " >&6
85699165 else
85709166 lt_cv_prog_compiler_c_o=no
85839179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
85849180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
85859181 -e 's:$: $lt_compiler_flag:'`
8586 (eval echo "\"\$as_me:8587: $lt_compile\"" >&5)
9182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
85879183 (eval "$lt_compile" 2>out/conftest.err)
85889184 ac_status=$?
85899185 cat out/conftest.err >&5
8590 echo "$as_me:8591: \$? = $ac_status" >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
85919187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
85929188 then
85939189 # The compiler can only warn and ignore the option if not recognized
85949190 # So say no if there are warnings
8595 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
85969192 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
85979193 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
85989194 lt_cv_prog_compiler_c_o=yes
86589254 hardcode_direct=no
86599255 hardcode_direct_absolute=no
86609256 hardcode_libdir_flag_spec=
8661 hardcode_libdir_flag_spec_ld=
86629257 hardcode_libdir_separator=
86639258 hardcode_minus_L=no
86649259 hardcode_shlibpath_var=unsupported
87029297 openbsd*)
87039298 with_gnu_ld=no
87049299 ;;
8705 linux* | k*bsd*-gnu)
9300 linux* | k*bsd*-gnu | gnu*)
87069301 link_all_deplibs=no
87079302 ;;
87089303 esac
87099304
87109305 ld_shlibs=yes
9306
9307 # On some targets, GNU ld is compatible enough with the native linker
9308 # that we're better off using the native interface for both.
9309 lt_use_gnu_ld_interface=no
87119310 if test "$with_gnu_ld" = yes; then
9311 case $host_os in
9312 aix*)
9313 # The AIX port of GNU ld has always aspired to compatibility
9314 # with the native linker. However, as the warning in the GNU ld
9315 # block says, versions before 2.19.5* couldn't really create working
9316 # shared libraries, regardless of the interface used.
9317 case `$LD -v 2>&1` in
9318 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9319 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9320 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9321 *)
9322 lt_use_gnu_ld_interface=yes
9323 ;;
9324 esac
9325 ;;
9326 *)
9327 lt_use_gnu_ld_interface=yes
9328 ;;
9329 esac
9330 fi
9331
9332 if test "$lt_use_gnu_ld_interface" = yes; then
87129333 # If archive_cmds runs LD, not CC, wlarc should be empty
87139334 wlarc='${wl}'
87149335
87429363 ld_shlibs=no
87439364 cat <<_LT_EOF 1>&2
87449365
8745 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9366 *** Warning: the GNU linker, at least up to release 2.19, is reported
87469367 *** to be unable to reliably create shared libraries on AIX.
87479368 *** Therefore, libtool is disabling shared libraries support. If you
8748 *** really care for shared libraries, you may want to modify your PATH
8749 *** so that a non-GNU linker is found, and then restart.
9369 *** really care for shared libraries, you may want to install binutils
9370 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9371 *** You will then need to restart the configuration process.
87509372
87519373 _LT_EOF
87529374 fi
87829404 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
87839405 # as there is no search path for DLLs.
87849406 hardcode_libdir_flag_spec='-L$libdir'
9407 export_dynamic_flag_spec='${wl}--export-all-symbols'
87859408 allow_undefined_flag=unsupported
87869409 always_export_symbols=no
87879410 enable_shared_with_static_runtimes=yes
8788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9411 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'
9412 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
87899413
87909414 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
87919415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
88039427 fi
88049428 ;;
88059429
9430 haiku*)
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 link_all_deplibs=yes
9433 ;;
9434
88069435 interix[3-9]*)
88079436 hardcode_direct=no
88089437 hardcode_shlibpath_var=no
88289457 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
88299458 && test "$tmp_diet" = no
88309459 then
8831 tmp_addflag=
9460 tmp_addflag=' $pic_flag'
88329461 tmp_sharedflag='-shared'
88339462 case $cc_basename,$host_cpu in
88349463 pgcc*) # Portland Group C compiler
8835 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'
9464 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'
88369465 tmp_addflag=' $pic_flag'
88379466 ;;
8838 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8839 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'
9467 pgf77* | pgf90* | pgf95* | pgfortran*)
9468 # Portland Group f77 and f90 compilers
9469 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'
88409470 tmp_addflag=' $pic_flag -Mnomain' ;;
88419471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
88429472 tmp_addflag=' -i_dynamic' ;;
88479477 lf95*) # Lahey Fortran 8.1
88489478 whole_archive_flag_spec=
88499479 tmp_sharedflag='--shared' ;;
8850 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
88519481 tmp_sharedflag='-qmkshrobj'
88529482 tmp_addflag= ;;
9483 nvcc*) # Cuda Compiler Driver 2.2
9484 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'
9485 compiler_needs_object=yes
9486 ;;
88539487 esac
88549488 case `$CC -V 2>&1 | sed 5q` in
88559489 *Sun\ C*) # Sun C 5.9
8856 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'
9490 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'
88579491 compiler_needs_object=yes
88589492 tmp_sharedflag='-G' ;;
88599493 *Sun\ F*) # Sun Fortran 8.3
88699503 fi
88709504
88719505 case $cc_basename in
8872 xlf*)
9506 xlf* | bgf* | bgxlf* | mpixlf*)
88739507 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
88749508 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8875 hardcode_libdir_flag_spec=
8876 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8877 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
88789511 if test "x$supports_anon_versioning" = xyes; then
88799512 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
88809513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
88819514 echo "local: *; };" >> $output_objdir/$libname.ver~
8882 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9515 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
88839516 fi
88849517 ;;
88859518 esac
88939526 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
88949527 wlarc=
88959528 else
8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
88989531 fi
88999532 ;;
89009533
89129545
89139546 _LT_EOF
89149547 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
89179550 else
89189551 ld_shlibs=no
89199552 fi
89599592
89609593 *)
89619594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
89649597 else
89659598 ld_shlibs=no
89669599 fi
90009633 else
90019634 # If we're using GNU nm, then we don't want the "-C" option.
90029635 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9636 # Also, AIX nm treats weak defined symbols like other global
9637 # defined symbols, whereas GNU nm marks them as "W".
90039638 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9004 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'
9639 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'
90059640 else
90069641 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'
90079642 fi
90899724 allow_undefined_flag='-berok'
90909725 # Determine the default libpath from the value encoded in an
90919726 # empty executable.
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 if test "${lt_cv_aix_libpath+set}" = set; then
9728 aix_libpath=$lt_cv_aix_libpath
9729 else
9730 if ${lt_cv_aix_libpath_+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90939734 /* end confdefs.h. */
90949735
90959736 int
91029743 _ACEOF
91039744 if ac_fn_c_try_link "$LINENO"; then :
91049745
9105 lt_aix_libpath_sed='
9106 /Import File Strings/,/^$/ {
9107 /^0/ {
9108 s/^0 *\(.*\)$/\1/
9109 p
9110 }
9111 }'
9112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9113 # Check for a 64-bit object if we didn't find anything.
9114 if test -z "$aix_libpath"; then
9115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9116 fi
9746 lt_aix_libpath_sed='
9747 /Import File Strings/,/^$/ {
9748 /^0/ {
9749 s/^0 *\([^ ]*\) *$/\1/
9750 p
9751 }
9752 }'
9753 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9754 # Check for a 64-bit object if we didn't find anything.
9755 if test -z "$lt_cv_aix_libpath_"; then
9756 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9757 fi
91179758 fi
91189759 rm -f core conftest.err conftest.$ac_objext \
91199760 conftest$ac_exeext conftest.$ac_ext
9120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9761 if test -z "$lt_cv_aix_libpath_"; then
9762 lt_cv_aix_libpath_="/usr/lib:/lib"
9763 fi
9764
9765 fi
9766
9767 aix_libpath=$lt_cv_aix_libpath_
9768 fi
91219769
91229770 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9123 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"
9771 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"
91249772 else
91259773 if test "$host_cpu" = ia64; then
91269774 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
91299777 else
91309778 # Determine the default libpath from the value encoded in an
91319779 # empty executable.
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 if test "${lt_cv_aix_libpath+set}" = set; then
9781 aix_libpath=$lt_cv_aix_libpath
9782 else
9783 if ${lt_cv_aix_libpath_+:} false; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91339787 /* end confdefs.h. */
91349788
91359789 int
91429796 _ACEOF
91439797 if ac_fn_c_try_link "$LINENO"; then :
91449798
9145 lt_aix_libpath_sed='
9146 /Import File Strings/,/^$/ {
9147 /^0/ {
9148 s/^0 *\(.*\)$/\1/
9149 p
9150 }
9151 }'
9152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9153 # Check for a 64-bit object if we didn't find anything.
9154 if test -z "$aix_libpath"; then
9155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9156 fi
9799 lt_aix_libpath_sed='
9800 /Import File Strings/,/^$/ {
9801 /^0/ {
9802 s/^0 *\([^ ]*\) *$/\1/
9803 p
9804 }
9805 }'
9806 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807 # Check for a 64-bit object if we didn't find anything.
9808 if test -z "$lt_cv_aix_libpath_"; then
9809 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9810 fi
91579811 fi
91589812 rm -f core conftest.err conftest.$ac_objext \
91599813 conftest$ac_exeext conftest.$ac_ext
9160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9814 if test -z "$lt_cv_aix_libpath_"; then
9815 lt_cv_aix_libpath_="/usr/lib:/lib"
9816 fi
9817
9818 fi
9819
9820 aix_libpath=$lt_cv_aix_libpath_
9821 fi
91619822
91629823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
91639824 # Warning - without using the other run time loading flags,
91649825 # -berok will link without error, but may produce a broken library.
91659826 no_undefined_flag=' ${wl}-bernotok'
91669827 allow_undefined_flag=' ${wl}-berok'
9167 # Exported symbols can be pulled into shared objects from archives
9168 whole_archive_flag_spec='$convenience'
9828 if test "$with_gnu_ld" = yes; then
9829 # We only use this code for GNU lds that support --whole-archive.
9830 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9831 else
9832 # Exported symbols can be pulled into shared objects from archives
9833 whole_archive_flag_spec='$convenience'
9834 fi
91699835 archive_cmds_need_lc=yes
91709836 # This is similar to how AIX traditionally builds its shared libraries.
91719837 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'
91979863 # Microsoft Visual C++.
91989864 # hardcode_libdir_flag_spec is actually meaningless, as there is
91999865 # no search path for DLLs.
9200 hardcode_libdir_flag_spec=' '
9201 allow_undefined_flag=unsupported
9202 # Tell ltmain to make .lib files, not .a files.
9203 libext=lib
9204 # Tell ltmain to make .dll files, not .so files.
9205 shrext_cmds=".dll"
9206 # FIXME: Setting linknames here is a bad hack.
9207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9208 # The linker will automatically build a .lib file if we build a DLL.
9209 old_archive_from_new_cmds='true'
9210 # FIXME: Should let the user specify the lib program.
9211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9212 fix_srcfile_path='`cygpath -w "$srcfile"`'
9213 enable_shared_with_static_runtimes=yes
9866 case $cc_basename in
9867 cl*)
9868 # Native MSVC
9869 hardcode_libdir_flag_spec=' '
9870 allow_undefined_flag=unsupported
9871 always_export_symbols=yes
9872 file_list_spec='@'
9873 # Tell ltmain to make .lib files, not .a files.
9874 libext=lib
9875 # Tell ltmain to make .dll files, not .so files.
9876 shrext_cmds=".dll"
9877 # FIXME: Setting linknames here is a bad hack.
9878 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9879 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9880 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9881 else
9882 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9883 fi~
9884 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9885 linknames='
9886 # The linker will not automatically build a static lib if we build a DLL.
9887 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9888 enable_shared_with_static_runtimes=yes
9889 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9891 # Don't use ranlib
9892 old_postinstall_cmds='chmod 644 $oldlib'
9893 postlink_cmds='lt_outputfile="@OUTPUT@"~
9894 lt_tool_outputfile="@TOOL_OUTPUT@"~
9895 case $lt_outputfile in
9896 *.exe|*.EXE) ;;
9897 *)
9898 lt_outputfile="$lt_outputfile.exe"
9899 lt_tool_outputfile="$lt_tool_outputfile.exe"
9900 ;;
9901 esac~
9902 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9903 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9904 $RM "$lt_outputfile.manifest";
9905 fi'
9906 ;;
9907 *)
9908 # Assume MSVC wrapper
9909 hardcode_libdir_flag_spec=' '
9910 allow_undefined_flag=unsupported
9911 # Tell ltmain to make .lib files, not .a files.
9912 libext=lib
9913 # Tell ltmain to make .dll files, not .so files.
9914 shrext_cmds=".dll"
9915 # FIXME: Setting linknames here is a bad hack.
9916 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9917 # The linker will automatically build a .lib file if we build a DLL.
9918 old_archive_from_new_cmds='true'
9919 # FIXME: Should let the user specify the lib program.
9920 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9921 enable_shared_with_static_runtimes=yes
9922 ;;
9923 esac
92149924 ;;
92159925
92169926 darwin* | rhapsody*)
92209930 hardcode_direct=no
92219931 hardcode_automatic=yes
92229932 hardcode_shlibpath_var=unsupported
9223 whole_archive_flag_spec=''
9933 if test "$lt_cv_ld_force_load" = "yes"; then
9934 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\"`'
9935
9936 else
9937 whole_archive_flag_spec=''
9938 fi
92249939 link_all_deplibs=yes
92259940 allow_undefined_flag="$_lt_dar_allow_undefined"
92269941 case $cc_basename in
92289943 *) _lt_dar_can_shared=$GCC ;;
92299944 esac
92309945 if test "$_lt_dar_can_shared" = "yes"; then
9231 output_verbose_link_cmd=echo
9946 output_verbose_link_cmd=func_echo_all
92329947 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
92339948 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
92349949 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}"
92449959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
92459960 hardcode_libdir_flag_spec='-L$libdir'
92469961 hardcode_shlibpath_var=no
9247 ;;
9248
9249 freebsd1*)
9250 ld_shlibs=no
92519962 ;;
92529963
92539964 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
92629973 ;;
92639974
92649975 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9265 freebsd2*)
9976 freebsd2.*)
92669977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
92679978 hardcode_direct=yes
92689979 hardcode_minus_L=yes
92719982
92729983 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
92739984 freebsd* | dragonfly*)
9274 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
92759986 hardcode_libdir_flag_spec='-R$libdir'
92769987 hardcode_direct=yes
92779988 hardcode_shlibpath_var=no
92799990
92809991 hpux9*)
92819992 if test "$GCC" = yes; then
9282 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'
9993 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'
92839994 else
92849995 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'
92859996 fi
929410005 ;;
929510006
929610007 hpux10*)
9297 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9298 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10009 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
929910010 else
930010011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
930110012 fi
930210013 if test "$with_gnu_ld" = no; then
930310014 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304 hardcode_libdir_flag_spec_ld='+b $libdir'
930510015 hardcode_libdir_separator=:
930610016 hardcode_direct=yes
930710017 hardcode_direct_absolute=yes
931310023 ;;
931410024
931510025 hpux11*)
9316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
931710027 case $host_cpu in
931810028 hppa*64*)
931910029 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
932010030 ;;
932110031 ia64*)
9322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
932310033 ;;
932410034 *)
9325 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
932610036 ;;
932710037 esac
932810038 else
933410044 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
933510045 ;;
933610046 *)
9337 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10047
10048 # Older versions of the 11.00 compiler do not understand -b yet
10049 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10051 $as_echo_n "checking if $CC understands -b... " >&6; }
10052 if ${lt_cv_prog_compiler__b+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 lt_cv_prog_compiler__b=no
10056 save_LDFLAGS="$LDFLAGS"
10057 LDFLAGS="$LDFLAGS -b"
10058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060 # The linker can only warn and ignore the option if not recognized
10061 # So say no if there are warnings
10062 if test -s conftest.err; then
10063 # Append any errors to the config.log.
10064 cat conftest.err 1>&5
10065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler__b=yes
10069 fi
10070 else
10071 lt_cv_prog_compiler__b=yes
10072 fi
10073 fi
10074 $RM -r conftest*
10075 LDFLAGS="$save_LDFLAGS"
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10080
10081 if test x"$lt_cv_prog_compiler__b" = xyes; then
10082 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083 else
10084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10085 fi
10086
933810087 ;;
933910088 esac
934010089 fi
936210111
936310112 irix5* | irix6* | nonstopux*)
936410113 if test "$GCC" = yes; then
9365 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'
10114 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'
936610115 # Try to use the -exported_symbol ld option, if it does not
936710116 # work, assume that -exports_file does not work either and
936810117 # implicitly export all symbols.
9369 save_LDFLAGS="$LDFLAGS"
9370 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 # This should be the same for all languages, so no per-tag cache variable.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10121 if ${lt_cv_irix_exported_symbol+:} false; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 save_LDFLAGS="$LDFLAGS"
10125 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
937210127 /* end confdefs.h. */
9373 int foo(void) {}
10128 int foo (void) { return 0; }
937410129 _ACEOF
937510130 if ac_fn_c_try_link "$LINENO"; then :
9376 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'
9377
10131 lt_cv_irix_exported_symbol=yes
10132 else
10133 lt_cv_irix_exported_symbol=no
937810134 fi
937910135 rm -f core conftest.err conftest.$ac_objext \
938010136 conftest$ac_exeext conftest.$ac_ext
9381 LDFLAGS="$save_LDFLAGS"
10137 LDFLAGS="$save_LDFLAGS"
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10140 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10141 if test "$lt_cv_irix_exported_symbol" = yes; then
10142 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'
10143 fi
938210144 else
9383 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'
9384 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'
10145 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'
10146 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'
938510147 fi
938610148 archive_cmds_need_lc='no'
938710149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
944310205 hardcode_libdir_flag_spec='-L$libdir'
944410206 hardcode_minus_L=yes
944510207 allow_undefined_flag=unsupported
9446 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'
10208 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'
944710209 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
944810210 ;;
944910211
945010212 osf3*)
945110213 if test "$GCC" = yes; then
945210214 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9453 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'
10215 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'
945410216 else
945510217 allow_undefined_flag=' -expect_unresolved \*'
9456 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'
10218 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'
945710219 fi
945810220 archive_cmds_need_lc='no'
945910221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
946310225 osf4* | osf5*) # as osf3* with the addition of -msym flag
946410226 if test "$GCC" = yes; then
946510227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9466 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'
10228 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'
946710229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
946810230 else
946910231 allow_undefined_flag=' -expect_unresolved \*'
9470 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'
10232 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'
947110233 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~
9472 $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'
10234 $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'
947310235
947410236 # Both c and cxx compiler support -rpath directly
947510237 hardcode_libdir_flag_spec='-rpath $libdir'
948210244 no_undefined_flag=' -z defs'
948310245 if test "$GCC" = yes; then
948410246 wlarc='${wl}'
9485 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
948610248 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9487 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10249 $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'
948810250 else
948910251 case `$CC -V 2>&1` in
949010252 *"Compilers 5.0"*)
967210434 # to ld, don't add -lc before -lgcc.
967310435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
967410436 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9675 $RM conftest*
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677
9678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10437 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 $RM conftest*
10441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10442
10443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
967910444 (eval $ac_compile) 2>&5
968010445 ac_status=$?
968110446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
968210447 test $ac_status = 0; } 2>conftest.err; then
9683 soname=conftest
9684 lib=conftest
9685 libobjs=conftest.$ac_objext
9686 deplibs=
9687 wl=$lt_prog_compiler_wl
9688 pic_flag=$lt_prog_compiler_pic
9689 compiler_flags=-v
9690 linker_flags=-v
9691 verstring=
9692 output_objdir=.
9693 libname=conftest
9694 lt_save_allow_undefined_flag=$allow_undefined_flag
9695 allow_undefined_flag=
9696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10448 soname=conftest
10449 lib=conftest
10450 libobjs=conftest.$ac_objext
10451 deplibs=
10452 wl=$lt_prog_compiler_wl
10453 pic_flag=$lt_prog_compiler_pic
10454 compiler_flags=-v
10455 linker_flags=-v
10456 verstring=
10457 output_objdir=.
10458 libname=conftest
10459 lt_save_allow_undefined_flag=$allow_undefined_flag
10460 allow_undefined_flag=
10461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
969710462 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
969810463 ac_status=$?
969910464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
970010465 test $ac_status = 0; }
9701 then
9702 archive_cmds_need_lc=no
9703 else
9704 archive_cmds_need_lc=yes
9705 fi
9706 allow_undefined_flag=$lt_save_allow_undefined_flag
9707 else
9708 cat conftest.err 1>&5
9709 fi
9710 $RM conftest*
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9712 $as_echo "$archive_cmds_need_lc" >&6; }
10466 then
10467 lt_cv_archive_cmds_need_lc=no
10468 else
10469 lt_cv_archive_cmds_need_lc=yes
10470 fi
10471 allow_undefined_flag=$lt_save_allow_undefined_flag
10472 else
10473 cat conftest.err 1>&5
10474 fi
10475 $RM conftest*
10476
10477 fi
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10479 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10480 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
971310481 ;;
971410482 esac
971510483 fi
971610484 ;;
971710485 esac
9718
9719
9720
9721
9722
972310486
972410487
972510488
988010643 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
988110644 *) lt_awk_arg="/^libraries:/" ;;
988210645 esac
9883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9884 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10646 case $host_os in
10647 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10648 *) lt_sed_strip_eq="s,=/,/,g" ;;
10649 esac
10650 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10651 case $lt_search_path_spec in
10652 *\;*)
988510653 # if the path contains ";" then we assume it to be the separator
988610654 # otherwise default to the standard path separator (i.e. ":") - it is
988710655 # assumed that no part of a normal pathname contains ";" but that should
988810656 # okay in the real world where ";" in dirpaths is itself problematic.
9889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9890 else
9891 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9892 fi
10657 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10658 ;;
10659 *)
10660 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10661 ;;
10662 esac
989310663 # Ok, now we have the path, separated by spaces, we can step through it
989410664 # and add multilib dir if necessary.
989510665 lt_tmp_lt_search_path_spec=
990210672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
990310673 fi
990410674 done
9905 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10675 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
990610676 BEGIN {RS=" "; FS="/|\n";} {
990710677 lt_foo="";
990810678 lt_count=0;
992210692 if (lt_foo != "") { lt_freq[lt_foo]++; }
992310693 if (lt_freq[lt_foo] == 1) { print lt_foo; }
992410694 }'`
9925 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10695 # AWK program above erroneously prepends '/' to C:/dos/paths
10696 # for these hosts.
10697 case $host_os in
10698 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10699 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10700 esac
10701 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
992610702 else
992710703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
992810704 fi
994810724
994910725 case $host_os in
995010726 aix3*)
9951 version_type=linux
10727 version_type=linux # correct to gnu/linux during the next big refactor
995210728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
995310729 shlibpath_var=LIBPATH
995410730
995710733 ;;
995810734
995910735 aix[4-9]*)
9960 version_type=linux
10736 version_type=linux # correct to gnu/linux during the next big refactor
996110737 need_lib_prefix=no
996210738 need_version=no
996310739 hardcode_into_libs=yes
1001010786 m68k)
1001110787 library_names_spec='$libname.ixlibrary $libname.a'
1001210788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10013 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'
10789 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'
1001410790 ;;
1001510791 esac
1001610792 ;;
1002210798 ;;
1002310799
1002410800 bsdi[45]*)
10025 version_type=linux
10801 version_type=linux # correct to gnu/linux during the next big refactor
1002610802 need_version=no
1002710803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1002810804 soname_spec='${libname}${release}${shared_ext}$major'
1004110817 need_version=no
1004210818 need_lib_prefix=no
1004310819
10044 case $GCC,$host_os in
10045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10820 case $GCC,$cc_basename in
10821 yes,*)
10822 # gcc
1004610823 library_names_spec='$libname.dll.a'
1004710824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1004810825 postinstall_cmds='base_file=`basename \${file}`~
1006310840 cygwin*)
1006410841 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1006510842 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10066 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10843
10844 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1006710845 ;;
1006810846 mingw* | cegcc*)
1006910847 # MinGW DLLs use traditional 'lib' prefix
1007010848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10071 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10072 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10073 # It is most probably a Windows format PATH printed by
10074 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10075 # path with ; separators, and with drive letters. We can handle the
10076 # drive letters (cygwin fileutils understands them), so leave them,
10077 # especially as we might pass files found there to a mingw objdump,
10078 # which wouldn't understand a cygwinified path. Ahh.
10079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10080 else
10081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10082 fi
1008310849 ;;
1008410850 pw32*)
1008510851 # pw32 DLLs use 'pw' prefix rather than 'lib'
1008610852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1008710853 ;;
1008810854 esac
10855 dynamic_linker='Win32 ld.exe'
1008910856 ;;
1009010857
10858 *,cl*)
10859 # Native MSVC
10860 libname_spec='$name'
10861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10862 library_names_spec='${libname}.dll.lib'
10863
10864 case $build_os in
10865 mingw*)
10866 sys_lib_search_path_spec=
10867 lt_save_ifs=$IFS
10868 IFS=';'
10869 for lt_path in $LIB
10870 do
10871 IFS=$lt_save_ifs
10872 # Let DOS variable expansion print the short 8.3 style file name.
10873 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10874 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10875 done
10876 IFS=$lt_save_ifs
10877 # Convert to MSYS style.
10878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10879 ;;
10880 cygwin*)
10881 # Convert to unix form, then to dos form, then back to unix form
10882 # but this time dos style (no spaces!) so that the unix form looks
10883 # like /cygdrive/c/PROGRA~1:/cygdr...
10884 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10885 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10886 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10887 ;;
10888 *)
10889 sys_lib_search_path_spec="$LIB"
10890 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10891 # It is most probably a Windows format PATH.
10892 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10893 else
10894 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10895 fi
10896 # FIXME: find the short name or the path components, as spaces are
10897 # common. (e.g. "Program Files" -> "PROGRA~1")
10898 ;;
10899 esac
10900
10901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10902 postinstall_cmds='base_file=`basename \${file}`~
10903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10904 dldir=$destdir/`dirname \$dlpath`~
10905 test -d \$dldir || mkdir -p \$dldir~
10906 $install_prog $dir/$dlname \$dldir/$dlname'
10907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10908 dlpath=$dir/\$dldll~
10909 $RM \$dlpath'
10910 shlibpath_overrides_runpath=yes
10911 dynamic_linker='Win32 link.exe'
10912 ;;
10913
1009110914 *)
10915 # Assume MSVC wrapper
1009210916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10917 dynamic_linker='Win32 ld.exe'
1009310918 ;;
1009410919 esac
10095 dynamic_linker='Win32 ld.exe'
1009610920 # FIXME: first we should search . and the directory the executable is in
1009710921 shlibpath_var=PATH
1009810922 ;;
1011310937 ;;
1011410938
1011510939 dgux*)
10116 version_type=linux
10940 version_type=linux # correct to gnu/linux during the next big refactor
1011710941 need_lib_prefix=no
1011810942 need_version=no
1011910943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1012010944 soname_spec='${libname}${release}${shared_ext}$major'
1012110945 shlibpath_var=LD_LIBRARY_PATH
10122 ;;
10123
10124 freebsd1*)
10125 dynamic_linker=no
1012610946 ;;
1012710947
1012810948 freebsd* | dragonfly*)
1013210952 objformat=`/usr/bin/objformat`
1013310953 else
1013410954 case $host_os in
10135 freebsd[123]*) objformat=aout ;;
10955 freebsd[23].*) objformat=aout ;;
1013610956 *) objformat=elf ;;
1013710957 esac
1013810958 fi
1015010970 esac
1015110971 shlibpath_var=LD_LIBRARY_PATH
1015210972 case $host_os in
10153 freebsd2*)
10973 freebsd2.*)
1015410974 shlibpath_overrides_runpath=yes
1015510975 ;;
1015610976 freebsd3.[01]* | freebsdelf3.[01]*)
1017010990 ;;
1017110991
1017210992 gnu*)
10173 version_type=linux
10993 version_type=linux # correct to gnu/linux during the next big refactor
1017410994 need_lib_prefix=no
1017510995 need_version=no
1017610996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1017710997 soname_spec='${libname}${release}${shared_ext}$major'
1017810998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=no
11000 hardcode_into_libs=yes
11001 ;;
11002
11003 haiku*)
11004 version_type=linux # correct to gnu/linux during the next big refactor
11005 need_lib_prefix=no
11006 need_version=no
11007 dynamic_linker="$host_os runtime_loader"
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1017911013 hardcode_into_libs=yes
1018011014 ;;
1018111015
1022111055 soname_spec='${libname}${release}${shared_ext}$major'
1022211056 ;;
1022311057 esac
10224 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11058 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1022511059 postinstall_cmds='chmod 555 $lib'
11060 # or fails outright, so override atomically:
11061 install_override_mode=555
1022611062 ;;
1022711063
1022811064 interix[3-9]*)
10229 version_type=linux
11065 version_type=linux # correct to gnu/linux during the next big refactor
1023011066 need_lib_prefix=no
1023111067 need_version=no
1023211068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1024211078 nonstopux*) version_type=nonstopux ;;
1024311079 *)
1024411080 if test "$lt_cv_prog_gnu_ld" = yes; then
10245 version_type=linux
11081 version_type=linux # correct to gnu/linux during the next big refactor
1024611082 else
1024711083 version_type=irix
1024811084 fi ;;
1027911115 dynamic_linker=no
1028011116 ;;
1028111117
10282 # This must be Linux ELF.
11118 # This must be glibc/ELF.
1028311119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10284 version_type=linux
11120 version_type=linux # correct to gnu/linux during the next big refactor
1028511121 need_lib_prefix=no
1028611122 need_version=no
1028711123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1028911125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1029011126 shlibpath_var=LD_LIBRARY_PATH
1029111127 shlibpath_overrides_runpath=no
11128
1029211129 # Some binutils ld are patched to set DT_RUNPATH
10293 save_LDFLAGS=$LDFLAGS
10294 save_libdir=$libdir
10295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 lt_cv_shlibpath_overrides_runpath=no
11134 save_LDFLAGS=$LDFLAGS
11135 save_libdir=$libdir
11136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1029811139 /* end confdefs.h. */
1029911140
1030011141 int
1030711148 _ACEOF
1030811149 if ac_fn_c_try_link "$LINENO"; then :
1030911150 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10310 shlibpath_overrides_runpath=yes
11151 lt_cv_shlibpath_overrides_runpath=yes
1031111152 fi
1031211153 fi
1031311154 rm -f core conftest.err conftest.$ac_objext \
1031411155 conftest$ac_exeext conftest.$ac_ext
10315 LDFLAGS=$save_LDFLAGS
10316 libdir=$save_libdir
11156 LDFLAGS=$save_LDFLAGS
11157 libdir=$save_libdir
11158
11159 fi
11160
11161 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1031711162
1031811163 # This implies no fast_install, which is unacceptable.
1031911164 # Some rework will be needed to allow for fast_install
1032211167
1032311168 # Append ld.so.conf contents to the search path
1032411169 if test -f /etc/ld.so.conf; then
10325 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' ' '`
11170 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' ' '`
1032611171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1032711172 fi
1032811173
1036611211 ;;
1036711212
1036811213 newsos6)
10369 version_type=linux
11214 version_type=linux # correct to gnu/linux during the next big refactor
1037011215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1037111216 shlibpath_var=LD_LIBRARY_PATH
1037211217 shlibpath_overrides_runpath=yes
1043511280 ;;
1043611281
1043711282 solaris*)
10438 version_type=linux
11283 version_type=linux # correct to gnu/linux during the next big refactor
1043911284 need_lib_prefix=no
1044011285 need_version=no
1044111286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1046011305 ;;
1046111306
1046211307 sysv4 | sysv4.3*)
10463 version_type=linux
11308 version_type=linux # correct to gnu/linux during the next big refactor
1046411309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1046511310 soname_spec='${libname}${release}${shared_ext}$major'
1046611311 shlibpath_var=LD_LIBRARY_PATH
1048411329
1048511330 sysv4*MP*)
1048611331 if test -d /usr/nec ;then
10487 version_type=linux
11332 version_type=linux # correct to gnu/linux during the next big refactor
1048811333 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1048911334 soname_spec='$libname${shared_ext}.$major'
1049011335 shlibpath_var=LD_LIBRARY_PATH
1051511360
1051611361 tpf*)
1051711362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10518 version_type=linux
11363 version_type=linux # correct to gnu/linux during the next big refactor
1051911364 need_lib_prefix=no
1052011365 need_version=no
1052111366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1052511370 ;;
1052611371
1052711372 uts4*)
10528 version_type=linux
11373 version_type=linux # correct to gnu/linux during the next big refactor
1052911374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1053011375 soname_spec='${libname}${release}${shared_ext}$major'
1053111376 shlibpath_var=LD_LIBRARY_PATH
1055011395 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1055111396 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1055211397 fi
11398
11399
11400
11401
11402
1055311403
1055411404
1055511405
1070911559 # if libdl is installed we need to link against it
1071011560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1071111561 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11562 if ${ac_cv_lib_dl_dlopen+:} false; then :
1071311563 $as_echo_n "(cached) " >&6
1071411564 else
1071511565 ac_check_lib_save_LIBS=$LIBS
1074311593 fi
1074411594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1074511595 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11596 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1074711597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1074811598 else
1074911599
1075711607
1075811608 *)
1075911609 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10760 if test "x$ac_cv_func_shl_load" = x""yes; then :
11610 if test "x$ac_cv_func_shl_load" = xyes; then :
1076111611 lt_cv_dlopen="shl_load"
1076211612 else
1076311613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1076411614 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10765 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11615 if ${ac_cv_lib_dld_shl_load+:} false; then :
1076611616 $as_echo_n "(cached) " >&6
1076711617 else
1076811618 ac_check_lib_save_LIBS=$LIBS
1079611646 fi
1079711647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1079811648 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10799 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11649 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1080011650 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1080111651 else
1080211652 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10803 if test "x$ac_cv_func_dlopen" = x""yes; then :
11653 if test "x$ac_cv_func_dlopen" = xyes; then :
1080411654 lt_cv_dlopen="dlopen"
1080511655 else
1080611656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1080711657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10808 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11658 if ${ac_cv_lib_dl_dlopen+:} false; then :
1080911659 $as_echo_n "(cached) " >&6
1081011660 else
1081111661 ac_check_lib_save_LIBS=$LIBS
1083911689 fi
1084011690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1084111691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10842 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11692 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1084311693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1084411694 else
1084511695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1084611696 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11697 if ${ac_cv_lib_svld_dlopen+:} false; then :
1084811698 $as_echo_n "(cached) " >&6
1084911699 else
1085011700 ac_check_lib_save_LIBS=$LIBS
1087811728 fi
1087911729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1088011730 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10881 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11731 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1088211732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1088311733 else
1088411734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1088511735 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10886 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11736 if ${ac_cv_lib_dld_dld_link+:} false; then :
1088711737 $as_echo_n "(cached) " >&6
1088811738 else
1088911739 ac_check_lib_save_LIBS=$LIBS
1091711767 fi
1091811768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1091911769 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10920 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11770 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1092111771 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1092211772 fi
1092311773
1095811808
1095911809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1096011810 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10961 if test "${lt_cv_dlopen_self+set}" = set; then :
11811 if ${lt_cv_dlopen_self+:} false; then :
1096211812 $as_echo_n "(cached) " >&6
1096311813 else
1096411814 if test "$cross_compiling" = yes; then :
1096711817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1096811818 lt_status=$lt_dlunknown
1096911819 cat > conftest.$ac_ext <<_LT_EOF
10970 #line 10971 "configure"
11820 #line $LINENO "configure"
1097111821 #include "confdefs.h"
1097211822
1097311823 #if HAVE_DLFCN_H
1100811858 # endif
1100911859 #endif
1101011860
11011 void fnord() { int i=42;}
11861 /* When -fvisbility=hidden is used, assume the code has been annotated
11862 correspondingly for the symbols needed. */
11863 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11864 int fnord () __attribute__((visibility("default")));
11865 #endif
11866
11867 int fnord () { return 42; }
1101211868 int main ()
1101311869 {
1101411870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1101711873 if (self)
1101811874 {
1101911875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11876 else
11877 {
11878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11879 else puts (dlerror ());
11880 }
1102111881 /* dlclose (self); */
1102211882 }
1102311883 else
1105411914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1105511915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1105611916 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11057 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11917 if ${lt_cv_dlopen_self_static+:} false; then :
1105811918 $as_echo_n "(cached) " >&6
1105911919 else
1106011920 if test "$cross_compiling" = yes; then :
1106311923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1106411924 lt_status=$lt_dlunknown
1106511925 cat > conftest.$ac_ext <<_LT_EOF
11066 #line 11067 "configure"
11926 #line $LINENO "configure"
1106711927 #include "confdefs.h"
1106811928
1106911929 #if HAVE_DLFCN_H
1110411964 # endif
1110511965 #endif
1110611966
11107 void fnord() { int i=42;}
11967 /* When -fvisbility=hidden is used, assume the code has been annotated
11968 correspondingly for the symbols needed. */
11969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11970 int fnord () __attribute__((visibility("default")));
11971 #endif
11972
11973 int fnord () { return 42; }
1110811974 int main ()
1110911975 {
1111011976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1111311979 if (self)
1111411980 {
1111511981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11982 else
11983 {
11984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11985 else puts (dlerror ());
11986 }
1111711987 /* dlclose (self); */
1111811988 }
1111911989 else
1126912139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1127012140
1127112141 CC="$lt_save_CC"
12142
12143
1127212144
1127312145
1127412146
1133212204
1133312205
1133412206
12207
1133512208 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1133612209 if test -n "$ac_tool_prefix"; then
1133712210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1133812211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1133912212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1134012213 $as_echo_n "checking for $ac_word... " >&6; }
11341 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12214 if ${ac_cv_path_PKG_CONFIG+:} false; then :
1134212215 $as_echo_n "(cached) " >&6
1134312216 else
1134412217 case $PKG_CONFIG in
1138112254 set dummy pkg-config; ac_word=$2
1138212255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1138312256 $as_echo_n "checking for $ac_word... " >&6; }
11384 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12257 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
1138512258 $as_echo_n "(cached) " >&6
1138612259 else
1138712260 case $ac_pt_PKG_CONFIG in
1147512348 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
1147612349 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
1147712350 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
12351 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
1147812352
1147912353 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
1148012354 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
1163912513 GLIB_GENMARSHAL=""
1164012514 GOBJECT_QUERY=""
1164112515 GLIB_MKENUMS=""
12516 GLIB_COMPILE_RESOURCES=""
1164212517 :
1164312518 fi
12519
1164412520
1164512521
1164612522
1166312539 have_x=disabled
1166412540 else
1166512541 case $x_includes,$x_libraries in #(
11666 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11667 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
12542 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12543 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1166812544 $as_echo_n "(cached) " >&6
1166912545 else
1167012546 # One or both of the vars are not set, and there is no cached value.
1194112817 else
1194212818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
1194312819 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11944 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
12820 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1194512821 $as_echo_n "(cached) " >&6
1194612822 else
1194712823 ac_check_lib_save_LIBS=$LIBS
1197512851 fi
1197612852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
1197712853 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11978 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
12854 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1197912855 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1198012856 fi
1198112857
1198212858 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1198312859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
1198412860 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
11985 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
12861 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1198612862 $as_echo_n "(cached) " >&6
1198712863 else
1198812864 ac_check_lib_save_LIBS=$LIBS
1201612892 fi
1201712893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
1201812894 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12019 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12895 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1202012896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1202112897 fi
1202212898
1203512911 # The functions gethostbyname, getservbyname, and inet_addr are
1203612912 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1203712913 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12038 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12914 if test "x$ac_cv_func_gethostbyname" = xyes; then :
1203912915
1204012916 fi
1204112917
1204212918 if test $ac_cv_func_gethostbyname = no; then
1204312919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
1204412920 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12045 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12921 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1204612922 $as_echo_n "(cached) " >&6
1204712923 else
1204812924 ac_check_lib_save_LIBS=$LIBS
1207612952 fi
1207712953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
1207812954 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12079 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
12955 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1208012956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1208112957 fi
1208212958
1208312959 if test $ac_cv_lib_nsl_gethostbyname = no; then
1208412960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
1208512961 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12086 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12962 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1208712963 $as_echo_n "(cached) " >&6
1208812964 else
1208912965 ac_check_lib_save_LIBS=$LIBS
1211712993 fi
1211812994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
1211912995 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12120 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
12996 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1212112997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1212212998 fi
1212312999
1213213008 # must be given before -lnsl if both are needed. We assume that
1213313009 # if connect needs -lnsl, so does gethostbyname.
1213413010 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12135 if test "x$ac_cv_func_connect" = x""yes; then :
13011 if test "x$ac_cv_func_connect" = xyes; then :
1213613012
1213713013 fi
1213813014
1213913015 if test $ac_cv_func_connect = no; then
1214013016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
1214113017 $as_echo_n "checking for connect in -lsocket... " >&6; }
12142 if test "${ac_cv_lib_socket_connect+set}" = set; then :
13018 if ${ac_cv_lib_socket_connect+:} false; then :
1214313019 $as_echo_n "(cached) " >&6
1214413020 else
1214513021 ac_check_lib_save_LIBS=$LIBS
1217313049 fi
1217413050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
1217513051 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12176 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
13052 if test "x$ac_cv_lib_socket_connect" = xyes; then :
1217713053 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1217813054 fi
1217913055
1218113057
1218213058 # Guillermo Gomez says -lposix is necessary on A/UX.
1218313059 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12184 if test "x$ac_cv_func_remove" = x""yes; then :
13060 if test "x$ac_cv_func_remove" = xyes; then :
1218513061
1218613062 fi
1218713063
1218813064 if test $ac_cv_func_remove = no; then
1218913065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
1219013066 $as_echo_n "checking for remove in -lposix... " >&6; }
12191 if test "${ac_cv_lib_posix_remove+set}" = set; then :
13067 if ${ac_cv_lib_posix_remove+:} false; then :
1219213068 $as_echo_n "(cached) " >&6
1219313069 else
1219413070 ac_check_lib_save_LIBS=$LIBS
1222213098 fi
1222313099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
1222413100 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12225 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
13101 if test "x$ac_cv_lib_posix_remove" = xyes; then :
1222613102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1222713103 fi
1222813104
1223013106
1223113107 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1223213108 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12233 if test "x$ac_cv_func_shmat" = x""yes; then :
13109 if test "x$ac_cv_func_shmat" = xyes; then :
1223413110
1223513111 fi
1223613112
1223713113 if test $ac_cv_func_shmat = no; then
1223813114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
1223913115 $as_echo_n "checking for shmat in -lipc... " >&6; }
12240 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
13116 if ${ac_cv_lib_ipc_shmat+:} false; then :
1224113117 $as_echo_n "(cached) " >&6
1224213118 else
1224313119 ac_check_lib_save_LIBS=$LIBS
1227113147 fi
1227213148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
1227313149 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12274 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
13150 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1227513151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1227613152 fi
1227713153
1228913165 # John Interrante, Karl Berry
1229013166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
1229113167 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12292 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
13168 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1229313169 $as_echo_n "(cached) " >&6
1229413170 else
1229513171 ac_check_lib_save_LIBS=$LIBS
1232313199 fi
1232413200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
1232513201 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12326 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
13202 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1232713203 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1232813204 fi
1232913205
1235513231 ;;
1235613232 esac
1235713233
13234 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13235 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
13236 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1235813237 if test -n "0.35.0"; then
1235913238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
1236013239 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
12361
12362 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12363 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
12364 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12365
1236613240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
1236713241 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
1236813242 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1237313247 set dummy intltool-update; ac_word=$2
1237413248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1237513249 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
13250 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
1237713251 $as_echo_n "(cached) " >&6
1237813252 else
1237913253 case $INTLTOOL_UPDATE in
1241313287 set dummy intltool-merge; ac_word=$2
1241413288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1241513289 $as_echo_n "checking for $ac_word... " >&6; }
12416 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
13290 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
1241713291 $as_echo_n "(cached) " >&6
1241813292 else
1241913293 case $INTLTOOL_MERGE in
1245313327 set dummy intltool-extract; ac_word=$2
1245413328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1245513329 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
13330 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
1245713331 $as_echo_n "(cached) " >&6
1245813332 else
1245913333 case $INTLTOOL_EXTRACT in
1249313367 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
1249413368 fi
1249513369
12496 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12497 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12498 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12499 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12500 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
12501 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12502 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12503 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12504 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12505 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12506 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12507 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
12508 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12509 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12510 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12511 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12512 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12513 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12514 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13370 if test -z "$AM_DEFAULT_VERBOSITY"; then
13371 AM_DEFAULT_VERBOSITY=1
13372 fi
13373
13374
13375 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
13376 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
13377 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
13378
13379
13380
13381
13382 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
13383 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
13384 intltool__v_merge_options_0='-q'
13385
13386
13387
13388
13389 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13390 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13391 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13392 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13393 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
13394 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13395 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13396 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13397 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13398 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13399 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13400 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
13401 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
13402 else
13403 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
13404 fi
13405 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13406 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13407 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13408 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13409 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13410 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13411 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
1251513412
1251613413
1251713414
1261413511 set dummy xgettext; ac_word=$2
1261513512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1261613513 $as_echo_n "checking for $ac_word... " >&6; }
12617 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13514 if ${ac_cv_path_XGETTEXT+:} false; then :
1261813515 $as_echo_n "(cached) " >&6
1261913516 else
1262013517 case $XGETTEXT in
1265413551 set dummy msgmerge; ac_word=$2
1265513552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1265613553 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13554 if ${ac_cv_path_MSGMERGE+:} false; then :
1265813555 $as_echo_n "(cached) " >&6
1265913556 else
1266013557 case $MSGMERGE in
1269413591 set dummy msgfmt; ac_word=$2
1269513592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1269613593 $as_echo_n "checking for $ac_word... " >&6; }
12697 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13594 if ${ac_cv_path_MSGFMT+:} false; then :
1269813595 $as_echo_n "(cached) " >&6
1269913596 else
1270013597 case $MSGFMT in
1273413631 set dummy gmsgfmt; ac_word=$2
1273513632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1273613633 $as_echo_n "checking for $ac_word... " >&6; }
12737 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13634 if ${ac_cv_path_GMSGFMT+:} false; then :
1273813635 $as_echo_n "(cached) " >&6
1273913636 else
1274013637 case $GMSGFMT in
1278513682 set dummy perl; ac_word=$2
1278613683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1278713684 $as_echo_n "checking for $ac_word... " >&6; }
12788 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
13685 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
1278913686 $as_echo_n "(cached) " >&6
1279013687 else
1279113688 case $INTLTOOL_PERL in
1283013727 if test $? -ne 0; then
1283113728 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
1283213729 else
12833 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
13730 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
1283413731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
1283513732 $as_echo "$IT_PERL_VERSION" >&6; }
1283613733 fi
1286913766 case $host in
1287013767 *-*-solaris*)
1287113768 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12872 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13769 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1287313770 DATADIRNAME=share
1287413771 else
1287513772 DATADIRNAME=lib
1290213799 elif test -n "$PKG_CONFIG"; then
1290313800 if test -n "$PKG_CONFIG" && \
1290413801 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12905 telepathy-glib >= 0.13.9
13802 telepathy-glib >= 0.15.5
1290613803 glib-2.0 >= 2.28
1290713804 gio-2.0
1290813805 \""; } >&5
1290913806 ($PKG_CONFIG --exists --print-errors "
12910 telepathy-glib >= 0.13.9
13807 telepathy-glib >= 0.15.5
1291113808 glib-2.0 >= 2.28
1291213809 gio-2.0
1291313810 ") 2>&5
1291513812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1291613813 test $ac_status = 0; }; then
1291713814 pkg_cv_SSH_CONTACT_CFLAGS=`$PKG_CONFIG --cflags "
12918 telepathy-glib >= 0.13.9
13815 telepathy-glib >= 0.15.5
1291913816 glib-2.0 >= 2.28
1292013817 gio-2.0
1292113818 " 2>/dev/null`
13819 test "x$?" != "x0" && pkg_failed=yes
1292213820 else
1292313821 pkg_failed=yes
1292413822 fi
1293013828 elif test -n "$PKG_CONFIG"; then
1293113829 if test -n "$PKG_CONFIG" && \
1293213830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12933 telepathy-glib >= 0.13.9
13831 telepathy-glib >= 0.15.5
1293413832 glib-2.0 >= 2.28
1293513833 gio-2.0
1293613834 \""; } >&5
1293713835 ($PKG_CONFIG --exists --print-errors "
12938 telepathy-glib >= 0.13.9
13836 telepathy-glib >= 0.15.5
1293913837 glib-2.0 >= 2.28
1294013838 gio-2.0
1294113839 ") 2>&5
1294313841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1294413842 test $ac_status = 0; }; then
1294513843 pkg_cv_SSH_CONTACT_LIBS=`$PKG_CONFIG --libs "
12946 telepathy-glib >= 0.13.9
13844 telepathy-glib >= 0.15.5
1294713845 glib-2.0 >= 2.28
1294813846 gio-2.0
1294913847 " 2>/dev/null`
13848 test "x$?" != "x0" && pkg_failed=yes
1295013849 else
1295113850 pkg_failed=yes
1295213851 fi
1296613865 _pkg_short_errors_supported=no
1296713866 fi
1296813867 if test $_pkg_short_errors_supported = yes; then
12969 SSH_CONTACT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
12970 telepathy-glib >= 0.13.9
13868 SSH_CONTACT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
13869 telepathy-glib >= 0.15.5
1297113870 glib-2.0 >= 2.28
1297213871 gio-2.0
1297313872 " 2>&1`
1297413873 else
12975 SSH_CONTACT_PKG_ERRORS=`$PKG_CONFIG --print-errors "
12976 telepathy-glib >= 0.13.9
13874 SSH_CONTACT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
13875 telepathy-glib >= 0.15.5
1297713876 glib-2.0 >= 2.28
1297813877 gio-2.0
1297913878 " 2>&1`
1298213881 echo "$SSH_CONTACT_PKG_ERRORS" >&5
1298313882
1298413883 as_fn_error $? "Package requirements (
12985 telepathy-glib >= 0.13.9
13884 telepathy-glib >= 0.15.5
1298613885 glib-2.0 >= 2.28
1298713886 gio-2.0
1298813887 ) were not met:
1300913908 See the pkg-config man page for more details.
1301013909
1301113910 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13012 See \`config.log' for more details" "$LINENO" 5 ; }
13911 See \`config.log' for more details" "$LINENO" 5; }
1301313912 else
1301413913 SSH_CONTACT_CFLAGS=$pkg_cv_SSH_CONTACT_CFLAGS
1301513914 SSH_CONTACT_LIBS=$pkg_cv_SSH_CONTACT_LIBS
1337814277 for ac_header in locale.h
1337914278 do :
1338014279 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13381 if test "x$ac_cv_header_locale_h" = x""yes; then :
14280 if test "x$ac_cv_header_locale_h" = xyes; then :
1338214281 cat >>confdefs.h <<_ACEOF
1338314282 #define HAVE_LOCALE_H 1
1338414283 _ACEOF
1339014289 if test $ac_cv_header_locale_h = yes; then
1339114290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
1339214291 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13393 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14292 if ${am_cv_val_LC_MESSAGES+:} false; then :
1339414293 $as_echo_n "(cached) " >&6
1339514294 else
1339614295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1343014329 INTLLIBS=
1343114330
1343214331 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13433 if test "x$ac_cv_header_libintl_h" = x""yes; then :
14332 if test "x$ac_cv_header_libintl_h" = xyes; then :
1343414333 gt_cv_func_dgettext_libintl="no"
1343514334 libintl_extra_libs=""
1343614335
1343914338 #
1344014339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
1344114340 $as_echo_n "checking for ngettext in libc... " >&6; }
13442 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
14341 if ${gt_cv_func_ngettext_libc+:} false; then :
1344314342 $as_echo_n "(cached) " >&6
1344414343 else
1344514344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1347014369 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1347114370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
1347214371 $as_echo_n "checking for dgettext in libc... " >&6; }
13473 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
14372 if ${gt_cv_func_dgettext_libc+:} false; then :
1347414373 $as_echo_n "(cached) " >&6
1347514374 else
1347614375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1350314402 for ac_func in bind_textdomain_codeset
1350414403 do :
1350514404 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13506 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
14405 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1350714406 cat >>confdefs.h <<_ACEOF
1350814407 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
1350914408 _ACEOF
1352214421
1352314422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
1352414423 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
13525 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
14424 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
1352614425 $as_echo_n "(cached) " >&6
1352714426 else
1352814427 ac_check_lib_save_LIBS=$LIBS
1355614455 fi
1355714456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
1355814457 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
13559 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
14458 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
1356014459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
1356114460 $as_echo_n "checking for ngettext in -lintl... " >&6; }
13562 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
14461 if ${ac_cv_lib_intl_ngettext+:} false; then :
1356314462 $as_echo_n "(cached) " >&6
1356414463 else
1356514464 ac_check_lib_save_LIBS=$LIBS
1359314492 fi
1359414493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
1359514494 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13596 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
14495 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
1359714496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
1359814497 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13599 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14498 if ${ac_cv_lib_intl_dgettext+:} false; then :
1360014499 $as_echo_n "(cached) " >&6
1360114500 else
1360214501 ac_check_lib_save_LIBS=$LIBS
1363014529 fi
1363114530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
1363214531 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13633 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
14532 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
1363414533 gt_cv_func_dgettext_libintl=yes
1363514534 fi
1363614535
1364614545 $as_echo "" >&6; }
1364714546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
1364814547 $as_echo_n "checking for ngettext in -lintl... " >&6; }
13649 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
14548 if ${ac_cv_lib_intl_ngettext+:} false; then :
1365014549 $as_echo_n "(cached) " >&6
1365114550 else
1365214551 ac_check_lib_save_LIBS=$LIBS
1368014579 fi
1368114580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
1368214581 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13683 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
14582 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
1368414583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
1368514584 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
13686 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
14585 if ${ac_cv_lib_intl_dcgettext+:} false; then :
1368714586 $as_echo_n "(cached) " >&6
1368814587 else
1368914588 ac_check_lib_save_LIBS=$LIBS
1371714616 fi
1371814617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
1371914618 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
13720 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
14619 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
1372114620 gt_cv_func_dgettext_libintl=yes
1372214621 libintl_extra_libs=-liconv
1372314622 else
1374214641 for ac_func in bind_textdomain_codeset
1374314642 do :
1374414643 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13745 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
14644 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1374614645 cat >>confdefs.h <<_ACEOF
1374714646 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
1374814647 _ACEOF
1378014679 set dummy msgfmt; ac_word=$2
1378114680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1378214681 $as_echo_n "checking for $ac_word... " >&6; }
13783 if test "${ac_cv_path_MSGFMT+set}" = set; then :
14682 if ${ac_cv_path_MSGFMT+:} false; then :
1378414683 $as_echo_n "(cached) " >&6
1378514684 else
1378614685 case "$MSGFMT" in
1381714716 for ac_func in dcgettext
1381814717 do :
1381914718 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
13820 if test "x$ac_cv_func_dcgettext" = x""yes; then :
14719 if test "x$ac_cv_func_dcgettext" = xyes; then :
1382114720 cat >>confdefs.h <<_ACEOF
1382214721 #define HAVE_DCGETTEXT 1
1382314722 _ACEOF
1385814757 set dummy gmsgfmt; ac_word=$2
1385914758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1386014759 $as_echo_n "checking for $ac_word... " >&6; }
13861 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
14760 if ${ac_cv_path_GMSGFMT+:} false; then :
1386214761 $as_echo_n "(cached) " >&6
1386314762 else
1386414763 case $GMSGFMT in
1389914798 set dummy xgettext; ac_word=$2
1390014799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1390114800 $as_echo_n "checking for $ac_word... " >&6; }
13902 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
14801 if ${ac_cv_path_XGETTEXT+:} false; then :
1390314802 $as_echo_n "(cached) " >&6
1390414803 else
1390514804 case "$XGETTEXT" in
1395014849 case $host in
1395114850 *-*-solaris*)
1395214851 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13953 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
14852 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1395414853 CATOBJEXT=.gmo
1395514854 DATADIRNAME=share
1395614855 else
1395814857 DATADIRNAME=lib
1395914858 fi
1396014859
14860 ;;
14861 *-*-openbsd*)
14862 CATOBJEXT=.mo
14863 DATADIRNAME=share
1396114864 ;;
1396214865 *)
1396314866 CATOBJEXT=.mo
1407914982 < $srcdir/po/POTFILES.in > po/POTFILES
1408014983
1408114984
14082 # -----------------------------------------------------------
14083 # Vinagre plugin
14084 # -----------------------------------------------------------
14085 # Check whether --enable-vinagre was given.
14086 if test "${enable_vinagre+set}" = set; then :
14087 enableval=$enable_vinagre;
14088 else
14089 enable_vinagre=no
14090 fi
14091
14092
14093 if test "x$enable_vinagre" != "xno"; then
14094
14095 pkg_failed=no
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VINAGRE" >&5
14097 $as_echo_n "checking for VINAGRE... " >&6; }
14098
14099 if test -n "$VINAGRE_CFLAGS"; then
14100 pkg_cv_VINAGRE_CFLAGS="$VINAGRE_CFLAGS"
14101 elif test -n "$PKG_CONFIG"; then
14102 if test -n "$PKG_CONFIG" && \
14103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14104 vinagre-1.0
14105 vte
14106 \""; } >&5
14107 ($PKG_CONFIG --exists --print-errors "
14108 vinagre-1.0
14109 vte
14110 ") 2>&5
14111 ac_status=$?
14112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14113 test $ac_status = 0; }; then
14114 pkg_cv_VINAGRE_CFLAGS=`$PKG_CONFIG --cflags "
14115 vinagre-1.0
14116 vte
14117 " 2>/dev/null`
14118 else
14119 pkg_failed=yes
14120 fi
14121 else
14122 pkg_failed=untried
14123 fi
14124 if test -n "$VINAGRE_LIBS"; then
14125 pkg_cv_VINAGRE_LIBS="$VINAGRE_LIBS"
14126 elif test -n "$PKG_CONFIG"; then
14127 if test -n "$PKG_CONFIG" && \
14128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14129 vinagre-1.0
14130 vte
14131 \""; } >&5
14132 ($PKG_CONFIG --exists --print-errors "
14133 vinagre-1.0
14134 vte
14135 ") 2>&5
14136 ac_status=$?
14137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14138 test $ac_status = 0; }; then
14139 pkg_cv_VINAGRE_LIBS=`$PKG_CONFIG --libs "
14140 vinagre-1.0
14141 vte
14142 " 2>/dev/null`
14143 else
14144 pkg_failed=yes
14145 fi
14146 else
14147 pkg_failed=untried
14148 fi
14149
14150
14151
14152 if test $pkg_failed = yes; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14155
14156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14157 _pkg_short_errors_supported=yes
14158 else
14159 _pkg_short_errors_supported=no
14160 fi
14161 if test $_pkg_short_errors_supported = yes; then
14162 VINAGRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
14163 vinagre-1.0
14164 vte
14165 " 2>&1`
14166 else
14167 VINAGRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "
14168 vinagre-1.0
14169 vte
14170 " 2>&1`
14171 fi
14172 # Put the nasty error message in config.log where it belongs
14173 echo "$VINAGRE_PKG_ERRORS" >&5
14174
14175 have_vinagre="no"
14176 elif test $pkg_failed = untried; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 have_vinagre="no"
14180 else
14181 VINAGRE_CFLAGS=$pkg_cv_VINAGRE_CFLAGS
14182 VINAGRE_LIBS=$pkg_cv_VINAGRE_LIBS
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14184 $as_echo "yes" >&6; }
14185 have_vinagre="yes"
14186 fi
14187
14188 if test "x$have_vinagre" = "xyes"; then
14189
14190 $as_echo "#define HAVE_VINAGRE 1" >>confdefs.h
14191
14192 fi
14193 else
14194 have_vinagre=no
14195 fi
14196
14197 if test "x$enable_vinagre" = "xyes" -a "x$have_vinagre" != "xyes"; then
14198 as_fn_error $? "Could not find vinagre dependencies." "$LINENO" 5
14199 fi
14200 if test "x$have_vinagre" = "xyes"; then
14201 HAVE_VINAGRE_TRUE=
14202 HAVE_VINAGRE_FALSE='#'
14203 else
14204 HAVE_VINAGRE_TRUE='#'
14205 HAVE_VINAGRE_FALSE=
14206 fi
14207
14208
14209 # -----------------------------------------------------------
14210
1421114985
1421214986 $as_echo "#define TUBE_SERVICE \"x-ssh-contact\"" >>confdefs.h
1421314987
1421414988
14215 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile src/vinagre/Makefile"
14989 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile"
1421614990
1421714991 cat >confcache <<\_ACEOF
1421814992 # This file is a shell script that caches the results of configure
1427815052 :end' >>confcache
1427915053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1428015054 if test -w "$cache_file"; then
14281 test "x$cache_file" != "x/dev/null" &&
15055 if test "x$cache_file" != "x/dev/null"; then
1428215056 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1428315057 $as_echo "$as_me: updating cache $cache_file" >&6;}
14284 cat confcache >$cache_file
15058 if test ! -f "$cache_file" || test -h "$cache_file"; then
15059 cat confcache >"$cache_file"
15060 else
15061 case $cache_file in #(
15062 */* | ?:*)
15063 mv -f confcache "$cache_file"$$ &&
15064 mv -f "$cache_file"$$ "$cache_file" ;; #(
15065 *)
15066 mv -f confcache "$cache_file" ;;
15067 esac
15068 fi
15069 fi
1428515070 else
1428615071 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1428715072 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1434015125 ac_config_commands="$ac_config_commands po/stamp-it"
1434115126
1434215127
14343 if test -z "${HAVE_VINAGRE_TRUE}" && test -z "${HAVE_VINAGRE_FALSE}"; then
14344 as_fn_error $? "conditional \"HAVE_VINAGRE\" was never defined.
14345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14346 fi
14347
14348 : ${CONFIG_STATUS=./config.status}
15128
15129 : "${CONFIG_STATUS=./config.status}"
1434915130 ac_write_fail=0
1435015131 ac_clean_files_save=$ac_clean_files
1435115132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1444615227 IFS=" "" $as_nl"
1444715228
1444815229 # Find who we are. Look in the path if we contain no directory separator.
15230 as_myself=
1444915231 case $0 in #((
1445015232 *[\\/]* ) as_myself=$0 ;;
1445115233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475215534 # report actual input values of CONFIG_FILES etc. instead of their
1475315535 # values after options handling.
1475415536 ac_log="
14755 This file was extended by ssh-contact $as_me 0.6, which was
14756 generated by GNU Autoconf 2.67. Invocation command line was
15537 This file was extended by ssh-contact $as_me 0.7, which was
15538 generated by GNU Autoconf 2.68. Invocation command line was
1475715539
1475815540 CONFIG_FILES = $CONFIG_FILES
1475915541 CONFIG_HEADERS = $CONFIG_HEADERS
1481815600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1481915601 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1482015602 ac_cs_version="\\
14821 ssh-contact config.status 0.6
14822 configured by $0, generated by GNU Autoconf 2.67,
15603 ssh-contact config.status 0.7
15604 configured by $0, generated by GNU Autoconf 2.68,
1482315605 with options \\"\$ac_cs_config\\"
1482415606
1482515607 Copyright (C) 2010 Free Software Foundation, Inc.
1494715729 sed_quote_subst='$sed_quote_subst'
1494815730 double_quote_subst='$double_quote_subst'
1494915731 delay_variable_subst='$delay_variable_subst'
14950 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14951 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14952 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14953 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14954 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14955 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14956 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14957 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14958 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14959 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14960 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14961 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14962 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14963 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14964 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14965 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14966 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14967 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14968 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14969 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14970 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14971 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14972 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14973 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14974 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14975 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14976 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14977 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14978 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14979 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14980 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14981 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14982 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14983 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14984 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14985 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14986 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14987 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14988 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14989 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14990 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14991 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14992 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14993 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14994 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"`'
14995 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"`'
14996 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14997 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14998 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14999 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15000 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15001 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15002 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15003 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15004 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15005 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15006 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15007 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15008 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15009 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15010 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15011 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15012 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15013 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15014 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15015 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15016 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15017 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15018 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15019 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15020 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15021 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15022 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15023 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15024 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15025 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15026 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15027 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15028 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15029 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15030 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15031 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15032 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15033 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15034 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15035 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15036 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15037 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15038 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15039 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15040 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15041 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15042 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15043 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15044 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15045 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15046 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15047 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15048 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15049 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15050 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15051 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15052 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15053 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15054 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15055 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15056 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15057 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15058 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15059 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15060 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15061 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15062 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15063 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15064 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15065 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15066 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15067 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15732 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15733 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15734 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15735 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15736 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15737 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15738 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15739 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15740 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15741 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15742 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15743 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15744 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15745 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15746 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15747 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15748 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15749 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15750 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15751 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15752 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15753 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15754 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15755 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15756 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15757 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15758 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15759 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15760 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15761 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15762 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15763 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15764 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15765 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15766 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15767 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15768 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15769 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15770 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15771 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15772 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15773 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15774 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15775 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15776 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15777 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15778 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15779 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15780 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15781 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15782 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15783 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15784 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15785 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15786 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15787 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15788 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"`'
15789 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15790 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15791 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15792 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15793 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15794 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15795 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15796 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15797 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15798 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15799 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15800 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15801 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15802 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15803 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15804 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15805 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15806 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15807 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15808 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15809 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15810 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15811 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15812 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15813 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15814 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15815 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15816 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15817 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15818 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15819 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15820 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15821 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15822 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15823 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15824 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15825 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15826 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15827 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15828 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15829 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15830 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15831 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15832 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15833 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15834 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15835 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15836 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15837 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15838 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15839 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15840 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15841 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15842 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15843 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15844 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15845 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15846 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15847 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15848 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15849 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15850 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15851 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15852 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15853 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15854 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15855 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15856 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15857 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15858 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15859 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15860 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15861 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1506815862
1506915863 LTCC='$LTCC'
1507015864 LTCFLAGS='$LTCFLAGS'
1507115865 compiler='$compiler_DEFAULT'
1507215866
15867 # A function that is used when there is no print builtin or printf.
15868 func_fallback_echo ()
15869 {
15870 eval 'cat <<_LTECHO_EOF
15871 \$1
15872 _LTECHO_EOF'
15873 }
15874
1507315875 # Quote evaled strings.
15074 for var in SED \
15876 for var in SHELL \
15877 ECHO \
15878 PATH_SEPARATOR \
15879 SED \
1507515880 GREP \
1507615881 EGREP \
1507715882 FGREP \
1508415889 OBJDUMP \
1508515890 deplibs_check_method \
1508615891 file_magic_cmd \
15892 file_magic_glob \
15893 want_nocaseglob \
15894 DLLTOOL \
15895 sharedlib_from_linklib_cmd \
1508715896 AR \
1508815897 AR_FLAGS \
15898 archiver_list_spec \
1508915899 STRIP \
1509015900 RANLIB \
1509115901 CC \
1509515905 lt_cv_sys_global_symbol_to_cdecl \
1509615906 lt_cv_sys_global_symbol_to_c_name_address \
1509715907 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15098 SHELL \
15099 ECHO \
15908 nm_file_list_spec \
1510015909 lt_prog_compiler_no_builtin_flag \
15910 lt_prog_compiler_pic \
1510115911 lt_prog_compiler_wl \
15102 lt_prog_compiler_pic \
1510315912 lt_prog_compiler_static \
1510415913 lt_cv_prog_compiler_c_o \
1510515914 need_locks \
15915 MANIFEST_TOOL \
1510615916 DSYMUTIL \
1510715917 NMEDIT \
1510815918 LIPO \
1511615926 allow_undefined_flag \
1511715927 no_undefined_flag \
1511815928 hardcode_libdir_flag_spec \
15119 hardcode_libdir_flag_spec_ld \
1512015929 hardcode_libdir_separator \
15121 fix_srcfile_path \
1512215930 exclude_expsyms \
1512315931 include_expsyms \
1512415932 file_list_spec \
1512615934 libname_spec \
1512715935 library_names_spec \
1512815936 soname_spec \
15937 install_override_mode \
1512915938 finish_eval \
1513015939 old_striplib \
1513115940 striplib; do
15132 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1513315942 *[\\\\\\\`\\"\\\$]*)
15134 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1513515944 ;;
1513615945 *)
1513715946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1515315962 module_expsym_cmds \
1515415963 export_symbols_cmds \
1515515964 prelink_cmds \
15965 postlink_cmds \
1515615966 postinstall_cmds \
1515715967 postuninstall_cmds \
1515815968 finish_cmds \
1515915969 sys_lib_search_path_spec \
1516015970 sys_lib_dlsearch_path_spec; do
15161 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15971 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1516215972 *[\\\\\\\`\\"\\\$]*)
15163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15973 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1516415974 ;;
1516515975 *)
1516615976 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1516715977 ;;
1516815978 esac
1516915979 done
15170
15171 # Fix-up fallback echo if it was mangled by the above quoting rules.
15172 case \$lt_ECHO in
15173 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15174 ;;
15175 esac
1517615980
1517715981 ac_aux_dir='$ac_aux_dir'
1517815982 xsi_shell='$xsi_shell'
1521016014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1521116015 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1521216016 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15213 "src/vinagre/Makefile") CONFIG_FILES="$CONFIG_FILES src/vinagre/Makefile" ;;
1521416017 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
1521516018
15216 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1521716020 esac
1521816021 done
1521916022
1523616039 # after its creation but before its name has been assigned to `$tmp'.
1523716040 $debug ||
1523816041 {
15239 tmp=
16042 tmp= ac_tmp=
1524016043 trap 'exit_status=$?
15241 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16044 : "${ac_tmp:=$tmp}"
16045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1524216046 ' 0
1524316047 trap 'as_fn_exit 1' 1 2 13 15
1524416048 }
1524616050
1524716051 {
1524816052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15249 test -n "$tmp" && test -d "$tmp"
16053 test -d "$tmp"
1525016054 } ||
1525116055 {
1525216056 tmp=./conf$$-$RANDOM
1525316057 (umask 077 && mkdir "$tmp")
1525416058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16059 ac_tmp=$tmp
1525516060
1525616061 # Set up the scripts for CONFIG_FILES section.
1525716062 # No need to generate them if there are no CONFIG_FILES.
1527316078 ac_cs_awk_cr=$ac_cr
1527416079 fi
1527516080
15276 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16081 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1527716082 _ACEOF
1527816083
1527916084
1530116106 rm -f conf$$subs.sh
1530216107
1530316108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16109 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1530516110 _ACEOF
1530616111 sed -n '
1530716112 h
1534916154 rm -f conf$$subs.awk
1535016155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1535116156 _ACAWK
15352 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16157 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1535316158 for (key in S) S_is_set[key] = 1
1535416159 FS = ""
1535516160
1538116186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1538216187 else
1538316188 cat
15384 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16189 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1538516190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1538616191 _ACEOF
1538716192
1541516220 # No need to generate them if there are no CONFIG_HEADERS.
1541616221 # This happens for instance with `./config.status Makefile'.
1541716222 if test -n "$CONFIG_HEADERS"; then
15418 cat >"$tmp/defines.awk" <<\_ACAWK ||
16223 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1541916224 BEGIN {
1542016225 _ACEOF
1542116226
1542716232 # handling of long lines.
1542816233 ac_delim='%!_!# '
1542916234 for ac_last_try in false false :; do
15430 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15431 if test -z "$ac_t"; then
16235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16236 if test -z "$ac_tt"; then
1543216237 break
1543316238 elif $ac_last_try; then
1543416239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1552916334 esac
1553016335 case $ac_mode$ac_tag in
1553116336 :[FHL]*:*);;
15532 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1553316338 :[FH]-) ac_tag=-:-;;
1553416339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1553516340 esac
1554816353 for ac_f
1554916354 do
1555016355 case $ac_f in
15551 -) ac_f="$tmp/stdin";;
16356 -) ac_f="$ac_tmp/stdin";;
1555216357 *) # Look for the file first in the build tree, then in the source tree
1555316358 # (if the path is not absolute). The absolute path cannot be DOS-style,
1555416359 # because $ac_f cannot contain `:'.
1555716362 [\\/$]*) false;;
1555816363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1555916364 esac ||
15560 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1556116366 esac
1556216367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1556316368 as_fn_append ac_file_inputs " '$ac_f'"
1558316388 esac
1558416389
1558516390 case $ac_tag in
15586 *:-:* | *:-) cat >"$tmp/stdin" \
15587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16391 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1558816393 esac
1558916394 ;;
1559016395 esac
1572016525 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1572116526 $ac_datarootdir_hack
1572216527 "
15723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16528 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16529 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1572516530
1572616531 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15727 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16532 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16534 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1572916535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1573016536 which seems to be undefined. Please make sure it is defined" >&5
1573116537 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1573216538 which seems to be undefined. Please make sure it is defined" >&2;}
1573316539
15734 rm -f "$tmp/stdin"
16540 rm -f "$ac_tmp/stdin"
1573516541 case $ac_file in
15736 -) cat "$tmp/out" && rm -f "$tmp/out";;
15737 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16542 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16543 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1573816544 esac \
1573916545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1574016546 ;;
1574516551 if test x"$ac_file" != x-; then
1574616552 {
1574716553 $as_echo "/* $configure_input */" \
15748 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15749 } >"$tmp/config.h" \
16554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16555 } >"$ac_tmp/config.h" \
1575016556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15751 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16557 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1575216558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1575316559 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1575416560 else
1575516561 rm -f "$ac_file"
15756 mv "$tmp/config.h" "$ac_file" \
16562 mv "$ac_tmp/config.h" "$ac_file" \
1575716563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1575816564 fi
1575916565 else
1576016566 $as_echo "/* $configure_input */" \
15761 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1576216568 || as_fn_error $? "could not create -" "$LINENO" 5
1576316569 fi
1576416570 # Compute "$ac_file"'s index in $config_headers.
1592016726 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1592116727 #
1592216728 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15923 # 2006, 2007, 2008 Free Software Foundation, Inc.
16729 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16730 # Foundation, Inc.
1592416731 # Written by Gordon Matzigkeit, 1996
1592516732 #
1592616733 # This file is part of GNU Libtool.
1596816775 # Whether or not to optimize for fast installation.
1596916776 fast_install=$enable_fast_install
1597016777
16778 # Shell to use when invoking shell scripts.
16779 SHELL=$lt_SHELL
16780
16781 # An echo program that protects backslashes.
16782 ECHO=$lt_ECHO
16783
16784 # The PATH separator for the build system.
16785 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16786
1597116787 # The host system.
1597216788 host_alias=$host_alias
1597316789 host=$host
1601716833 # turn newlines into spaces.
1601816834 NL2SP=$lt_lt_NL2SP
1601916835
16020 # How to create reloadable object files.
16021 reload_flag=$lt_reload_flag
16022 reload_cmds=$lt_reload_cmds
16836 # convert \$build file names to \$host format.
16837 to_host_file_cmd=$lt_cv_to_host_file_cmd
16838
16839 # convert \$build files to toolchain format.
16840 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1602316841
1602416842 # An object symbol dumper.
1602516843 OBJDUMP=$lt_OBJDUMP
1602716845 # Method to check whether dependent libraries are shared objects.
1602816846 deplibs_check_method=$lt_deplibs_check_method
1602916847
16030 # Command to use when deplibs_check_method == "file_magic".
16848 # Command to use when deplibs_check_method = "file_magic".
1603116849 file_magic_cmd=$lt_file_magic_cmd
16850
16851 # How to find potential files when deplibs_check_method = "file_magic".
16852 file_magic_glob=$lt_file_magic_glob
16853
16854 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16855 want_nocaseglob=$lt_want_nocaseglob
16856
16857 # DLL creation program.
16858 DLLTOOL=$lt_DLLTOOL
16859
16860 # Command to associate shared and link libraries.
16861 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1603216862
1603316863 # The archiver.
1603416864 AR=$lt_AR
16865
16866 # Flags to create an archive.
1603516867 AR_FLAGS=$lt_AR_FLAGS
16868
16869 # How to feed a file listing to the archiver.
16870 archiver_list_spec=$lt_archiver_list_spec
1603616871
1603716872 # A symbol stripping program.
1603816873 STRIP=$lt_STRIP
1604216877 old_postinstall_cmds=$lt_old_postinstall_cmds
1604316878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
1604416879
16880 # Whether to use a lock for old archive extraction.
16881 lock_old_archive_extraction=$lock_old_archive_extraction
16882
1604516883 # A C compiler.
1604616884 LTCC=$lt_CC
1604716885
1606016898 # Transform the output of nm in a C name address pair when lib prefix is needed.
1606116899 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1606216900
16901 # Specify filename containing input files for \$NM.
16902 nm_file_list_spec=$lt_nm_file_list_spec
16903
16904 # The root where to search for dependent libraries,and in which our libraries should be installed.
16905 lt_sysroot=$lt_sysroot
16906
1606316907 # The name of the directory that contains temporary libtool files.
1606416908 objdir=$objdir
1606516909
16066 # Shell to use when invoking shell scripts.
16067 SHELL=$lt_SHELL
16068
16069 # An echo program that does not interpret backslashes.
16070 ECHO=$lt_ECHO
16071
1607216910 # Used to examine libraries when file_magic_cmd begins with "file".
1607316911 MAGIC_CMD=$MAGIC_CMD
1607416912
1607516913 # Must we lock files when doing compilation?
1607616914 need_locks=$lt_need_locks
16915
16916 # Manifest tool.
16917 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1607716918
1607816919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1607916920 DSYMUTIL=$lt_DSYMUTIL
1613116972 # The coded name of the library, if different from the real name.
1613216973 soname_spec=$lt_soname_spec
1613316974
16975 # Permission mode override for installation of shared libraries.
16976 install_override_mode=$lt_install_override_mode
16977
1613416978 # Command to use after installation of a shared archive.
1613516979 postinstall_cmds=$lt_postinstall_cmds
1613616980
1617017014 # The linker used to build libraries.
1617117015 LD=$lt_LD
1617217016
17017 # How to create reloadable object files.
17018 reload_flag=$lt_reload_flag
17019 reload_cmds=$lt_reload_cmds
17020
1617317021 # Commands used to build an old-style archive.
1617417022 old_archive_cmds=$lt_old_archive_cmds
1617517023
1618217030 # Compiler flag to turn off builtin functions.
1618317031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1618417032
17033 # Additional compiler flags for building library objects.
17034 pic_flag=$lt_lt_prog_compiler_pic
17035
1618517036 # How to pass a linker flag through the compiler.
1618617037 wl=$lt_lt_prog_compiler_wl
16187
16188 # Additional compiler flags for building library objects.
16189 pic_flag=$lt_lt_prog_compiler_pic
1619017038
1619117039 # Compiler flag to prevent dynamic linking.
1619217040 link_static_flag=$lt_lt_prog_compiler_static
1623617084 # Flag to hardcode \$libdir into a binary during linking.
1623717085 # This must work even if \$libdir does not exist
1623817086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16239
16240 # If ld is used when linking, flag to hardcode \$libdir into a binary
16241 # during linking. This must work even if \$libdir does not exist.
16242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1624317087
1624417088 # Whether we need a single "-rpath" flag with a separated argument.
1624517089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1627417118 # Whether libtool must link a program against all its dependency libraries.
1627517119 link_all_deplibs=$link_all_deplibs
1627617120
16277 # Fix the shell variable \$srcfile for the compiler.
16278 fix_srcfile_path=$lt_fix_srcfile_path
16279
1628017121 # Set to "yes" if exported symbols are required.
1628117122 always_export_symbols=$always_export_symbols
1628217123
1629117132
1629217133 # Commands necessary for linking programs (against libraries) with templates.
1629317134 prelink_cmds=$lt_prelink_cmds
17135
17136 # Commands necessary for finishing linking programs.
17137 postlink_cmds=$lt_postlink_cmds
1629417138
1629517139 # Specify filename containing input files.
1629617140 file_list_spec=$lt_file_list_spec
1632417168 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1632517169 # text mode, it properly converts lines to CR/LF. This bash problem
1632617170 # is reportedly fixed, but why not run on old versions too?
16327 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16328 || (rm -f "$cfgfile"; exit 1)
16329
16330 case $xsi_shell in
16331 yes)
16332 cat << \_LT_EOF >> "$cfgfile"
16333
16334 # func_dirname file append nondir_replacement
16335 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16336 # otherwise set result to NONDIR_REPLACEMENT.
16337 func_dirname ()
16338 {
16339 case ${1} in
16340 */*) func_dirname_result="${1%/*}${2}" ;;
16341 * ) func_dirname_result="${3}" ;;
16342 esac
16343 }
16344
16345 # func_basename file
16346 func_basename ()
16347 {
16348 func_basename_result="${1##*/}"
16349 }
16350
16351 # func_dirname_and_basename file append nondir_replacement
16352 # perform func_basename and func_dirname in a single function
16353 # call:
16354 # dirname: Compute the dirname of FILE. If nonempty,
16355 # add APPEND to the result, otherwise set result
16356 # to NONDIR_REPLACEMENT.
16357 # value returned in "$func_dirname_result"
16358 # basename: Compute filename of FILE.
16359 # value retuned in "$func_basename_result"
16360 # Implementation must be kept synchronized with func_dirname
16361 # and func_basename. For efficiency, we do not delegate to
16362 # those functions but instead duplicate the functionality here.
16363 func_dirname_and_basename ()
16364 {
16365 case ${1} in
16366 */*) func_dirname_result="${1%/*}${2}" ;;
16367 * ) func_dirname_result="${3}" ;;
16368 esac
16369 func_basename_result="${1##*/}"
16370 }
16371
16372 # func_stripname prefix suffix name
16373 # strip PREFIX and SUFFIX off of NAME.
16374 # PREFIX and SUFFIX must not contain globbing or regex special
16375 # characters, hashes, percent signs, but SUFFIX may contain a leading
16376 # dot (in which case that matches only a dot).
16377 func_stripname ()
16378 {
16379 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16380 # positional parameters, so assign one to ordinary parameter first.
16381 func_stripname_result=${3}
16382 func_stripname_result=${func_stripname_result#"${1}"}
16383 func_stripname_result=${func_stripname_result%"${2}"}
16384 }
16385
16386 # func_opt_split
16387 func_opt_split ()
16388 {
16389 func_opt_split_opt=${1%%=*}
16390 func_opt_split_arg=${1#*=}
16391 }
16392
16393 # func_lo2o object
16394 func_lo2o ()
16395 {
16396 case ${1} in
16397 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16398 *) func_lo2o_result=${1} ;;
16399 esac
16400 }
16401
16402 # func_xform libobj-or-source
16403 func_xform ()
16404 {
16405 func_xform_result=${1%.*}.lo
16406 }
16407
16408 # func_arith arithmetic-term...
16409 func_arith ()
16410 {
16411 func_arith_result=$(( $* ))
16412 }
16413
16414 # func_len string
16415 # STRING may not start with a hyphen.
16416 func_len ()
16417 {
16418 func_len_result=${#1}
16419 }
16420
16421 _LT_EOF
16422 ;;
16423 *) # Bourne compatible functions.
16424 cat << \_LT_EOF >> "$cfgfile"
16425
16426 # func_dirname file append nondir_replacement
16427 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16428 # otherwise set result to NONDIR_REPLACEMENT.
16429 func_dirname ()
16430 {
16431 # Extract subdirectory from the argument.
16432 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16433 if test "X$func_dirname_result" = "X${1}"; then
16434 func_dirname_result="${3}"
16435 else
16436 func_dirname_result="$func_dirname_result${2}"
16437 fi
16438 }
16439
16440 # func_basename file
16441 func_basename ()
16442 {
16443 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16444 }
16445
16446
16447 # func_stripname prefix suffix name
16448 # strip PREFIX and SUFFIX off of NAME.
16449 # PREFIX and SUFFIX must not contain globbing or regex special
16450 # characters, hashes, percent signs, but SUFFIX may contain a leading
16451 # dot (in which case that matches only a dot).
16452 # func_strip_suffix prefix name
16453 func_stripname ()
16454 {
16455 case ${2} in
16456 .*) func_stripname_result=`$ECHO "X${3}" \
16457 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16458 *) func_stripname_result=`$ECHO "X${3}" \
16459 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16460 esac
16461 }
16462
16463 # sed scripts:
16464 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16465 my_sed_long_arg='1s/^-[^=]*=//'
16466
16467 # func_opt_split
16468 func_opt_split ()
16469 {
16470 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16471 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16472 }
16473
16474 # func_lo2o object
16475 func_lo2o ()
16476 {
16477 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16478 }
16479
16480 # func_xform libobj-or-source
16481 func_xform ()
16482 {
16483 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16484 }
16485
16486 # func_arith arithmetic-term...
16487 func_arith ()
16488 {
16489 func_arith_result=`expr "$@"`
16490 }
16491
16492 # func_len string
16493 # STRING may not start with a hyphen.
16494 func_len ()
16495 {
16496 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16497 }
16498
16499 _LT_EOF
16500 esac
16501
16502 case $lt_shell_append in
16503 yes)
16504 cat << \_LT_EOF >> "$cfgfile"
16505
16506 # func_append var value
16507 # Append VALUE to the end of shell variable VAR.
16508 func_append ()
16509 {
16510 eval "$1+=\$2"
16511 }
16512 _LT_EOF
16513 ;;
16514 *)
16515 cat << \_LT_EOF >> "$cfgfile"
16516
16517 # func_append var value
16518 # Append VALUE to the end of shell variable VAR.
16519 func_append ()
16520 {
16521 eval "$1=\$$1\$2"
16522 }
16523
16524 _LT_EOF
16525 ;;
16526 esac
16527
16528
16529 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16530 || (rm -f "$cfgfile"; exit 1)
16531
16532 mv -f "$cfgfile" "$ofile" ||
17171 sed '$q' "$ltmain" >> "$cfgfile" \
17172 || (rm -f "$cfgfile"; exit 1)
17173
17174 if test x"$xsi_shell" = xyes; then
17175 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17176 func_dirname ()\
17177 {\
17178 \ case ${1} in\
17179 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17180 \ * ) func_dirname_result="${3}" ;;\
17181 \ esac\
17182 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17183 && mv -f "$cfgfile.tmp" "$cfgfile" \
17184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17185 test 0 -eq $? || _lt_function_replace_fail=:
17186
17187
17188 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17189 func_basename ()\
17190 {\
17191 \ func_basename_result="${1##*/}"\
17192 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17193 && mv -f "$cfgfile.tmp" "$cfgfile" \
17194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17195 test 0 -eq $? || _lt_function_replace_fail=:
17196
17197
17198 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17199 func_dirname_and_basename ()\
17200 {\
17201 \ case ${1} in\
17202 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17203 \ * ) func_dirname_result="${3}" ;;\
17204 \ esac\
17205 \ func_basename_result="${1##*/}"\
17206 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17207 && mv -f "$cfgfile.tmp" "$cfgfile" \
17208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17209 test 0 -eq $? || _lt_function_replace_fail=:
17210
17211
17212 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17213 func_stripname ()\
17214 {\
17215 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17216 \ # positional parameters, so assign one to ordinary parameter first.\
17217 \ func_stripname_result=${3}\
17218 \ func_stripname_result=${func_stripname_result#"${1}"}\
17219 \ func_stripname_result=${func_stripname_result%"${2}"}\
17220 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17221 && mv -f "$cfgfile.tmp" "$cfgfile" \
17222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17223 test 0 -eq $? || _lt_function_replace_fail=:
17224
17225
17226 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17227 func_split_long_opt ()\
17228 {\
17229 \ func_split_long_opt_name=${1%%=*}\
17230 \ func_split_long_opt_arg=${1#*=}\
17231 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17232 && mv -f "$cfgfile.tmp" "$cfgfile" \
17233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17234 test 0 -eq $? || _lt_function_replace_fail=:
17235
17236
17237 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17238 func_split_short_opt ()\
17239 {\
17240 \ func_split_short_opt_arg=${1#??}\
17241 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17242 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17243 && mv -f "$cfgfile.tmp" "$cfgfile" \
17244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17245 test 0 -eq $? || _lt_function_replace_fail=:
17246
17247
17248 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17249 func_lo2o ()\
17250 {\
17251 \ case ${1} in\
17252 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17253 \ *) func_lo2o_result=${1} ;;\
17254 \ esac\
17255 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17256 && mv -f "$cfgfile.tmp" "$cfgfile" \
17257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17258 test 0 -eq $? || _lt_function_replace_fail=:
17259
17260
17261 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17262 func_xform ()\
17263 {\
17264 func_xform_result=${1%.*}.lo\
17265 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17266 && mv -f "$cfgfile.tmp" "$cfgfile" \
17267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17268 test 0 -eq $? || _lt_function_replace_fail=:
17269
17270
17271 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17272 func_arith ()\
17273 {\
17274 func_arith_result=$(( $* ))\
17275 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17276 && mv -f "$cfgfile.tmp" "$cfgfile" \
17277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17278 test 0 -eq $? || _lt_function_replace_fail=:
17279
17280
17281 sed -e '/^func_len ()$/,/^} # func_len /c\
17282 func_len ()\
17283 {\
17284 func_len_result=${#1}\
17285 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17286 && mv -f "$cfgfile.tmp" "$cfgfile" \
17287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17288 test 0 -eq $? || _lt_function_replace_fail=:
17289
17290 fi
17291
17292 if test x"$lt_shell_append" = xyes; then
17293 sed -e '/^func_append ()$/,/^} # func_append /c\
17294 func_append ()\
17295 {\
17296 eval "${1}+=\\${2}"\
17297 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17298 && mv -f "$cfgfile.tmp" "$cfgfile" \
17299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17300 test 0 -eq $? || _lt_function_replace_fail=:
17301
17302
17303 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17304 func_append_quoted ()\
17305 {\
17306 \ func_quote_for_eval "${2}"\
17307 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17308 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17309 && mv -f "$cfgfile.tmp" "$cfgfile" \
17310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17311 test 0 -eq $? || _lt_function_replace_fail=:
17312
17313
17314 # Save a `func_append' function call where possible by direct use of '+='
17315 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17316 && mv -f "$cfgfile.tmp" "$cfgfile" \
17317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17318 test 0 -eq $? || _lt_function_replace_fail=:
17319 else
17320 # Save a `func_append' function call even when '+=' is not available
17321 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17322 && mv -f "$cfgfile.tmp" "$cfgfile" \
17323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17324 test 0 -eq $? || _lt_function_replace_fail=:
17325 fi
17326
17327 if test x"$_lt_function_replace_fail" = x":"; then
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17329 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17330 fi
17331
17332
17333 mv -f "$cfgfile" "$ofile" ||
1653317334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1653417335 chmod +x "$ofile"
1653517336
00 m4_define(released, 1)
1 AC_INIT(ssh-contact, 0.6, https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=ssh-contact)
1 AC_INIT(ssh-contact, 0.7, https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=ssh-contact)
22 AC_PREREQ(2.59)
33 AC_COPYRIGHT([
44 Copyright (C) 2010 Collabora Ltd.
2626
2727 PKG_CHECK_MODULES(SSH_CONTACT,
2828 [
29 telepathy-glib >= 0.13.9
29 telepathy-glib >= 0.15.5
3030 glib-2.0 >= 2.28
3131 gio-2.0
3232 ])
8080
8181 AM_GLIB_GNU_GETTEXT
8282
83 # -----------------------------------------------------------
84 # Vinagre plugin
85 # -----------------------------------------------------------
86 AC_ARG_ENABLE(vinagre,
87 AS_HELP_STRING([--enable-vinagre=@<:@no/yes/auto@:>@],
88 [build with vinagre plugin]), ,
89 enable_vinagre=no)
90
91 if test "x$enable_vinagre" != "xno"; then
92 PKG_CHECK_MODULES(VINAGRE,
93 [
94 vinagre-1.0
95 vte
96 ], have_vinagre="yes", have_vinagre="no")
97
98 if test "x$have_vinagre" = "xyes"; then
99 AC_DEFINE(HAVE_VINAGRE, 1, [Define if you have libvinagre])
100 fi
101 else
102 have_vinagre=no
103 fi
104
105 if test "x$enable_vinagre" = "xyes" -a "x$have_vinagre" != "xyes"; then
106 AC_MSG_ERROR([Could not find vinagre dependencies.])
107 fi
108 AM_CONDITIONAL(HAVE_VINAGRE, test "x$have_vinagre" = "xyes")
109
110 # -----------------------------------------------------------
111
11283 AC_DEFINE(TUBE_SERVICE, "x-ssh-contact", [Define the tube service name])
11384
11485 AC_OUTPUT([
11586 Makefile
11687 po/Makefile.in
11788 src/Makefile
118 src/vinagre/Makefile
11989 ])
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
4343 object Object file output by `PROGRAMS ARGS'.
4444 DEPDIR directory where to store dependencies.
4545 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
46 tmpdepfile Temporary file to use when outputting dependencies.
4747 libtool Whether libtool is used (yes/no).
4848
4949 Report bugs to <bug-automake@gnu.org>.
8989 # This is just like msvisualcpp but w/o cygpath translation.
9090 # Just convert the backslash-escaped backslashes to single forward
9191 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
92 cygpath_u='sed s,\\\\,/,g'
9393 depmode=msvisualcpp
94 fi
95
96 if test "$depmode" = msvc7msys; then
97 # This is just like msvc7 but w/o cygpath translation.
98 # Just convert the backslash-escaped backslashes to single forward
99 # slashes to satisfy depend.m4
100 cygpath_u='sed s,\\\\,/,g'
101 depmode=msvc7
94102 fi
95103
96104 case "$depmode" in
157165 ' < "$tmpdepfile" |
158166 ## Some versions of gcc put a space before the `:'. On the theory
159167 ## that the space means something, we add a space to the output as
160 ## well.
168 ## well. hp depmode also adds that space, but also prefixes the VPATH
169 ## to the object. Take care to not repeat it in the output.
161170 ## Some versions of the HPUX 10.20 sed can't process this invocation
162171 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
172 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
173 | sed -e 's/$/ :/' >> "$depfile"
164174 rm -f "$tmpdepfile"
165175 ;;
166176
404414 rm -f "$tmpdepfile"
405415 ;;
406416
417 msvc7)
418 if test "$libtool" = yes; then
419 showIncludes=-Wc,-showIncludes
420 else
421 showIncludes=-showIncludes
422 fi
423 "$@" $showIncludes > "$tmpdepfile"
424 stat=$?
425 grep -v '^Note: including file: ' "$tmpdepfile"
426 if test "$stat" = 0; then :
427 else
428 rm -f "$tmpdepfile"
429 exit $stat
430 fi
431 rm -f "$depfile"
432 echo "$object : \\" > "$depfile"
433 # The first sed program below extracts the file names and escapes
434 # backslashes for cygpath. The second sed program outputs the file
435 # name when reading, but also accumulates all include files in the
436 # hold buffer in order to output them again at the end. This only
437 # works with sed implementations that can handle large buffers.
438 sed < "$tmpdepfile" -n '
439 /^Note: including file: *\(.*\)/ {
440 s//\1/
441 s/\\/\\\\/g
442 p
443 }' | $cygpath_u | sort -u | sed -n '
444 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
446 s/.\(.*\) \\/\1:/
447 H
448 $ {
449 s/.*/ /
450 G
451 p
452 }' >> "$depfile"
453 rm -f "$tmpdepfile"
454 ;;
455
456 msvc7msys)
457 # This case exists only to let depend.m4 do its work. It works by
458 # looking at the text of this script. This case will never be run,
459 # since it is checked for above.
460 exit 1
461 ;;
462
407463 #nosideeffect)
408464 # This comment above is used by automake to tell side-effect
409465 # dependency tracking mechanisms from slower ones.
502558 touch "$tmpdepfile"
503559 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504560 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
561 # makedepend may prepend the VPATH from the source file name to the object.
562 # No need to regex-escape $object, excess matching of '.' is harmless.
563 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
506564 sed '1,2d' "$tmpdepfile" | tr ' ' '
507565 ' | \
508566 ## Some versions of the HPUX 10.20 sed can't process this invocation
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-01-19.21; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for `test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
+2790
-1542
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 Debian-2.2.6b-2ubuntu3
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 Debian-2.2.6b-2ubuntu3"
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=
50436134 for lib in $dlprefiles; do
50446135 # Ignore non-libtool-libs
50456136 dependency_libs=
6137 func_resolve_sysroot "$lib"
50466138 case $lib in
5047 *.la) func_source "$lib" ;;
6139 *.la) func_source "$func_resolve_sysroot_result" ;;
50486140 esac
50496141
50506142 # Collect preopened libtool deplibs, except any this library
50516143 # has declared as weak libs
50526144 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
6145 func_basename "$deplib"
6146 deplib_base=$func_basename_result
50546147 case " $weak_libs " in
50556148 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
6149 *) func_append deplibs " $deplib" ;;
50576150 esac
50586151 done
50596152 done
50696162 lib=
50706163 found=no
50716164 case $deplib in
5072 -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=*)
50736167 if test "$linkmode,$pass" = "prog,link"; then
50746168 compile_deplibs="$deplib $compile_deplibs"
50756169 finalize_deplibs="$deplib $finalize_deplibs"
50766170 else
5077 compiler_flags="$compiler_flags $deplib"
6171 func_append compiler_flags " $deplib"
50786172 if test "$linkmode" = lib ; then
50796173 case "$new_inherited_linker_flags " in
50806174 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6175 * ) func_append new_inherited_linker_flags " $deplib" ;;
50826176 esac
50836177 fi
50846178 fi
51636257 if test "$linkmode" = lib ; then
51646258 case "$new_inherited_linker_flags " in
51656259 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6260 * ) func_append new_inherited_linker_flags " $deplib" ;;
51676261 esac
51686262 fi
51696263 fi
51766270 test "$pass" = conv && continue
51776271 newdependency_libs="$deplib $newdependency_libs"
51786272 func_stripname '-L' '' "$deplib"
5179 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"
51806275 ;;
51816276 prog)
51826277 if test "$pass" = conv; then
51906285 finalize_deplibs="$deplib $finalize_deplibs"
51916286 fi
51926287 func_stripname '-L' '' "$deplib"
5193 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"
51946290 ;;
51956291 *)
51966292 func_warning "\`-L' is ignored for archives/objects"
52016297 -R*)
52026298 if test "$pass" = link; then
52036299 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
6300 func_resolve_sysroot "$func_stripname_result"
6301 dir=$func_resolve_sysroot_result
52056302 # Make sure the xrpath contains only unique directories.
52066303 case "$xrpath " in
52076304 *" $dir "*) ;;
5208 *) xrpath="$xrpath $dir" ;;
6305 *) func_append xrpath " $dir" ;;
52096306 esac
52106307 fi
52116308 deplibs="$deplib $deplibs"
52126309 continue
52136310 ;;
5214 *.la) lib="$deplib" ;;
6311 *.la)
6312 func_resolve_sysroot "$deplib"
6313 lib=$func_resolve_sysroot_result
6314 ;;
52156315 *.$libext)
52166316 if test "$pass" = conv; then
52176317 deplibs="$deplib $deplibs"
52296329 match_pattern*)
52306330 set dummy $deplibs_check_method; shift
52316331 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
6332 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
52336333 | $EGREP "$match_pattern_regex" > /dev/null; then
52346334 valid_a_lib=yes
52356335 fi
52396339 ;;
52406340 esac
52416341 if test "$valid_a_lib" != yes; then
5242 $ECHO
6342 echo
52436343 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
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."
52496349 else
5250 $ECHO
6350 echo
52516351 $ECHO "*** Warning: Linking the shared library $output against the"
52526352 $ECHO "*** static library $deplib is not portable!"
52536353 deplibs="$deplib $deplibs"
52746374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
52756375 # If there is no dlopen support or we're linking statically,
52766376 # we need to preload.
5277 newdlprefiles="$newdlprefiles $deplib"
6377 func_append newdlprefiles " $deplib"
52786378 compile_deplibs="$deplib $compile_deplibs"
52796379 finalize_deplibs="$deplib $finalize_deplibs"
52806380 else
5281 newdlfiles="$newdlfiles $deplib"
6381 func_append newdlfiles " $deplib"
52826382 fi
52836383 fi
52846384 continue
53206420
53216421 # Convert "-framework foo" to "foo.ltframework"
53226422 if test -n "$inherited_linker_flags"; then
5323 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'`
53246424 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
53256425 case " $new_inherited_linker_flags " in
53266426 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6427 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
53286428 esac
53296429 done
53306430 fi
5331 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'`
53326432 if test "$linkmode,$pass" = "lib,link" ||
53336433 test "$linkmode,$pass" = "prog,scan" ||
53346434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5335 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5336 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6435 test -n "$dlopen" && func_append dlfiles " $dlopen"
6436 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
53376437 fi
53386438
53396439 if test "$pass" = conv; then
53446444 func_fatal_error "cannot find name of link library for \`$lib'"
53456445 fi
53466446 # It is a libtool convenience library, so add in its objects.
5347 convenience="$convenience $ladir/$objdir/$old_library"
5348 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"
53496449 tmp_libs=
53506450 for deplib in $dependency_libs; do
53516451 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
6452 if $opt_preserve_dup_deps ; then
53536453 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
53556455 esac
53566456 fi
5357 tmp_libs="$tmp_libs $deplib"
6457 func_append tmp_libs " $deplib"
53586458 done
53596459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
53606460 func_fatal_error "\`$lib' is not a convenience library"
53656465
53666466 # Get the name of the library we link against.
53676467 linklib=
5368 for l in $old_library $library_names; do
5369 linklib="$l"
5370 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
53716477 if test -z "$linklib"; then
53726478 func_fatal_error "cannot find name of link library for \`$lib'"
53736479 fi
53846490 # statically, we need to preload. We also need to preload any
53856491 # dependent libraries so libltdl's deplib preloader doesn't
53866492 # bomb out in the load deplibs phase.
5387 dlprefiles="$dlprefiles $lib $dependency_libs"
6493 func_append dlprefiles " $lib $dependency_libs"
53886494 else
5389 newdlfiles="$newdlfiles $lib"
6495 func_append newdlfiles " $lib"
53906496 fi
53916497 continue
53926498 fi # $pass = dlopen
54086514
54096515 # Find the relevant object directory and library name.
54106516 if test "X$installed" = Xyes; then
5411 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
54126518 func_warning "library \`$lib' was moved."
54136519 dir="$ladir"
54146520 absdir="$abs_ladir"
54156521 libdir="$abs_ladir"
54166522 else
5417 dir="$libdir"
5418 absdir="$libdir"
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
54196525 fi
54206526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
54216527 else
54236529 dir="$ladir"
54246530 absdir="$abs_ladir"
54256531 # Remove this search path later
5426 notinst_path="$notinst_path $abs_ladir"
6532 func_append notinst_path " $abs_ladir"
54276533 else
54286534 dir="$ladir/$objdir"
54296535 absdir="$abs_ladir/$objdir"
54306536 # Remove this search path later
5431 notinst_path="$notinst_path $abs_ladir"
6537 func_append notinst_path " $abs_ladir"
54326538 fi
54336539 fi # $installed = yes
54346540 func_stripname 'lib' '.la' "$laname"
54396545 if test -z "$libdir" && test "$linkmode" = prog; then
54406546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
54416547 fi
5442 # Prefer using a static library (so that no silly _DYNAMIC symbols
5443 # are required to link).
5444 if test -n "$old_library"; then
5445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5450 # Otherwise, use the dlname, so that lt_dlopen finds it.
5451 elif test -n "$dlname"; then
5452 newdlprefiles="$newdlprefiles $dir/$dlname"
5453 else
5454 newdlprefiles="$newdlprefiles $dir/$linklib"
5455 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
54566588 fi # $pass = dlpreopen
54576589
54586590 if test -z "$libdir"; then
54706602
54716603
54726604 if test "$linkmode" = prog && test "$pass" != link; then
5473 newlib_search_path="$newlib_search_path $ladir"
6605 func_append newlib_search_path " $ladir"
54746606 deplibs="$lib $deplibs"
54756607
54766608 linkalldeplibs=no
54836615 for deplib in $dependency_libs; do
54846616 case $deplib in
54856617 -L*) func_stripname '-L' '' "$deplib"
5486 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"
54876620 ;;
54886621 esac
54896622 # Need to link against all dependency_libs?
54946627 # or/and link against static libraries
54956628 newdependency_libs="$deplib $newdependency_libs"
54966629 fi
5497 if $opt_duplicate_deps ; then
6630 if $opt_preserve_dup_deps ; then
54986631 case "$tmp_libs " in
5499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6632 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
55006633 esac
55016634 fi
5502 tmp_libs="$tmp_libs $deplib"
6635 func_append tmp_libs " $deplib"
55036636 done # for deplib
55046637 continue
55056638 fi # $linkmode = prog...
55146647 # Make sure the rpath contains only unique directories.
55156648 case "$temp_rpath:" in
55166649 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
6650 *) func_append temp_rpath "$absdir:" ;;
55186651 esac
55196652 fi
55206653
55266659 *)
55276660 case "$compile_rpath " in
55286661 *" $absdir "*) ;;
5529 *) compile_rpath="$compile_rpath $absdir"
6662 *) func_append compile_rpath " $absdir" ;;
55306663 esac
55316664 ;;
55326665 esac
55356668 *)
55366669 case "$finalize_rpath " in
55376670 *" $libdir "*) ;;
5538 *) finalize_rpath="$finalize_rpath $libdir"
6671 *) func_append finalize_rpath " $libdir" ;;
55396672 esac
55406673 ;;
55416674 esac
55606693 case $host in
55616694 *cygwin* | *mingw* | *cegcc*)
55626695 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
6696 func_append notinst_deplibs " $lib"
55646697 need_relink=no
55656698 ;;
55666699 *)
55676700 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
6701 func_append notinst_deplibs " $lib"
55696702 need_relink=yes
55706703 fi
55716704 ;;
55826715 fi
55836716 done
55846717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
6718 echo
55866719 if test "$linkmode" = prog; then
55876720 $ECHO "*** Warning: Linking the executable $output against the loadable module"
55886721 else
56006733 *)
56016734 case "$compile_rpath " in
56026735 *" $absdir "*) ;;
5603 *) compile_rpath="$compile_rpath $absdir"
6736 *) func_append compile_rpath " $absdir" ;;
56046737 esac
56056738 ;;
56066739 esac
56096742 *)
56106743 case "$finalize_rpath " in
56116744 *" $libdir "*) ;;
5612 *) finalize_rpath="$finalize_rpath $libdir"
6745 *) func_append finalize_rpath " $libdir" ;;
56136746 esac
56146747 ;;
56156748 esac
56636796 linklib=$newlib
56646797 fi # test -n "$old_archive_from_expsyms_cmds"
56656798
5666 if test "$linkmode" = prog || test "$mode" != relink; then
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
56676800 add_shlibpath=
56686801 add_dir=
56696802 add=
56856818 if test "X$dlopenmodule" != "X$lib"; then
56866819 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
56876820 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
6821 echo
6822 echo "*** And there doesn't seem to be a static archive available"
6823 echo "*** The link will probably fail, sorry"
56916824 else
56926825 add="$dir/$old_library"
56936826 fi
57146847 test "$hardcode_direct_absolute" = no; then
57156848 add="$dir/$linklib"
57166849 elif test "$hardcode_minus_L" = yes; then
5717 add_dir="-L$dir"
6850 add_dir="-L$absdir"
57186851 # Try looking first in the location we're being installed to.
57196852 if test -n "$inst_prefix_dir"; then
57206853 case $libdir in
57216854 [\\/]*)
5722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6855 func_append add_dir " -L$inst_prefix_dir$libdir"
57236856 ;;
57246857 esac
57256858 fi
57416874 if test -n "$add_shlibpath"; then
57426875 case :$compile_shlibpath: in
57436876 *":$add_shlibpath:"*) ;;
5744 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6877 *) func_append compile_shlibpath "$add_shlibpath:" ;;
57456878 esac
57466879 fi
57476880 if test "$linkmode" = prog; then
57556888 test "$hardcode_shlibpath_var" = yes; then
57566889 case :$finalize_shlibpath: in
57576890 *":$libdir:"*) ;;
5758 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6891 *) func_append finalize_shlibpath "$libdir:" ;;
57596892 esac
57606893 fi
57616894 fi
57626895 fi
57636896
5764 if test "$linkmode" = prog || test "$mode" = relink; then
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
57656898 add_shlibpath=
57666899 add_dir=
57676900 add=
57756908 elif test "$hardcode_shlibpath_var" = yes; then
57766909 case :$finalize_shlibpath: in
57776910 *":$libdir:"*) ;;
5778 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6911 *) func_append finalize_shlibpath "$libdir:" ;;
57796912 esac
57806913 add="-l$name"
57816914 elif test "$hardcode_automatic" = yes; then
57926925 if test -n "$inst_prefix_dir"; then
57936926 case $libdir in
57946927 [\\/]*)
5795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6928 func_append add_dir " -L$inst_prefix_dir$libdir"
57966929 ;;
57976930 esac
57986931 fi
58276960
58286961 # Just print a warning and add the library to dependency_libs so
58296962 # that the program can be linked against the static library.
5830 $ECHO
6963 echo
58316964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
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."
58356968 if test "$module" = yes; then
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
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."
58396972 if test -z "$global_symbol_pipe"; then
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
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."
58456978 fi
58466979 if test "$build_old_libs" = no; then
58476980 build_libtool_libs=module
58697002 temp_xrpath=$func_stripname_result
58707003 case " $xrpath " in
58717004 *" $temp_xrpath "*) ;;
5872 *) xrpath="$xrpath $temp_xrpath";;
7005 *) func_append xrpath " $temp_xrpath";;
58737006 esac;;
5874 *) temp_deplibs="$temp_deplibs $libdir";;
7007 *) func_append temp_deplibs " $libdir";;
58757008 esac
58767009 done
58777010 dependency_libs="$temp_deplibs"
58787011 fi
58797012
5880 newlib_search_path="$newlib_search_path $absdir"
7013 func_append newlib_search_path " $absdir"
58817014 # Link against this library
58827015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
58837016 # ... and its dependency_libs
58847017 tmp_libs=
58857018 for deplib in $dependency_libs; do
58867019 newdependency_libs="$deplib $newdependency_libs"
5887 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
58887026 case "$tmp_libs " in
5889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7027 *" $func_resolve_sysroot_result "*)
7028 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
58907029 esac
58917030 fi
5892 tmp_libs="$tmp_libs $deplib"
7031 func_append tmp_libs " $func_resolve_sysroot_result"
58937032 done
58947033
58957034 if test "$link_all_deplibs" != no; then
58997038 case $deplib in
59007039 -L*) path="$deplib" ;;
59017040 *.la)
7041 func_resolve_sysroot "$deplib"
7042 deplib=$func_resolve_sysroot_result
59027043 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
7044 dir=$func_dirname_result
59047045 # We need an absolute path.
59057046 case $dir in
59067047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
59277068 if test -z "$darwin_install_name"; then
59287069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
59297070 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
59327073 path=
59337074 fi
59347075 fi
59617102 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
59627103 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
59637104 else
5964 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'`
59657106 fi
59667107 fi
59677108 dependency_libs="$newdependency_libs"
59787119 for dir in $newlib_search_path; do
59797120 case "$lib_search_path " in
59807121 *" $dir "*) ;;
5981 *) lib_search_path="$lib_search_path $dir" ;;
7122 *) func_append lib_search_path " $dir" ;;
59827123 esac
59837124 done
59847125 newlib_search_path=
60367177 -L*)
60377178 case " $tmp_libs " in
60387179 *" $deplib "*) ;;
6039 *) tmp_libs="$tmp_libs $deplib" ;;
7180 *) func_append tmp_libs " $deplib" ;;
60407181 esac
60417182 ;;
6042 *) tmp_libs="$tmp_libs $deplib" ;;
7183 *) func_append tmp_libs " $deplib" ;;
60437184 esac
60447185 done
60457186 eval $var=\"$tmp_libs\"
60557196 ;;
60567197 esac
60577198 if test -n "$i" ; then
6058 tmp_libs="$tmp_libs $i"
7199 func_append tmp_libs " $i"
60597200 fi
60607201 done
60617202 dependency_libs=$tmp_libs
60967237 # Now set the variables for building old libraries.
60977238 build_libtool_libs=no
60987239 oldlibs="$output"
6099 objs="$objs$old_deplibs"
7240 func_append objs "$old_deplibs"
61007241 ;;
61017242
61027243 lib)
61297270 if test "$deplibs_check_method" != pass_all; then
61307271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
61317272 else
6132 $ECHO
7273 echo
61337274 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
61347275 $ECHO "*** objects $objs is not portable!"
6135 libobjs="$libobjs $objs"
7276 func_append libobjs " $objs"
61367277 fi
61377278 fi
61387279
61917332 # which has an extra 1 added just for fun
61927333 #
61937334 case $version_type in
7335 # correct linux to gnu/linux during the next big refactor
61947336 darwin|linux|osf|windows|none)
61957337 func_arith $number_major + $number_minor
61967338 current=$func_arith_result
61977339 age="$number_minor"
61987340 revision="$number_revision"
61997341 ;;
6200 freebsd-aout|freebsd-elf|sunos)
7342 freebsd-aout|freebsd-elf|qnx|sunos)
62017343 current="$number_major"
62027344 revision="$number_minor"
62037345 age="0"
63107452 versuffix="$major.$revision"
63117453 ;;
63127454
6313 linux)
7455 linux) # correct to gnu/linux during the next big refactor
63147456 func_arith $current - $age
63157457 major=.$func_arith_result
63167458 versuffix="$major.$age.$revision"
63337475 done
63347476
63357477 # Make executables depend on our current version.
6336 verstring="$verstring:${current}.0"
7478 func_append verstring ":${current}.0"
63377479 ;;
63387480
63397481 qnx)
64017543 fi
64027544
64037545 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
7546 func_append libobjs " $symfileobj"
64057547 test "X$libobjs" = "X " && libobjs=
64067548
6407 if test "$mode" != relink; then
7549 if test "$opt_mode" != relink; then
64087550 # Remove our outputs, but don't remove object files since they
64097551 # may have been created when compiling PIC objects.
64107552 removelist=
64207562 continue
64217563 fi
64227564 fi
6423 removelist="$removelist $p"
7565 func_append removelist " $p"
64247566 ;;
64257567 *) ;;
64267568 esac
64317573
64327574 # Now set the variables for building old libraries.
64337575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7576 func_append oldlibs " $output_objdir/$libname.$libext"
64357577
64367578 # Transform .lo files to .o files.
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
64387580 fi
64397581
64407582 # Eliminate all temporary directories.
64417583 #for path in $notinst_path; do
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
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"`
64457587 #done
64467588
64477589 if test -n "$xrpath"; then
64487590 # If the user specified any rpath flags, then add them.
64497591 temp_xrpath=
64507592 for libdir in $xrpath; do
6451 temp_xrpath="$temp_xrpath -R$libdir"
7593 func_replace_sysroot "$libdir"
7594 func_append temp_xrpath " -R$func_replace_sysroot_result"
64527595 case "$finalize_rpath " in
64537596 *" $libdir "*) ;;
6454 *) finalize_rpath="$finalize_rpath $libdir" ;;
7597 *) func_append finalize_rpath " $libdir" ;;
64557598 esac
64567599 done
64577600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
64657608 for lib in $old_dlfiles; do
64667609 case " $dlprefiles $dlfiles " in
64677610 *" $lib "*) ;;
6468 *) dlfiles="$dlfiles $lib" ;;
7611 *) func_append dlfiles " $lib" ;;
64697612 esac
64707613 done
64717614
64757618 for lib in $old_dlprefiles; do
64767619 case "$dlprefiles " in
64777620 *" $lib "*) ;;
6478 *) dlprefiles="$dlprefiles $lib" ;;
7621 *) func_append dlprefiles " $lib" ;;
64797622 esac
64807623 done
64817624
64827625 if test "$build_libtool_libs" = yes; then
64837626 if test -n "$rpath"; then
64847627 case $host in
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
7628 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
64867629 # these systems don't actually have a c library (as such)!
64877630 ;;
64887631 *-*-rhapsody* | *-*-darwin1.[012])
64897632 # Rhapsody C library is in the System framework
6490 deplibs="$deplibs System.ltframework"
7633 func_append deplibs " System.ltframework"
64917634 ;;
64927635 *-*-netbsd*)
64937636 # Don't link with libc until the a.out ld.so is fixed.
65047647 *)
65057648 # Add libc to deplibs on all other systems if necessary.
65067649 if test "$build_libtool_need_lc" = "yes"; then
6507 deplibs="$deplibs -lc"
7650 func_append deplibs " -lc"
65087651 fi
65097652 ;;
65107653 esac
65537696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65547697 case " $predeps $postdeps " in
65557698 *" $i "*)
6556 newdeplibs="$newdeplibs $i"
7699 func_append newdeplibs " $i"
65577700 i=""
65587701 ;;
65597702 esac
65647707 set dummy $deplib_matches; shift
65657708 deplib_match=$1
65667709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6567 newdeplibs="$newdeplibs $i"
7710 func_append newdeplibs " $i"
65687711 else
65697712 droppeddeps=yes
6570 $ECHO
7713 echo
65717714 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
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."
65777720 fi
65787721 fi
65797722 ;;
65807723 *)
6581 newdeplibs="$newdeplibs $i"
7724 func_append newdeplibs " $i"
65827725 ;;
65837726 esac
65847727 done
65967739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65977740 case " $predeps $postdeps " in
65987741 *" $i "*)
6599 newdeplibs="$newdeplibs $i"
7742 func_append newdeplibs " $i"
66007743 i=""
66017744 ;;
66027745 esac
66077750 set dummy $deplib_matches; shift
66087751 deplib_match=$1
66097752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6610 newdeplibs="$newdeplibs $i"
7753 func_append newdeplibs " $i"
66117754 else
66127755 droppeddeps=yes
6613 $ECHO
7756 echo
66147757 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
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."
66207763 fi
66217764 fi
66227765 else
66237766 droppeddeps=yes
6624 $ECHO
7767 echo
66257768 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
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."
66297772 fi
66307773 ;;
66317774 *)
6632 newdeplibs="$newdeplibs $i"
7775 func_append newdeplibs " $i"
66337776 ;;
66347777 esac
66357778 done
66467789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
66477790 case " $predeps $postdeps " in
66487791 *" $a_deplib "*)
6649 newdeplibs="$newdeplibs $a_deplib"
7792 func_append newdeplibs " $a_deplib"
66507793 a_deplib=""
66517794 ;;
66527795 esac
66537796 fi
66547797 if test -n "$a_deplib" ; then
66557798 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`
66567805 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6657 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
66587813 for potent_lib in $potential_libs; do
66597814 # Follow soft links.
66607815 if ls -lLd "$potent_lib" 2>/dev/null |
66717826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
66727827 case $potliblink in
66737828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
66757830 esac
66767831 done
66777832 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
66787833 $SED -e 10q |
66797834 $EGREP "$file_magic_regex" > /dev/null; then
6680 newdeplibs="$newdeplibs $a_deplib"
7835 func_append newdeplibs " $a_deplib"
66817836 a_deplib=""
66827837 break 2
66837838 fi
66867841 fi
66877842 if test -n "$a_deplib" ; then
66887843 droppeddeps=yes
6689 $ECHO
7844 echo
66907845 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
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"
66957850 if test -z "$potlib" ; then
66967851 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
66977852 else
67027857 ;;
67037858 *)
67047859 # Add a -L argument.
6705 newdeplibs="$newdeplibs $a_deplib"
7860 func_append newdeplibs " $a_deplib"
67067861 ;;
67077862 esac
67087863 done # Gone through all deplibs.
67187873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67197874 case " $predeps $postdeps " in
67207875 *" $a_deplib "*)
6721 newdeplibs="$newdeplibs $a_deplib"
7876 func_append newdeplibs " $a_deplib"
67227877 a_deplib=""
67237878 ;;
67247879 esac
67297884 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
67307885 for potent_lib in $potential_libs; do
67317886 potlib="$potent_lib" # see symlink-check above in file_magic test
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
7887 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
67337888 $EGREP "$match_pattern_regex" > /dev/null; then
6734 newdeplibs="$newdeplibs $a_deplib"
7889 func_append newdeplibs " $a_deplib"
67357890 a_deplib=""
67367891 break 2
67377892 fi
67407895 fi
67417896 if test -n "$a_deplib" ; then
67427897 droppeddeps=yes
6743 $ECHO
7898 echo
67447899 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
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"
67497904 if test -z "$potlib" ; then
67507905 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
67517906 else
67567911 ;;
67577912 *)
67587913 # Add a -L argument.
6759 newdeplibs="$newdeplibs $a_deplib"
7914 func_append newdeplibs " $a_deplib"
67607915 ;;
67617916 esac
67627917 done # Gone through all deplibs.
67637918 ;;
67647919 none | unknown | *)
67657920 newdeplibs=""
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
7921 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
67687922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67697923 for i in $predeps $postdeps ; do
67707924 # can't use Xsed below, because $i might contain '/'
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
67727926 done
67737927 fi
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
7928 case $tmp_deplibs in
7929 *[!\ \ ]*)
7930 echo
67777931 if test "X$deplibs_check_method" = "Xnone"; then
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
7932 echo "*** Warning: inter-library dependencies are not supported in this platform."
67797933 else
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
7934 echo "*** Warning: inter-library dependencies are not known to be supported."
67817935 fi
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
7936 echo "*** All declared inter-library dependencies are being dropped."
67837937 droppeddeps=yes
6784 fi
7938 ;;
7939 esac
67857940 ;;
67867941 esac
67877942 versuffix=$versuffix_save
67937948 case $host in
67947949 *-*-rhapsody* | *-*-darwin1.[012])
67957950 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7951 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
67977952 ;;
67987953 esac
67997954
68007955 if test "$droppeddeps" = yes; then
68017956 if test "$module" = yes; then
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
7957 echo
7958 echo "*** Warning: libtool could not satisfy all declared inter-library"
68047959 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
7960 echo "*** a static module, that should work as long as the dlopening"
7961 echo "*** application is linked with the -dlopen flag."
68077962 if test -z "$global_symbol_pipe"; then
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
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."
68137968 fi
68147969 if test "$build_old_libs" = no; then
68157970 oldlibs="$output_objdir/$libname.$libext"
68197974 build_libtool_libs=no
68207975 fi
68217976 else
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
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."
68257980
68267981 if test "$allow_undefined" = no; then
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
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."
68327987 if test "$build_old_libs" = no; then
68337988 oldlibs="$output_objdir/$libname.$libext"
68347989 build_libtool_libs=module
68458000 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
68468001 case $host in
68478002 *-*-darwin*)
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
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'`
68518006 ;;
68528007 esac
68538008
68608015 *)
68618016 case " $deplibs " in
68628017 *" -L$path/$objdir "*)
6863 new_libs="$new_libs -L$path/$objdir" ;;
8018 func_append new_libs " -L$path/$objdir" ;;
68648019 esac
68658020 ;;
68668021 esac
68708025 -L*)
68718026 case " $new_libs " in
68728027 *" $deplib "*) ;;
6873 *) new_libs="$new_libs $deplib" ;;
8028 *) func_append new_libs " $deplib" ;;
68748029 esac
68758030 ;;
6876 *) new_libs="$new_libs $deplib" ;;
8031 *) func_append new_libs " $deplib" ;;
68778032 esac
68788033 done
68798034 deplibs="$new_libs"
68858040
68868041 # Test again, we may have decided not to build it any more
68878042 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
68888048 if test "$hardcode_into_libs" = yes; then
68898049 # Hardcode the library paths
68908050 hardcode_libdirs=
68918051 dep_rpath=
68928052 rpath="$finalize_rpath"
6893 test "$mode" != relink && rpath="$compile_rpath$rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
68948054 for libdir in $rpath; do
68958055 if test -n "$hardcode_libdir_flag_spec"; then
68968056 if test -n "$hardcode_libdir_separator"; then
8057 func_replace_sysroot "$libdir"
8058 libdir=$func_replace_sysroot_result
68978059 if test -z "$hardcode_libdirs"; then
68988060 hardcode_libdirs="$libdir"
68998061 else
69028064 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
69038065 ;;
69048066 *)
6905 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8067 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
69068068 ;;
69078069 esac
69088070 fi
69098071 else
69108072 eval flag=\"$hardcode_libdir_flag_spec\"
6911 dep_rpath="$dep_rpath $flag"
8073 func_append dep_rpath " $flag"
69128074 fi
69138075 elif test -n "$runpath_var"; then
69148076 case "$perm_rpath " in
69158077 *" $libdir "*) ;;
6916 *) perm_rpath="$perm_rpath $libdir" ;;
8078 *) func_append perm_rpath " $libdir" ;;
69178079 esac
69188080 fi
69198081 done
69218083 if test -n "$hardcode_libdir_separator" &&
69228084 test -n "$hardcode_libdirs"; then
69238085 libdir="$hardcode_libdirs"
6924 if test -n "$hardcode_libdir_flag_spec_ld"; then
6925 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6926 else
6927 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6928 fi
8086 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
69298087 fi
69308088 if test -n "$runpath_var" && test -n "$perm_rpath"; then
69318089 # We should set the runpath_var.
69328090 rpath=
69338091 for dir in $perm_rpath; do
6934 rpath="$rpath$dir:"
8092 func_append rpath "$dir:"
69358093 done
69368094 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
69378095 fi
69398097 fi
69408098
69418099 shlibpath="$finalize_shlibpath"
6942 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
69438101 if test -n "$shlibpath"; then
69448102 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
69458103 fi
69658123 linknames=
69668124 for link
69678125 do
6968 linknames="$linknames $link"
8126 func_append linknames " $link"
69698127 done
69708128
69718129 # Use standard objects if they are pic
6972 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`
69738131 test "X$libobjs" = "X " && libobjs=
69748132
69758133 delfiles=
69768134 if test -n "$export_symbols" && test -n "$include_expsyms"; then
69778135 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
69788136 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
8137 func_append delfiles " $export_symbols"
69808138 fi
69818139
69828140 orig_export_symbols=
70078165 $opt_dry_run || $RM $export_symbols
70088166 cmds=$export_symbols_cmds
70098167 save_ifs="$IFS"; IFS='~'
7010 for cmd in $cmds; do
8168 for cmd1 in $cmds; do
70118169 IFS="$save_ifs"
7012 eval cmd=\"$cmd\"
7013 func_len " $cmd"
7014 len=$func_len_result
7015 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
70168187 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
70178207 skipped_export=false
70188208 else
70198209 # The command line is too long to execute in one step.
70358225 if test -n "$export_symbols" && test -n "$include_expsyms"; then
70368226 tmp_export_symbols="$export_symbols"
70378227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8228 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
70398229 fi
70408230
70418231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
70478237 # global variables. join(1) would be nice here, but unfortunately
70488238 # isn't a blessed tool.
70498239 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8240 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
70518241 export_symbols=$output_objdir/$libname.def
70528242 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
70538243 fi
70578247 case " $convenience " in
70588248 *" $test_deplib "*) ;;
70598249 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
8250 func_append tmp_deplibs " $test_deplib"
70618251 ;;
70628252 esac
70638253 done
70778267 test "X$libobjs" = "X " && libobjs=
70788268 else
70798269 gentop="$output_objdir/${outputname}x"
7080 generated="$generated $gentop"
8270 func_append generated " $gentop"
70818271
70828272 func_extract_archives $gentop $convenience
7083 libobjs="$libobjs $func_extract_archives_result"
8273 func_append libobjs " $func_extract_archives_result"
70848274 test "X$libobjs" = "X " && libobjs=
70858275 fi
70868276 fi
70878277
70888278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
70898279 eval flag=\"$thread_safe_flag_spec\"
7090 linker_flags="$linker_flags $flag"
8280 func_append linker_flags " $flag"
70918281 fi
70928282
70938283 # Make a backup of the uninstalled library when relinking
7094 if test "$mode" = relink; then
8284 if test "$opt_mode" = relink; then
70958285 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
70968286 fi
70978287
71368326 save_libobjs=$libobjs
71378327 fi
71388328 save_output=$output
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
8329 func_basename "$output"
8330 output_la=$func_basename_result
71408331
71418332 # Clear the reloadable object creation command queue and
71428333 # initialize k to one.
71498340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
71508341 output=${output_objdir}/${output_la}.lnkscript
71518342 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
8343 echo 'INPUT (' > $output
71538344 for obj in $save_libobjs
71548345 do
7155 $ECHO "$obj" >> $output
8346 func_to_tool_file "$obj"
8347 $ECHO "$func_to_tool_file_result" >> $output
71568348 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
8349 echo ')' >> $output
8350 func_append delfiles " $output"
8351 func_to_tool_file "$output"
8352 output=$func_to_tool_file_result
71598353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
71608354 output=${output_objdir}/${output_la}.lnk
71618355 func_verbose "creating linker input file list: $output"
71698363 fi
71708364 for obj
71718365 do
7172 $ECHO "$obj" >> $output
8366 func_to_tool_file "$obj"
8367 $ECHO "$func_to_tool_file_result" >> $output
71738368 done
7174 delfiles="$delfiles $output"
7175 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\"
71768372 else
71778373 if test -n "$save_libobjs"; then
71788374 func_verbose "creating reloadable object files..."
71968392 # command to the queue.
71978393 if test "$k" -eq 1 ; then
71988394 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
8395 reload_objs=$objlist
8396 eval concat_cmds=\"$reload_cmds\"
72008397 else
72018398 # All subsequent reloadable object files will link in
72028399 # the last one created.
7203 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\"
72048402 fi
72058403 last_robj=$output_objdir/$output_la-${k}.$objext
72068404 func_arith $k + 1
72078405 k=$func_arith_result
72088406 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
8407 objlist=" $obj"
72108408 func_len " $last_robj"
72118409 func_arith $len0 + $func_len_result
72128410 len=$func_arith_result
72168414 # reloadable object file. All subsequent reloadable object
72178415 # files will link in the last one created.
72188416 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
8417 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
72208419 if test -n "$last_robj"; then
72218420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
72228421 fi
7223 delfiles="$delfiles $output"
8422 func_append delfiles " $output"
72248423
72258424 else
72268425 output=
72548453 lt_exit=$?
72558454
72568455 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
8456 if test "$opt_mode" = relink; then
72588457 ( cd "$output_objdir" && \
72598458 $RM "${realname}T" && \
72608459 $MV "${realname}U" "$realname" )
72758474 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72768475 tmp_export_symbols="$export_symbols"
72778476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8477 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
72798478 fi
72808479
72818480 if test -n "$orig_export_symbols"; then
72878486 # global variables. join(1) would be nice here, but unfortunately
72888487 # isn't a blessed tool.
72898488 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8489 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
72918490 export_symbols=$output_objdir/$libname.def
72928491 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
72938492 fi
73288527 # Add any objects from preloaded convenience libraries
73298528 if test -n "$dlprefiles"; then
73308529 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
8530 func_append generated " $gentop"
73328531
73338532 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
8533 func_append libobjs " $func_extract_archives_result"
73358534 test "X$libobjs" = "X " && libobjs=
73368535 fi
73378536
73478546 lt_exit=$?
73488547
73498548 # Restore the uninstalled library and exit
7350 if test "$mode" = relink; then
8549 if test "$opt_mode" = relink; then
73518550 ( cd "$output_objdir" && \
73528551 $RM "${realname}T" && \
73538552 $MV "${realname}U" "$realname" )
73598558 IFS="$save_ifs"
73608559
73618560 # Restore the uninstalled library and exit
7362 if test "$mode" = relink; then
8561 if test "$opt_mode" = relink; then
73638562 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
73648563
73658564 if test -n "$convenience"; then
74408639 if test -n "$convenience"; then
74418640 if test -n "$whole_archive_flag_spec"; then
74428641 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
74448643 else
74458644 gentop="$output_objdir/${obj}x"
7446 generated="$generated $gentop"
8645 func_append generated " $gentop"
74478646
74488647 func_extract_archives $gentop $convenience
74498648 reload_conv_objs="$reload_objs $func_extract_archives_result"
74508649 fi
74518650 fi
74528651
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
74538655 # Create the old-style object.
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
74558657
74568658 output="$obj"
74578659 func_execute_cmds "$reload_cmds" 'exit $?'
75118713 case $host in
75128714 *-*-rhapsody* | *-*-darwin1.[012])
75138715 # On Rhapsody replace the C library is the System framework
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
8716 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
75168718 ;;
75178719 esac
75188720
75238725 if test "$tagname" = CXX ; then
75248726 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
75258727 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 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"
75288730 ;;
75298731 esac
75308732 fi
75318733 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8734 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8735 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
75348736 ;;
75358737 esac
75368738
75448746 *)
75458747 case " $compile_deplibs " in
75468748 *" -L$path/$objdir "*)
7547 new_libs="$new_libs -L$path/$objdir" ;;
8749 func_append new_libs " -L$path/$objdir" ;;
75488750 esac
75498751 ;;
75508752 esac
75548756 -L*)
75558757 case " $new_libs " in
75568758 *" $deplib "*) ;;
7557 *) new_libs="$new_libs $deplib" ;;
8759 *) func_append new_libs " $deplib" ;;
75588760 esac
75598761 ;;
7560 *) new_libs="$new_libs $deplib" ;;
8762 *) func_append new_libs " $deplib" ;;
75618763 esac
75628764 done
75638765 compile_deplibs="$new_libs"
75648766
75658767
7566 compile_command="$compile_command $compile_deplibs"
7567 finalize_command="$finalize_command $finalize_deplibs"
8768 func_append compile_command " $compile_deplibs"
8769 func_append finalize_command " $finalize_deplibs"
75688770
75698771 if test -n "$rpath$xrpath"; then
75708772 # If the user specified any rpath flags, then add them.
75728774 # This is the magic to use -rpath.
75738775 case "$finalize_rpath " in
75748776 *" $libdir "*) ;;
7575 *) finalize_rpath="$finalize_rpath $libdir" ;;
8777 *) func_append finalize_rpath " $libdir" ;;
75768778 esac
75778779 done
75788780 fi
75918793 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
75928794 ;;
75938795 *)
7594 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8796 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
75958797 ;;
75968798 esac
75978799 fi
75988800 else
75998801 eval flag=\"$hardcode_libdir_flag_spec\"
7600 rpath="$rpath $flag"
8802 func_append rpath " $flag"
76018803 fi
76028804 elif test -n "$runpath_var"; then
76038805 case "$perm_rpath " in
76048806 *" $libdir "*) ;;
7605 *) perm_rpath="$perm_rpath $libdir" ;;
8807 *) func_append perm_rpath " $libdir" ;;
76068808 esac
76078809 fi
76088810 case $host in
76118813 case :$dllsearchpath: in
76128814 *":$libdir:"*) ;;
76138815 ::) dllsearchpath=$libdir;;
7614 *) dllsearchpath="$dllsearchpath:$libdir";;
8816 *) func_append dllsearchpath ":$libdir";;
76158817 esac
76168818 case :$dllsearchpath: in
76178819 *":$testbindir:"*) ;;
76188820 ::) dllsearchpath=$testbindir;;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
8821 *) func_append dllsearchpath ":$testbindir";;
76208822 esac
76218823 ;;
76228824 esac
76428844 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
76438845 ;;
76448846 *)
7645 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8847 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
76468848 ;;
76478849 esac
76488850 fi
76498851 else
76508852 eval flag=\"$hardcode_libdir_flag_spec\"
7651 rpath="$rpath $flag"
8853 func_append rpath " $flag"
76528854 fi
76538855 elif test -n "$runpath_var"; then
76548856 case "$finalize_perm_rpath " in
76558857 *" $libdir "*) ;;
7656 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8858 *) func_append finalize_perm_rpath " $libdir" ;;
76578859 esac
76588860 fi
76598861 done
76678869
76688870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
76698871 # Transform all the library objects into standard objects.
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 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`
76728874 fi
76738875
76748876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
76808882
76818883 wrappers_required=yes
76828884 case $host in
8885 *cegcc* | *mingw32ce*)
8886 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
8888 ;;
76838889 *cygwin* | *mingw* )
76848890 if test "$build_libtool_libs" != yes; then
76858891 wrappers_required=no
76868892 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
76918893 ;;
76928894 *)
76938895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
76978899 esac
76988900 if test "$wrappers_required" = no; then
76998901 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8902 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77018903 link_command="$compile_command$compile_rpath"
77028904
77038905 # We have no uninstalled library dependencies, so finalize right now.
77048906 exit_status=0
77058907 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
77068914
77078915 # Delete the generated files.
77088916 if test -f "$output_objdir/${outputname}S.${objext}"; then
77268934 # We should set the runpath_var.
77278935 rpath=
77288936 for dir in $perm_rpath; do
7729 rpath="$rpath$dir:"
8937 func_append rpath "$dir:"
77308938 done
77318939 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
77328940 fi
77348942 # We should set the runpath_var.
77358943 rpath=
77368944 for dir in $finalize_perm_rpath; do
7737 rpath="$rpath$dir:"
8945 func_append rpath "$dir:"
77388946 done
77398947 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
77408948 fi
77448952 # We don't need to create a wrapper script.
77458953 link_command="$compile_var$compile_command$compile_rpath"
77468954 # Replace the output file specification.
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8955 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77488956 # Delete the old output file.
77498957 $opt_dry_run || $RM $output
77508958 # Link the executable and exit
77518959 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
77528967 exit $EXIT_SUCCESS
77538968 fi
77548969
77638978 if test "$fast_install" != no; then
77648979 link_command="$finalize_var$compile_command$finalize_rpath"
77658980 if test "$fast_install" = yes; then
7766 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'`
77678982 else
77688983 # fast_install is set to needless
77698984 relink_command=
77758990 fi
77768991
77778992 # Replace the output file specification.
7778 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'`
77798994
77808995 # Delete the old output files.
77818996 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
77828997
77838998 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
77849005
77859006 # Now create the wrapper script.
77869007 func_verbose "creating $output"
77999020 fi
78009021 done
78019022 relink_command="(cd `pwd`; $relink_command)"
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7803 fi
7804
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7807 case $progpath in
7808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7810 esac
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7812 else
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
9023 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
78149024 fi
78159025
78169026 # Only actually do things if not in dry run mode.
78909100 else
78919101 oldobjs="$old_deplibs $non_pic_objects"
78929102 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
9103 func_append oldobjs " $symfileobj"
78949104 fi
78959105 fi
78969106 addlibs="$old_convenience"
78989108
78999109 if test -n "$addlibs"; then
79009110 gentop="$output_objdir/${outputname}x"
7901 generated="$generated $gentop"
9111 func_append generated " $gentop"
79029112
79039113 func_extract_archives $gentop $addlibs
7904 oldobjs="$oldobjs $func_extract_archives_result"
9114 func_append oldobjs " $func_extract_archives_result"
79059115 fi
79069116
79079117 # Do each command in the archive commands.
79129122 # Add any objects from preloaded convenience libraries
79139123 if test -n "$dlprefiles"; then
79149124 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
9125 func_append generated " $gentop"
79169126
79179127 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
9128 func_append oldobjs " $func_extract_archives_result"
79199129 fi
79209130
79219131 # POSIX demands no paths to be encoded in archives. We have
79319141 done | sort | sort -uc >/dev/null 2>&1); then
79329142 :
79339143 else
7934 $ECHO "copying selected object files to avoid basename conflicts..."
9144 echo "copying selected object files to avoid basename conflicts..."
79359145 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
9146 func_append generated " $gentop"
79379147 func_mkdir_p "$gentop"
79389148 save_oldobjs=$oldobjs
79399149 oldobjs=
79579167 esac
79589168 done
79599169 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
9170 func_append oldobjs " $gentop/$newobj"
79619171 ;;
7962 *) oldobjs="$oldobjs $obj" ;;
9172 *) func_append oldobjs " $obj" ;;
79639173 esac
79649174 done
79659175 fi
9176 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9177 tool_oldlib=$func_to_tool_file_result
79669178 eval cmds=\"$old_archive_cmds\"
79679179
79689180 func_len " $cmds"
79699181 len=$func_len_result
79709182 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"
79719193 cmds=$old_archive_cmds
79729194 else
79739195 # the command line is too long to link in one step, link in parts
80429264 done
80439265 # Quote the link command for shipping.
80449266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9267 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
80469268 if test "$hardcode_automatic" = yes ; then
80479269 relink_command=
80489270 fi
80629284 *.la)
80639285 func_basename "$deplib"
80649286 name="$func_basename_result"
8065 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`
80669289 test -z "$libdir" && \
80679290 func_fatal_error "\`$deplib' is not a valid libtool archive"
8068 newdependency_libs="$newdependency_libs $libdir/$name"
9291 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
80699292 ;;
8070 *) 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" ;;
80719304 esac
80729305 done
80739306 dependency_libs="$newdependency_libs"
80819314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
80829315 test -z "$libdir" && \
80839316 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
9317 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
80859318 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
9319 *) func_append newdlfiles " $lib" ;;
80879320 esac
80889321 done
80899322 dlfiles="$newdlfiles"
81009333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
81019334 test -z "$libdir" && \
81029335 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
9336 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
81049337 ;;
81059338 esac
81069339 done
81129345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81139346 *) abs=`pwd`"/$lib" ;;
81149347 esac
8115 newdlfiles="$newdlfiles $abs"
9348 func_append newdlfiles " $abs"
81169349 done
81179350 dlfiles="$newdlfiles"
81189351 newdlprefiles=
81219354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81229355 *) abs=`pwd`"/$lib" ;;
81239356 esac
8124 newdlprefiles="$newdlprefiles $abs"
9357 func_append newdlprefiles " $abs"
81259358 done
81269359 dlprefiles="$newdlprefiles"
81279360 fi
81289361 $RM $output
81299362 # 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.
81309371 tdlname=$dlname
81319372 case $host,$output,$installed,$module,$dlname in
8132 *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 ;;
81339384 esac
81349385 $ECHO > $output "\
81359386 # $outputname - a libtool library file
81889439 exit $EXIT_SUCCESS
81899440 }
81909441
8191 { test "$mode" = link || test "$mode" = relink; } &&
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
81929443 func_mode_link ${1+"$@"}
81939444
81949445
82089459 for arg
82099460 do
82109461 case $arg in
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
8213 *) files="$files $arg" ;;
9462 -f) func_append RM " $arg"; rmforce=yes ;;
9463 -*) func_append RM " $arg" ;;
9464 *) func_append files " $arg" ;;
82149465 esac
82159466 done
82169467
82199470
82209471 rmdirs=
82219472
8222 origobjdir="$objdir"
82239473 for file in $files; do
82249474 func_dirname "$file" "" "."
82259475 dir="$func_dirname_result"
82269476 if test "X$dir" = X.; then
8227 objdir="$origobjdir"
9477 odir="$objdir"
82289478 else
8229 objdir="$dir/$origobjdir"
9479 odir="$dir/$objdir"
82309480 fi
82319481 func_basename "$file"
82329482 name="$func_basename_result"
8233 test "$mode" = uninstall && objdir="$dir"
8234
8235 # Remember objdir for removal later, being careful to avoid duplicates
8236 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
82379487 case " $rmdirs " in
8238 *" $objdir "*) ;;
8239 *) rmdirs="$rmdirs $objdir" ;;
9488 *" $odir "*) ;;
9489 *) func_append rmdirs " $odir" ;;
82409490 esac
82419491 fi
82429492
82629512
82639513 # Delete the libtool libraries and symlinks.
82649514 for n in $library_names; do
8265 rmfiles="$rmfiles $objdir/$n"
9515 func_append rmfiles " $odir/$n"
82669516 done
8267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8268
8269 case "$mode" in
9517 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518
9519 case "$opt_mode" in
82709520 clean)
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
9521 case " $library_names " in
82739522 *" $dlname "*) ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9523 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
82759524 esac
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9525 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
82779526 ;;
82789527 uninstall)
82799528 if test -n "$library_names"; then
83019550 # Add PIC object to the list of files to remove.
83029551 if test -n "$pic_object" &&
83039552 test "$pic_object" != none; then
8304 rmfiles="$rmfiles $dir/$pic_object"
9553 func_append rmfiles " $dir/$pic_object"
83059554 fi
83069555
83079556 # Add non-PIC object to the list of files to remove.
83089557 if test -n "$non_pic_object" &&
83099558 test "$non_pic_object" != none; then
8310 rmfiles="$rmfiles $dir/$non_pic_object"
9559 func_append rmfiles " $dir/$non_pic_object"
83119560 fi
83129561 fi
83139562 ;;
83149563
83159564 *)
8316 if test "$mode" = clean ; then
9565 if test "$opt_mode" = clean ; then
83179566 noexename=$name
83189567 case $file in
83199568 *.exe)
83239572 noexename=$func_stripname_result
83249573 # $file with .exe has already been added to rmfiles,
83259574 # add $file without .exe
8326 rmfiles="$rmfiles $file"
9575 func_append rmfiles " $file"
83279576 ;;
83289577 esac
83299578 # Do a test to see if this is a libtool program.
83329581 func_ltwrapper_scriptname "$file"
83339582 relink_command=
83349583 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9584 func_append rmfiles " $func_ltwrapper_scriptname_result"
83369585 else
83379586 relink_command=
83389587 func_source $dir/$noexename
83409589
83419590 # note $name still contains .exe if it was in $file originally
83429591 # as does the version of $file that was added into $rmfiles
8343 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
83449593 if test "$fast_install" = yes && test -n "$relink_command"; then
8345 rmfiles="$rmfiles $objdir/lt-$name"
9594 func_append rmfiles " $odir/lt-$name"
83469595 fi
83479596 if test "X$noexename" != "X$name" ; then
8348 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9597 func_append rmfiles " $odir/lt-${noexename}.c"
83499598 fi
83509599 fi
83519600 fi
83539602 esac
83549603 func_show_eval "$RM $rmfiles" 'exit_status=1'
83559604 done
8356 objdir="$origobjdir"
83579605
83589606 # Try to remove the ${objdir}s in the directories where we deleted files
83599607 for dir in $rmdirs; do
83659613 exit $exit_status
83669614 }
83679615
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
83699617 func_mode_uninstall ${1+"$@"}
83709618
8371 test -z "$mode" && {
9619 test -z "$opt_mode" && {
83729620 help="$generic_help"
83739621 func_fatal_help "you must specify a MODE"
83749622 }
83759623
83769624 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
83789626
83799627 if test -n "$exec_cmd"; then
83809628 eval exec "$exec_cmd"
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008 Free Software Foundation, Inc.
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
45 # Written by Gordon Matzigkeit, 1996
56 #
67 # This file is free software; the Free Software Foundation gives
910
1011 m4_define([_LT_COPYING], [dnl
1112 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12 # 2006, 2007, 2008 Free Software Foundation, Inc.
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
1315 # Written by Gordon Matzigkeit, 1996
1416 #
1517 # This file is part of GNU Libtool.
3638 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3739 ])
3840
39 # serial 56 LT_INIT
41 # serial 57 LT_INIT
4042
4143
4244 # LT_PREREQ(VERSION)
6567 # ------------------
6668 AC_DEFUN([LT_INIT],
6769 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
6871 AC_BEFORE([$0], [LT_LANG])dnl
6972 AC_BEFORE([$0], [LT_OUTPUT])dnl
7073 AC_BEFORE([$0], [LTDL_INIT])dnl
8083 AC_REQUIRE([LTVERSION_VERSION])dnl
8184 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
8285 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
8388
8489 dnl Parse OPTIONS
8590 _LT_SET_OPTIONS([$0], [$1])
117122 *) break;;
118123 esac
119124 done
120 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
121126 ])
122127
123128
137142 m4_defun([_LT_SETUP],
138143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
139144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
140150 _LT_DECL([], [host_alias], [0], [The host system])dnl
141151 _LT_DECL([], [host], [0])dnl
142152 _LT_DECL([], [host_os], [0])dnl
159169 dnl
160170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
161171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
162173 m4_require([_LT_CMD_RELOAD])dnl
163174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
164176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
165177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
166179
167180 _LT_CONFIG_LIBTOOL_INIT([
168181 # See if we are running on zsh, and set the options which allow our
178191 _LT_CHECK_OBJDIR
179192
180193 m4_require([_LT_TAG_COMPILER])dnl
181 _LT_PROG_ECHO_BACKSLASH
182194
183195 case $host_os in
184196 aix3*)
192204 ;;
193205 esac
194206
195 # Sed substitution that helps us do robust quoting. It backslashifies
196 # metacharacters that are still active within double-quoted strings.
197 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
198
199 # Same as above, but do not quote variable references.
200 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
201
202 # Sed substitution to delay expansion of an escaped shell variable in a
203 # double_quote_subst'ed string.
204 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
205
206 # Sed substitution to delay expansion of an escaped single quote.
207 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
208
209 # Sed substitution to avoid accidental globbing in evaled expressions
210 no_glob_subst='s/\*/\\\*/g'
211
212207 # Global variables:
213208 ofile=libtool
214209 can_build_shared=yes
248243 _LT_CONFIG_COMMANDS
249244 ])# _LT_SETUP
250245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
251268
252269 # _LT_PROG_LTMAIN
253270 # ---------------
407424 # declaration there will have the same value as in `configure'. VARNAME
408425 # must have a single quote delimited value for this to work.
409426 m4_define([_LT_CONFIG_STATUS_DECLARE],
410 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
411428
412429
413430 # _LT_CONFIG_STATUS_DECLARATIONS
417434 # embedded single quotes properly. In configure, this macro expands
418435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
419436 #
420 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
421438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
422439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
423440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
516533 LTCFLAGS='$LTCFLAGS'
517534 compiler='$compiler_DEFAULT'
518535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
519544 # Quote evaled strings.
520545 for var in lt_decl_all_varnames([[ \
521546 ]], lt_decl_quote_varnames); do
522 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
523548 *[[\\\\\\\`\\"\\\$]]*)
524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
525550 ;;
526551 *)
527552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
532557 # Double-quote double-evaled strings.
533558 for var in lt_decl_all_varnames([[ \
534559 ]], lt_decl_dquote_varnames); do
535 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
536561 *[[\\\\\\\`\\"\\\$]]*)
537 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
538563 ;;
539564 *)
540565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
542567 esac
543568 done
544569
545 # Fix-up fallback echo if it was mangled by the above quoting rules.
546 case \$lt_ECHO in
547 *'\\\[$]0 --fallback-echo"')dnl "
548 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
549 ;;
550 esac
551
552570 _LT_OUTPUT_LIBTOOL_INIT
553571 ])
554572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
555602
556603 # LT_OUTPUT
557604 # ---------
561608 AC_DEFUN([LT_OUTPUT],
562609 [: ${CONFIG_LT=./config.lt}
563610 AC_MSG_NOTICE([creating $CONFIG_LT])
564 cat >"$CONFIG_LT" <<_LTEOF
565 #! $SHELL
566 # Generated by $as_me.
567 # Run this file to recreate a libtool stub with the current configuration.
568
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
569615 lt_cl_silent=false
570 SHELL=\${CONFIG_SHELL-$SHELL}
571 _LTEOF
572
573 cat >>"$CONFIG_LT" <<\_LTEOF
574 AS_SHELL_SANITIZE
575 _AS_PREPARE
576
577 exec AS_MESSAGE_FD>&1
578616 exec AS_MESSAGE_LOG_FD>>config.log
579617 {
580618 echo
600638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
601639 configured by $[0], generated by m4_PACKAGE_STRING.
602640
603 Copyright (C) 2008 Free Software Foundation, Inc.
641 Copyright (C) 2011 Free Software Foundation, Inc.
604642 This config.lt script is free software; the Free Software Foundation
605643 gives unlimited permision to copy, distribute and modify it."
606644
645683 # appending to config.log, which fails on DOS, as config.log is still kept
646684 # open by configure. Here we exec the FD to /dev/null, effectively closing
647685 # config.log, so it can be properly (re)opened and appended to by config.lt.
648 if test "$no_create" != yes; then
649 lt_cl_success=:
650 test "$silent" = yes &&
651 lt_config_lt_args="$lt_config_lt_args --quiet"
652 exec AS_MESSAGE_LOG_FD>/dev/null
653 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
654 exec AS_MESSAGE_LOG_FD>>config.log
655 $lt_cl_success || AS_EXIT(1)
656 fi
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
657693 ])# LT_OUTPUT
658694
659695
716752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
717753 # text mode, it properly converts lines to CR/LF. This bash problem
718754 # is reportedly fixed, but why not run on old versions too?
719 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
720 || (rm -f "$cfgfile"; exit 1)
721
722 _LT_PROG_XSI_SHELLFNS
723
724 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
725 || (rm -f "$cfgfile"; exit 1)
726
727 mv -f "$cfgfile" "$ofile" ||
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
728761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
729762 chmod +x "$ofile"
730763 ],
769802 m4_case([$1],
770803 [C], [_LT_LANG(C)],
771804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
772806 [Java], [_LT_LANG(GCJ)],
773807 [Fortran 77], [_LT_LANG(F77)],
774808 [Fortran], [_LT_LANG(FC)],
788822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
789823 _LT_LANG_$1_CONFIG($1)])dnl
790824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
791850
792851
793852 # _LT_LANG_DEFAULT_CONFIG
820879 m4_ifdef([LT_PROG_GCJ],
821880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
822881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
823886 AC_PROVIDE_IFELSE([LT_PROG_RC],
824887 [LT_LANG(RC)],
825888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
830893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
831894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
832895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
833897 dnl aclocal-1.4 backwards compatibility:
834898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
835899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
836900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
837901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
838903
839904
840905 # _LT_TAG_COMPILER
920985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
921986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
922987 _lt_result=$?
923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
924995 lt_cv_apple_cc_single_mod=yes
925996 else
926997 cat conftest.err >&AS_MESSAGE_LOG_FD
928999 rm -rf libconftest.dylib*
9291000 rm -f conftest.*
9301001 fi])
1002
9311003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9321004 [lt_cv_ld_exported_symbols_list],
9331005 [lt_cv_ld_exported_symbols_list=no
9381010 [lt_cv_ld_exported_symbols_list=yes],
9391011 [lt_cv_ld_exported_symbols_list=no])
9401012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
9411041 ])
9421042 case $host_os in
9431043 rhapsody* | darwin1.[[012]])
9661066 else
9671067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9681068 fi
969 if test "$DSYMUTIL" != ":"; then
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9701070 _lt_dsymutil='~$DSYMUTIL $lib || :'
9711071 else
9721072 _lt_dsymutil=
9761076 ])
9771077
9781078
979 # _LT_DARWIN_LINKER_FEATURES
980 # --------------------------
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
9811081 # Checks for linker and compiler features on darwin
9821082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
9831083 [
9861086 _LT_TAGVAR(hardcode_direct, $1)=no
9871087 _LT_TAGVAR(hardcode_automatic, $1)=yes
9881088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
989 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _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\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
9901096 _LT_TAGVAR(link_all_deplibs, $1)=yes
9911097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
9921098 case $cc_basename in
9941100 *) _lt_dar_can_shared=$GCC ;;
9951101 esac
9961102 if test "$_lt_dar_can_shared" = "yes"; then
997 output_verbose_link_cmd=echo
1103 output_verbose_link_cmd=func_echo_all
9981104 _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}"
9991105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10001106 _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}"
10101116 fi
10111117 ])
10121118
1013 # _LT_SYS_MODULE_PATH_AIX
1014 # -----------------------
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
10151121 # Links a minimal program and checks the executable
10161122 # for the system default hardcoded library path. In most cases,
10171123 # this is /usr/lib:/lib, but when the MPI compilers are used
10181124 # the location of the communication and MPI libs are included too.
10191125 # If we don't find anything, use the default library path according
10201126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
10211129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10221130 [m4_require([_LT_DECL_SED])dnl
1023 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024 lt_aix_libpath_sed='
1025 /Import File Strings/,/^$/ {
1026 /^0/ {
1027 s/^0 *\(.*\)$/\1/
1028 p
1029 }
1030 }'
1031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1032 # Check for a 64-bit object if we didn't find anything.
1033 if test -z "$aix_libpath"; then
1034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 fi],[])
1036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
10371154 ])# _LT_SYS_MODULE_PATH_AIX
10381155
10391156
10401157 # _LT_SHELL_INIT(ARG)
10411158 # -------------------
10421159 m4_define([_LT_SHELL_INIT],
1043 [ifdef([AC_DIVERSION_NOTICE],
1044 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1045 [AC_DIVERT_PUSH(NOTICE)])
1046 $1
1047 AC_DIVERT_POP
1048 ])# _LT_SHELL_INIT
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
10491163
10501164
10511165 # _LT_PROG_ECHO_BACKSLASH
10521166 # -----------------------
1053 # Add some code to the start of the generated configure script which
1054 # will find an echo command which doesn't interpret backslashes.
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
10551171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1056 [_LT_SHELL_INIT([
1057 # Check that we are running under the correct shell.
1058 SHELL=${CONFIG_SHELL-/bin/sh}
1059
1060 case X$lt_ECHO in
1061 X*--fallback-echo)
1062 # Remove one level of quotation (which was required for Make).
1063 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1064 ;;
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
10651205 esac
10661206
1067 ECHO=${lt_ECHO-echo}
1068 if test "X[$]1" = X--no-reexec; then
1069 # Discard the --no-reexec flag, and continue.
1070 shift
1071 elif test "X[$]1" = X--fallback-echo; then
1072 # Avoid inline document here, it may be left over
1073 :
1074 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1075 # Yippee, $ECHO works!
1076 :
1077 else
1078 # Restart under the correct shell.
1079 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1080 fi
1081
1082 if test "X[$]1" = X--fallback-echo; then
1083 # used as fallback echo
1084 shift
1085 cat <<_LT_EOF
1086 [$]*
1087 _LT_EOF
1088 exit 0
1089 fi
1090
1091 # The HP-UX ksh and POSIX shell print the target directory to stdout
1092 # if CDPATH is set.
1093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1094
1095 if test -z "$lt_ECHO"; then
1096 if test "X${echo_test_string+set}" != Xset; then
1097 # find a string as large as possible, as long as the shell can cope with it
1098 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1099 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1100 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1101 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1102 then
1103 break
1104 fi
1105 done
1106 fi
1107
1108 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1109 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1110 test "X$echo_testing_string" = "X$echo_test_string"; then
1111 :
1112 else
1113 # The Solaris, AIX, and Digital Unix default echo programs unquote
1114 # backslashes. This makes it impossible to quote backslashes using
1115 # echo "$something" | sed 's/\\/\\\\/g'
1116 #
1117 # So, first we look for a working echo in the user's PATH.
1118
1119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1120 for dir in $PATH /usr/ucb; do
1121 IFS="$lt_save_ifs"
1122 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1123 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 ECHO="$dir/echo"
1127 break
1128 fi
1129 done
1130 IFS="$lt_save_ifs"
1131
1132 if test "X$ECHO" = Xecho; then
1133 # We didn't find a better echo, so look for alternatives.
1134 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1135 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1136 test "X$echo_testing_string" = "X$echo_test_string"; then
1137 # This shell has a builtin print -r that does the trick.
1138 ECHO='print -r'
1139 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1140 test "X$CONFIG_SHELL" != X/bin/ksh; then
1141 # If we have ksh, try running configure again with it.
1142 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1143 export ORIGINAL_CONFIG_SHELL
1144 CONFIG_SHELL=/bin/ksh
1145 export CONFIG_SHELL
1146 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1147 else
1148 # Try using printf.
1149 ECHO='printf %s\n'
1150 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1151 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1152 test "X$echo_testing_string" = "X$echo_test_string"; then
1153 # Cool, printf works
1154 :
1155 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1156 test "X$echo_testing_string" = 'X\t' &&
1157 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1158 test "X$echo_testing_string" = "X$echo_test_string"; then
1159 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1160 export CONFIG_SHELL
1161 SHELL="$CONFIG_SHELL"
1162 export SHELL
1163 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1164 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1165 test "X$echo_testing_string" = 'X\t' &&
1166 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1169 else
1170 # maybe with a smaller string...
1171 prev=:
1172
1173 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1174 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1175 then
1176 break
1177 fi
1178 prev="$cmd"
1179 done
1180
1181 if test "$prev" != 'sed 50q "[$]0"'; then
1182 echo_test_string=`eval $prev`
1183 export echo_test_string
1184 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1185 else
1186 # Oops. We lost completely, so just stick with echo.
1187 ECHO=echo
1188 fi
1189 fi
1190 fi
1191 fi
1192 fi
1193 fi
1194
1195 # Copy echo and quote the copy suitably for passing to libtool from
1196 # the Makefile, instead of quoting the original, which is used later.
1197 lt_ECHO=$ECHO
1198 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1199 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1200 fi
1201
1202 AC_SUBST(lt_ECHO)
1203 ])
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
12041217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1205 _LT_DECL([], [ECHO], [1],
1206 [An echo program that does not interpret backslashes])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
12071219 ])# _LT_PROG_ECHO_BACKSLASH
12081220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
12091254
12101255 # _LT_ENABLE_LOCK
12111256 # ---------------
12351280 ;;
12361281 *-*-irix6*)
12371282 # Find out which ABI we are using.
1238 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12391284 if AC_TRY_EVAL(ac_compile); then
12401285 if test "$lt_cv_prog_gnu_ld" = yes; then
12411286 case `/usr/bin/file conftest.$ac_objext` in
13281373 CFLAGS="$SAVE_CFLAGS"
13291374 fi
13301375 ;;
1331 sparc*-*solaris*)
1376 *-*solaris*)
13321377 # Find out which ABI we are using.
13331378 echo 'int i;' > conftest.$ac_ext
13341379 if AC_TRY_EVAL(ac_compile); then
13351380 case `/usr/bin/file conftest.o` in
13361381 *64-bit*)
13371382 case $lt_cv_prog_gnu_ld in
1338 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1383 yes*)
1384 case $host in
1385 i?86-*-solaris*)
1386 LD="${LD-ld} -m elf_x86_64"
1387 ;;
1388 sparc*-*-solaris*)
1389 LD="${LD-ld} -m elf64_sparc"
1390 ;;
1391 esac
1392 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1393 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1394 LD="${LD-ld}_sol2"
1395 fi
1396 ;;
13391397 *)
13401398 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13411399 LD="${LD-ld} -64"
13531411 ])# _LT_ENABLE_LOCK
13541412
13551413
1414 # _LT_PROG_AR
1415 # -----------
1416 m4_defun([_LT_PROG_AR],
1417 [AC_CHECK_TOOLS(AR, [ar], false)
1418 : ${AR=ar}
1419 : ${AR_FLAGS=cru}
1420 _LT_DECL([], [AR], [1], [The archiver])
1421 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1422
1423 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1424 [lt_cv_ar_at_file=no
1425 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1426 [echo conftest.$ac_objext > conftest.lst
1427 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1428 AC_TRY_EVAL([lt_ar_try])
1429 if test "$ac_status" -eq 0; then
1430 # Ensure the archiver fails upon bogus file names.
1431 rm -f conftest.$ac_objext libconftest.a
1432 AC_TRY_EVAL([lt_ar_try])
1433 if test "$ac_status" -ne 0; then
1434 lt_cv_ar_at_file=@
1435 fi
1436 fi
1437 rm -f conftest.* libconftest.a
1438 ])
1439 ])
1440
1441 if test "x$lt_cv_ar_at_file" = xno; then
1442 archiver_list_spec=
1443 else
1444 archiver_list_spec=$lt_cv_ar_at_file
1445 fi
1446 _LT_DECL([], [archiver_list_spec], [1],
1447 [How to feed a file listing to the archiver])
1448 ])# _LT_PROG_AR
1449
1450
13561451 # _LT_CMD_OLD_ARCHIVE
13571452 # -------------------
13581453 m4_defun([_LT_CMD_OLD_ARCHIVE],
1359 [AC_CHECK_TOOL(AR, ar, false)
1360 test -z "$AR" && AR=ar
1361 test -z "$AR_FLAGS" && AR_FLAGS=cru
1362 _LT_DECL([], [AR], [1], [The archiver])
1363 _LT_DECL([], [AR_FLAGS], [1])
1454 [_LT_PROG_AR
13641455
13651456 AC_CHECK_TOOL(STRIP, strip, :)
13661457 test -z "$STRIP" && STRIP=:
13791470 if test -n "$RANLIB"; then
13801471 case $host_os in
13811472 openbsd*)
1382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13831474 ;;
13841475 *)
1385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13861477 ;;
13871478 esac
1388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1479 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13891480 fi
1481
1482 case $host_os in
1483 darwin*)
1484 lock_old_archive_extraction=yes ;;
1485 *)
1486 lock_old_archive_extraction=no ;;
1487 esac
13901488 _LT_DECL([], [old_postinstall_cmds], [2])
13911489 _LT_DECL([], [old_postuninstall_cmds], [2])
13921490 _LT_TAGDECL([], [old_archive_cmds], [2],
13931491 [Commands used to build an old-style archive])
1492 _LT_DECL([], [lock_old_archive_extraction], [0],
1493 [Whether to use a lock for old archive extraction])
13941494 ])# _LT_CMD_OLD_ARCHIVE
13951495
13961496
14151515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161516 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14171517 -e 's:$: $lt_compiler_flag:'`
1418 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14191519 (eval "$lt_compile" 2>conftest.err)
14201520 ac_status=$?
14211521 cat conftest.err >&AS_MESSAGE_LOG_FD
1422 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1522 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14231523 if (exit $ac_status) && test -s "$ac_outfile"; then
14241524 # The compiler can only warn and ignore the option if not recognized
14251525 # So say no if there are warnings other than the usual output.
1426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14271527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14291529 $2=yes
14631563 if test -s conftest.err; then
14641564 # Append any errors to the config.log.
14651565 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1466 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14671567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14681568 if diff conftest.exp conftest.er2 >/dev/null; then
14691569 $2=yes
15231623 # the test eventually succeeds (with a max line length of 256k).
15241624 # Instead, let's just punt: use the minimum linelength reported by
15251625 # all of the supported platforms: 8192 (on NT/2K/XP).
1626 lt_cv_sys_max_cmd_len=8192;
1627 ;;
1628
1629 mint*)
1630 # On MiNT this can take a long time and run out of memory.
15261631 lt_cv_sys_max_cmd_len=8192;
15271632 ;;
15281633
15491654 interix*)
15501655 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15511656 lt_cv_sys_max_cmd_len=196608
1657 ;;
1658
1659 os2*)
1660 # The test takes a long time on OS/2.
1661 lt_cv_sys_max_cmd_len=8192
15521662 ;;
15531663
15541664 osf*)
15901700 # If test is not a shell built-in, we'll probably end up computing a
15911701 # maximum length that is only half of the actual maximum length, but
15921702 # we can't tell.
1593 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1594 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1703 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1704 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15951705 test $i != 17 # 1/2 MB should be enough
15961706 do
15971707 i=`expr $i + 1`
16421752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16431753 lt_status=$lt_dlunknown
16441754 cat > conftest.$ac_ext <<_LT_EOF
1645 [#line __oline__ "configure"
1755 [#line $LINENO "configure"
16461756 #include "confdefs.h"
16471757
16481758 #if HAVE_DLFCN_H
16831793 # endif
16841794 #endif
16851795
1686 void fnord() { int i=42;}
1796 /* When -fvisbility=hidden is used, assume the code has been annotated
1797 correspondingly for the symbols needed. */
1798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1799 int fnord () __attribute__((visibility("default")));
1800 #endif
1801
1802 int fnord () { return 42; }
16871803 int main ()
16881804 {
16891805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16921808 if (self)
16931809 {
16941810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1811 else
1812 {
1813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1814 else puts (dlerror ());
1815 }
16961816 /* dlclose (self); */
16971817 }
16981818 else
18681988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18691989 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18701990 -e 's:$: $lt_compiler_flag:'`
1871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18721992 (eval "$lt_compile" 2>out/conftest.err)
18731993 ac_status=$?
18741994 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1875 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18761996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18771997 then
18781998 # The compiler can only warn and ignore the option if not recognized
18791999 # So say no if there are warnings
1880 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18812001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18822002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18832003 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20362156 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20372157 m4_require([_LT_DECL_OBJDUMP])dnl
20382158 m4_require([_LT_DECL_SED])dnl
2159 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
20392160 AC_MSG_CHECKING([dynamic linker characteristics])
20402161 m4_if([$1],
20412162 [], [
20442165 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20452166 *) lt_awk_arg="/^libraries:/" ;;
20462167 esac
2047 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2048 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2168 case $host_os in
2169 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2170 *) lt_sed_strip_eq="s,=/,/,g" ;;
2171 esac
2172 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2173 case $lt_search_path_spec in
2174 *\;*)
20492175 # if the path contains ";" then we assume it to be the separator
20502176 # otherwise default to the standard path separator (i.e. ":") - it is
20512177 # assumed that no part of a normal pathname contains ";" but that should
20522178 # okay in the real world where ";" in dirpaths is itself problematic.
2053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2054 else
2055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2056 fi
2179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2180 ;;
2181 *)
2182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2183 ;;
2184 esac
20572185 # Ok, now we have the path, separated by spaces, we can step through it
20582186 # and add multilib dir if necessary.
20592187 lt_tmp_lt_search_path_spec=
20662194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20672195 fi
20682196 done
2069 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2197 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20702198 BEGIN {RS=" "; FS="/|\n";} {
20712199 lt_foo="";
20722200 lt_count=0;
20862214 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
20872215 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
20882216 }'`
2089 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2217 # AWK program above erroneously prepends '/' to C:/dos/paths
2218 # for these hosts.
2219 case $host_os in
2220 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2221 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2222 esac
2223 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20902224 else
20912225 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20922226 fi])
21122246
21132247 case $host_os in
21142248 aix3*)
2115 version_type=linux
2249 version_type=linux # correct to gnu/linux during the next big refactor
21162250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21172251 shlibpath_var=LIBPATH
21182252
21212255 ;;
21222256
21232257 aix[[4-9]]*)
2124 version_type=linux
2258 version_type=linux # correct to gnu/linux during the next big refactor
21252259 need_lib_prefix=no
21262260 need_version=no
21272261 hardcode_into_libs=yes
21742308 m68k)
21752309 library_names_spec='$libname.ixlibrary $libname.a'
21762310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2177 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'
2311 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'
21782312 ;;
21792313 esac
21802314 ;;
21862320 ;;
21872321
21882322 bsdi[[45]]*)
2189 version_type=linux
2323 version_type=linux # correct to gnu/linux during the next big refactor
21902324 need_version=no
21912325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21922326 soname_spec='${libname}${release}${shared_ext}$major'
22052339 need_version=no
22062340 need_lib_prefix=no
22072341
2208 case $GCC,$host_os in
2209 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2342 case $GCC,$cc_basename in
2343 yes,*)
2344 # gcc
22102345 library_names_spec='$libname.dll.a'
22112346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22122347 postinstall_cmds='base_file=`basename \${file}`~
22272362 cygwin*)
22282363 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22292364 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2365 m4_if([$1], [],[
2366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22312367 ;;
22322368 mingw* | cegcc*)
22332369 # MinGW DLLs use traditional 'lib' prefix
22342370 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2236 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2237 # It is most probably a Windows format PATH printed by
2238 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2239 # path with ; separators, and with drive letters. We can handle the
2240 # drive letters (cygwin fileutils understands them), so leave them,
2241 # especially as we might pass files found there to a mingw objdump,
2242 # which wouldn't understand a cygwinified path. Ahh.
2243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2244 else
2245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2246 fi
22472371 ;;
22482372 pw32*)
22492373 # pw32 DLLs use 'pw' prefix rather than 'lib'
22502374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22512375 ;;
22522376 esac
2377 dynamic_linker='Win32 ld.exe'
22532378 ;;
22542379
2380 *,cl*)
2381 # Native MSVC
2382 libname_spec='$name'
2383 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2384 library_names_spec='${libname}.dll.lib'
2385
2386 case $build_os in
2387 mingw*)
2388 sys_lib_search_path_spec=
2389 lt_save_ifs=$IFS
2390 IFS=';'
2391 for lt_path in $LIB
2392 do
2393 IFS=$lt_save_ifs
2394 # Let DOS variable expansion print the short 8.3 style file name.
2395 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2396 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2397 done
2398 IFS=$lt_save_ifs
2399 # Convert to MSYS style.
2400 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2401 ;;
2402 cygwin*)
2403 # Convert to unix form, then to dos form, then back to unix form
2404 # but this time dos style (no spaces!) so that the unix form looks
2405 # like /cygdrive/c/PROGRA~1:/cygdr...
2406 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2407 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2408 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2409 ;;
2410 *)
2411 sys_lib_search_path_spec="$LIB"
2412 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2413 # It is most probably a Windows format PATH.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2415 else
2416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2417 fi
2418 # FIXME: find the short name or the path components, as spaces are
2419 # common. (e.g. "Program Files" -> "PROGRA~1")
2420 ;;
2421 esac
2422
2423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2424 postinstall_cmds='base_file=`basename \${file}`~
2425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2426 dldir=$destdir/`dirname \$dlpath`~
2427 test -d \$dldir || mkdir -p \$dldir~
2428 $install_prog $dir/$dlname \$dldir/$dlname'
2429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2430 dlpath=$dir/\$dldll~
2431 $RM \$dlpath'
2432 shlibpath_overrides_runpath=yes
2433 dynamic_linker='Win32 link.exe'
2434 ;;
2435
22552436 *)
2437 # Assume MSVC wrapper
22562438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2439 dynamic_linker='Win32 ld.exe'
22572440 ;;
22582441 esac
2259 dynamic_linker='Win32 ld.exe'
22602442 # FIXME: first we should search . and the directory the executable is in
22612443 shlibpath_var=PATH
22622444 ;;
22772459 ;;
22782460
22792461 dgux*)
2280 version_type=linux
2462 version_type=linux # correct to gnu/linux during the next big refactor
22812463 need_lib_prefix=no
22822464 need_version=no
22832465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22842466 soname_spec='${libname}${release}${shared_ext}$major'
22852467 shlibpath_var=LD_LIBRARY_PATH
2286 ;;
2287
2288 freebsd1*)
2289 dynamic_linker=no
22902468 ;;
22912469
22922470 freebsd* | dragonfly*)
22962474 objformat=`/usr/bin/objformat`
22972475 else
22982476 case $host_os in
2299 freebsd[[123]]*) objformat=aout ;;
2477 freebsd[[23]].*) objformat=aout ;;
23002478 *) objformat=elf ;;
23012479 esac
23022480 fi
23142492 esac
23152493 shlibpath_var=LD_LIBRARY_PATH
23162494 case $host_os in
2317 freebsd2*)
2495 freebsd2.*)
23182496 shlibpath_overrides_runpath=yes
23192497 ;;
23202498 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23342512 ;;
23352513
23362514 gnu*)
2337 version_type=linux
2515 version_type=linux # correct to gnu/linux during the next big refactor
23382516 need_lib_prefix=no
23392517 need_version=no
23402518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23412519 soname_spec='${libname}${release}${shared_ext}$major'
23422520 shlibpath_var=LD_LIBRARY_PATH
2521 shlibpath_overrides_runpath=no
2522 hardcode_into_libs=yes
2523 ;;
2524
2525 haiku*)
2526 version_type=linux # correct to gnu/linux during the next big refactor
2527 need_lib_prefix=no
2528 need_version=no
2529 dynamic_linker="$host_os runtime_loader"
2530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2531 soname_spec='${libname}${release}${shared_ext}$major'
2532 shlibpath_var=LIBRARY_PATH
2533 shlibpath_overrides_runpath=yes
2534 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23432535 hardcode_into_libs=yes
23442536 ;;
23452537
23852577 soname_spec='${libname}${release}${shared_ext}$major'
23862578 ;;
23872579 esac
2388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2580 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
23892581 postinstall_cmds='chmod 555 $lib'
2582 # or fails outright, so override atomically:
2583 install_override_mode=555
23902584 ;;
23912585
23922586 interix[[3-9]]*)
2393 version_type=linux
2587 version_type=linux # correct to gnu/linux during the next big refactor
23942588 need_lib_prefix=no
23952589 need_version=no
23962590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24062600 nonstopux*) version_type=nonstopux ;;
24072601 *)
24082602 if test "$lt_cv_prog_gnu_ld" = yes; then
2409 version_type=linux
2603 version_type=linux # correct to gnu/linux during the next big refactor
24102604 else
24112605 version_type=irix
24122606 fi ;;
24432637 dynamic_linker=no
24442638 ;;
24452639
2446 # This must be Linux ELF.
2640 # This must be glibc/ELF.
24472641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2448 version_type=linux
2642 version_type=linux # correct to gnu/linux during the next big refactor
24492643 need_lib_prefix=no
24502644 need_version=no
24512645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24532647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24542648 shlibpath_var=LD_LIBRARY_PATH
24552649 shlibpath_overrides_runpath=no
2650
24562651 # Some binutils ld are patched to set DT_RUNPATH
2457 save_LDFLAGS=$LDFLAGS
2458 save_libdir=$libdir
2459 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2460 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2461 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2462 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2463 [shlibpath_overrides_runpath=yes])])
2464 LDFLAGS=$save_LDFLAGS
2465 libdir=$save_libdir
2652 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2653 [lt_cv_shlibpath_overrides_runpath=no
2654 save_LDFLAGS=$LDFLAGS
2655 save_libdir=$libdir
2656 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2657 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2658 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2659 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2660 [lt_cv_shlibpath_overrides_runpath=yes])])
2661 LDFLAGS=$save_LDFLAGS
2662 libdir=$save_libdir
2663 ])
2664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24662665
24672666 # This implies no fast_install, which is unacceptable.
24682667 # Some rework will be needed to allow for fast_install
24712670
24722671 # Append ld.so.conf contents to the search path
24732672 if test -f /etc/ld.so.conf; then
2474 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' ' '`
2673 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' ' '`
24752674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24762675 fi
24772676
25152714 ;;
25162715
25172716 newsos6)
2518 version_type=linux
2717 version_type=linux # correct to gnu/linux during the next big refactor
25192718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25202719 shlibpath_var=LD_LIBRARY_PATH
25212720 shlibpath_overrides_runpath=yes
25842783 ;;
25852784
25862785 solaris*)
2587 version_type=linux
2786 version_type=linux # correct to gnu/linux during the next big refactor
25882787 need_lib_prefix=no
25892788 need_version=no
25902789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26092808 ;;
26102809
26112810 sysv4 | sysv4.3*)
2612 version_type=linux
2811 version_type=linux # correct to gnu/linux during the next big refactor
26132812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142813 soname_spec='${libname}${release}${shared_ext}$major'
26152814 shlibpath_var=LD_LIBRARY_PATH
26332832
26342833 sysv4*MP*)
26352834 if test -d /usr/nec ;then
2636 version_type=linux
2835 version_type=linux # correct to gnu/linux during the next big refactor
26372836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26382837 soname_spec='$libname${shared_ext}.$major'
26392838 shlibpath_var=LD_LIBRARY_PATH
26642863
26652864 tpf*)
26662865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2667 version_type=linux
2866 version_type=linux # correct to gnu/linux during the next big refactor
26682867 need_lib_prefix=no
26692868 need_version=no
26702869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26742873 ;;
26752874
26762875 uts4*)
2677 version_type=linux
2876 version_type=linux # correct to gnu/linux during the next big refactor
26782877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26792878 soname_spec='${libname}${release}${shared_ext}$major'
26802879 shlibpath_var=LD_LIBRARY_PATH
27162915 The last name is the one that the linker finds with -lNAME]])
27172916 _LT_DECL([], [soname_spec], [1],
27182917 [[The coded name of the library, if different from the real name]])
2918 _LT_DECL([], [install_override_mode], [1],
2919 [Permission mode override for installation of shared libraries])
27192920 _LT_DECL([], [postinstall_cmds], [2],
27202921 [Command to use after installation of a shared archive])
27212922 _LT_DECL([], [postuninstall_cmds], [2],
28283029 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
28293030 m4_require([_LT_DECL_SED])dnl
28303031 m4_require([_LT_DECL_EGREP])dnl
3032 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28313033
28323034 AC_ARG_WITH([gnu-ld],
28333035 [AS_HELP_STRING([--with-gnu-ld],
29493151 esac
29503152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29513153 case $host_os in
3154 cygwin* | mingw* | pw32* | cegcc*)
3155 if test "$GCC" != yes; then
3156 reload_cmds=false
3157 fi
3158 ;;
29523159 darwin*)
29533160 if test "$GCC" = yes; then
29543161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29573164 fi
29583165 ;;
29593166 esac
2960 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2961 _LT_DECL([], [reload_cmds], [2])dnl
3167 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3168 _LT_TAGDECL([], [reload_cmds], [2])dnl
29623169 ])# _LT_CMD_RELOAD
29633170
29643171
30103217 # Base MSYS/MinGW do not provide the 'file' command needed by
30113218 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30123219 # unless we find 'file', for example because we are cross-compiling.
3013 if ( file / ) >/dev/null 2>&1; then
3220 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3221 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30143222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30153223 lt_cv_file_magic_cmd='func_win32_libid'
30163224 else
3017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3225 # Keep this pattern in sync with the one in func_win32_libid.
3226 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30183227 lt_cv_file_magic_cmd='$OBJDUMP -f'
30193228 fi
30203229 ;;
30213230
3022 cegcc)
3231 cegcc*)
30233232 # use the weaker test based on 'objdump'. See mingw*.
30243233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30253234 lt_cv_file_magic_cmd='$OBJDUMP -f'
30493258 lt_cv_deplibs_check_method=pass_all
30503259 ;;
30513260
3261 haiku*)
3262 lt_cv_deplibs_check_method=pass_all
3263 ;;
3264
30523265 hpux10.20* | hpux11*)
30533266 lt_cv_file_magic_cmd=/usr/bin/file
30543267 case $host_cpu in
30573270 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30583271 ;;
30593272 hppa*64*)
3060 [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]']
3273 [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]']
30613274 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30623275 ;;
30633276 *)
3064 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3277 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30653278 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30663279 ;;
30673280 esac
30823295 lt_cv_deplibs_check_method=pass_all
30833296 ;;
30843297
3085 # This must be Linux ELF.
3298 # This must be glibc/ELF.
30863299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30873300 lt_cv_deplibs_check_method=pass_all
30883301 ;;
31613374 ;;
31623375 esac
31633376 ])
3377
3378 file_magic_glob=
3379 want_nocaseglob=no
3380 if test "$build" = "$host"; then
3381 case $host_os in
3382 mingw* | pw32*)
3383 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3384 want_nocaseglob=yes
3385 else
3386 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3387 fi
3388 ;;
3389 esac
3390 fi
3391
31643392 file_magic_cmd=$lt_cv_file_magic_cmd
31653393 deplibs_check_method=$lt_cv_deplibs_check_method
31663394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
31683396 _LT_DECL([], [deplibs_check_method], [1],
31693397 [Method to check whether dependent libraries are shared objects])
31703398 _LT_DECL([], [file_magic_cmd], [1],
3171 [Command to use when deplibs_check_method == "file_magic"])
3399 [Command to use when deplibs_check_method = "file_magic"])
3400 _LT_DECL([], [file_magic_glob], [1],
3401 [How to find potential files when deplibs_check_method = "file_magic"])
3402 _LT_DECL([], [want_nocaseglob], [1],
3403 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31723404 ])# _LT_CHECK_MAGIC_METHOD
31733405
31743406
32253457 NM="$lt_cv_path_NM"
32263458 else
32273459 # Didn't find any BSD compatible name lister, look for dumpbin.
3228 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3460 if test -n "$DUMPBIN"; then :
3461 # Let the user override the test.
3462 else
3463 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3464 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3465 *COFF*)
3466 DUMPBIN="$DUMPBIN -symbols"
3467 ;;
3468 *)
3469 DUMPBIN=:
3470 ;;
3471 esac
3472 fi
32293473 AC_SUBST([DUMPBIN])
32303474 if test "$DUMPBIN" != ":"; then
32313475 NM="$DUMPBIN"
32383482 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32393483 [lt_cv_nm_interface="BSD nm"
32403484 echo "int some_variable = 0;" > conftest.$ac_ext
3241 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32423486 (eval "$ac_compile" 2>conftest.err)
32433487 cat conftest.err >&AS_MESSAGE_LOG_FD
3244 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32453489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32463490 cat conftest.err >&AS_MESSAGE_LOG_FD
3247 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3491 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32483492 cat conftest.out >&AS_MESSAGE_LOG_FD
32493493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32503494 lt_cv_nm_interface="MS dumpbin"
32583502 dnl aclocal-1.4 backwards compatibility:
32593503 dnl AC_DEFUN([AM_PROG_NM], [])
32603504 dnl AC_DEFUN([AC_PROG_NM], [])
3505
3506 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3507 # --------------------------------
3508 # how to determine the name of the shared library
3509 # associated with a specific link library.
3510 # -- PORTME fill in with the dynamic library characteristics
3511 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3512 [m4_require([_LT_DECL_EGREP])
3513 m4_require([_LT_DECL_OBJDUMP])
3514 m4_require([_LT_DECL_DLLTOOL])
3515 AC_CACHE_CHECK([how to associate runtime and link libraries],
3516 lt_cv_sharedlib_from_linklib_cmd,
3517 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3518
3519 case $host_os in
3520 cygwin* | mingw* | pw32* | cegcc*)
3521 # two different shell functions defined in ltmain.sh
3522 # decide which to use based on capabilities of $DLLTOOL
3523 case `$DLLTOOL --help 2>&1` in
3524 *--identify-strict*)
3525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3526 ;;
3527 *)
3528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3529 ;;
3530 esac
3531 ;;
3532 *)
3533 # fallback: assume linklib IS sharedlib
3534 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3535 ;;
3536 esac
3537 ])
3538 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3540
3541 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3542 [Command to associate shared and link libraries])
3543 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3544
3545
3546 # _LT_PATH_MANIFEST_TOOL
3547 # ----------------------
3548 # locate the manifest tool
3549 m4_defun([_LT_PATH_MANIFEST_TOOL],
3550 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3552 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3553 [lt_cv_path_mainfest_tool=no
3554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3556 cat conftest.err >&AS_MESSAGE_LOG_FD
3557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3558 lt_cv_path_mainfest_tool=yes
3559 fi
3560 rm -f conftest*])
3561 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3562 MANIFEST_TOOL=:
3563 fi
3564 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3565 ])# _LT_PATH_MANIFEST_TOOL
32613566
32623567
32633568 # LT_LIB_M
32673572 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
32683573 LIBM=
32693574 case $host in
3270 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3575 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32713576 # These system don't have libm, or don't need it
32723577 ;;
32733578 *-ncr-sysv4.3*)
32953600 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
32963601
32973602 if test "$GCC" = yes; then
3298 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3603 case $cc_basename in
3604 nvcc*)
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3606 *)
3607 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3608 esac
32993609
33003610 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33013611 lt_cv_prog_compiler_rtti_exceptions,
33123622 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33133623 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
33143624 AC_REQUIRE([AC_PROG_CC])dnl
3625 AC_REQUIRE([AC_PROG_AWK])dnl
33153626 AC_REQUIRE([LT_PATH_NM])dnl
33163627 AC_REQUIRE([LT_PATH_LD])dnl
33173628 m4_require([_LT_DECL_SED])dnl
33793690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33803691
33813692 # Transform an extracted symbol line into symbol name and symbol address
3382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3383 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'"
3693 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3694 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'"
33843695
33853696 # Handle CRLF in mingw tool chain
33863697 opt_cr=
34043715 # which start with @ or ?.
34053716 lt_cv_sys_global_symbol_pipe="$AWK ['"\
34063717 " {last_section=section; section=\$ 3};"\
3718 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
34073719 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
34083720 " \$ 0!~/External *\|/{next};"\
34093721 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
34163728 else
34173729 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34183730 fi
3731 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34193732
34203733 # Check to see that the pipe works correctly.
34213734 pipe_works=no
34373750 if AC_TRY_EVAL(ac_compile); then
34383751 # Now try to grab the symbols.
34393752 nlist=conftest.nm
3440 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3753 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34413754 # Try sorting and uniquifying the output.
34423755 if sort "$nlist" | uniq > "$nlist"T; then
34433756 mv -f "$nlist"T "$nlist"
34493762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34503763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34513764 cat <<_LT_EOF > conftest.$ac_ext
3765 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3766 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3767 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3768 relocations are performed -- see ld's documentation on pseudo-relocs. */
3769 # define LT@&t@_DLSYM_CONST
3770 #elif defined(__osf__)
3771 /* This system does not cope well with relocations in const data. */
3772 # define LT@&t@_DLSYM_CONST
3773 #else
3774 # define LT@&t@_DLSYM_CONST const
3775 #endif
3776
34523777 #ifdef __cplusplus
34533778 extern "C" {
34543779 #endif
34603785 cat <<_LT_EOF >> conftest.$ac_ext
34613786
34623787 /* The mapping between symbol names and symbols. */
3463 const struct {
3788 LT@&t@_DLSYM_CONST struct {
34643789 const char *name;
34653790 void *address;
34663791 }
34863811 _LT_EOF
34873812 # Now try linking the two files.
34883813 mv conftest.$ac_objext conftstm.$ac_objext
3489 lt_save_LIBS="$LIBS"
3490 lt_save_CFLAGS="$CFLAGS"
3814 lt_globsym_save_LIBS=$LIBS
3815 lt_globsym_save_CFLAGS=$CFLAGS
34913816 LIBS="conftstm.$ac_objext"
34923817 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
34933818 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
34943819 pipe_works=yes
34953820 fi
3496 LIBS="$lt_save_LIBS"
3497 CFLAGS="$lt_save_CFLAGS"
3821 LIBS=$lt_globsym_save_LIBS
3822 CFLAGS=$lt_globsym_save_CFLAGS
34983823 else
34993824 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35003825 fi
35273852 AC_MSG_RESULT(ok)
35283853 fi
35293854
3855 # Response file support.
3856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3857 nm_file_list_spec='@'
3858 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3859 nm_file_list_spec='@'
3860 fi
3861
35303862 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35313863 [Take the output of nm and produce a listing of raw symbols and C names])
35323864 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35373869 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35383870 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35393871 [Transform the output of nm in a C name address pair when lib prefix is needed])
3872 _LT_DECL([], [nm_file_list_spec], [1],
3873 [Specify filename containing input files for $NM])
35403874 ]) # _LT_CMD_GLOBAL_SYMBOLS
35413875
35423876
35483882 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35493883 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35503884
3551 AC_MSG_CHECKING([for $compiler option to produce PIC])
35523885 m4_if([$1], [CXX], [
35533886 # C++ specific cases for pic, static, wl, etc.
35543887 if test "$GXX" = yes; then
35983931 *djgpp*)
35993932 # DJGPP does not support shared libraries at all
36003933 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3934 ;;
3935 haiku*)
3936 # PIC is the default for Haiku.
3937 # The "-static" flag exists, but is broken.
3938 _LT_TAGVAR(lt_prog_compiler_static, $1)=
36013939 ;;
36023940 interix[[3-9]]*)
36033941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36473985 # _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"
36483986 ;;
36493987 esac
3988 ;;
3989 mingw* | cygwin* | os2* | pw32* | cegcc*)
3990 # This hack is so that the source file can tell whether it is being
3991 # built for inclusion in a dll (and should export symbols for example).
3992 m4_if([$1], [GCJ], [],
3993 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36503994 ;;
36513995 dgux*)
36523996 case $cc_basename in
37374081 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37384082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37394083 ;;
3740 xlc* | xlC*)
3741 # IBM XL 8.0 on PPC
4084 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4085 # IBM XL 8.0, 9.0 on PPC and BlueGene
37424086 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37434087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37444088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
38004144 ;;
38014145 solaris*)
38024146 case $cc_basename in
3803 CC*)
4147 CC* | sunCC*)
38044148 # Sun C++ 4.2, 5.x and Centerline C++
38054149 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38064150 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39044248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39054249 ;;
39064250
4251 haiku*)
4252 # PIC is the default for Haiku.
4253 # The "-static" flag exists, but is broken.
4254 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4255 ;;
4256
39074257 hpux*)
39084258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39094259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39444294
39454295 *)
39464296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4297 ;;
4298 esac
4299
4300 case $cc_basename in
4301 nvcc*) # Cuda Compiler Driver 2.2
4302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4303 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4304 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4305 fi
39474306 ;;
39484307 esac
39494308 else
40094368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40104369 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40114370 ;;
4012 pgcc* | pgf77* | pgf90* | pgf95*)
4371 nagfor*)
4372 # NAG Fortran compiler
4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4376 ;;
4377 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40134378 # Portland Group compilers (*not* the Pentium gcc compiler,
40144379 # which looks to be a dead project)
40154380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40214386 # All Alpha code is PIC.
40224387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40234388 ;;
4024 xl*)
4025 # IBM XL C 8.0/Fortran 10.1 on PPC
4389 xl* | bgxl* | bgf* | mpixl*)
4390 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40264391 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40274392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40284393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
40294394 ;;
40304395 *)
40314396 case `$CC -V 2>&1 | sed 5q` in
4397 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4398 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4402 ;;
4403 *Sun\ F* | *Sun*Fortran*)
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4406 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4407 ;;
40324408 *Sun\ C*)
40334409 # Sun C 5.9
40344410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40354411 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40364412 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40374413 ;;
4038 *Sun\ F*)
4039 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4040 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4414 *Intel*\ [[CF]]*Compiler*)
4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4418 ;;
4419 *Portland\ Group*)
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4421 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
40414422 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
40434423 ;;
40444424 esac
40454425 ;;
40714451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40724452 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40734453 case $cc_basename in
4074 f77* | f90* | f95*)
4454 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
40754455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40764456 *)
40774457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
41284508 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41294509 ;;
41304510 esac
4131 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4132 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4133 [How to pass a linker flag through the compiler])
4511
4512 AC_CACHE_CHECK([for $compiler option to produce PIC],
4513 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4514 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4515 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41344516
41354517 #
41364518 # Check to make sure the PIC flag actually works.
41494531 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41504532 [Additional compiler flags for building library objects])
41514533
4534 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4535 [How to pass a linker flag through the compiler])
41524536 #
41534537 # Check to make sure the static flag actually works.
41544538 #
41694553 m4_defun([_LT_LINKER_SHLIBS],
41704554 [AC_REQUIRE([LT_PATH_LD])dnl
41714555 AC_REQUIRE([LT_PATH_NM])dnl
4556 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
41724557 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
41734558 m4_require([_LT_DECL_EGREP])dnl
41744559 m4_require([_LT_DECL_SED])dnl
41774562 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
41784563 m4_if([$1], [CXX], [
41794564 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4565 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
41804566 case $host_os in
41814567 aix[[4-9]]*)
41824568 # If we're using GNU nm, then we don't want the "-C" option.
41834569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4570 # Also, AIX nm treats weak defined symbols like other global defined
4571 # symbols, whereas GNU nm marks them as "W".
41844572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4185 _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'
4573 _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'
41864574 else
41874575 _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'
41884576 fi
41894577 ;;
41904578 pw32*)
41914579 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4192 ;;
4580 ;;
41934581 cygwin* | mingw* | cegcc*)
4194 _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'
4195 ;;
4196 linux* | k*bsd*-gnu)
4582 case $cc_basename in
4583 cl*)
4584 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4585 ;;
4586 *)
4587 _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'
4588 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4589 ;;
4590 esac
4591 ;;
4592 linux* | k*bsd*-gnu | gnu*)
41974593 _LT_TAGVAR(link_all_deplibs, $1)=no
4198 ;;
4594 ;;
41994595 *)
42004596 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4201 ;;
4597 ;;
42024598 esac
4203 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42044599 ], [
42054600 runpath_var=
42064601 _LT_TAGVAR(allow_undefined_flag, $1)=
42154610 _LT_TAGVAR(hardcode_direct, $1)=no
42164611 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42174612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4218 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42194613 _LT_TAGVAR(hardcode_libdir_separator, $1)=
42204614 _LT_TAGVAR(hardcode_minus_L, $1)=no
42214615 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42604654 openbsd*)
42614655 with_gnu_ld=no
42624656 ;;
4263 linux* | k*bsd*-gnu)
4657 linux* | k*bsd*-gnu | gnu*)
42644658 _LT_TAGVAR(link_all_deplibs, $1)=no
42654659 ;;
42664660 esac
42674661
42684662 _LT_TAGVAR(ld_shlibs, $1)=yes
4663
4664 # On some targets, GNU ld is compatible enough with the native linker
4665 # that we're better off using the native interface for both.
4666 lt_use_gnu_ld_interface=no
42694667 if test "$with_gnu_ld" = yes; then
4668 case $host_os in
4669 aix*)
4670 # The AIX port of GNU ld has always aspired to compatibility
4671 # with the native linker. However, as the warning in the GNU ld
4672 # block says, versions before 2.19.5* couldn't really create working
4673 # shared libraries, regardless of the interface used.
4674 case `$LD -v 2>&1` in
4675 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4676 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4677 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4678 *)
4679 lt_use_gnu_ld_interface=yes
4680 ;;
4681 esac
4682 ;;
4683 *)
4684 lt_use_gnu_ld_interface=yes
4685 ;;
4686 esac
4687 fi
4688
4689 if test "$lt_use_gnu_ld_interface" = yes; then
42704690 # If archive_cmds runs LD, not CC, wlarc should be empty
42714691 wlarc='${wl}'
42724692
43004720 _LT_TAGVAR(ld_shlibs, $1)=no
43014721 cat <<_LT_EOF 1>&2
43024722
4303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4723 *** Warning: the GNU linker, at least up to release 2.19, is reported
43044724 *** to be unable to reliably create shared libraries on AIX.
43054725 *** Therefore, libtool is disabling shared libraries support. If you
4306 *** really care for shared libraries, you may want to modify your PATH
4307 *** so that a non-GNU linker is found, and then restart.
4726 *** really care for shared libraries, you may want to install binutils
4727 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4728 *** You will then need to restart the configuration process.
43084729
43094730 _LT_EOF
43104731 fi
43404761 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43414762 # as there is no search path for DLLs.
43424763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4764 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
43434765 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43444766 _LT_TAGVAR(always_export_symbols, $1)=no
43454767 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4346 _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'
4768 _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'
4769 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43474770
43484771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43494772 _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'
43614784 fi
43624785 ;;
43634786
4787 haiku*)
4788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4789 _LT_TAGVAR(link_all_deplibs, $1)=yes
4790 ;;
4791
43644792 interix[[3-9]]*)
43654793 _LT_TAGVAR(hardcode_direct, $1)=no
43664794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
43864814 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
43874815 && test "$tmp_diet" = no
43884816 then
4389 tmp_addflag=
4817 tmp_addflag=' $pic_flag'
43904818 tmp_sharedflag='-shared'
43914819 case $cc_basename,$host_cpu in
43924820 pgcc*) # Portland Group C compiler
4393 _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'
4821 _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'
43944822 tmp_addflag=' $pic_flag'
43954823 ;;
4396 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4397 _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'
4824 pgf77* | pgf90* | pgf95* | pgfortran*)
4825 # Portland Group f77 and f90 compilers
4826 _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'
43984827 tmp_addflag=' $pic_flag -Mnomain' ;;
43994828 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
44004829 tmp_addflag=' -i_dynamic' ;;
44054834 lf95*) # Lahey Fortran 8.1
44064835 _LT_TAGVAR(whole_archive_flag_spec, $1)=
44074836 tmp_sharedflag='--shared' ;;
4408 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4837 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44094838 tmp_sharedflag='-qmkshrobj'
44104839 tmp_addflag= ;;
4840 nvcc*) # Cuda Compiler Driver 2.2
4841 _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'
4842 _LT_TAGVAR(compiler_needs_object, $1)=yes
4843 ;;
44114844 esac
44124845 case `$CC -V 2>&1 | sed 5q` in
44134846 *Sun\ C*) # Sun C 5.9
4414 _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'
4847 _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'
44154848 _LT_TAGVAR(compiler_needs_object, $1)=yes
44164849 tmp_sharedflag='-G' ;;
44174850 *Sun\ F*) # Sun Fortran 8.3
44274860 fi
44284861
44294862 case $cc_basename in
4430 xlf*)
4863 xlf* | bgf* | bgxlf* | mpixlf*)
44314864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
44324865 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4434 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4435 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4866 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4867 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
44364868 if test "x$supports_anon_versioning" = xyes; then
44374869 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44384870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44394871 echo "local: *; };" >> $output_objdir/$libname.ver~
4440 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4872 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
44414873 fi
44424874 ;;
44434875 esac
44514883 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44524884 wlarc=
44534885 else
4454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4455 _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'
4886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4887 _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'
44564888 fi
44574889 ;;
44584890
44704902
44714903 _LT_EOF
44724904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4474 _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'
4905 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4906 _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'
44754907 else
44764908 _LT_TAGVAR(ld_shlibs, $1)=no
44774909 fi
45174949
45184950 *)
45194951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4520 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4521 _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'
4952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4953 _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'
45224954 else
45234955 _LT_TAGVAR(ld_shlibs, $1)=no
45244956 fi
45584990 else
45594991 # If we're using GNU nm, then we don't want the "-C" option.
45604992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4993 # Also, AIX nm treats weak defined symbols like other global
4994 # defined symbols, whereas GNU nm marks them as "W".
45614995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4562 _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'
4996 _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'
45634997 else
45644998 _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'
45654999 fi
46475081 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
46485082 # Determine the default libpath from the value encoded in an
46495083 # empty executable.
4650 _LT_SYS_MODULE_PATH_AIX
5084 _LT_SYS_MODULE_PATH_AIX([$1])
46515085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4652 _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"
5086 _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"
46535087 else
46545088 if test "$host_cpu" = ia64; then
46555089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
46585092 else
46595093 # Determine the default libpath from the value encoded in an
46605094 # empty executable.
4661 _LT_SYS_MODULE_PATH_AIX
5095 _LT_SYS_MODULE_PATH_AIX([$1])
46625096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46635097 # Warning - without using the other run time loading flags,
46645098 # -berok will link without error, but may produce a broken library.
46655099 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
46665100 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4667 # Exported symbols can be pulled into shared objects from archives
4668 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5101 if test "$with_gnu_ld" = yes; then
5102 # We only use this code for GNU lds that support --whole-archive.
5103 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5104 else
5105 # Exported symbols can be pulled into shared objects from archives
5106 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5107 fi
46695108 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46705109 # This is similar to how AIX traditionally builds its shared libraries.
46715110 _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'
46975136 # Microsoft Visual C++.
46985137 # hardcode_libdir_flag_spec is actually meaningless, as there is
46995138 # no search path for DLLs.
4700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4701 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4702 # Tell ltmain to make .lib files, not .a files.
4703 libext=lib
4704 # Tell ltmain to make .dll files, not .so files.
4705 shrext_cmds=".dll"
4706 # FIXME: Setting linknames here is a bad hack.
4707 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4708 # The linker will automatically build a .lib file if we build a DLL.
4709 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4710 # FIXME: Should let the user specify the lib program.
4711 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4712 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4713 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5139 case $cc_basename in
5140 cl*)
5141 # Native MSVC
5142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5143 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5144 _LT_TAGVAR(always_export_symbols, $1)=yes
5145 _LT_TAGVAR(file_list_spec, $1)='@'
5146 # Tell ltmain to make .lib files, not .a files.
5147 libext=lib
5148 # Tell ltmain to make .dll files, not .so files.
5149 shrext_cmds=".dll"
5150 # FIXME: Setting linknames here is a bad hack.
5151 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5152 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5153 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5154 else
5155 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5156 fi~
5157 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5158 linknames='
5159 # The linker will not automatically build a static lib if we build a DLL.
5160 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5163 _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'
5164 # Don't use ranlib
5165 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5166 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5167 lt_tool_outputfile="@TOOL_OUTPUT@"~
5168 case $lt_outputfile in
5169 *.exe|*.EXE) ;;
5170 *)
5171 lt_outputfile="$lt_outputfile.exe"
5172 lt_tool_outputfile="$lt_tool_outputfile.exe"
5173 ;;
5174 esac~
5175 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5176 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5177 $RM "$lt_outputfile.manifest";
5178 fi'
5179 ;;
5180 *)
5181 # Assume MSVC wrapper
5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5184 # Tell ltmain to make .lib files, not .a files.
5185 libext=lib
5186 # Tell ltmain to make .dll files, not .so files.
5187 shrext_cmds=".dll"
5188 # FIXME: Setting linknames here is a bad hack.
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5190 # The linker will automatically build a .lib file if we build a DLL.
5191 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5192 # FIXME: Should let the user specify the lib program.
5193 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5194 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5195 ;;
5196 esac
47145197 ;;
47155198
47165199 darwin* | rhapsody*)
47215204 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
47225205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47235206 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4724 ;;
4725
4726 freebsd1*)
4727 _LT_TAGVAR(ld_shlibs, $1)=no
47285207 ;;
47295208
47305209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
47395218 ;;
47405219
47415220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4742 freebsd2*)
5221 freebsd2.*)
47435222 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47445223 _LT_TAGVAR(hardcode_direct, $1)=yes
47455224 _LT_TAGVAR(hardcode_minus_L, $1)=yes
47485227
47495228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47505229 freebsd* | dragonfly*)
4751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47525231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
47535232 _LT_TAGVAR(hardcode_direct, $1)=yes
47545233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47565235
47575236 hpux9*)
47585237 if test "$GCC" = yes; then
4759 _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'
5238 _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'
47605239 else
47615240 _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'
47625241 fi
47715250 ;;
47725251
47735252 hpux10*)
4774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4775 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47765255 else
47775256 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47785257 fi
47795258 if test "$with_gnu_ld" = no; then
47805259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4781 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
47825260 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
47835261 _LT_TAGVAR(hardcode_direct, $1)=yes
47845262 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
47905268 ;;
47915269
47925270 hpux11*)
4793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
47945272 case $host_cpu in
47955273 hppa*64*)
47965274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47975275 ;;
47985276 ia64*)
4799 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48005278 ;;
48015279 *)
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48035281 ;;
48045282 esac
48055283 else
48115289 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48125290 ;;
48135291 *)
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5292 m4_if($1, [], [
5293 # Older versions of the 11.00 compiler do not understand -b yet
5294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5295 _LT_LINKER_OPTION([if $CC understands -b],
5296 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5297 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5298 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5299 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
48155300 ;;
48165301 esac
48175302 fi
48395324
48405325 irix5* | irix6* | nonstopux*)
48415326 if test "$GCC" = yes; then
4842 _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'
5327 _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'
48435328 # Try to use the -exported_symbol ld option, if it does not
48445329 # work, assume that -exports_file does not work either and
48455330 # implicitly export all symbols.
4846 save_LDFLAGS="$LDFLAGS"
4847 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4848 AC_LINK_IFELSE(int foo(void) {},
4849 _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'
4850 )
4851 LDFLAGS="$save_LDFLAGS"
5331 # This should be the same for all languages, so no per-tag cache variable.
5332 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5333 [lt_cv_irix_exported_symbol],
5334 [save_LDFLAGS="$LDFLAGS"
5335 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5336 AC_LINK_IFELSE(
5337 [AC_LANG_SOURCE(
5338 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5339 [C++], [[int foo (void) { return 0; }]],
5340 [Fortran 77], [[
5341 subroutine foo
5342 end]],
5343 [Fortran], [[
5344 subroutine foo
5345 end]])])],
5346 [lt_cv_irix_exported_symbol=yes],
5347 [lt_cv_irix_exported_symbol=no])
5348 LDFLAGS="$save_LDFLAGS"])
5349 if test "$lt_cv_irix_exported_symbol" = yes; then
5350 _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'
5351 fi
48525352 else
4853 _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'
4854 _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'
5353 _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'
5354 _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'
48555355 fi
48565356 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
48575357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49135413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
49145414 _LT_TAGVAR(hardcode_minus_L, $1)=yes
49155415 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4916 _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'
5416 _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'
49175417 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49185418 ;;
49195419
49205420 osf3*)
49215421 if test "$GCC" = yes; then
49225422 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4923 _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'
5423 _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'
49245424 else
49255425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4926 _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'
5426 _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'
49275427 fi
49285428 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49295429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49335433 osf4* | osf5*) # as osf3* with the addition of -msym flag
49345434 if test "$GCC" = yes; then
49355435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4936 _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'
5436 _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'
49375437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49385438 else
49395439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4940 _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'
5440 _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'
49415441 _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~
4942 $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'
5442 $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'
49435443
49445444 # Both c and cxx compiler support -rpath directly
49455445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
49525452 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49535453 if test "$GCC" = yes; then
49545454 wlarc='${wl}'
4955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5455 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49565456 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5457 $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'
49585458 else
49595459 case `$CC -V 2>&1` in
49605460 *"Compilers 5.0"*)
51305630 # Test whether the compiler implicitly links with -lc since on some
51315631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
51325632 # to ld, don't add -lc before -lgcc.
5133 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5134 $RM conftest*
5135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5136
5137 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5138 soname=conftest
5139 lib=conftest
5140 libobjs=conftest.$ac_objext
5141 deplibs=
5142 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5143 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5144 compiler_flags=-v
5145 linker_flags=-v
5146 verstring=
5147 output_objdir=.
5148 libname=conftest
5149 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5150 _LT_TAGVAR(allow_undefined_flag, $1)=
5151 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5152 then
5153 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5154 else
5155 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5156 fi
5157 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5158 else
5159 cat conftest.err 1>&5
5160 fi
5161 $RM conftest*
5162 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5633 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5634 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5635 [$RM conftest*
5636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5637
5638 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5639 soname=conftest
5640 lib=conftest
5641 libobjs=conftest.$ac_objext
5642 deplibs=
5643 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5644 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5645 compiler_flags=-v
5646 linker_flags=-v
5647 verstring=
5648 output_objdir=.
5649 libname=conftest
5650 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5651 _LT_TAGVAR(allow_undefined_flag, $1)=
5652 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5653 then
5654 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5655 else
5656 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5657 fi
5658 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5659 else
5660 cat conftest.err 1>&5
5661 fi
5662 $RM conftest*
5663 ])
5664 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
51635665 ;;
51645666 esac
51655667 fi
51965698 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
51975699 [Flag to hardcode $libdir into a binary during linking.
51985700 This must work even if $libdir does not exist])
5199 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5200 [[If ld is used when linking, flag to hardcode $libdir into a binary
5201 during linking. This must work even if $libdir does not exist]])
52025701 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
52035702 [Whether we need a single "-rpath" flag with a separated argument])
52045703 _LT_TAGDECL([], [hardcode_direct], [0],
52245723 to runtime path list])
52255724 _LT_TAGDECL([], [link_all_deplibs], [0],
52265725 [Whether libtool must link a program against all its dependency libraries])
5227 _LT_TAGDECL([], [fix_srcfile_path], [1],
5228 [Fix the shell variable $srcfile for the compiler])
52295726 _LT_TAGDECL([], [always_export_symbols], [0],
52305727 [Set to "yes" if exported symbols are required])
52315728 _LT_TAGDECL([], [export_symbols_cmds], [2],
52365733 [Symbols that must always be exported])
52375734 _LT_TAGDECL([], [prelink_cmds], [2],
52385735 [Commands necessary for linking programs (against libraries) with templates])
5736 _LT_TAGDECL([], [postlink_cmds], [2],
5737 [Commands necessary for finishing linking programs])
52395738 _LT_TAGDECL([], [file_list_spec], [1],
52405739 [Specify filename containing input files])
52415740 dnl FIXME: Not yet implemented
53295828 ])# _LT_LANG_C_CONFIG
53305829
53315830
5332 # _LT_PROG_CXX
5333 # ------------
5334 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5335 # compiler, we have our own version here.
5336 m4_defun([_LT_PROG_CXX],
5337 [
5338 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5339 AC_PROG_CXX
5831 # _LT_LANG_CXX_CONFIG([TAG])
5832 # --------------------------
5833 # Ensure that the configuration variables for a C++ compiler are suitably
5834 # defined. These variables are subsequently used by _LT_CONFIG to write
5835 # the compiler configuration to `libtool'.
5836 m4_defun([_LT_LANG_CXX_CONFIG],
5837 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5838 m4_require([_LT_DECL_EGREP])dnl
5839 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
53405840 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
53415841 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
53425842 (test "X$CXX" != "Xg++"))) ; then
53445844 else
53455845 _lt_caught_CXX_error=yes
53465846 fi
5347 popdef([AC_MSG_ERROR])
5348 ])# _LT_PROG_CXX
5349
5350 dnl aclocal-1.4 backwards compatibility:
5351 dnl AC_DEFUN([_LT_PROG_CXX], [])
5352
5353
5354 # _LT_LANG_CXX_CONFIG([TAG])
5355 # --------------------------
5356 # Ensure that the configuration variables for a C++ compiler are suitably
5357 # defined. These variables are subsequently used by _LT_CONFIG to write
5358 # the compiler configuration to `libtool'.
5359 m4_defun([_LT_LANG_CXX_CONFIG],
5360 [AC_REQUIRE([_LT_PROG_CXX])dnl
5361 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5362 m4_require([_LT_DECL_EGREP])dnl
53635847
53645848 AC_LANG_PUSH(C++)
53655849 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
53715855 _LT_TAGVAR(hardcode_direct, $1)=no
53725856 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
53735857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5374 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
53755858 _LT_TAGVAR(hardcode_libdir_separator, $1)=
53765859 _LT_TAGVAR(hardcode_minus_L, $1)=no
53775860 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
53815864 _LT_TAGVAR(module_expsym_cmds, $1)=
53825865 _LT_TAGVAR(link_all_deplibs, $1)=unknown
53835866 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5867 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5868 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
53845869 _LT_TAGVAR(no_undefined_flag, $1)=
53855870 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53865871 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
54125897
54135898 # Allow CC to be a program name with arguments.
54145899 lt_save_CC=$CC
5900 lt_save_CFLAGS=$CFLAGS
54155901 lt_save_LD=$LD
54165902 lt_save_GCC=$GCC
54175903 GCC=$GXX
54295915 fi
54305916 test -z "${LDCXX+set}" || LD=$LDCXX
54315917 CC=${CXX-"c++"}
5918 CFLAGS=$CXXFLAGS
54325919 compiler=$CC
54335920 _LT_TAGVAR(compiler, $1)=$CC
54345921 _LT_CC_BASENAME([$compiler])
54505937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
54515938 # archiving commands below assume that GNU ld is being used.
54525939 if test "$with_gnu_ld" = yes; then
5453 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5454 _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'
5940 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5941 _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'
54555942
54565943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54575944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
54835970 # Commands to make compiler produce verbose output that lists
54845971 # what "hidden" libraries, object files and flags are used when
54855972 # linking a shared library.
5486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54875974
54885975 else
54895976 GXX=no
55926079 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
55936080 # Determine the default libpath from the value encoded in an empty
55946081 # executable.
5595 _LT_SYS_MODULE_PATH_AIX
6082 _LT_SYS_MODULE_PATH_AIX([$1])
55966083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
55976084
5598 _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"
6085 _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"
55996086 else
56006087 if test "$host_cpu" = ia64; then
56016088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
56046091 else
56056092 # Determine the default libpath from the value encoded in an
56066093 # empty executable.
5607 _LT_SYS_MODULE_PATH_AIX
6094 _LT_SYS_MODULE_PATH_AIX([$1])
56086095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56096096 # Warning - without using the other run time loading flags,
56106097 # -berok will link without error, but may produce a broken library.
56116098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56126099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5613 # Exported symbols can be pulled into shared objects from archives
5614 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6100 if test "$with_gnu_ld" = yes; then
6101 # We only use this code for GNU lds that support --whole-archive.
6102 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6103 else
6104 # Exported symbols can be pulled into shared objects from archives
6105 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6106 fi
56156107 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56166108 # This is similar to how AIX traditionally builds its shared
56176109 # libraries.
56416133 ;;
56426134
56436135 cygwin* | mingw* | pw32* | cegcc*)
5644 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5645 # as there is no search path for DLLs.
5646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5648 _LT_TAGVAR(always_export_symbols, $1)=no
5649 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5650
5651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5652 _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'
5653 # If the export-symbols file already is a .def file (1st line
5654 # is EXPORTS), use it as is; otherwise, prepend...
5655 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5656 cp $export_symbols $output_objdir/$soname.def;
5657 else
5658 echo EXPORTS > $output_objdir/$soname.def;
5659 cat $export_symbols >> $output_objdir/$soname.def;
5660 fi~
5661 $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'
5662 else
5663 _LT_TAGVAR(ld_shlibs, $1)=no
5664 fi
5665 ;;
6136 case $GXX,$cc_basename in
6137 ,cl* | no,cl*)
6138 # Native MSVC
6139 # hardcode_libdir_flag_spec is actually meaningless, as there is
6140 # no search path for DLLs.
6141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6142 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6143 _LT_TAGVAR(always_export_symbols, $1)=yes
6144 _LT_TAGVAR(file_list_spec, $1)='@'
6145 # Tell ltmain to make .lib files, not .a files.
6146 libext=lib
6147 # Tell ltmain to make .dll files, not .so files.
6148 shrext_cmds=".dll"
6149 # FIXME: Setting linknames here is a bad hack.
6150 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6151 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6152 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6153 else
6154 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6155 fi~
6156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6157 linknames='
6158 # The linker will not automatically build a static lib if we build a DLL.
6159 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6160 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6161 # Don't use ranlib
6162 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6163 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6164 lt_tool_outputfile="@TOOL_OUTPUT@"~
6165 case $lt_outputfile in
6166 *.exe|*.EXE) ;;
6167 *)
6168 lt_outputfile="$lt_outputfile.exe"
6169 lt_tool_outputfile="$lt_tool_outputfile.exe"
6170 ;;
6171 esac~
6172 func_to_tool_file "$lt_outputfile"~
6173 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6174 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6175 $RM "$lt_outputfile.manifest";
6176 fi'
6177 ;;
6178 *)
6179 # g++
6180 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6181 # as there is no search path for DLLs.
6182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6183 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6184 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6185 _LT_TAGVAR(always_export_symbols, $1)=no
6186 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6187
6188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6189 _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'
6190 # If the export-symbols file already is a .def file (1st line
6191 # is EXPORTS), use it as is; otherwise, prepend...
6192 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6193 cp $export_symbols $output_objdir/$soname.def;
6194 else
6195 echo EXPORTS > $output_objdir/$soname.def;
6196 cat $export_symbols >> $output_objdir/$soname.def;
6197 fi~
6198 $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'
6199 else
6200 _LT_TAGVAR(ld_shlibs, $1)=no
6201 fi
6202 ;;
6203 esac
6204 ;;
56666205 darwin* | rhapsody*)
56676206 _LT_DARWIN_LINKER_FEATURES($1)
56686207 ;;
56856224 esac
56866225 ;;
56876226
5688 freebsd[[12]]*)
6227 freebsd2.*)
56896228 # C++ shared libraries reported to be fairly broken before
56906229 # switch to ELF
56916230 _LT_TAGVAR(ld_shlibs, $1)=no
57026241 ;;
57036242
57046243 gnu*)
6244 ;;
6245
6246 haiku*)
6247 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248 _LT_TAGVAR(link_all_deplibs, $1)=yes
57056249 ;;
57066250
57076251 hpux9*)
57286272 # explicitly linking system object files so we need to strip them
57296273 # from the output so that they don't get included in the library
57306274 # dependencies.
5731 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'
6275 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"'
57326276 ;;
57336277 *)
57346278 if test "$GXX" = yes; then
5735 _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'
6279 _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'
57366280 else
57376281 # FIXME: insert proper C++ library support
57386282 _LT_TAGVAR(ld_shlibs, $1)=no
57936337 # explicitly linking system object files so we need to strip them
57946338 # from the output so that they don't get included in the library
57956339 # dependencies.
5796 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'
6340 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"'
57976341 ;;
57986342 *)
57996343 if test "$GXX" = yes; then
58036347 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58046348 ;;
58056349 ia64*)
5806 _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'
6350 _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'
58076351 ;;
58086352 *)
5809 _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'
6353 _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'
58106354 ;;
58116355 esac
58126356 fi
58366380 case $cc_basename in
58376381 CC*)
58386382 # SGI C++
5839 _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'
6383 _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'
58406384
58416385 # Archives containing C++ object files must be created using
58426386 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
58476391 *)
58486392 if test "$GXX" = yes; then
58496393 if test "$with_gnu_ld" = no; then
5850 _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'
6394 _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'
58516395 else
5852 _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'
6396 _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'
58536397 fi
58546398 fi
58556399 _LT_TAGVAR(link_all_deplibs, $1)=yes
58786422 # explicitly linking system object files so we need to strip them
58796423 # from the output so that they don't get included in the library
58806424 # dependencies.
5881 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'
6425 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"'
58826426
58836427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
58846428 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59156459 pgCC* | pgcpp*)
59166460 # Portland Group C++ compiler
59176461 case `$CC -V` in
5918 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6462 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
59196463 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
59206464 rm -rf $tpldir~
59216465 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5922 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6466 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
59236467 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
59246468 rm -rf $tpldir~
59256469 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5926 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6470 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
59276471 $RANLIB $oldlib'
59286472 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
59296473 rm -rf $tpldir~
59306474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5931 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59326476 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
59336477 rm -rf $tpldir~
59346478 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5935 $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'
6479 $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'
59366480 ;;
5937 *) # Version 6 will use weak symbols
6481 *) # Version 6 and above use weak symbols
59386482 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59396483 _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'
59406484 ;;
59426486
59436487 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
59446488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5945 _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'
6489 _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'
59466490 ;;
59476491 cxx*)
59486492 # Compaq C++
59616505 # explicitly linking system object files so we need to strip them
59626506 # from the output so that they don't get included in the library
59636507 # dependencies.
5964 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'
6508 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'
59656509 ;;
5966 xl*)
6510 xl* | mpixl* | bgxl*)
59676511 # IBM XL 8.0 on PPC, with GNU ld
59686512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59696513 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59836527 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59846528 _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'
59856529 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5986 _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'
6530 _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'
59876531 _LT_TAGVAR(compiler_needs_object, $1)=yes
59886532
59896533 # Not sure whether something based on
59906534 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
59916535 # would be better.
5992 output_verbose_link_cmd='echo'
6536 output_verbose_link_cmd='func_echo_all'
59936537
59946538 # Archives containing C++ object files must be created using
59956539 # "CC -xar", where "CC" is the Sun C++ compiler. This is
60586602 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60596603 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
60606604 fi
6061 output_verbose_link_cmd=echo
6605 output_verbose_link_cmd=func_echo_all
60626606 else
60636607 _LT_TAGVAR(ld_shlibs, $1)=no
60646608 fi
60936637 case $host in
60946638 osf3*)
60956639 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096 _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'
6640 _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'
60976641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60986642 ;;
60996643 *)
61006644 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6101 _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'
6645 _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'
61026646 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
61036647 echo "-hidden">> $lib.exp~
6104 $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~
6648 $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~
61056649 $RM $lib.exp'
61066650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
61076651 ;;
61176661 # explicitly linking system object files so we need to strip them
61186662 # from the output so that they don't get included in the library
61196663 # dependencies.
6120 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'
6664 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"'
61216665 ;;
61226666 *)
61236667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
61246668 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61256669 case $host in
61266670 osf3*)
6127 _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'
6671 _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'
61286672 ;;
61296673 *)
6130 _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'
6674 _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'
61316675 ;;
61326676 esac
61336677
61376681 # Commands to make compiler produce verbose output that lists
61386682 # what "hidden" libraries, object files and flags are used when
61396683 # linking a shared library.
6140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61416685
61426686 else
61436687 # FIXME: insert proper C++ library support
61736717
61746718 solaris*)
61756719 case $cc_basename in
6176 CC*)
6720 CC* | sunCC*)
61776721 # Sun C++ 4.2, 5.x and Centerline C++
61786722 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
61796723 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
61946738 esac
61956739 _LT_TAGVAR(link_all_deplibs, $1)=yes
61966740
6197 output_verbose_link_cmd='echo'
6741 output_verbose_link_cmd='func_echo_all'
61986742
61996743 # Archives containing C++ object files must be created using
62006744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
62146758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62156759 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
62166760 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6217 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6761 _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'
62186762 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6219 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6763 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62206764
62216765 # Commands to make compiler produce verbose output that lists
62226766 # what "hidden" libraries, object files and flags are used when
62236767 # linking a shared library.
6224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62256769 else
62266770 # g++ 2.7 appears to require `-G' NOT `-shared' on this
62276771 # platform.
62326776 # Commands to make compiler produce verbose output that lists
62336777 # what "hidden" libraries, object files and flags are used when
62346778 # linking a shared library.
6235 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6779 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62366780 fi
62376781
62386782 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
62866830 CC*)
62876831 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62886832 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6833 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6834 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6835 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6836 '"$_LT_TAGVAR(reload_cmds, $1)"
62896837 ;;
62906838 *)
62916839 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63416889 fi # test -n "$compiler"
63426890
63436891 CC=$lt_save_CC
6892 CFLAGS=$lt_save_CFLAGS
63446893 LDCXX=$LD
63456894 LD=$lt_save_LD
63466895 GCC=$lt_save_GCC
63556904 ])# _LT_LANG_CXX_CONFIG
63566905
63576906
6907 # _LT_FUNC_STRIPNAME_CNF
6908 # ----------------------
6909 # func_stripname_cnf prefix suffix name
6910 # strip PREFIX and SUFFIX off of NAME.
6911 # PREFIX and SUFFIX must not contain globbing or regex special
6912 # characters, hashes, percent signs, but SUFFIX may contain a leading
6913 # dot (in which case that matches only a dot).
6914 #
6915 # This function is identical to the (non-XSI) version of func_stripname,
6916 # except this one can be used by m4 code that may be executed by configure,
6917 # rather than the libtool script.
6918 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6919 AC_REQUIRE([_LT_DECL_SED])
6920 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6921 func_stripname_cnf ()
6922 {
6923 case ${2} in
6924 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6925 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6926 esac
6927 } # func_stripname_cnf
6928 ])# _LT_FUNC_STRIPNAME_CNF
6929
63586930 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63596931 # ---------------------------------
63606932 # Figure out "hidden" library dependencies from verbose
63636935 # objects, libraries and library flags.
63646936 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
63656937 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6938 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
63666939 # Dependencies to place before and after the object being linked:
63676940 _LT_TAGVAR(predep_objects, $1)=
63686941 _LT_TAGVAR(postdep_objects, $1)=
64126985 }
64136986 };
64146987 _LT_EOF
6988 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6989 package foo
6990 func foo() {
6991 }
6992 _LT_EOF
64156993 ])
6994
6995 _lt_libdeps_save_CFLAGS=$CFLAGS
6996 case "$CC $CFLAGS " in #(
6997 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6998 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6999 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7000 esac
7001
64167002 dnl Parse the compiler output and extract the necessary
64177003 dnl objects, libraries and library flags.
64187004 if AC_TRY_EVAL(ac_compile); then
64247010 pre_test_object_deps_done=no
64257011
64267012 for p in `eval "$output_verbose_link_cmd"`; do
6427 case $p in
7013 case ${prev}${p} in
64287014
64297015 -L* | -R* | -l*)
64307016 # Some compilers place space between "-{L,R}" and the path.
64337019 test $p = "-R"; then
64347020 prev=$p
64357021 continue
6436 else
6437 prev=
64387022 fi
64397023
7024 # Expand the sysroot to ease extracting the directories later.
7025 if test -z "$prev"; then
7026 case $p in
7027 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7028 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7029 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7030 esac
7031 fi
7032 case $p in
7033 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7034 esac
64407035 if test "$pre_test_object_deps_done" = no; then
6441 case $p in
6442 -L* | -R*)
7036 case ${prev} in
7037 -L | -R)
64437038 # Internal compiler library paths should come after those
64447039 # provided the user. The postdeps already come after the
64457040 # user supplied libs so there is no need to process them.
64597054 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
64607055 fi
64617056 fi
7057 prev=
64627058 ;;
64637059
7060 *.lto.$objext) ;; # Ignore GCC LTO objects
64647061 *.$objext)
64657062 # This assumes that the test object file only shows up
64667063 # once in the compiler output.
64967093 fi
64977094
64987095 $RM -f confest.$objext
7096 CFLAGS=$_lt_libdeps_save_CFLAGS
64997097
65007098 # PORTME: override above test on systems where it is broken
65017099 m4_if([$1], [CXX],
65327130
65337131 solaris*)
65347132 case $cc_basename in
6535 CC*)
7133 CC* | sunCC*)
65367134 # The more standards-conforming stlport4 library is
65377135 # incompatible with the Cstd library. Avoid specifying
65387136 # it if it's in CXXFLAGS. Ignore libCrun as
65767174 ])# _LT_SYS_HIDDEN_LIBDEPS
65777175
65787176
6579 # _LT_PROG_F77
6580 # ------------
6581 # Since AC_PROG_F77 is broken, in that it returns the empty string
6582 # if there is no fortran compiler, we have our own version here.
6583 m4_defun([_LT_PROG_F77],
6584 [
6585 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6586 AC_PROG_F77
6587 if test -z "$F77" || test "X$F77" = "Xno"; then
6588 _lt_disable_F77=yes
6589 fi
6590 popdef([AC_MSG_ERROR])
6591 ])# _LT_PROG_F77
6592
6593 dnl aclocal-1.4 backwards compatibility:
6594 dnl AC_DEFUN([_LT_PROG_F77], [])
6595
6596
65977177 # _LT_LANG_F77_CONFIG([TAG])
65987178 # --------------------------
65997179 # Ensure that the configuration variables for a Fortran 77 compiler are
66007180 # suitably defined. These variables are subsequently used by _LT_CONFIG
66017181 # to write the compiler configuration to `libtool'.
66027182 m4_defun([_LT_LANG_F77_CONFIG],
6603 [AC_REQUIRE([_LT_PROG_F77])dnl
6604 AC_LANG_PUSH(Fortran 77)
7183 [AC_LANG_PUSH(Fortran 77)
7184 if test -z "$F77" || test "X$F77" = "Xno"; then
7185 _lt_disable_F77=yes
7186 fi
66057187
66067188 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
66077189 _LT_TAGVAR(allow_undefined_flag, $1)=
66117193 _LT_TAGVAR(hardcode_direct, $1)=no
66127194 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
66137195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6614 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
66157196 _LT_TAGVAR(hardcode_libdir_separator, $1)=
66167197 _LT_TAGVAR(hardcode_minus_L, $1)=no
66177198 _LT_TAGVAR(hardcode_automatic, $1)=no
66207201 _LT_TAGVAR(module_expsym_cmds, $1)=
66217202 _LT_TAGVAR(link_all_deplibs, $1)=unknown
66227203 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7204 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7205 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
66237206 _LT_TAGVAR(no_undefined_flag, $1)=
66247207 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66257208 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
66597242 # Allow CC to be a program name with arguments.
66607243 lt_save_CC="$CC"
66617244 lt_save_GCC=$GCC
7245 lt_save_CFLAGS=$CFLAGS
66627246 CC=${F77-"f77"}
7247 CFLAGS=$FFLAGS
66637248 compiler=$CC
66647249 _LT_TAGVAR(compiler, $1)=$CC
66657250 _LT_CC_BASENAME([$compiler])
67137298
67147299 GCC=$lt_save_GCC
67157300 CC="$lt_save_CC"
7301 CFLAGS="$lt_save_CFLAGS"
67167302 fi # test "$_lt_disable_F77" != yes
67177303
67187304 AC_LANG_POP
67197305 ])# _LT_LANG_F77_CONFIG
6720
6721
6722 # _LT_PROG_FC
6723 # -----------
6724 # Since AC_PROG_FC is broken, in that it returns the empty string
6725 # if there is no fortran compiler, we have our own version here.
6726 m4_defun([_LT_PROG_FC],
6727 [
6728 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6729 AC_PROG_FC
6730 if test -z "$FC" || test "X$FC" = "Xno"; then
6731 _lt_disable_FC=yes
6732 fi
6733 popdef([AC_MSG_ERROR])
6734 ])# _LT_PROG_FC
6735
6736 dnl aclocal-1.4 backwards compatibility:
6737 dnl AC_DEFUN([_LT_PROG_FC], [])
67387306
67397307
67407308 # _LT_LANG_FC_CONFIG([TAG])
67437311 # suitably defined. These variables are subsequently used by _LT_CONFIG
67447312 # to write the compiler configuration to `libtool'.
67457313 m4_defun([_LT_LANG_FC_CONFIG],
6746 [AC_REQUIRE([_LT_PROG_FC])dnl
6747 AC_LANG_PUSH(Fortran)
7314 [AC_LANG_PUSH(Fortran)
7315
7316 if test -z "$FC" || test "X$FC" = "Xno"; then
7317 _lt_disable_FC=yes
7318 fi
67487319
67497320 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67507321 _LT_TAGVAR(allow_undefined_flag, $1)=
67547325 _LT_TAGVAR(hardcode_direct, $1)=no
67557326 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
67567327 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6757 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
67587328 _LT_TAGVAR(hardcode_libdir_separator, $1)=
67597329 _LT_TAGVAR(hardcode_minus_L, $1)=no
67607330 _LT_TAGVAR(hardcode_automatic, $1)=no
67637333 _LT_TAGVAR(module_expsym_cmds, $1)=
67647334 _LT_TAGVAR(link_all_deplibs, $1)=unknown
67657335 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7336 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7337 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67667338 _LT_TAGVAR(no_undefined_flag, $1)=
67677339 _LT_TAGVAR(whole_archive_flag_spec, $1)=
67687340 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
68027374 # Allow CC to be a program name with arguments.
68037375 lt_save_CC="$CC"
68047376 lt_save_GCC=$GCC
7377 lt_save_CFLAGS=$CFLAGS
68057378 CC=${FC-"f95"}
7379 CFLAGS=$FCFLAGS
68067380 compiler=$CC
68077381 GCC=$ac_cv_fc_compiler_gnu
68087382
68587432 fi # test -n "$compiler"
68597433
68607434 GCC=$lt_save_GCC
6861 CC="$lt_save_CC"
7435 CC=$lt_save_CC
7436 CFLAGS=$lt_save_CFLAGS
68627437 fi # test "$_lt_disable_FC" != yes
68637438
68647439 AC_LANG_POP
68957470 _LT_LINKER_BOILERPLATE
68967471
68977472 # Allow CC to be a program name with arguments.
6898 lt_save_CC="$CC"
7473 lt_save_CC=$CC
7474 lt_save_CFLAGS=$CFLAGS
68997475 lt_save_GCC=$GCC
69007476 GCC=yes
69017477 CC=${GCJ-"gcj"}
7478 CFLAGS=$GCJFLAGS
69027479 compiler=$CC
69037480 _LT_TAGVAR(compiler, $1)=$CC
69047481 _LT_TAGVAR(LD, $1)="$LD"
69087485 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
69097486
69107487 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7488 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7489 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69117490
69127491 ## CAVEAT EMPTOR:
69137492 ## There is no encapsulation within the following macros, do not change
69277506 AC_LANG_RESTORE
69287507
69297508 GCC=$lt_save_GCC
6930 CC="$lt_save_CC"
7509 CC=$lt_save_CC
7510 CFLAGS=$lt_save_CFLAGS
69317511 ])# _LT_LANG_GCJ_CONFIG
7512
7513
7514 # _LT_LANG_GO_CONFIG([TAG])
7515 # --------------------------
7516 # Ensure that the configuration variables for the GNU Go compiler
7517 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7518 # to write the compiler configuration to `libtool'.
7519 m4_defun([_LT_LANG_GO_CONFIG],
7520 [AC_REQUIRE([LT_PROG_GO])dnl
7521 AC_LANG_SAVE
7522
7523 # Source file extension for Go test sources.
7524 ac_ext=go
7525
7526 # Object file extension for compiled Go test sources.
7527 objext=o
7528 _LT_TAGVAR(objext, $1)=$objext
7529
7530 # Code to be used in simple compile tests
7531 lt_simple_compile_test_code="package main; func main() { }"
7532
7533 # Code to be used in simple link tests
7534 lt_simple_link_test_code='package main; func main() { }'
7535
7536 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7537 _LT_TAG_COMPILER
7538
7539 # save warnings/boilerplate of simple test code
7540 _LT_COMPILER_BOILERPLATE
7541 _LT_LINKER_BOILERPLATE
7542
7543 # Allow CC to be a program name with arguments.
7544 lt_save_CC=$CC
7545 lt_save_CFLAGS=$CFLAGS
7546 lt_save_GCC=$GCC
7547 GCC=yes
7548 CC=${GOC-"gccgo"}
7549 CFLAGS=$GOFLAGS
7550 compiler=$CC
7551 _LT_TAGVAR(compiler, $1)=$CC
7552 _LT_TAGVAR(LD, $1)="$LD"
7553 _LT_CC_BASENAME([$compiler])
7554
7555 # Go did not exist at the time GCC didn't implicitly link libc in.
7556 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7557
7558 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7559 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7560 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7561
7562 ## CAVEAT EMPTOR:
7563 ## There is no encapsulation within the following macros, do not change
7564 ## the running order or otherwise move them around unless you know exactly
7565 ## what you are doing...
7566 if test -n "$compiler"; then
7567 _LT_COMPILER_NO_RTTI($1)
7568 _LT_COMPILER_PIC($1)
7569 _LT_COMPILER_C_O($1)
7570 _LT_COMPILER_FILE_LOCKS($1)
7571 _LT_LINKER_SHLIBS($1)
7572 _LT_LINKER_HARDCODE_LIBPATH($1)
7573
7574 _LT_CONFIG($1)
7575 fi
7576
7577 AC_LANG_RESTORE
7578
7579 GCC=$lt_save_GCC
7580 CC=$lt_save_CC
7581 CFLAGS=$lt_save_CFLAGS
7582 ])# _LT_LANG_GO_CONFIG
69327583
69337584
69347585 # _LT_LANG_RC_CONFIG([TAG])
69627613
69637614 # Allow CC to be a program name with arguments.
69647615 lt_save_CC="$CC"
7616 lt_save_CFLAGS=$CFLAGS
69657617 lt_save_GCC=$GCC
69667618 GCC=
69677619 CC=${RC-"windres"}
7620 CFLAGS=
69687621 compiler=$CC
69697622 _LT_TAGVAR(compiler, $1)=$CC
69707623 _LT_CC_BASENAME([$compiler])
69777630
69787631 GCC=$lt_save_GCC
69797632 AC_LANG_RESTORE
6980 CC="$lt_save_CC"
7633 CC=$lt_save_CC
7634 CFLAGS=$lt_save_CFLAGS
69817635 ])# _LT_LANG_RC_CONFIG
69827636
69837637
69957649 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
69967650 dnl aclocal-1.4 backwards compatibility:
69977651 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7652
7653
7654 # LT_PROG_GO
7655 # ----------
7656 AC_DEFUN([LT_PROG_GO],
7657 [AC_CHECK_TOOL(GOC, gccgo,)
7658 ])
69987659
69997660
70007661 # LT_PROG_RC
70367697 AC_SUBST([OBJDUMP])
70377698 ])
70387699
7700 # _LT_DECL_DLLTOOL
7701 # ----------------
7702 # Ensure DLLTOOL variable is set.
7703 m4_defun([_LT_DECL_DLLTOOL],
7704 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7705 test -z "$DLLTOOL" && DLLTOOL=dlltool
7706 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7707 AC_SUBST([DLLTOOL])
7708 ])
70397709
70407710 # _LT_DECL_SED
70417711 # ------------
71297799 # Try some XSI features
71307800 xsi_shell=no
71317801 ( _lt_dummy="a/b/c"
7132 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7133 = c,a/b,, \
7802 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7803 = c,a/b,b/c, \
71347804 && eval 'test $(( 1 + 1 )) -eq 2 \
71357805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
71367806 && xsi_shell=yes
71697839 ])# _LT_CHECK_SHELL_FEATURES
71707840
71717841
7172 # _LT_PROG_XSI_SHELLFNS
7173 # ---------------------
7174 # Bourne and XSI compatible variants of some useful shell functions.
7175 m4_defun([_LT_PROG_XSI_SHELLFNS],
7176 [case $xsi_shell in
7177 yes)
7178 cat << \_LT_EOF >> "$cfgfile"
7179
7180 # func_dirname file append nondir_replacement
7181 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7182 # otherwise set result to NONDIR_REPLACEMENT.
7183 func_dirname ()
7184 {
7185 case ${1} in
7186 */*) func_dirname_result="${1%/*}${2}" ;;
7187 * ) func_dirname_result="${3}" ;;
7188 esac
7189 }
7190
7191 # func_basename file
7192 func_basename ()
7193 {
7194 func_basename_result="${1##*/}"
7195 }
7196
7197 # func_dirname_and_basename file append nondir_replacement
7198 # perform func_basename and func_dirname in a single function
7199 # call:
7200 # dirname: Compute the dirname of FILE. If nonempty,
7201 # add APPEND to the result, otherwise set result
7202 # to NONDIR_REPLACEMENT.
7203 # value returned in "$func_dirname_result"
7204 # basename: Compute filename of FILE.
7205 # value retuned in "$func_basename_result"
7206 # Implementation must be kept synchronized with func_dirname
7207 # and func_basename. For efficiency, we do not delegate to
7208 # those functions but instead duplicate the functionality here.
7209 func_dirname_and_basename ()
7210 {
7211 case ${1} in
7212 */*) func_dirname_result="${1%/*}${2}" ;;
7213 * ) func_dirname_result="${3}" ;;
7214 esac
7215 func_basename_result="${1##*/}"
7216 }
7217
7218 # func_stripname prefix suffix name
7219 # strip PREFIX and SUFFIX off of NAME.
7220 # PREFIX and SUFFIX must not contain globbing or regex special
7221 # characters, hashes, percent signs, but SUFFIX may contain a leading
7222 # dot (in which case that matches only a dot).
7223 func_stripname ()
7224 {
7225 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7226 # positional parameters, so assign one to ordinary parameter first.
7227 func_stripname_result=${3}
7228 func_stripname_result=${func_stripname_result#"${1}"}
7229 func_stripname_result=${func_stripname_result%"${2}"}
7230 }
7231
7232 # func_opt_split
7233 func_opt_split ()
7234 {
7235 func_opt_split_opt=${1%%=*}
7236 func_opt_split_arg=${1#*=}
7237 }
7238
7239 # func_lo2o object
7240 func_lo2o ()
7241 {
7242 case ${1} in
7243 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7244 *) func_lo2o_result=${1} ;;
7245 esac
7246 }
7247
7248 # func_xform libobj-or-source
7249 func_xform ()
7250 {
7251 func_xform_result=${1%.*}.lo
7252 }
7253
7254 # func_arith arithmetic-term...
7255 func_arith ()
7256 {
7257 func_arith_result=$(( $[*] ))
7258 }
7259
7260 # func_len string
7261 # STRING may not start with a hyphen.
7262 func_len ()
7263 {
7264 func_len_result=${#1}
7265 }
7266
7267 _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
72687958 ;;
7269 *) # Bourne compatible functions.
7270 cat << \_LT_EOF >> "$cfgfile"
7271
7272 # func_dirname file append nondir_replacement
7273 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7274 # otherwise set result to NONDIR_REPLACEMENT.
7275 func_dirname ()
7276 {
7277 # Extract subdirectory from the argument.
7278 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7279 if test "X$func_dirname_result" = "X${1}"; then
7280 func_dirname_result="${3}"
7281 else
7282 func_dirname_result="$func_dirname_result${2}"
7283 fi
7284 }
7285
7286 # func_basename file
7287 func_basename ()
7288 {
7289 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7290 }
7291
7292 dnl func_dirname_and_basename
7293 dnl A portable version of this function is already defined in general.m4sh
7294 dnl so there is no need for it here.
7295
7296 # func_stripname prefix suffix name
7297 # strip PREFIX and SUFFIX off of NAME.
7298 # PREFIX and SUFFIX must not contain globbing or regex special
7299 # characters, hashes, percent signs, but SUFFIX may contain a leading
7300 # dot (in which case that matches only a dot).
7301 # func_strip_suffix prefix name
7302 func_stripname ()
7303 {
7304 case ${2} in
7305 .*) func_stripname_result=`$ECHO "X${3}" \
7306 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7307 *) func_stripname_result=`$ECHO "X${3}" \
7308 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7309 esac
7310 }
7311
7312 # sed scripts:
7313 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7314 my_sed_long_arg='1s/^-[[^=]]*=//'
7315
7316 # func_opt_split
7317 func_opt_split ()
7318 {
7319 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7320 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7321 }
7322
7323 # func_lo2o object
7324 func_lo2o ()
7325 {
7326 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7327 }
7328
7329 # func_xform libobj-or-source
7330 func_xform ()
7331 {
7332 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7333 }
7334
7335 # func_arith arithmetic-term...
7336 func_arith ()
7337 {
7338 func_arith_result=`expr "$[@]"`
7339 }
7340
7341 # func_len string
7342 # STRING may not start with a hyphen.
7343 func_len ()
7344 {
7345 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7346 }
7347
7348 _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 ;;
73497975 esac
7350
7351 case $lt_shell_append in
7352 yes)
7353 cat << \_LT_EOF >> "$cfgfile"
7354
7355 # func_append var value
7356 # Append VALUE to the end of shell variable VAR.
7357 func_append ()
7358 {
7359 eval "$[1]+=\$[2]"
7360 }
7361 _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
73627993 ;;
7363 *)
7364 cat << \_LT_EOF >> "$cfgfile"
7365
7366 # func_append var value
7367 # Append VALUE to the end of shell variable VAR.
7368 func_append ()
7369 {
7370 eval "$[1]=\$$[1]\$[2]"
7371 }
7372
7373 _LT_EOF
7374 ;;
7375 esac
7994 esac
73767995 ])
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
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
34 # Written by Gary V. Vaughan, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
67 # unlimited permission to copy and/or distribute it, with or without
78 # modifications, as long as this notice is preserved.
89
9 # serial 6 ltoptions.m4
10 # serial 7 ltoptions.m4
1011
1112 # This is to help aclocal find these macros, as it can't see m4_define.
1213 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
124125 [enable_win32_dll=yes
125126
126127 case $host in
127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
128129 AC_CHECK_TOOL(AS, as, false)
129130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
130131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132133 esac
133134
134135 test -z "$AS" && AS=as
135 _LT_DECL([], [AS], [0], [Assembler program])dnl
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
136137
137138 test -z "$DLLTOOL" && DLLTOOL=dlltool
138 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
139140
140141 test -z "$OBJDUMP" && OBJDUMP=objdump
141 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
142143 ])# win32-dll
143144
144145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
324325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
325326 m4_define([_LT_WITH_PIC],
326327 [AC_ARG_WITH([pic],
327 [AS_HELP_STRING([--with-pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
328329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
329 [pic_mode="$withval"],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
330346 [pic_mode=default])
331347
332348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
66 # unlimited permission to copy and/or distribute it, with or without
77 # modifications, as long as this notice is preserved.
88
9 # Generated from ltversion.in.
9 # @configure_input@
1010
11 # serial 3017 ltversion.m4
11 # serial 3337 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
15 m4_define([LT_PACKAGE_REVISION], [1.3017])
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.2.6b'
19 macro_revision='1.3017'
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
33 # Written by Scott James Remnant, 2004.
44 #
55 # This file is free software; the Free Software Foundation gives
66 # unlimited permission to copy and/or distribute it, with or without
77 # modifications, as long as this notice is preserved.
88
9 # serial 4 lt~obsolete.m4
9 # serial 5 lt~obsolete.m4
1010
1111 # These exist entirely to fool aclocal when bootstrapping libtool.
1212 #
7676 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7777 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7878 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8079 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8180 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8281 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8988 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9089 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9190 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2012-01-06.13; # UTC
44
55 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
99 # This program is free software; you can redistribute it and/or modify
8383 help2man touch the output file
8484 lex create \`lex.yy.c', if possible, from existing .c
8585 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
8786 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
8887
8988 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
119118 case $1 in
120119 lex*|yacc*)
121120 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131121 ;;
132122
133123 *)
225215 \`Bison' from any GNU archive site."
226216 rm -f y.tab.c y.tab.h
227217 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
218 eval LASTARG=\${$#}
229219 case $LASTARG in
230220 *.y)
231221 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
255245 \`Flex' from any GNU archive site."
256246 rm -f lex.yy.c
257247 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
248 eval LASTARG=\${$#}
259249 case $LASTARG in
260250 *.l)
261251 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
317307 touch $file
318308 ;;
319309
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355310 *)
356311 echo 1>&2 "\
357312 WARNING: \`$1' is needed, and is $msg.
00 # List of source files containing translatable strings.
11 # Please keep this file sorted alphabetically.
22
3 src/vinagre/plugin.c
4 src/vinagre/ssh-contact.vinagre-plugin.desktop.in
5 src/vinagre/tab.c
63
0 if HAVE_VINAGRE
1 SUBDIRS = vinagre
2 endif
3
40 AM_CPPFLAGS = \
51 $(ERROR_CFLAGS) \
62 $(SSH_CONTACT_CFLAGS) \
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.
5757 ssh_contact_LDADD = $(LDADD)
5858 am__DEPENDENCIES_1 =
5959 ssh_contact_DEPENDENCIES = $(am__DEPENDENCIES_1)
60 AM_V_lt = $(am__v_lt_$(V))
61 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
60 AM_V_lt = $(am__v_lt_@AM_V@)
61 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
6262 am__v_lt_0 = --silent
6363 am_ssh_contact_service_OBJECTS = service.$(OBJEXT)
6464 ssh_contact_service_OBJECTS = $(am_ssh_contact_service_OBJECTS)
7474 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
7575 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
7676 $(AM_CFLAGS) $(CFLAGS)
77 AM_V_CC = $(am__v_CC_$(V))
78 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
77 AM_V_CC = $(am__v_CC_@AM_V@)
78 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
7979 am__v_CC_0 = @echo " CC " $@;
80 AM_V_at = $(am__v_at_$(V))
81 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
80 AM_V_at = $(am__v_at_@AM_V@)
81 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
8282 am__v_at_0 = @
8383 CCLD = $(CC)
8484 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
8585 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
8686 $(AM_LDFLAGS) $(LDFLAGS) -o $@
87 AM_V_CCLD = $(am__v_CCLD_$(V))
88 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
87 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
88 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
8989 am__v_CCLD_0 = @echo " CCLD " $@;
90 AM_V_GEN = $(am__v_GEN_$(V))
91 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
90 AM_V_GEN = $(am__v_GEN_@AM_V@)
91 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
9292 am__v_GEN_0 = @echo " GEN " $@;
9393 SOURCES = $(ssh_contact_SOURCES) $(ssh_contact_service_SOURCES)
9494 DIST_SOURCES = $(ssh_contact_SOURCES) $(ssh_contact_service_SOURCES)
95 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
96 html-recursive info-recursive install-data-recursive \
97 install-dvi-recursive install-exec-recursive \
98 install-html-recursive install-info-recursive \
99 install-pdf-recursive install-ps-recursive install-recursive \
100 installcheck-recursive installdirs-recursive pdf-recursive \
101 ps-recursive uninstall-recursive
10295 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
10396 am__vpath_adj = case $$p in \
10497 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
120113 am__base_list = \
121114 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
122115 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
116 am__uninstall_files_from_dir = { \
117 test -z "$$files" \
118 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
119 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
120 $(am__cd) "$$dir" && rm -f $$files; }; \
121 }
123122 DATA = $(clientfile_DATA) $(servicefile_DATA)
124 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
125 distclean-recursive maintainer-clean-recursive
126 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
127 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
128 distdir
129123 ETAGS = etags
130124 CTAGS = ctags
131 DIST_SUBDIRS = vinagre
132125 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
133 am__relativize = \
134 dir0=`pwd`; \
135 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
136 sed_rest='s,^[^/]*/*,,'; \
137 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
138 sed_butlast='s,/*[^/]*$$,,'; \
139 while test -n "$$dir1"; do \
140 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
141 if test "$$first" != "."; then \
142 if test "$$first" = ".."; then \
143 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
144 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
145 else \
146 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
147 if test "$$first2" = "$$first"; then \
148 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
149 else \
150 dir2="../$$dir2"; \
151 fi; \
152 dir0="$$dir0"/"$$first"; \
153 fi; \
154 fi; \
155 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
156 done; \
157 reldir="$$dir2"
158126 ACLOCAL = @ACLOCAL@
159127 ALL_LINGUAS = @ALL_LINGUAS@
160128 AMTAR = @AMTAR@
175143 DATADIRNAME = @DATADIRNAME@
176144 DEFS = @DEFS@
177145 DEPDIR = @DEPDIR@
146 DLLTOOL = @DLLTOOL@
178147 DSYMUTIL = @DSYMUTIL@
179148 DUMPBIN = @DUMPBIN@
180149 ECHO_C = @ECHO_C@
186155 FGREP = @FGREP@
187156 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
188157 GLIB_CFLAGS = @GLIB_CFLAGS@
158 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
189159 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
190160 GLIB_LIBS = @GLIB_LIBS@
191161 GLIB_MKENUMS = @GLIB_MKENUMS@
204174 INTLTOOL_MERGE = @INTLTOOL_MERGE@
205175 INTLTOOL_PERL = @INTLTOOL_PERL@
206176 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
177 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
178 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
179 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
180 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
207181 LD = @LD@
208182 LDFLAGS = @LDFLAGS@
209183 LIBOBJS = @LIBOBJS@
214188 LTLIBOBJS = @LTLIBOBJS@
215189 MAINT = @MAINT@
216190 MAKEINFO = @MAKEINFO@
191 MANIFEST_TOOL = @MANIFEST_TOOL@
217192 MKDIR_P = @MKDIR_P@
218193 MKINSTALLDIRS = @MKINSTALLDIRS@
219194 MSGFMT = @MSGFMT@
249224 STRIP = @STRIP@
250225 USE_NLS = @USE_NLS@
251226 VERSION = @VERSION@
252 VINAGRE_CFLAGS = @VINAGRE_CFLAGS@
253 VINAGRE_LIBS = @VINAGRE_LIBS@
254227 XGETTEXT = @XGETTEXT@
255228 XMKMF = @XMKMF@
256229 X_CFLAGS = @X_CFLAGS@
261234 abs_srcdir = @abs_srcdir@
262235 abs_top_builddir = @abs_top_builddir@
263236 abs_top_srcdir = @abs_top_srcdir@
237 ac_ct_AR = @ac_ct_AR@
264238 ac_ct_CC = @ac_ct_CC@
265239 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
266240 am__include = @am__include@
289263 includedir = @includedir@
290264 infodir = @infodir@
291265 install_sh = @install_sh@
266 intltool__v_merge_options_ = @intltool__v_merge_options_@
267 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
292268 libdir = @libdir@
293269 libexecdir = @libexecdir@
294270 localedir = @localedir@
295271 localstatedir = @localstatedir@
296 lt_ECHO = @lt_ECHO@
297272 mandir = @mandir@
298273 mkdir_p = @mkdir_p@
299274 oldincludedir = @oldincludedir@
309284 top_build_prefix = @top_build_prefix@
310285 top_builddir = @top_builddir@
311286 top_srcdir = @top_srcdir@
312 @HAVE_VINAGRE_TRUE@SUBDIRS = vinagre
313287 AM_CPPFLAGS = \
314288 $(ERROR_CFLAGS) \
315289 $(SSH_CONTACT_CFLAGS) \
344318 $(servicefile_DATA) \
345319 $(NULL)
346320
347 all: all-recursive
321 all: all-am
348322
349323 .SUFFIXES:
350324 .SUFFIXES: .c .lo .o .obj
464438 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
465439 echo " rm -f" $$list; \
466440 rm -f $$list
467 ssh-contact$(EXEEXT): $(ssh_contact_OBJECTS) $(ssh_contact_DEPENDENCIES)
441 ssh-contact$(EXEEXT): $(ssh_contact_OBJECTS) $(ssh_contact_DEPENDENCIES) $(EXTRA_ssh_contact_DEPENDENCIES)
468442 @rm -f ssh-contact$(EXEEXT)
469443 $(AM_V_CCLD)$(LINK) $(ssh_contact_OBJECTS) $(ssh_contact_LDADD) $(LIBS)
470 ssh-contact-service$(EXEEXT): $(ssh_contact_service_OBJECTS) $(ssh_contact_service_DEPENDENCIES)
444 ssh-contact-service$(EXEEXT): $(ssh_contact_service_OBJECTS) $(ssh_contact_service_DEPENDENCIES) $(EXTRA_ssh_contact_service_DEPENDENCIES)
471445 @rm -f ssh-contact-service$(EXEEXT)
472446 $(AM_V_CCLD)$(LINK) $(ssh_contact_service_OBJECTS) $(ssh_contact_service_LDADD) $(LIBS)
473447
484458 .c.o:
485459 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
486460 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
487 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
488 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
461 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
489462 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
490 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
463 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
491464
492465 .c.obj:
493466 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
494467 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
495 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
496 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
468 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
497469 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
498 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
470 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
499471
500472 .c.lo:
501473 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
502474 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
503 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
504 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
475 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
505476 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
506 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
477 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
507478
508479 mostlyclean-libtool:
509480 -rm -f *.lo
527498 @$(NORMAL_UNINSTALL)
528499 @list='$(clientfile_DATA)'; test -n "$(clientfiledir)" || list=; \
529500 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
530 test -n "$$files" || exit 0; \
531 echo " ( cd '$(DESTDIR)$(clientfiledir)' && rm -f" $$files ")"; \
532 cd "$(DESTDIR)$(clientfiledir)" && rm -f $$files
501 dir='$(DESTDIR)$(clientfiledir)'; $(am__uninstall_files_from_dir)
533502 install-servicefileDATA: $(servicefile_DATA)
534503 @$(NORMAL_INSTALL)
535504 test -z "$(servicefiledir)" || $(MKDIR_P) "$(DESTDIR)$(servicefiledir)"
547516 @$(NORMAL_UNINSTALL)
548517 @list='$(servicefile_DATA)'; test -n "$(servicefiledir)" || list=; \
549518 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
550 test -n "$$files" || exit 0; \
551 echo " ( cd '$(DESTDIR)$(servicefiledir)' && rm -f" $$files ")"; \
552 cd "$(DESTDIR)$(servicefiledir)" && rm -f $$files
553
554 # This directory's subdirectories are mostly independent; you can cd
555 # into them and run `make' without going through this Makefile.
556 # To change the values of `make' variables: instead of editing Makefiles,
557 # (1) if the variable is set in `config.status', edit `config.status'
558 # (which will cause the Makefiles to be regenerated when you run `make');
559 # (2) otherwise, pass the desired values on the `make' command line.
560 $(RECURSIVE_TARGETS):
561 @fail= failcom='exit 1'; \
562 for f in x $$MAKEFLAGS; do \
563 case $$f in \
564 *=* | --[!k]*);; \
565 *k*) failcom='fail=yes';; \
566 esac; \
567 done; \
568 dot_seen=no; \
569 target=`echo $@ | sed s/-recursive//`; \
570 list='$(SUBDIRS)'; for subdir in $$list; do \
571 echo "Making $$target in $$subdir"; \
572 if test "$$subdir" = "."; then \
573 dot_seen=yes; \
574 local_target="$$target-am"; \
575 else \
576 local_target="$$target"; \
577 fi; \
578 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
579 || eval $$failcom; \
580 done; \
581 if test "$$dot_seen" = "no"; then \
582 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
583 fi; test -z "$$fail"
584
585 $(RECURSIVE_CLEAN_TARGETS):
586 @fail= failcom='exit 1'; \
587 for f in x $$MAKEFLAGS; do \
588 case $$f in \
589 *=* | --[!k]*);; \
590 *k*) failcom='fail=yes';; \
591 esac; \
592 done; \
593 dot_seen=no; \
594 case "$@" in \
595 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
596 *) list='$(SUBDIRS)' ;; \
597 esac; \
598 rev=''; for subdir in $$list; do \
599 if test "$$subdir" = "."; then :; else \
600 rev="$$subdir $$rev"; \
601 fi; \
602 done; \
603 rev="$$rev ."; \
604 target=`echo $@ | sed s/-recursive//`; \
605 for subdir in $$rev; do \
606 echo "Making $$target in $$subdir"; \
607 if test "$$subdir" = "."; then \
608 local_target="$$target-am"; \
609 else \
610 local_target="$$target"; \
611 fi; \
612 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
613 || eval $$failcom; \
614 done && test -z "$$fail"
615 tags-recursive:
616 list='$(SUBDIRS)'; for subdir in $$list; do \
617 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
618 done
619 ctags-recursive:
620 list='$(SUBDIRS)'; for subdir in $$list; do \
621 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
622 done
519 dir='$(DESTDIR)$(servicefiledir)'; $(am__uninstall_files_from_dir)
623520
624521 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
625522 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
631528 mkid -fID $$unique
632529 tags: TAGS
633530
634 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
531 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
635532 $(TAGS_FILES) $(LISP)
636533 set x; \
637534 here=`pwd`; \
638 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
639 include_option=--etags-include; \
640 empty_fix=.; \
641 else \
642 include_option=--include; \
643 empty_fix=; \
644 fi; \
645 list='$(SUBDIRS)'; for subdir in $$list; do \
646 if test "$$subdir" = .; then :; else \
647 test ! -f $$subdir/TAGS || \
648 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
649 fi; \
650 done; \
651535 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
652536 unique=`for i in $$list; do \
653537 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
666550 fi; \
667551 fi
668552 ctags: CTAGS
669 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
553 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
670554 $(TAGS_FILES) $(LISP)
671555 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
672556 unique=`for i in $$list; do \
716600 || exit 1; \
717601 fi; \
718602 done
719 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
720 if test "$$subdir" = .; then :; else \
721 test -d "$(distdir)/$$subdir" \
722 || $(MKDIR_P) "$(distdir)/$$subdir" \
723 || exit 1; \
724 fi; \
725 done
726 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
727 if test "$$subdir" = .; then :; else \
728 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
729 $(am__relativize); \
730 new_distdir=$$reldir; \
731 dir1=$$subdir; dir2="$(top_distdir)"; \
732 $(am__relativize); \
733 new_top_distdir=$$reldir; \
734 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
735 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
736 ($(am__cd) $$subdir && \
737 $(MAKE) $(AM_MAKEFLAGS) \
738 top_distdir="$$new_top_distdir" \
739 distdir="$$new_distdir" \
740 am__remove_distdir=: \
741 am__skip_length_check=: \
742 am__skip_mode_fix=: \
743 distdir) \
744 || exit 1; \
745 fi; \
746 done
747603 check-am: all-am
748 check: check-recursive
604 check: check-am
749605 all-am: Makefile $(PROGRAMS) $(DATA)
750 installdirs: installdirs-recursive
751 installdirs-am:
606 installdirs:
752607 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(clientfiledir)" "$(DESTDIR)$(servicefiledir)"; do \
753608 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
754609 done
755 install: install-recursive
756 install-exec: install-exec-recursive
757 install-data: install-data-recursive
758 uninstall: uninstall-recursive
610 install: install-am
611 install-exec: install-exec-am
612 install-data: install-data-am
613 uninstall: uninstall-am
759614
760615 install-am: all-am
761616 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
762617
763 installcheck: installcheck-recursive
618 installcheck: installcheck-am
764619 install-strip:
765 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
766 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
767 `test -z '$(STRIP)' || \
768 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
620 if test -z '$(STRIP)'; then \
621 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
622 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
623 install; \
624 else \
625 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
626 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
627 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
628 fi
769629 mostlyclean-generic:
770630
771631 clean-generic:
778638 maintainer-clean-generic:
779639 @echo "This command is intended for maintainers to use"
780640 @echo "it deletes files that may require special tools to rebuild."
781 clean: clean-recursive
641 clean: clean-am
782642
783643 clean-am: clean-binPROGRAMS clean-generic clean-libexecPROGRAMS \
784644 clean-libtool mostlyclean-am
785645
786 distclean: distclean-recursive
646 distclean: distclean-am
787647 -rm -rf ./$(DEPDIR)
788648 -rm -f Makefile
789649 distclean-am: clean-am distclean-compile distclean-generic \
790650 distclean-tags
791651
792 dvi: dvi-recursive
652 dvi: dvi-am
793653
794654 dvi-am:
795655
796 html: html-recursive
656 html: html-am
797657
798658 html-am:
799659
800 info: info-recursive
660 info: info-am
801661
802662 info-am:
803663
804664 install-data-am: install-clientfileDATA install-servicefileDATA
805665
806 install-dvi: install-dvi-recursive
666 install-dvi: install-dvi-am
807667
808668 install-dvi-am:
809669
810670 install-exec-am: install-binPROGRAMS install-libexecPROGRAMS
811671
812 install-html: install-html-recursive
672 install-html: install-html-am
813673
814674 install-html-am:
815675
816 install-info: install-info-recursive
676 install-info: install-info-am
817677
818678 install-info-am:
819679
820680 install-man:
821681
822 install-pdf: install-pdf-recursive
682 install-pdf: install-pdf-am
823683
824684 install-pdf-am:
825685
826 install-ps: install-ps-recursive
686 install-ps: install-ps-am
827687
828688 install-ps-am:
829689
830690 installcheck-am:
831691
832 maintainer-clean: maintainer-clean-recursive
692 maintainer-clean: maintainer-clean-am
833693 -rm -rf ./$(DEPDIR)
834694 -rm -f Makefile
835695 maintainer-clean-am: distclean-am maintainer-clean-generic
836696
837 mostlyclean: mostlyclean-recursive
697 mostlyclean: mostlyclean-am
838698
839699 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
840700 mostlyclean-libtool
841701
842 pdf: pdf-recursive
702 pdf: pdf-am
843703
844704 pdf-am:
845705
846 ps: ps-recursive
706 ps: ps-am
847707
848708 ps-am:
849709
850710 uninstall-am: uninstall-binPROGRAMS uninstall-clientfileDATA \
851711 uninstall-libexecPROGRAMS uninstall-servicefileDATA
852712
853 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
854 install-am install-strip tags-recursive
855
856 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
857 all all-am check check-am clean clean-binPROGRAMS \
713 .MAKE: install-am install-strip
714
715 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
858716 clean-generic clean-libexecPROGRAMS clean-libtool ctags \
859 ctags-recursive distclean distclean-compile distclean-generic \
717 distclean distclean-compile distclean-generic \
860718 distclean-libtool distclean-tags distdir dvi dvi-am html \
861719 html-am info info-am install install-am install-binPROGRAMS \
862720 install-clientfileDATA install-data install-data-am \
864722 install-html install-html-am install-info install-info-am \
865723 install-libexecPROGRAMS install-man install-pdf install-pdf-am \
866724 install-ps install-ps-am install-servicefileDATA install-strip \
867 installcheck installcheck-am installdirs installdirs-am \
868 maintainer-clean maintainer-clean-generic mostlyclean \
869 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
870 pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
871 uninstall-binPROGRAMS uninstall-clientfileDATA \
872 uninstall-libexecPROGRAMS uninstall-servicefileDATA
725 installcheck installcheck-am installdirs maintainer-clean \
726 maintainer-clean-generic mostlyclean mostlyclean-compile \
727 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
728 tags uninstall uninstall-am uninstall-binPROGRAMS \
729 uninstall-clientfileDATA uninstall-libexecPROGRAMS \
730 uninstall-servicefileDATA
873731
874732
875733 org.freedesktop.Telepathy.Client.SSHContact.service: org.freedesktop.Telepathy.Client.SSHContact.service.in
9999 {
100100 GSimpleAsyncResult *simple = user_data;
101101 GError *error = NULL;
102 CreateTubeData *data;
103
104 data = g_simple_async_result_get_op_res_gpointer (simple);
105102
106103 if (!tp_stream_tube_channel_offer_finish (TP_STREAM_TUBE_CHANNEL (object),
107104 res, &error))
153150 }
154151
155152 void
156 _client_create_tube_async (const gchar *account_path,
153 _client_create_tube_async (TpAccount *account,
157154 const gchar *contact_id,
158155 GAsyncReadyCallback callback,
159156 gpointer user_data)
161158 GSimpleAsyncResult *simple;
162159 CreateTubeData *data;
163160 GHashTable *request;
164 TpDBusDaemon *dbus;
165 TpAccount *account = NULL;
166161 TpAccountChannelRequest *acr;
167 GError *error = NULL;
168
169 dbus = tp_dbus_daemon_dup (&error);
170 if (dbus != NULL)
171 account = tp_account_new (dbus, account_path, &error);
172 if (account == NULL)
173 {
174 g_simple_async_report_gerror_in_idle (NULL, callback, user_data, error);
175 g_clear_error (&error);
176 tp_clear_object (&dbus);
177 return;
178 }
179162
180163 simple = g_simple_async_result_new (NULL, callback, user_data,
181164 _client_create_tube_finish);
200183 NULL, create_channel_cb, simple);
201184
202185 g_hash_table_unref (request);
203 g_object_unref (dbus);
204 g_object_unref (account);
205186 g_object_unref (acr);
206187 }
207188
314295 gboolean
315296 _capabilities_has_stream_tube (TpCapabilities *caps)
316297 {
317 GPtrArray *classes;
318 guint i;
319
320298 if (caps == NULL)
321299 return FALSE;
322300
323 classes = tp_capabilities_get_channel_classes (caps);
324 for (i = 0; i < classes->len; i++)
325 {
326 GValueArray *arr = g_ptr_array_index (classes, i);
327 GHashTable *fixed;
328 const gchar *chan_type;
329 const gchar *service;
330 TpHandleType handle_type;
331
332 fixed = g_value_get_boxed (g_value_array_get_nth (arr, 0));
333 chan_type = tp_asv_get_string (fixed, TP_PROP_CHANNEL_CHANNEL_TYPE);
334 service = tp_asv_get_string (fixed,
335 TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE);
336 handle_type = tp_asv_get_uint32 (fixed,
337 TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, NULL);
338
339 if (!tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_STREAM_TUBE) &&
340 handle_type == TP_HANDLE_TYPE_CONTACT &&
341 (!tp_capabilities_is_specific_to_contact (caps) ||
342 !tp_strdiff (service, TUBE_SERVICE)))
343 return TRUE;
344 }
345
346 return FALSE;
347 }
301 return tp_capabilities_supports_stream_tubes (caps, TP_HANDLE_TYPE_CONTACT,
302 TUBE_SERVICE);
303 }
2525
2626 G_BEGIN_DECLS
2727
28 void _client_create_tube_async (const gchar *account_path,
28 void _client_create_tube_async (TpAccount *account,
2929 const gchar *contact_id, GAsyncReadyCallback callback, gpointer user_data);
3030
3131 GSocketConnection *_client_create_tube_finish (GAsyncResult *res,
3838 gchar *login;
3939 gchar **ssh_opts;
4040
41 GList *accounts;
42 guint n_readying_connections;
43 TpAccount *account;
44
4541 TpChannel *channel;
4642 GSocketConnection *tube_connection;
4743 GSocketConnection *ssh_connection;
4844
49 gboolean account_set:1;
50 gboolean contact_set:1;
5145 gboolean success:1;
5246 } ClientContext;
5347
6660 {
6761 if (context->channel != NULL &&
6862 tp_proxy_get_invalidated (context->channel) == NULL)
69 tp_cli_channel_call_close (context->channel, -1, NULL, NULL, NULL, NULL);
63 tp_channel_close_async (context->channel, NULL, NULL);
7064 else
7165 g_main_loop_quit (context->loop);
7266 }
197191 }
198192
199193 static void
200 start_tube (ClientContext *context)
201 {
202 if (!context->account_set || !context->contact_set)
194 start_tube (ClientContext *context,
195 TpContact *contact)
196 {
197 TpAccount *account;
198
199 account = tp_connection_get_account (tp_contact_get_connection (contact));
200
201 if (context->account_path == NULL || context->contact_id == NULL)
203202 {
204203 g_print ("\nTo avoid interactive mode, you can use that command:\n"
205204 "%s --account %s --contact %s\n", context->argv0,
206 context->account_path, context->contact_id);
207 }
208
209 _client_create_tube_async (context->account_path,
210 context->contact_id, create_tube_cb, context);
211 }
212
213 static void
214 got_contacts_cb (TpConnection *connection,
215 guint n_contacts,
216 TpContact * const *contacts,
217 guint n_failed,
218 const TpHandle *failed,
219 const GError *error,
220 gpointer user_data,
221 GObject *weak_object)
222 {
223 ClientContext *context = user_data;
224 guint i;
225 GList *candidates = NULL, *l;
226 guint count = 0;
205 tp_proxy_get_object_path (account),
206 tp_contact_get_identifier (contact));
207 }
208
209 _client_create_tube_async (account, tp_contact_get_identifier (contact),
210 create_tube_cb, context);
211 }
212
213 static void
214 choose_contact (ClientContext *context,
215 GList *accounts)
216 {
217 GPtrArray *candidates;
218 GList *l;
219 GString *text;
227220 gchar buffer[10];
228221 gchar *str;
229222
230 if (error != NULL)
231 {
232 throw_error (context, error);
233 return;
234 }
235
236 /* Build a list of all contacts supporting StreamTube */
237 for (i = 0; i < n_contacts; i++)
238 if (_capabilities_has_stream_tube (tp_contact_get_capabilities (contacts[i])))
239 candidates = g_list_prepend (candidates, contacts[i]);
240
241 if (candidates == NULL)
223 text = g_string_new (NULL);
224 candidates = g_ptr_array_new_with_free_func (g_object_unref);
225 for (l = accounts; l != NULL; l = l->next)
226 {
227 TpAccount *account = l->data;
228 TpConnection *connection;
229 TpCapabilities *caps;
230 GPtrArray *contacts;
231 GString *subtext;
232 gboolean found = FALSE;
233 guint i;
234
235 connection = tp_account_get_connection (account);
236 if (connection == NULL)
237 continue;
238
239 caps = tp_connection_get_capabilities (connection);
240 if (!_capabilities_has_stream_tube (caps))
241 continue;
242
243 subtext = g_string_new (NULL);
244 contacts = tp_connection_dup_contact_list (connection);
245 for (i = 0; i < contacts->len; i++)
246 {
247 TpContact *contact = g_ptr_array_index (contacts, i);
248
249 caps = tp_contact_get_capabilities (contact);
250 if (!_capabilities_has_stream_tube (caps))
251 continue;
252
253 if (context->contact_id != NULL &&
254 tp_strdiff (context->contact_id,
255 tp_contact_get_identifier (contact)))
256 continue;
257
258 found = TRUE;
259 g_ptr_array_add (candidates, g_object_ref (contact));
260
261 g_string_append_printf (subtext, " %d) %s (%s)\n", candidates->len,
262 tp_contact_get_alias (contact),
263 tp_contact_get_identifier (contact));
264 }
265 g_ptr_array_unref (contacts);
266
267 if (found)
268 {
269 g_string_append_printf (text,
270 "Account %s (%s):\n%s",
271 tp_account_get_display_name (l->data),
272 tp_account_get_protocol (l->data),
273 subtext->str);
274 }
275 g_string_free (subtext, TRUE);
276 }
277
278 if (candidates->len == 0)
242279 {
243280 throw_error_message (context, "No suitable contact");
244 return;
245 }
246
247 /* Ask the user which candidate to use */
248 for (l = candidates; l != NULL; l = l->next)
249 {
250 TpContact *contact = l->data;
251
252 g_print ("%d) %s (%s)\n", ++count, tp_contact_get_alias (contact),
253 tp_contact_get_identifier (contact));
254 }
255
256 g_print ("Which contact to use? ");
281 goto OUT;
282 }
283
284 if (candidates->len == 1 && context->contact_id != NULL)
285 {
286 start_tube (context, g_ptr_array_index (candidates, 0));
287 goto OUT;
288 }
289
290 g_print ("%sWhich contact to use? ", text->str);
257291 str = fgets (buffer, sizeof (buffer), stdin);
258292 if (str != NULL)
259293 {
294 guint i;
295
260296 str[strlen (str) - 1] = '\0';
261 l = g_list_nth (candidates, atoi (str) - 1);
262 }
263 if (l == NULL)
264 {
265 throw_error_message (context, "Invalid contact number");
266 return;
267 }
268
269 context->contact_id = g_strdup (tp_contact_get_identifier (l->data));
270 start_tube (context);
271
272 g_list_free (candidates);
273 }
274
275 static void
276 stored_channel_prepare_cb (GObject *object,
297 i = atoi (str) - 1;
298
299 if (i < candidates->len)
300 {
301 start_tube (context, g_ptr_array_index (candidates, i));
302 goto OUT;
303 }
304 }
305
306 throw_error_message (context, "Invalid contact number");
307
308 OUT:
309 g_ptr_array_unref (candidates);
310 g_string_free (text, TRUE);
311 }
312
313 static void
314 account_prepared_cb (GObject *object,
277315 GAsyncResult *res,
278316 gpointer user_data)
279317 {
280 ClientContext *context = user_data;
281 TpChannel *channel = TP_CHANNEL (object);
282 TpConnection *connection;
283 TpContactFeature features[] = { TP_CONTACT_FEATURE_ALIAS,
284 TP_CONTACT_FEATURE_CAPABILITIES };
285 const TpIntSet *set;
286 GArray *handles;
287 GError *error = NULL;
288
289 if (!tp_proxy_prepare_finish (channel, res, &error))
318 TpAccount *account = TP_ACCOUNT (object);
319 ClientContext *context = user_data;
320 GList *accounts;
321 GError *error = NULL;
322
323 if (!tp_proxy_prepare_finish (TP_PROXY (account), res, &error))
290324 {
291325 throw_error (context, error);
292326 g_clear_error (&error);
293327 return;
294328 }
295329
296 connection = tp_channel_borrow_connection (channel);
297 set = tp_channel_group_get_members (channel);
298 handles = tp_intset_to_array (set);
299
300 tp_connection_get_contacts_by_handle (connection, handles->len,
301 (TpHandle *) handles->data, G_N_ELEMENTS (features), features,
302 got_contacts_cb, context, NULL, NULL);
303
304 g_array_unref (handles);
305 }
306
307 static void
308 ensure_stored_channel_cb (TpConnection *connection,
309 gboolean yours,
310 const gchar *channel_path,
311 GHashTable *properties,
312 const GError *error,
313 gpointer user_data,
314 GObject *weak_object)
315 {
316 ClientContext *context = user_data;
317 TpChannel *channel;
318 GQuark features[] = { TP_CHANNEL_FEATURE_GROUP, 0 };
319 GError *err = NULL;
320
321 if (error != NULL)
322 {
323 throw_error (context, error);
324 return;
325 }
326
327 channel = tp_channel_new_from_properties (connection, channel_path,
328 properties, &err);
329 if (channel == NULL)
330 {
331 throw_error (context, err);
332 g_clear_error (&err);
333 return;
334 }
335
336 tp_proxy_prepare_async (TP_PROXY (channel), features,
337 stored_channel_prepare_cb, context);
338
339 g_object_unref (channel);
340 }
341
342 static void
343 chooser_contact (ClientContext *context)
344 {
345 TpConnection *connection;
346 GHashTable *request;
347
348 /* If a contact ID was passed in the options, use it */
349 if (context->contact_set)
350 {
351 g_assert (context->contact_id != NULL);
352 start_tube (context);
353 return;
354 }
355
356 /* Otherwise, we'll get TpContact objects for all stored contacts on that
357 * account. */
358 request = tp_asv_new (
359 TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
360 TP_IFACE_CHANNEL_TYPE_CONTACT_LIST,
361 TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT,
362 TP_HANDLE_TYPE_LIST,
363 TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
364 "stored",
365 NULL);
366
367 connection = tp_account_get_connection (context->account);
368 tp_cli_connection_interface_requests_call_ensure_channel (connection, -1,
369 request, ensure_stored_channel_cb, context, NULL, NULL);
370
371 g_hash_table_unref (request);
372 }
373
374 static void
375 chooser_account (ClientContext *context)
376 {
377 GList *l;
378 guint count = 0;
379 gchar buffer[10];
380 gchar *str;
381
382 if (context->accounts == NULL)
383 {
384 throw_error_message (context, "No suitable account");
385 return;
386 }
387
388 if (context->account_set)
389 {
390 g_assert (context->account != NULL);
391 g_assert (context->account_path != NULL);
392 chooser_contact (context);
393 return;
394 }
395
396 for (l = context->accounts; l != NULL; l = l->next)
397 {
398 g_print ("%d) %s (%s)\n", ++count,
399 tp_account_get_display_name (l->data),
400 tp_account_get_protocol (l->data));
401 }
402
403 g_print ("Which account to use? ");
404 str = fgets (buffer, sizeof (buffer), stdin);
405 if (str != NULL)
406 {
407 str[strlen (str) - 1] = '\0';
408 l = g_list_nth (context->accounts, atoi (str) - 1);
409 }
410 if (l == NULL)
411 {
412 throw_error_message (context, "Invalid account number");
413 return;
414 }
415
416 context->account = g_object_ref (l->data);
417 context->account_path = g_strdup (tp_proxy_get_object_path (context->account));
418
419 chooser_contact (context);
420 }
421
422 static void
423 connection_prepare_cb (GObject *object,
330 accounts = g_list_prepend (NULL, account);
331 choose_contact (context, accounts);
332 g_list_free (accounts);
333 }
334
335 static void
336 account_manager_prepared_cb (GObject *object,
424337 GAsyncResult *res,
425338 gpointer user_data)
426339 {
427 TpConnection *connection = TP_CONNECTION (object);
428 ClientContext *context = user_data;
429
430 if (!tp_proxy_prepare_finish (TP_PROXY (connection), res, NULL) ||
431 !_capabilities_has_stream_tube (tp_connection_get_capabilities (connection)))
432 {
433 GList *l;
434
435 /* Remove the account that has that connection from the list */
436 for (l = context->accounts; l != NULL; l = l->next)
437 if (tp_account_get_connection (l->data) == connection)
438 {
439 g_object_unref (l->data);
440 context->accounts = g_list_delete_link (context->accounts, l);
441 break;
442 }
443 }
444
445 if (--context->n_readying_connections == 0)
446 chooser_account (context);
447 }
448
449 static void
450 account_manager_prepare_cb (GObject *object,
451 GAsyncResult *res,
452 gpointer user_data)
453 {
454340 TpAccountManager *manager = TP_ACCOUNT_MANAGER (object);
455341 ClientContext *context = user_data;
456 GList *l, *next;
342 GList *accounts;
457343 GError *error = NULL;
458344
459345 if (!tp_proxy_prepare_finish (TP_PROXY (manager), res, &error))
463349 return;
464350 }
465351
466 /* We want to list all accounts which has a connection that have StreamTube
467 * support. So first we prepare all connections, and we keep in
468 * context->accounts those that are suitable. */
469
470 context->accounts = tp_account_manager_get_valid_accounts (manager);
471 g_list_foreach (context->accounts, (GFunc) g_object_ref, NULL);
472
473 for (l = context->accounts; l != NULL; l = next)
474 {
475 GQuark features[] = { TP_CONNECTION_FEATURE_CAPABILITIES, 0 };
476 TpAccount *account = l->data;
477 TpConnection *connection;
478
479 next = l->next;
480
481 connection = tp_account_get_connection (account);
482 if (connection == NULL)
483 {
484 g_object_unref (account);
485 context->accounts = g_list_delete_link (context->accounts, l);
486 continue;
487 }
488
489 context->n_readying_connections++;
490 tp_proxy_prepare_async (TP_PROXY (connection), features,
491 connection_prepare_cb, context);
492 }
493
494 if (context->n_readying_connections == 0)
495 chooser_account (context);
496 }
497
498 static void
499 account_prepare_cb (GObject *object,
500 GAsyncResult *res,
501 gpointer user_data)
502 {
503 TpAccount *account = TP_ACCOUNT (object);
504 ClientContext *context = user_data;
505 GQuark features[] = { TP_CONNECTION_FEATURE_CAPABILITIES, 0 };
506 TpConnection *connection;
507 GError *error = NULL;
508
509 /* We are in the case where an account was specified in options, so we have
510 * only one candidate, if that accounts has no connection or the connection
511 * has no StreamTube support, we'll fail. */
512
513 if (!tp_proxy_prepare_finish (TP_PROXY (account), res, &error))
514 {
515 throw_error (context, error);
516 return;
517 }
518
519 connection = tp_account_get_connection (account);
520 if (connection == NULL)
521 {
522 throw_error_message (context, "Account not online");
523 return;
524 }
525
526 /* Prepare account's connection with caps feature */
527 context->accounts = g_list_prepend (NULL, g_object_ref (account));
528 context->n_readying_connections = 1;
529 tp_proxy_prepare_async (TP_PROXY (connection), features,
530 connection_prepare_cb, context);
352 accounts = tp_account_manager_get_valid_accounts (manager);
353 choose_contact (context, accounts);
354 g_list_free (accounts);
531355 }
532356
533357 static void
540364 g_free (context->login);
541365 g_strfreev (context->ssh_opts);
542366
543 g_list_foreach (context->accounts, (GFunc) g_object_unref, NULL);
544 g_list_free (context->accounts);
545 tp_clear_object (&context->account);
546
547367 tp_clear_object (&context->channel);
548368 tp_clear_object (&context->tube_connection);
549369 tp_clear_object (&context->ssh_connection);
552372 int
553373 main (gint argc, gchar *argv[])
554374 {
555 TpDBusDaemon *dbus = NULL;
375 TpDBusDaemon *dbus;
376 TpSimpleClientFactory *factory;
556377 GError *error = NULL;
557378 ClientContext context = { 0, };
558379 GOptionContext *optcontext;
588409 }
589410 g_option_context_free (optcontext);
590411
412 context.argv0 = g_strdup (argv[0]);
591413 g_set_application_name (PACKAGE_NAME);
414 tp_debug_set_flags (g_getenv ("SSH_CONTACT_DEBUG"));
592415
593416 dbus = tp_dbus_daemon_dup (&error);
594417 if (dbus == NULL)
595418 goto OUT;
596419
597 context.argv0 = g_strdup (argv[0]);
420 /* Create a factory and define the features we need */
421 factory = (TpSimpleClientFactory *) tp_automatic_client_factory_new (dbus);
422 tp_simple_client_factory_add_account_features_varargs (factory,
423 TP_ACCOUNT_FEATURE_CONNECTION,
424 0);
425 tp_simple_client_factory_add_connection_features_varargs (factory,
426 TP_CONNECTION_FEATURE_CONTACT_LIST,
427 TP_CONNECTION_FEATURE_CAPABILITIES,
428 0);
429 tp_simple_client_factory_add_contact_features_varargs (factory,
430 TP_CONTACT_FEATURE_ALIAS,
431 TP_CONTACT_FEATURE_CAPABILITIES,
432 TP_CONTACT_FEATURE_INVALID);
433 g_object_unref (dbus);
434
435 /* If user gave an account path, prepare only that account, otherwise prepare
436 * the whole account manager. */
598437 if (context.account_path != NULL)
599 context.account_set = TRUE;
600 if (context.contact_id != NULL)
601 context.contact_set = TRUE;
602
603 /* If an account id was specified in options, then prepare it, otherwise
604 * we get the account manager to get a list of all accounts */
605 if (context.account_set)
606 {
438 {
439 TpAccount *account;
440 GArray *features;
441
442 /* Fixup account path if needed */
607443 if (!g_str_has_prefix (context.account_path, TP_ACCOUNT_OBJECT_PATH_BASE))
608444 {
609445 gchar *account_id = context.account_path;
611447 context.account_path = g_strconcat (TP_ACCOUNT_OBJECT_PATH_BASE,
612448 account_id, NULL);
613449
614 g_free (account_id);
450 g_free (account_id);
615451 }
616452
617 context.account = tp_account_new (dbus, context.account_path, &error);
618 if (context.account == NULL)
453 account = tp_simple_client_factory_ensure_account (factory,
454 context.account_path, NULL, &error);
455 if (account == NULL)
619456 goto OUT;
620457
621 tp_proxy_prepare_async (TP_PROXY (context.account), NULL,
622 account_prepare_cb, &context);
458 features = tp_simple_client_factory_dup_account_features (factory,
459 account);
460
461 tp_proxy_prepare_async (account, (GQuark *) features->data,
462 account_prepared_cb, &context);
463
464 g_object_unref (account);
465 g_array_unref (features);
623466 }
624467 else
625468 {
626469 TpAccountManager *manager;
627470
628 manager = tp_account_manager_new (dbus);
629 tp_proxy_prepare_async (TP_PROXY (manager), NULL,
630 account_manager_prepare_cb, &context);
631
471 manager = tp_account_manager_new_with_factory (factory);
472
473 tp_proxy_prepare_async (manager, NULL,
474 account_manager_prepared_cb, &context);
632475 g_object_unref (manager);
633476 }
477 g_object_unref (factory);
634478
635479 context.loop = g_main_loop_new (NULL, FALSE);
636480 g_main_loop_run (context.loop);
643487 g_debug ("Error: %s", error->message);
644488 }
645489
646 tp_clear_object (&dbus);
647490 g_clear_error (&error);
648491 client_context_clear (&context);
649492
650493 return context.success ? EXIT_SUCCESS : EXIT_FAILURE;
651494 }
652
5050 error ? error->message : "No error message");
5151 }
5252
53 tp_cli_channel_call_close (channel, -1, NULL, NULL, NULL, NULL);
53 tp_channel_close_async (channel, NULL, NULL);
5454 }
5555
5656 static void
148148 main (gint argc, gchar *argv[])
149149 {
150150 TpDBusDaemon *dbus = NULL;
151 TpSimpleClientFactory *factory = NULL;
151152 TpBaseClient *client = NULL;
152153 gboolean success = TRUE;
153154 GError *error = NULL;
154155
155156 g_type_init ();
156157
158 tp_debug_set_flags (g_getenv ("SSH_CONTACT_DEBUG"));
159
157160 dbus = tp_dbus_daemon_dup (&error);
158161 if (dbus == NULL)
159162 goto OUT;
160163
161 client = tp_simple_handler_new (dbus, FALSE, FALSE, "SSHContact",
162 FALSE, got_channel_cb, NULL, NULL);
164 factory = (TpSimpleClientFactory *) tp_automatic_client_factory_new (dbus);
165 client = tp_simple_handler_new_with_factory (factory, FALSE, FALSE,
166 "SSHContact", FALSE, got_channel_cb, NULL, NULL);
163167
164168 tp_base_client_take_handler_filter (client, tp_asv_new (
165169 TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
188192
189193 tp_clear_pointer (&loop, g_main_loop_unref);
190194 tp_clear_object (&dbus);
195 tp_clear_object (&factory);
191196 tp_clear_object (&client);
192197 g_clear_error (&error);
193198
+0
-36
src/vinagre/Makefile.am less more
0 # ssh plugin
1 plugindir = $(libdir)/vinagre-1/plugins
2
3 AM_CPPFLAGS = \
4 $(ERROR_CFLAGS) \
5 $(SSH_CONTACT_CFLAGS) \
6 $(VINAGRE_CFLAGS) \
7 $(NULL)
8
9 plugin_LTLIBRARIES = libssh-contact.la
10
11 libssh_contact_la_LIBADD = \
12 $(SSH_CONTACT_LIBS) \
13 $(VINAGRE_LIBS) \
14 $(NULL)
15
16 libssh_contact_la_SOURCES = \
17 plugin.h plugin.c \
18 connection.h connection.c \
19 tab.h tab.c \
20 tree-view.h tree-view.c \
21 ../client-helpers.h ../client-helpers.c \
22 $(NULL)
23
24 plugin_in_files = ssh-contact.vinagre-plugin.desktop.in
25
26 ssh-contact.vinagre-plugin: ssh-contact.vinagre-plugin.desktop.in
27 $(AM_V_GEN) $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c \
28 $(top_builddir)/po/.intltool-merge-cache
29
30 plugin_DATA = $(plugin_in_files:.vinagre-plugin.desktop.in=.vinagre-plugin)
31
32 EXTRA_DIST = $(plugin_in_files)
33 CLEANFILES = $(plugin_DATA)
34 DISTCLEANFILES = $(plugin_DATA)
35
+0
-646
src/vinagre/Makefile.in less more
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkglibexecdir = $(libexecdir)/@PACKAGE@
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = src/vinagre
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/as-compiler-flag.m4 \
41 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
42 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
43 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
51 am__vpath_adj = case $$p in \
52 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
53 *) f=$$p;; \
54 esac;
55 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
56 am__install_max = 40
57 am__nobase_strip_setup = \
58 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
59 am__nobase_strip = \
60 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
61 am__nobase_list = $(am__nobase_strip_setup); \
62 for p in $$list; do echo "$$p $$p"; done | \
63 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
64 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
65 if (++n[$$2] == $(am__install_max)) \
66 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
67 END { for (dir in files) print dir, files[dir] }'
68 am__base_list = \
69 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
70 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
71 am__installdirs = "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"
72 LTLIBRARIES = $(plugin_LTLIBRARIES)
73 am__DEPENDENCIES_1 =
74 libssh_contact_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
75 $(am__DEPENDENCIES_1)
76 am_libssh_contact_la_OBJECTS = plugin.lo connection.lo tab.lo \
77 tree-view.lo client-helpers.lo
78 libssh_contact_la_OBJECTS = $(am_libssh_contact_la_OBJECTS)
79 AM_V_lt = $(am__v_lt_$(V))
80 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
81 am__v_lt_0 = --silent
82 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
83 depcomp = $(SHELL) $(top_srcdir)/depcomp
84 am__depfiles_maybe = depfiles
85 am__mv = mv -f
86 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
87 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
88 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
89 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
90 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
91 $(AM_CFLAGS) $(CFLAGS)
92 AM_V_CC = $(am__v_CC_$(V))
93 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
94 am__v_CC_0 = @echo " CC " $@;
95 AM_V_at = $(am__v_at_$(V))
96 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
97 am__v_at_0 = @
98 CCLD = $(CC)
99 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
100 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
101 $(AM_LDFLAGS) $(LDFLAGS) -o $@
102 AM_V_CCLD = $(am__v_CCLD_$(V))
103 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
104 am__v_CCLD_0 = @echo " CCLD " $@;
105 AM_V_GEN = $(am__v_GEN_$(V))
106 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
107 am__v_GEN_0 = @echo " GEN " $@;
108 SOURCES = $(libssh_contact_la_SOURCES)
109 DIST_SOURCES = $(libssh_contact_la_SOURCES)
110 DATA = $(plugin_DATA)
111 ETAGS = etags
112 CTAGS = ctags
113 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
114 ACLOCAL = @ACLOCAL@
115 ALL_LINGUAS = @ALL_LINGUAS@
116 AMTAR = @AMTAR@
117 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
118 AR = @AR@
119 AUTOCONF = @AUTOCONF@
120 AUTOHEADER = @AUTOHEADER@
121 AUTOMAKE = @AUTOMAKE@
122 AWK = @AWK@
123 CATALOGS = @CATALOGS@
124 CATOBJEXT = @CATOBJEXT@
125 CC = @CC@
126 CCDEPMODE = @CCDEPMODE@
127 CFLAGS = @CFLAGS@
128 CPP = @CPP@
129 CPPFLAGS = @CPPFLAGS@
130 CYGPATH_W = @CYGPATH_W@
131 DATADIRNAME = @DATADIRNAME@
132 DEFS = @DEFS@
133 DEPDIR = @DEPDIR@
134 DSYMUTIL = @DSYMUTIL@
135 DUMPBIN = @DUMPBIN@
136 ECHO_C = @ECHO_C@
137 ECHO_N = @ECHO_N@
138 ECHO_T = @ECHO_T@
139 EGREP = @EGREP@
140 ERROR_CFLAGS = @ERROR_CFLAGS@
141 EXEEXT = @EXEEXT@
142 FGREP = @FGREP@
143 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
144 GLIB_CFLAGS = @GLIB_CFLAGS@
145 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
146 GLIB_LIBS = @GLIB_LIBS@
147 GLIB_MKENUMS = @GLIB_MKENUMS@
148 GMOFILES = @GMOFILES@
149 GMSGFMT = @GMSGFMT@
150 GOBJECT_QUERY = @GOBJECT_QUERY@
151 GREP = @GREP@
152 INSTALL = @INSTALL@
153 INSTALL_DATA = @INSTALL_DATA@
154 INSTALL_PROGRAM = @INSTALL_PROGRAM@
155 INSTALL_SCRIPT = @INSTALL_SCRIPT@
156 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
157 INSTOBJEXT = @INSTOBJEXT@
158 INTLLIBS = @INTLLIBS@
159 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
160 INTLTOOL_MERGE = @INTLTOOL_MERGE@
161 INTLTOOL_PERL = @INTLTOOL_PERL@
162 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
163 LD = @LD@
164 LDFLAGS = @LDFLAGS@
165 LIBOBJS = @LIBOBJS@
166 LIBS = @LIBS@
167 LIBTOOL = @LIBTOOL@
168 LIPO = @LIPO@
169 LN_S = @LN_S@
170 LTLIBOBJS = @LTLIBOBJS@
171 MAINT = @MAINT@
172 MAKEINFO = @MAKEINFO@
173 MKDIR_P = @MKDIR_P@
174 MKINSTALLDIRS = @MKINSTALLDIRS@
175 MSGFMT = @MSGFMT@
176 MSGFMT_OPTS = @MSGFMT_OPTS@
177 MSGMERGE = @MSGMERGE@
178 NM = @NM@
179 NMEDIT = @NMEDIT@
180 OBJDUMP = @OBJDUMP@
181 OBJEXT = @OBJEXT@
182 OTOOL = @OTOOL@
183 OTOOL64 = @OTOOL64@
184 PACKAGE = @PACKAGE@
185 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
186 PACKAGE_NAME = @PACKAGE_NAME@
187 PACKAGE_STRING = @PACKAGE_STRING@
188 PACKAGE_TARNAME = @PACKAGE_TARNAME@
189 PACKAGE_URL = @PACKAGE_URL@
190 PACKAGE_VERSION = @PACKAGE_VERSION@
191 PATH_SEPARATOR = @PATH_SEPARATOR@
192 PKG_CONFIG = @PKG_CONFIG@
193 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
194 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
195 POFILES = @POFILES@
196 POSUB = @POSUB@
197 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
198 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
199 RANLIB = @RANLIB@
200 SED = @SED@
201 SET_MAKE = @SET_MAKE@
202 SHELL = @SHELL@
203 SSH_CONTACT_CFLAGS = @SSH_CONTACT_CFLAGS@
204 SSH_CONTACT_LIBS = @SSH_CONTACT_LIBS@
205 STRIP = @STRIP@
206 USE_NLS = @USE_NLS@
207 VERSION = @VERSION@
208 VINAGRE_CFLAGS = @VINAGRE_CFLAGS@
209 VINAGRE_LIBS = @VINAGRE_LIBS@
210 XGETTEXT = @XGETTEXT@
211 XMKMF = @XMKMF@
212 X_CFLAGS = @X_CFLAGS@
213 X_EXTRA_LIBS = @X_EXTRA_LIBS@
214 X_LIBS = @X_LIBS@
215 X_PRE_LIBS = @X_PRE_LIBS@
216 abs_builddir = @abs_builddir@
217 abs_srcdir = @abs_srcdir@
218 abs_top_builddir = @abs_top_builddir@
219 abs_top_srcdir = @abs_top_srcdir@
220 ac_ct_CC = @ac_ct_CC@
221 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
222 am__include = @am__include@
223 am__leading_dot = @am__leading_dot@
224 am__quote = @am__quote@
225 am__tar = @am__tar@
226 am__untar = @am__untar@
227 bindir = @bindir@
228 build = @build@
229 build_alias = @build_alias@
230 build_cpu = @build_cpu@
231 build_os = @build_os@
232 build_vendor = @build_vendor@
233 builddir = @builddir@
234 datadir = @datadir@
235 datarootdir = @datarootdir@
236 docdir = @docdir@
237 dvidir = @dvidir@
238 exec_prefix = @exec_prefix@
239 host = @host@
240 host_alias = @host_alias@
241 host_cpu = @host_cpu@
242 host_os = @host_os@
243 host_vendor = @host_vendor@
244 htmldir = @htmldir@
245 includedir = @includedir@
246 infodir = @infodir@
247 install_sh = @install_sh@
248 libdir = @libdir@
249 libexecdir = @libexecdir@
250 localedir = @localedir@
251 localstatedir = @localstatedir@
252 lt_ECHO = @lt_ECHO@
253 mandir = @mandir@
254 mkdir_p = @mkdir_p@
255 oldincludedir = @oldincludedir@
256 pdfdir = @pdfdir@
257 prefix = @prefix@
258 program_transform_name = @program_transform_name@
259 psdir = @psdir@
260 sbindir = @sbindir@
261 sharedstatedir = @sharedstatedir@
262 srcdir = @srcdir@
263 sysconfdir = @sysconfdir@
264 target_alias = @target_alias@
265 top_build_prefix = @top_build_prefix@
266 top_builddir = @top_builddir@
267 top_srcdir = @top_srcdir@
268
269 # ssh plugin
270 plugindir = $(libdir)/vinagre-1/plugins
271 AM_CPPFLAGS = \
272 $(ERROR_CFLAGS) \
273 $(SSH_CONTACT_CFLAGS) \
274 $(VINAGRE_CFLAGS) \
275 $(NULL)
276
277 plugin_LTLIBRARIES = libssh-contact.la
278 libssh_contact_la_LIBADD = \
279 $(SSH_CONTACT_LIBS) \
280 $(VINAGRE_LIBS) \
281 $(NULL)
282
283 libssh_contact_la_SOURCES = \
284 plugin.h plugin.c \
285 connection.h connection.c \
286 tab.h tab.c \
287 tree-view.h tree-view.c \
288 ../client-helpers.h ../client-helpers.c \
289 $(NULL)
290
291 plugin_in_files = ssh-contact.vinagre-plugin.desktop.in
292 plugin_DATA = $(plugin_in_files:.vinagre-plugin.desktop.in=.vinagre-plugin)
293 EXTRA_DIST = $(plugin_in_files)
294 CLEANFILES = $(plugin_DATA)
295 DISTCLEANFILES = $(plugin_DATA)
296 all: all-am
297
298 .SUFFIXES:
299 .SUFFIXES: .c .lo .o .obj
300 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
301 @for dep in $?; do \
302 case '$(am__configure_deps)' in \
303 *$$dep*) \
304 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
305 && { if test -f $@; then exit 0; else break; fi; }; \
306 exit 1;; \
307 esac; \
308 done; \
309 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/vinagre/Makefile'; \
310 $(am__cd) $(top_srcdir) && \
311 $(AUTOMAKE) --gnu src/vinagre/Makefile
312 .PRECIOUS: Makefile
313 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
314 @case '$?' in \
315 *config.status*) \
316 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
317 *) \
318 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
319 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
320 esac;
321
322 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
323 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
324
325 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
326 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
327 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
328 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
329 $(am__aclocal_m4_deps):
330 install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
331 @$(NORMAL_INSTALL)
332 test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
333 @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \
334 list2=; for p in $$list; do \
335 if test -f $$p; then \
336 list2="$$list2 $$p"; \
337 else :; fi; \
338 done; \
339 test -z "$$list2" || { \
340 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \
341 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \
342 }
343
344 uninstall-pluginLTLIBRARIES:
345 @$(NORMAL_UNINSTALL)
346 @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \
347 for p in $$list; do \
348 $(am__strip_dir) \
349 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \
350 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \
351 done
352
353 clean-pluginLTLIBRARIES:
354 -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
355 @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
356 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
357 test "$$dir" != "$$p" || dir=.; \
358 echo "rm -f \"$${dir}/so_locations\""; \
359 rm -f "$${dir}/so_locations"; \
360 done
361 libssh-contact.la: $(libssh_contact_la_OBJECTS) $(libssh_contact_la_DEPENDENCIES)
362 $(AM_V_CCLD)$(LINK) -rpath $(plugindir) $(libssh_contact_la_OBJECTS) $(libssh_contact_la_LIBADD) $(LIBS)
363
364 mostlyclean-compile:
365 -rm -f *.$(OBJEXT)
366
367 distclean-compile:
368 -rm -f *.tab.c
369
370 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client-helpers.Plo@am__quote@
371 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/connection.Plo@am__quote@
372 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plugin.Plo@am__quote@
373 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tab.Plo@am__quote@
374 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree-view.Plo@am__quote@
375
376 .c.o:
377 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
378 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
379 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
380 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
381 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
382 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
383
384 .c.obj:
385 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
386 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
387 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
388 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
389 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
391
392 .c.lo:
393 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
394 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
395 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
396 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
397 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
399
400 client-helpers.lo: ../client-helpers.c
401 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client-helpers.lo -MD -MP -MF $(DEPDIR)/client-helpers.Tpo -c -o client-helpers.lo `test -f '../client-helpers.c' || echo '$(srcdir)/'`../client-helpers.c
402 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client-helpers.Tpo $(DEPDIR)/client-helpers.Plo
403 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
404 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../client-helpers.c' object='client-helpers.lo' libtool=yes @AMDEPBACKSLASH@
405 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
406 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client-helpers.lo `test -f '../client-helpers.c' || echo '$(srcdir)/'`../client-helpers.c
407
408 mostlyclean-libtool:
409 -rm -f *.lo
410
411 clean-libtool:
412 -rm -rf .libs _libs
413 install-pluginDATA: $(plugin_DATA)
414 @$(NORMAL_INSTALL)
415 test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
416 @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \
417 for p in $$list; do \
418 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
419 echo "$$d$$p"; \
420 done | $(am__base_list) | \
421 while read files; do \
422 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(plugindir)'"; \
423 $(INSTALL_DATA) $$files "$(DESTDIR)$(plugindir)" || exit $$?; \
424 done
425
426 uninstall-pluginDATA:
427 @$(NORMAL_UNINSTALL)
428 @list='$(plugin_DATA)'; test -n "$(plugindir)" || list=; \
429 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
430 test -n "$$files" || exit 0; \
431 echo " ( cd '$(DESTDIR)$(plugindir)' && rm -f" $$files ")"; \
432 cd "$(DESTDIR)$(plugindir)" && rm -f $$files
433
434 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
435 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
436 unique=`for i in $$list; do \
437 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
438 done | \
439 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
440 END { if (nonempty) { for (i in files) print i; }; }'`; \
441 mkid -fID $$unique
442 tags: TAGS
443
444 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
445 $(TAGS_FILES) $(LISP)
446 set x; \
447 here=`pwd`; \
448 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
449 unique=`for i in $$list; do \
450 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
451 done | \
452 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
453 END { if (nonempty) { for (i in files) print i; }; }'`; \
454 shift; \
455 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
456 test -n "$$unique" || unique=$$empty_fix; \
457 if test $$# -gt 0; then \
458 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
459 "$$@" $$unique; \
460 else \
461 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
462 $$unique; \
463 fi; \
464 fi
465 ctags: CTAGS
466 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
467 $(TAGS_FILES) $(LISP)
468 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
469 unique=`for i in $$list; do \
470 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
471 done | \
472 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
473 END { if (nonempty) { for (i in files) print i; }; }'`; \
474 test -z "$(CTAGS_ARGS)$$unique" \
475 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
476 $$unique
477
478 GTAGS:
479 here=`$(am__cd) $(top_builddir) && pwd` \
480 && $(am__cd) $(top_srcdir) \
481 && gtags -i $(GTAGS_ARGS) "$$here"
482
483 distclean-tags:
484 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
485
486 distdir: $(DISTFILES)
487 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
488 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
489 list='$(DISTFILES)'; \
490 dist_files=`for file in $$list; do echo $$file; done | \
491 sed -e "s|^$$srcdirstrip/||;t" \
492 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
493 case $$dist_files in \
494 */*) $(MKDIR_P) `echo "$$dist_files" | \
495 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
496 sort -u` ;; \
497 esac; \
498 for file in $$dist_files; do \
499 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
500 if test -d $$d/$$file; then \
501 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
502 if test -d "$(distdir)/$$file"; then \
503 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
504 fi; \
505 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
506 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
507 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
508 fi; \
509 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
510 else \
511 test -f "$(distdir)/$$file" \
512 || cp -p $$d/$$file "$(distdir)/$$file" \
513 || exit 1; \
514 fi; \
515 done
516 check-am: all-am
517 check: check-am
518 all-am: Makefile $(LTLIBRARIES) $(DATA)
519 installdirs:
520 for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(plugindir)"; do \
521 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
522 done
523 install: install-am
524 install-exec: install-exec-am
525 install-data: install-data-am
526 uninstall: uninstall-am
527
528 install-am: all-am
529 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
530
531 installcheck: installcheck-am
532 install-strip:
533 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
534 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
535 `test -z '$(STRIP)' || \
536 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
537 mostlyclean-generic:
538
539 clean-generic:
540 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
541
542 distclean-generic:
543 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
544 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
545 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
546
547 maintainer-clean-generic:
548 @echo "This command is intended for maintainers to use"
549 @echo "it deletes files that may require special tools to rebuild."
550 clean: clean-am
551
552 clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \
553 mostlyclean-am
554
555 distclean: distclean-am
556 -rm -rf ./$(DEPDIR)
557 -rm -f Makefile
558 distclean-am: clean-am distclean-compile distclean-generic \
559 distclean-tags
560
561 dvi: dvi-am
562
563 dvi-am:
564
565 html: html-am
566
567 html-am:
568
569 info: info-am
570
571 info-am:
572
573 install-data-am: install-pluginDATA install-pluginLTLIBRARIES
574
575 install-dvi: install-dvi-am
576
577 install-dvi-am:
578
579 install-exec-am:
580
581 install-html: install-html-am
582
583 install-html-am:
584
585 install-info: install-info-am
586
587 install-info-am:
588
589 install-man:
590
591 install-pdf: install-pdf-am
592
593 install-pdf-am:
594
595 install-ps: install-ps-am
596
597 install-ps-am:
598
599 installcheck-am:
600
601 maintainer-clean: maintainer-clean-am
602 -rm -rf ./$(DEPDIR)
603 -rm -f Makefile
604 maintainer-clean-am: distclean-am maintainer-clean-generic
605
606 mostlyclean: mostlyclean-am
607
608 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
609 mostlyclean-libtool
610
611 pdf: pdf-am
612
613 pdf-am:
614
615 ps: ps-am
616
617 ps-am:
618
619 uninstall-am: uninstall-pluginDATA uninstall-pluginLTLIBRARIES
620
621 .MAKE: install-am install-strip
622
623 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
624 clean-libtool clean-pluginLTLIBRARIES ctags distclean \
625 distclean-compile distclean-generic distclean-libtool \
626 distclean-tags distdir dvi dvi-am html html-am info info-am \
627 install install-am install-data install-data-am install-dvi \
628 install-dvi-am install-exec install-exec-am install-html \
629 install-html-am install-info install-info-am install-man \
630 install-pdf install-pdf-am install-pluginDATA \
631 install-pluginLTLIBRARIES install-ps install-ps-am \
632 install-strip installcheck installcheck-am installdirs \
633 maintainer-clean maintainer-clean-generic mostlyclean \
634 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
635 pdf pdf-am ps ps-am tags uninstall uninstall-am \
636 uninstall-pluginDATA uninstall-pluginLTLIBRARIES
637
638
639 ssh-contact.vinagre-plugin: ssh-contact.vinagre-plugin.desktop.in
640 $(AM_V_GEN) $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c \
641 $(top_builddir)/po/.intltool-merge-cache
642
643 # Tell versions [3.59,3.63) of GNU make to not export all variables.
644 # Otherwise a system limit (for SysV at least) may be exceeded.
645 .NOEXPORT:
+0
-223
src/vinagre/connection.c less more
0 /*
1 * Copyright (C) 2009 Jonh Wendell <wendell@bani.com.br>
2 * Copyright (C) 2010 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19
20 #include <glib/gi18n.h>
21
22 #include <vinagre/vinagre-utils.h>
23 #include <vinagre/vinagre-cache-prefs.h>
24
25 #include <telepathy-glib/telepathy-glib.h>
26
27 #include "connection.h"
28 #include "tree-view.h"
29
30 struct _SshContactConnectionPrivate
31 {
32 gchar *account_path;
33 gchar *contact_id;
34 };
35
36 G_DEFINE_TYPE (SshContactConnection, ssh_contact_connection,
37 VINAGRE_TYPE_CONNECTION);
38
39 static void
40 impl_fill_writer (VinagreConnection *conn, xmlTextWriter *writer)
41 {
42 SshContactConnection *self = SSH_CONTACT_CONNECTION (conn);
43
44 xmlTextWriterWriteElement (writer, (const xmlChar *) "account",
45 (const xmlChar *) (self->priv->account_path ? self->priv->account_path : ""));
46 xmlTextWriterWriteElement (writer, (const xmlChar *) "contact",
47 (const xmlChar *) (self->priv->contact_id ? self->priv->contact_id : ""));
48
49 VINAGRE_CONNECTION_CLASS (ssh_contact_connection_parent_class)->impl_fill_writer (conn, writer);
50 }
51
52 static void
53 impl_parse_item (VinagreConnection *conn, xmlNode *root)
54 {
55 SshContactConnection *self = SSH_CONTACT_CONNECTION (conn);
56 xmlNode *curr;
57 xmlChar *s_value;
58
59 for (curr = root->children; curr; curr = curr->next)
60 {
61 s_value = xmlNodeGetContent (curr);
62
63 if (!xmlStrcmp(curr->name, (const xmlChar *)"account"))
64 ssh_contact_connection_set_account_path (self, (gchar *) s_value);
65 else if (!xmlStrcmp(curr->name, (const xmlChar *)"contact"))
66 ssh_contact_connection_set_contact_id (self, (gchar *) s_value);
67
68 xmlFree (s_value);
69 }
70
71 VINAGRE_CONNECTION_CLASS (ssh_contact_connection_parent_class)->impl_parse_item (conn, root);
72 }
73
74 static void
75 impl_parse_options_widget (VinagreConnection *conn,
76 GtkWidget *widget)
77 {
78 GtkWidget *entry;
79 const gchar *username;
80
81 entry = g_object_get_data (G_OBJECT (widget), "username_entry");
82 if (entry == NULL)
83 {
84 g_warning ("Wrong widget passed to impl_parse_options_widget()");
85 return;
86 }
87
88 username = gtk_entry_get_text (GTK_ENTRY (entry));
89 vinagre_cache_prefs_set_string ("ssh-contact-connection", "username",
90 username);
91 vinagre_connection_set_username (conn, username);
92
93 VINAGRE_CONNECTION_CLASS (ssh_contact_connection_parent_class)->impl_parse_options_widget (conn, widget);
94 }
95
96 static void
97 impl_parse_host_widget (VinagreConnection *conn,
98 GtkWidget *widget)
99 {
100 SshContactConnection *self = SSH_CONTACT_CONNECTION (conn);
101 SshContactTreeView *view;
102 TpAccount *account;
103 TpContact *contact;
104
105 /* widget is a GtkScrolledWindow containing an SshContactTreeView */
106 view = SSH_CONTACT_TREE_VIEW (gtk_bin_get_child (GTK_BIN (widget)));
107
108 account = ssh_contact_tree_view_get_selected_account (view);
109 ssh_contact_connection_set_account_path (self,
110 tp_proxy_get_object_path (account));
111
112 contact = ssh_contact_tree_view_get_selected_contact (view);
113 ssh_contact_connection_set_contact_id (self,
114 tp_contact_get_identifier (contact));
115
116 VINAGRE_CONNECTION_CLASS (ssh_contact_connection_parent_class)->impl_parse_host_widget (conn, widget);
117 }
118
119 static gchar *
120 impl_get_string_rep (VinagreConnection *conn,
121 gboolean has_protocol)
122 {
123 SshContactConnection *self = SSH_CONTACT_CONNECTION (conn);
124 GString *uri;
125
126 if (has_protocol)
127 {
128 uri = g_string_new (vinagre_connection_get_protocol (conn));
129 g_string_append (uri, "://");
130 }
131 else
132 {
133 uri = g_string_new (NULL);
134 }
135
136 g_string_append (uri, self->priv->account_path);
137 g_string_append_c (uri, '/');
138 g_string_append (uri, self->priv->contact_id);
139
140 return g_string_free (uri, FALSE);
141 }
142
143 static void
144 finalize (GObject *object)
145 {
146 SshContactConnection *self = SSH_CONTACT_CONNECTION (object);
147
148 g_free (self->priv->contact_id);
149 g_free (self->priv->account_path);
150
151 G_OBJECT_CLASS (ssh_contact_connection_parent_class)->finalize (object);
152 }
153
154 static void
155 ssh_contact_connection_init (SshContactConnection *self)
156 {
157 self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, SSH_CONTACT_TYPE_CONNECTION,
158 SshContactConnectionPrivate);
159 }
160
161 static void
162 ssh_contact_connection_class_init (SshContactConnectionClass *klass)
163 {
164 GObjectClass *object_class = G_OBJECT_CLASS (klass);
165 VinagreConnectionClass* vinagre_class = VINAGRE_CONNECTION_CLASS (klass);
166
167 object_class->finalize = finalize;
168
169 vinagre_class->impl_fill_writer = impl_fill_writer;
170 vinagre_class->impl_parse_item = impl_parse_item;
171 vinagre_class->impl_parse_options_widget = impl_parse_options_widget;
172 vinagre_class->impl_parse_host_widget = impl_parse_host_widget;
173 vinagre_class->impl_get_string_rep = impl_get_string_rep;
174
175 g_type_class_add_private (klass, sizeof (SshContactConnectionPrivate));
176 }
177
178 VinagreConnection *
179 ssh_contact_connection_new (void)
180 {
181 return g_object_new (SSH_CONTACT_TYPE_CONNECTION,
182 "protocol", "ssh-contact",
183 NULL);
184 }
185
186 const gchar *
187 ssh_contact_connection_get_account_path (SshContactConnection *self)
188 {
189 g_return_val_if_fail (SSH_CONTACT_IS_CONNECTION (self), NULL);
190
191 return self->priv->account_path;
192 }
193
194 void
195 ssh_contact_connection_set_account_path (SshContactConnection *self,
196 const gchar *account_path)
197 {
198 g_return_if_fail (SSH_CONTACT_IS_CONNECTION (self));
199
200 g_free (self->priv->account_path);
201 self->priv->account_path = g_strdup (account_path);
202 }
203
204 const gchar *
205 ssh_contact_connection_get_contact_id (SshContactConnection *self)
206 {
207 g_return_val_if_fail (SSH_CONTACT_IS_CONNECTION (self), NULL);
208
209 return self->priv->contact_id;
210 }
211
212 void
213 ssh_contact_connection_set_contact_id (SshContactConnection *self,
214 const gchar *contact_id)
215 {
216 g_return_if_fail (SSH_CONTACT_IS_CONNECTION (self));
217
218 g_free (self->priv->contact_id);
219 self->priv->contact_id = g_strdup (contact_id);
220 }
221
222 /* vim: set ts=8: */
+0
-65
src/vinagre/connection.h less more
0 /*
1 * Copyright (C) 2009 Jonh Wendell <wendell@bani.com.br>
2 * Copyright (C) 2010 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __SSH_CONTACT_CONNECTION_H__
21 #define __SSH_CONTACT_CONNECTION_H__
22
23 #include <vinagre/vinagre-connection.h>
24
25 G_BEGIN_DECLS
26
27 #define SSH_CONTACT_TYPE_CONNECTION (ssh_contact_connection_get_type ())
28 #define SSH_CONTACT_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SSH_CONTACT_TYPE_CONNECTION, SshContactConnection))
29 #define SSH_CONTACT_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SSH_CONTACT_TYPE_CONNECTION, SshContactConnectionClass))
30 #define SSH_CONTACT_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SSH_CONTACT_TYPE_CONNECTION))
31 #define SSH_CONTACT_IS_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SSH_CONTACT_TYPE_CONNECTION))
32 #define SSH_CONTACT_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SSH_CONTACT_TYPE_CONNECTION, SshContactConnectionClass))
33
34 typedef struct _SshContactConnectionPrivate SshContactConnectionPrivate;
35
36 typedef struct
37 {
38 VinagreConnection parent_instance;
39 SshContactConnectionPrivate *priv;
40 } SshContactConnection;
41
42 typedef struct
43 {
44 VinagreConnectionClass parent_class;
45 } SshContactConnectionClass;
46
47 GType ssh_contact_connection_get_type (void) G_GNUC_CONST;
48
49 VinagreConnection *ssh_contact_connection_new (void);
50
51 const gchar *ssh_contact_connection_get_account_path (SshContactConnection *self);
52
53 void ssh_contact_connection_set_account_path (SshContactConnection *self,
54 const gchar *account_path);
55
56 const gchar *ssh_contact_connection_get_contact_id (SshContactConnection *self);
57
58 void ssh_contact_connection_set_contact_id (SshContactConnection *self,
59 const gchar *contact_id);
60
61 G_END_DECLS
62
63 #endif /* __SSH_CONTACT_CONNECTION_H__ */
64 /* vim: set ts=8: */
+0
-244
src/vinagre/plugin.c less more
0 /*
1 * Copyright (C) 2009 Jonh Wendell <wendell@bani.com.br>
2 * Copyright (C) 2010 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19
20 #include "config.h"
21
22 #include <glib/gi18n-lib.h>
23 #include <gmodule.h>
24
25 #include <vinagre/vinagre-debug.h>
26 #include <vinagre/vinagre-cache-prefs.h>
27
28 #include "plugin.h"
29 #include "connection.h"
30 #include "tab.h"
31 #include "tree-view.h"
32
33 VINAGRE_PLUGIN_REGISTER_TYPE (SshContactPlugin, ssh_contact_plugin)
34
35 static void
36 impl_activate (VinagrePlugin *plugin,
37 VinagreWindow *window)
38 {
39 vinagre_debug_message (DEBUG_PLUGINS, "SshContactPlugin Activate");
40 }
41
42 static void
43 impl_deactivate (VinagrePlugin *plugin,
44 VinagreWindow *window)
45 {
46 vinagre_debug_message (DEBUG_PLUGINS, "SshContactPlugin Deactivate");
47 }
48
49 static void
50 impl_update_ui (VinagrePlugin *plugin,
51 VinagreWindow *window)
52 {
53 vinagre_debug_message (DEBUG_PLUGINS, "SshContactPlugin Update UI");
54 }
55
56 static const gchar *
57 impl_get_protocol (VinagrePlugin *plugin)
58 {
59 return "ssh-contact";
60 }
61
62 static gchar **
63 impl_get_public_description (VinagrePlugin *plugin)
64 {
65 gchar **result = g_new (gchar *, 3);
66
67 result[0] = g_strdup (_("SSH-Contact"));
68 /* Translators: This is a description of the SSH protocol. It appears at
69 * Connect dialog. */
70 result[1] = g_strdup (_("Access Unix/Linux terminals using a Telepathy Tube"));
71 result[2] = NULL;
72
73 return result;
74 }
75
76 static const gchar *
77 impl_get_mdns_service (VinagrePlugin *plugin)
78 {
79 return NULL;
80 }
81
82 static VinagreConnection *
83 impl_new_connection (VinagrePlugin *plugin)
84 {
85 return ssh_contact_connection_new ();
86 }
87
88 static VinagreConnection *
89 impl_new_connection_from_string (VinagrePlugin *plugin,
90 const gchar *uri,
91 gchar **error_msg,
92 gboolean use_bookmarks)
93 {
94 VinagreConnection *conn = NULL;
95 const gchar *p1 = uri;
96 const gchar *p2;
97 gchar *account_path;
98 gchar *contact_id;
99
100 /* FIXME: Search in bookmarks */
101
102 /* URI is in the form "ssh-contact://<account path>/<contact id>". */
103
104 /* Skip the scheme part */
105 if (!g_str_has_prefix (p1, vinagre_plugin_get_protocol (plugin)))
106 goto OUT;
107 p1 += strlen (vinagre_plugin_get_protocol (plugin));
108 if (!g_str_has_prefix (p1, "://"))
109 goto OUT;
110 p1 += strlen ("://");
111
112 /* Search delimiter between account path and contact id */
113 p2 = g_strrstr (p1, "/");
114 if (p2 == NULL)
115 goto OUT;
116
117 account_path = g_strndup (p1, p2 - p1);
118 contact_id = g_strdup (p2 + 1);
119
120 conn = ssh_contact_connection_new ();
121 ssh_contact_connection_set_account_path (SSH_CONTACT_CONNECTION (conn),
122 account_path);
123 ssh_contact_connection_set_contact_id (SSH_CONTACT_CONNECTION (conn),
124 contact_id);
125
126 g_free (account_path);
127 g_free (contact_id);
128
129 OUT:
130
131 if (conn == NULL)
132 *error_msg = g_strdup ("URI format not recognized");
133
134 return conn;
135 }
136
137 static GtkWidget *
138 impl_new_tab (VinagrePlugin *plugin,
139 VinagreConnection *conn,
140 VinagreWindow *window)
141 {
142 return ssh_contact_tab_new (conn, window);
143 }
144
145 static gint
146 impl_get_default_port (VinagrePlugin *plugin)
147 {
148 return 0;
149 }
150
151 static GtkWidget *
152 impl_get_connect_widget (VinagrePlugin *plugin,
153 VinagreConnection *conn)
154 {
155 GtkWidget *box, *label, *u_box, *u_entry;
156 gchar *str;
157
158 box = gtk_vbox_new (FALSE, 0);
159
160 str = g_strdup_printf ("<b>%s</b>", _("SSH Options"));
161 label = gtk_label_new (str);
162 g_free (str);
163 gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
164 gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
165 gtk_misc_set_padding (GTK_MISC (label), 0, 6);
166 gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
167
168 u_box = gtk_hbox_new (FALSE, 4);
169 label = gtk_label_new (" ");
170 gtk_box_pack_start (GTK_BOX (u_box), label, FALSE, FALSE, 0);
171
172 label = gtk_label_new_with_mnemonic (_("_Username:"));
173 gtk_box_pack_start (GTK_BOX (u_box), label, FALSE, FALSE, 0);
174
175 u_entry = gtk_entry_new ();
176 /* Translators: This is the tooltip for the username field in a SSH
177 * connection */
178 gtk_widget_set_tooltip_text (u_entry,
179 _("Optional. If blank, your username will be used."));
180 g_object_set_data (G_OBJECT (box), "username_entry", u_entry);
181 gtk_box_pack_start (GTK_BOX (u_box), u_entry, TRUE, TRUE, 5);
182 gtk_label_set_mnemonic_widget (GTK_LABEL (label), u_entry);
183 str = g_strdup (VINAGRE_IS_CONNECTION (conn) ?
184 vinagre_connection_get_username (conn) :
185 vinagre_cache_prefs_get_string ("ssh-contact-connection", "username", ""));
186 gtk_entry_set_text (GTK_ENTRY (u_entry), str);
187 gtk_entry_set_activates_default (GTK_ENTRY (u_entry), TRUE);
188 g_free (str);
189
190 gtk_box_pack_start (GTK_BOX (box), u_box, TRUE, TRUE, 0);
191
192 return box;
193 }
194
195 static GtkWidget *
196 impl_get_connect_host_widget (VinagrePlugin *plugin,
197 VinagreConnection *conn)
198 {
199 GtkWidget *sw;
200 GtkWidget *view;
201
202 view = ssh_contact_tree_view_new ();
203 gtk_widget_show (view);
204
205 sw = gtk_scrolled_window_new (NULL, NULL);
206 gtk_container_add (GTK_CONTAINER (sw), view);
207 gtk_widget_set_size_request (GTK_WIDGET (sw), -1, 150);
208
209 return sw;
210 }
211
212 static void
213 impl_parse_mdns_dialog (VinagrePlugin *plugin,
214 GtkWidget *connect_widget,
215 GtkWidget *dialog)
216 {
217 }
218
219 static void
220 ssh_contact_plugin_init (SshContactPlugin *self)
221 {
222 }
223
224 static void
225 ssh_contact_plugin_class_init (SshContactPluginClass *klass)
226 {
227 VinagrePluginClass *plugin_class = VINAGRE_PLUGIN_CLASS (klass);
228
229 plugin_class->activate = impl_activate;
230 plugin_class->deactivate = impl_deactivate;
231 plugin_class->update_ui = impl_update_ui;
232 plugin_class->get_protocol = impl_get_protocol;
233 plugin_class->get_public_description = impl_get_public_description;
234 plugin_class->new_connection = impl_new_connection;
235 plugin_class->new_connection_from_string = impl_new_connection_from_string;
236 plugin_class->get_mdns_service = impl_get_mdns_service;
237 plugin_class->new_tab = impl_new_tab;
238 plugin_class->get_default_port = impl_get_default_port;
239 plugin_class->get_connect_widget = impl_get_connect_widget;
240 plugin_class->get_connect_host_widget = impl_get_connect_host_widget;
241 plugin_class->parse_mdns_dialog = impl_parse_mdns_dialog;
242 }
243 /* vim: set ts=8: */
+0
-58
src/vinagre/plugin.h less more
0 /*
1 * Copyright (C) 2009 Jonh Wendell <wendell@bani.com.br>
2 * Copyright (C) 2010 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __SSH_CONTACT_PLUGIN_H__
21 #define __SSH_CONTACT_PLUGIN_H__
22
23 #include <glib.h>
24 #include <glib-object.h>
25 #include <vinagre/vinagre-plugin.h>
26
27 G_BEGIN_DECLS
28
29 #define SSH_CONTACT_TYPE_PLUGIN (ssh_contact_plugin_get_type ())
30 #define SSH_CONTACT_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SSH_CONTACT_TYPE_PLUGIN, SshContactPlugin))
31 #define SSH_CONTACT_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), SSH_CONTACT_TYPE_PLUGIN, SshContactPluginClass))
32 #define SSH_CONTACT_IS_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SSH_CONTACT_TYPE_PLUGIN))
33 #define SSH_CONTACT_IS_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SSH_CONTACT_TYPE_PLUGIN))
34 #define SSH_CONTACT_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SSH_CONTACT_TYPE_PLUGIN, SshContactPluginClass))
35
36 typedef struct _SshContactPluginPrivate SshContactPluginPrivate;
37
38 typedef struct
39 {
40 VinagrePlugin parent_instance;
41 SshContactPluginPrivate *priv;
42 } SshContactPlugin;
43
44 typedef struct
45 {
46 VinagrePluginClass parent_class;
47 } SshContactPluginClass;
48
49 GType ssh_contact_plugin_get_type (void) G_GNUC_CONST;
50
51 /* All the plugins must implement this function */
52 G_MODULE_EXPORT GType register_vinagre_plugin (GTypeModule *module);
53
54 G_END_DECLS
55
56 #endif /* __SSH_CONTACT_PLUGIN_H__ */
57 /* vim: set ts=8: */
+0
-11
src/vinagre/ssh-contact.vinagre-plugin.desktop.in less more
0 [Vinagre Plugin]
1 Module=ssh-contact
2 IAge=1
3 _Name=SSH-Contact
4 _Description=SSH-Contact support
5 Authors=Xavier Claessens
6 Copyright=Copyright © 2010 Collabora Ltd.
7 Website=http://telepathy.freedesktop.org/wiki/SSH-Contact
8 Version=1.0
9 Engine=1
10 Icon=utilities-terminal
+0
-323
src/vinagre/tab.c less more
0 /*
1 * Copyright (C) 2009 Jonh Wendell <wendell@bani.com.br>
2 * Copyright (C) 2010 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19
20 #include <glib/gi18n.h>
21 #include <vte/vte.h>
22 #include <gdk/gdkkeysyms.h>
23
24 #include <telepathy-glib/telepathy-glib.h>
25
26 #include <vinagre/vinagre-utils.h>
27 #include <vinagre/vinagre-prefs.h>
28
29 #include "tab.h"
30 #include "connection.h"
31 #include "../client-helpers.h"
32
33 struct _SshContactTabPrivate
34 {
35 GtkWidget *vte;
36 TpChannel *channel;
37 GSocketConnection *tube_connection;
38 GSocketConnection *ssh_connection;
39 gboolean connected:1;
40 };
41
42 G_DEFINE_TYPE (SshContactTab, ssh_contact_tab, VINAGRE_TYPE_TAB)
43
44 static void
45 get_connection_info (SshContactTab *self,
46 const gchar **account_path,
47 const gchar **contact_id,
48 const gchar **username)
49 {
50 VinagreConnection *conn;
51
52 conn = vinagre_tab_get_conn (VINAGRE_TAB (self));
53 if (account_path != NULL)
54 *account_path = ssh_contact_connection_get_account_path (SSH_CONTACT_CONNECTION (conn));
55 if (contact_id != NULL)
56 *contact_id = ssh_contact_connection_get_contact_id (SSH_CONTACT_CONNECTION (conn));
57 if (username != NULL)
58 *username = vinagre_connection_get_username (conn);
59 }
60
61 static gchar *
62 impl_get_tooltip (VinagreTab *tab)
63 {
64 SshContactTab *self = SSH_CONTACT_TAB (tab);
65 const gchar *account_path;
66 const gchar *contact_id;
67
68 get_connection_info (self, &account_path, &contact_id, NULL);
69
70 return g_markup_printf_escaped (
71 "<b>%s</b> %s\n"
72 "<b>%s</b> %s",
73 _("Account:"), account_path + strlen (TP_ACCOUNT_OBJECT_PATH_BASE),
74 _("Contact:"), contact_id);
75 }
76
77 static GdkPixbuf *
78 impl_get_screenshot (VinagreTab *tab)
79 {
80 SshContactTab *self = SSH_CONTACT_TAB (tab);
81 GdkPixbuf *pixbuf;
82 GdkPixmap *pixmap;
83
84 pixmap = gtk_widget_get_snapshot (self->priv->vte, NULL);
85 pixbuf = gdk_pixbuf_get_from_drawable (NULL, GDK_DRAWABLE (pixmap),
86 gdk_colormap_get_system (), 0, 0, 0, 0, -1, -1);
87
88 g_object_unref (pixmap);
89
90 return pixbuf;
91 }
92
93 static void
94 disconnect_tab (SshContactTab *self)
95 {
96 if (self->priv->connected)
97 g_signal_emit_by_name (self, "tab-disconnected");
98 else
99 g_signal_emit_by_name (self, "tab-auth-failed", "");
100 }
101
102 static void
103 channel_invalidated_cb (TpChannel *channel,
104 guint domain,
105 gint code,
106 gchar *message,
107 SshContactTab *self)
108 {
109 disconnect_tab (self);
110 }
111
112 static void
113 leave (SshContactTab *self)
114 {
115 if (self->priv->channel != NULL &&
116 tp_proxy_get_invalidated (self->priv->channel) == NULL)
117 tp_cli_channel_call_close (context->channel, -1, NULL, NULL, NULL, NULL);
118 else
119 disconnect_tab (self);
120 }
121
122 static void
123 ssh_disconnected_cb (VteTerminal *ssh,
124 SshContactTab *self)
125 {
126 leave (self);
127 }
128
129 static void
130 throw_error (SshContactTab *self,
131 const GError *error)
132 {
133 g_debug ("ERROR: %s", error->message);
134 leave (self);
135 }
136
137 static void
138 splice_cb (GObject *source_object,
139 GAsyncResult *res,
140 gpointer user_data)
141 {
142 SshContactTab *self = user_data;
143 GError *error = NULL;
144
145 if (!g_io_stream_splice_finish (res, &error))
146 throw_error (self, error);
147 else
148 leave (self);
149
150 g_clear_error (&error);
151 }
152
153 static void
154 ssh_socket_connected_cb (GObject *source_object,
155 GAsyncResult *res,
156 gpointer user_data)
157 {
158 SshContactTab *self = user_data;
159 GSocketListener *listener = G_SOCKET_LISTENER (source_object);
160 GError *error = NULL;
161
162 self->priv->ssh_connection = g_socket_listener_accept_finish (listener, res,
163 NULL, &error);
164 if (error != NULL)
165 {
166 throw_error (self, error);
167 g_clear_error (&error);
168 return;
169 }
170
171 g_signal_emit_by_name (self, "tab-connected");
172 self->priv->connected = TRUE;
173
174 /* Splice tube and ssh connections */
175 g_io_stream_splice_async (G_IO_STREAM (self->priv->tube_connection),
176 G_IO_STREAM (self->priv->ssh_connection), G_IO_STREAM_SPLICE_NONE,
177 G_PRIORITY_DEFAULT, NULL, splice_cb, self);
178 }
179
180 static void
181 create_tube_cb (GObject *source_object,
182 GAsyncResult *res,
183 gpointer user_data)
184 {
185 SshContactTab *self = user_data;
186 GSocketListener *listener;
187 GSocket *socket;
188 const gchar *username;
189 const gchar *contact_id;
190 GStrv args = NULL;
191 GError *error = NULL;
192
193 self->priv->tube_connection = _client_create_tube_finish (res,
194 &self->priv->channel, &error);
195 if (error != NULL)
196 {
197 throw_error (self, error);
198 g_clear_error (&error);
199 return;
200 }
201
202 g_signal_connect (self->priv->channel, "invalidated",
203 G_CALLBACK (channel_invalidated_cb), self);
204
205 listener = g_socket_listener_new ();
206 socket = _client_create_local_socket (&error);
207 if (socket == NULL)
208 goto OUT;
209 if (!g_socket_listen (socket, &error))
210 goto OUT;
211 if (!g_socket_listener_add_socket (listener, socket, NULL, &error))
212 goto OUT;
213
214 g_socket_listener_accept_async (listener, NULL,
215 ssh_socket_connected_cb, self);
216
217 get_connection_info (self, NULL, &contact_id, &username);
218 args = _client_create_exec_args (socket, contact_id, username, NULL);
219 vte_terminal_fork_command (VTE_TERMINAL (self->priv->vte), "ssh", args,
220 NULL, NULL, FALSE, FALSE, FALSE);
221
222 OUT:
223
224 if (error != NULL)
225 throw_error (self, error);
226
227 g_clear_error (&error);
228 tp_clear_object (&listener);
229 tp_clear_object (&socket);
230 g_strfreev (args);
231 }
232
233 static gboolean
234 start_tube (gpointer user_data)
235 {
236 SshContactTab *self = user_data;
237 const gchar *account_path;
238 const gchar *contact_id;
239
240 g_signal_emit_by_name (self, "tab-initialized");
241
242 get_connection_info (self, &account_path, &contact_id, NULL);
243 _client_create_tube_async (account_path, contact_id, create_tube_cb, self);
244
245 return FALSE;
246 }
247
248 static void
249 constructed (GObject *object)
250 {
251 SshContactTab *self = SSH_CONTACT_TAB (object);
252
253 g_idle_add (start_tube, self);
254
255 vinagre_tab_add_recent_used (VINAGRE_TAB (self));
256 vinagre_tab_set_state (VINAGRE_TAB (self), VINAGRE_TAB_STATE_CONNECTED);
257
258 gtk_widget_show (GTK_WIDGET (self));
259
260 if (G_OBJECT_CLASS (ssh_contact_tab_parent_class)->constructed)
261 G_OBJECT_CLASS (ssh_contact_tab_parent_class)->constructed (object);
262 }
263
264 static void
265 dispose (GObject *object)
266 {
267 SshContactTab *self = SSH_CONTACT_TAB (object);
268
269 if (self->priv->tube_connection)
270 g_io_stream_close (G_IO_STREAM (self->priv->tube_connection), NULL, NULL);
271 tp_clear_object (&self->priv->tube_connection);
272
273 if (self->priv->ssh_connection)
274 g_io_stream_close (G_IO_STREAM (self->priv->ssh_connection), NULL, NULL);
275 tp_clear_object (&self->priv->ssh_connection);
276
277 tp_clear_object (&self->priv->channel);
278
279 if (G_OBJECT_CLASS (ssh_contact_tab_parent_class)->dispose)
280 G_OBJECT_CLASS (ssh_contact_tab_parent_class)->dispose (object);
281 }
282
283 static void
284 ssh_contact_tab_class_init (SshContactTabClass *klass)
285 {
286 GObjectClass *object_class = G_OBJECT_CLASS (klass);
287 VinagreTabClass* tab_class = VINAGRE_TAB_CLASS (klass);
288
289 object_class->constructed = constructed;
290 object_class->dispose = dispose;
291
292 tab_class->impl_get_tooltip = impl_get_tooltip;
293 tab_class->impl_get_screenshot = impl_get_screenshot;
294
295 g_type_class_add_private (klass, sizeof (SshContactTabPrivate));
296
297 }
298
299 static void
300 ssh_contact_tab_init (SshContactTab *self)
301 {
302 self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, SSH_CONTACT_TYPE_TAB,
303 SshContactTabPrivate);
304
305 /* Create the ssh widget */
306 self->priv->vte = vte_terminal_new ();
307 vinagre_tab_add_view (VINAGRE_TAB (self), self->priv->vte);
308 gtk_widget_show (self->priv->vte);
309
310 g_signal_connect (self->priv->vte, "child-exited",
311 G_CALLBACK (ssh_disconnected_cb), self);
312 }
313
314 GtkWidget *
315 ssh_contact_tab_new (VinagreConnection *conn,
316 VinagreWindow *window)
317 {
318 return g_object_new (SSH_CONTACT_TYPE_TAB, "conn", conn, "window", window,
319 NULL);
320 }
321
322 /* vim: set ts=8: */
+0
-56
src/vinagre/tab.h less more
0 /*
1 * Copyright (C) 2009 Jonh Wendell <wendell@bani.com.br>
2 * Copyright (C) 2010 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __SSH_CONTACT_TAB_H__
21 #define __SSH_CONTACT_TAB_H__
22
23 #include <vinagre/vinagre-tab.h>
24
25 G_BEGIN_DECLS
26
27 #define SSH_CONTACT_TYPE_TAB (ssh_contact_tab_get_type())
28 #define SSH_CONTACT_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SSH_CONTACT_TYPE_TAB, SshContactTab))
29 #define SSH_CONTACT_TAB_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SSH_CONTACT_TYPE_TAB, SshContactTab const))
30 #define SSH_CONTACT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SSH_CONTACT_TYPE_TAB, SshContactTabClass))
31 #define SSH_CONTACT_IS_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SSH_CONTACT_TYPE_TAB))
32 #define SSH_CONTACT_IS_TAB_CLASS(klass)...(G_TYPE_CHECK_CLASS_TYPE ((klass), SSH_CONTACT_TYPE_TAB))
33 #define SSH_CONTACT_TAB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), SSH_CONTACT_TYPE_TAB, SshContactTabClass))
34
35 typedef struct _SshContactTabPrivate SshContactTabPrivate;
36
37 typedef struct
38 {
39 VinagreTab tab;
40 SshContactTabPrivate *priv;
41 } SshContactTab;
42
43 typedef struct
44 {
45 VinagreTabClass parent_class;
46 } SshContactTabClass;
47
48 GType ssh_contact_tab_get_type (void) G_GNUC_CONST;
49
50 GtkWidget *ssh_contact_tab_new (VinagreConnection *conn, VinagreWindow *window);
51
52 G_END_DECLS
53
54 #endif /* __VINAGRE_SSH_TAB_H__ */
55 /* vim: set ts=8: */
+0
-328
src/vinagre/tree-view.c less more
0 /*
1 * Copyright (C) 2010 Collabora Ltd.
2 *
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License as
5 * published by the Free Software Foundation; either version 2 of the
6 * License, or (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
16 * Boston, MA 02110-1301 USA
17 */
18 #include <gtk/gtk.h>
19
20 #include <telepathy-glib/telepathy-glib.h>
21
22 #include "tree-view.h"
23 #include "../client-helpers.h"
24
25 enum
26 {
27 COL_ACCOUNT,
28 COL_CONTACT,
29 COL_TEXT,
30 N_COL
31 };
32
33 struct _SshContactTreeViewPrivate
34 {
35 GtkListStore *store;
36 TpAccountManager *account_manager;
37 };
38
39 G_DEFINE_TYPE (SshContactTreeView, ssh_contact_tree_view,
40 GTK_TYPE_TREE_VIEW);
41
42 static TpAccount *
43 find_account_for_contact (SshContactTreeView *self,
44 TpContact *contact)
45 {
46 TpAccount *account = NULL;
47 TpConnection *connection;
48 GList *list;
49
50 connection = tp_contact_get_connection (contact);
51 list = tp_account_manager_get_valid_accounts (self->priv->account_manager);
52 while (list)
53 {
54 if (tp_account_get_connection (list->data) == connection)
55 {
56 account = list->data;
57 break;
58 }
59
60 list = g_list_delete_link (list, list);
61 }
62 g_list_free (list);
63
64 return account;
65 }
66
67 static void
68 got_contacts_cb (TpConnection *connection,
69 guint n_contacts,
70 TpContact * const *contacts,
71 guint n_failed,
72 const TpHandle *failed,
73 const GError *error,
74 gpointer user_data,
75 GObject *weak_object)
76 {
77 SshContactTreeView *self = user_data;
78 guint i;
79
80 if (error != NULL)
81 {
82 g_debug ("%s", error->message);
83 return;
84 }
85
86 for (i = 0; i < n_contacts; i++)
87 {
88 TpAccount *account;
89
90 if (!_capabilities_has_stream_tube (tp_contact_get_capabilities (contacts[i])))
91 continue;
92
93 account = find_account_for_contact (self, contacts[i]);
94 gtk_list_store_insert_with_values (self->priv->store, NULL, -1,
95 COL_ACCOUNT, account,
96 COL_CONTACT, contacts[i],
97 COL_TEXT, tp_contact_get_alias (contacts[i]),
98 -1);
99 }
100 }
101
102 static void
103 stored_channel_prepare_cb (GObject *object,
104 GAsyncResult *res,
105 gpointer self)
106 {
107 TpChannel *channel = TP_CHANNEL (object);
108 TpConnection *connection;
109 TpContactFeature features[] = { TP_CONTACT_FEATURE_ALIAS,
110 TP_CONTACT_FEATURE_CAPABILITIES };
111 const TpIntSet *set;
112 GArray *handles;
113 GError *error = NULL;
114
115 if (!tp_proxy_prepare_finish (channel, res, &error))
116 {
117 g_debug ("%s", error->message);
118 g_clear_error (&error);
119 return;
120 }
121
122 connection = tp_channel_borrow_connection (channel);
123 set = tp_channel_group_get_members (channel);
124 handles = tp_intset_to_array (set);
125
126 tp_connection_get_contacts_by_handle (connection, handles->len,
127 (TpHandle *) handles->data, G_N_ELEMENTS (features), features,
128 got_contacts_cb, self, NULL, NULL);
129
130 g_array_unref (handles);
131 }
132
133 static void
134 ensure_stored_channel_cb (TpConnection *connection,
135 gboolean yours,
136 const gchar *channel_path,
137 GHashTable *properties,
138 const GError *error,
139 gpointer self,
140 GObject *weak_object)
141 {
142 TpChannel *channel;
143 GQuark features[] = { TP_CHANNEL_FEATURE_GROUP, 0 };
144 GError *err = NULL;
145
146 if (error != NULL)
147 {
148 g_debug ("%s", error->message);
149 return;
150 }
151
152 channel = tp_channel_new_from_properties (connection, channel_path,
153 properties, &err);
154 if (channel == NULL)
155 {
156 g_debug ("%s", err->message);
157 g_clear_error (&err);
158 return;
159 }
160
161 tp_proxy_prepare_async (TP_PROXY (channel), features,
162 stored_channel_prepare_cb, self);
163
164 g_object_unref (channel);
165 }
166
167 static void
168 connection_prepare_cb (GObject *object,
169 GAsyncResult *res,
170 gpointer self)
171 {
172 TpConnection *connection = TP_CONNECTION (object);
173 GError *error = NULL;
174 GHashTable *request;
175
176 if (!tp_proxy_prepare_finish (TP_PROXY (connection), res, &error))
177 {
178 g_debug ("%s", error->message);
179 g_clear_error (&error);
180 return;
181 }
182
183 if (!_capabilities_has_stream_tube (tp_connection_get_capabilities (connection)))
184 return;
185
186 request = tp_asv_new (
187 TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
188 TP_IFACE_CHANNEL_TYPE_CONTACT_LIST,
189 TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT,
190 TP_HANDLE_TYPE_LIST,
191 TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
192 "stored",
193 NULL);
194
195 tp_cli_connection_interface_requests_call_ensure_channel (connection, -1,
196 request, ensure_stored_channel_cb, self, NULL, NULL);
197
198 g_hash_table_unref (request);
199 }
200
201 static void
202 account_manager_prepare_cb (GObject *object,
203 GAsyncResult *res,
204 gpointer self)
205 {
206 TpAccountManager *manager = TP_ACCOUNT_MANAGER (object);
207 GList *accounts, *l;
208 GError *error = NULL;
209
210 if (!tp_proxy_prepare_finish (TP_PROXY (manager), res, &error))
211 {
212 g_debug ("%s", error->message);
213 g_clear_error (&error);
214 return;
215 }
216
217 accounts = tp_account_manager_get_valid_accounts (manager);
218 for (l = accounts; l != NULL; l = l->next)
219 {
220 GQuark features[] = { TP_CONNECTION_FEATURE_CAPABILITIES, 0 };
221 TpAccount *account = l->data;
222 TpConnection *connection;
223
224 connection = tp_account_get_connection (account);
225 if (connection != NULL)
226 tp_proxy_prepare_async (TP_PROXY (connection), features,
227 connection_prepare_cb, self);
228 }
229 g_list_free (accounts);
230 }
231
232 static void
233 dispose (GObject *object)
234 {
235 SshContactTreeView *self = SSH_CONTACT_TREE_VIEW (object);
236
237 tp_clear_object (&self->priv->store);
238 tp_clear_object (&self->priv->account_manager);
239
240 G_OBJECT_CLASS (ssh_contact_tree_view_parent_class)->dispose (object);
241 }
242
243 static void
244 ssh_contact_tree_view_init (SshContactTreeView *self)
245 {
246 GtkTreeView *view = GTK_TREE_VIEW (self);
247 GtkCellRenderer *renderer;
248 GtkTreeViewColumn *column;
249
250 self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, SSH_CONTACT_TYPE_TREE_VIEW,
251 SshContactTreeViewPrivate);
252
253 self->priv->store = gtk_list_store_new (N_COL,
254 G_TYPE_OBJECT, /* ACCOUNT */
255 G_TYPE_OBJECT, /* CONTACT */
256 G_TYPE_STRING); /* TEXT */
257
258 renderer = gtk_cell_renderer_text_new ();
259 column = gtk_tree_view_column_new_with_attributes ("Contacts",
260 renderer, "text", COL_TEXT, NULL);
261
262 gtk_tree_view_append_column (view, column);
263 gtk_tree_view_set_headers_visible (view, FALSE);
264 gtk_tree_view_set_model (view, GTK_TREE_MODEL (self->priv->store));
265
266 self->priv->account_manager = tp_account_manager_dup ();
267 tp_proxy_prepare_async (TP_PROXY (self->priv->account_manager), NULL,
268 account_manager_prepare_cb, self);
269 }
270
271 static void
272 ssh_contact_tree_view_class_init (SshContactTreeViewClass *klass)
273 {
274 GObjectClass *object_class = G_OBJECT_CLASS (klass);
275
276 object_class->dispose = dispose;
277
278 g_type_class_add_private (klass, sizeof (SshContactTreeViewPrivate));
279 }
280
281 GtkWidget *
282 ssh_contact_tree_view_new (void)
283 {
284 return g_object_new (SSH_CONTACT_TYPE_TREE_VIEW, NULL);
285 }
286
287 TpAccount *
288 ssh_contact_tree_view_get_selected_account (SshContactTreeView *self)
289 {
290 GtkTreeSelection *selection;
291 GtkTreeModel *model;
292 GtkTreeIter iter;
293 TpAccount *account = NULL;
294
295 g_return_val_if_fail (SSH_CONTACT_IS_TREE_VIEW (self), NULL);
296
297 selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (self));
298 if (!gtk_tree_selection_get_selected (selection, &model, &iter))
299 return NULL;
300
301 gtk_tree_model_get (model, &iter, COL_ACCOUNT, &account, -1);
302 g_object_unref (account);
303
304 return account;
305 }
306
307 TpContact *
308 ssh_contact_tree_view_get_selected_contact (SshContactTreeView *self)
309 {
310 GtkTreeSelection *selection;
311 GtkTreeModel *model;
312 GtkTreeIter iter;
313 TpContact *contact;
314
315 g_return_val_if_fail (SSH_CONTACT_IS_TREE_VIEW (self), NULL);
316
317 selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (self));
318 if (!gtk_tree_selection_get_selected (selection, &model, &iter))
319 return NULL;
320
321 gtk_tree_model_get (model, &iter, COL_CONTACT, &contact, -1);
322 g_object_unref (contact);
323
324 return contact;
325 }
326
327 /* vim: set ts=8: */
+0
-61
src/vinagre/tree-view.h less more
0 /*
1 * Copyright (C) 2010 Collabora Ltd.
2 *
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License as
5 * published by the Free Software Foundation; either version 2 of the
6 * License, or (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
16 * Boston, MA 02110-1301 USA
17 */
18
19 #ifndef __SSH_CONTACT_TREE_VIEW_H__
20 #define __SSH_CONTACT_TREE_VIEW_H__
21
22 #include <gtk/gtk.h>
23
24 #include <telepathy-glib/telepathy-glib.h>
25
26 G_BEGIN_DECLS
27
28 #define SSH_CONTACT_TYPE_TREE_VIEW (ssh_contact_tree_view_get_type ())
29 #define SSH_CONTACT_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SSH_CONTACT_TYPE_TREE_VIEW, SshContactTreeView))
30 #define SSH_CONTACT_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SSH_CONTACT_TYPE_TREE_VIEW, SshContactTreeViewClass))
31 #define SSH_CONTACT_IS_TREE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SSH_CONTACT_TYPE_TREE_VIEW))
32 #define SSH_CONTACT_IS_TREE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SSH_CONTACT_TYPE_TREE_VIEW))
33 #define SSH_CONTACT_TREE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SSH_CONTACT_TYPE_TREE_VIEW, SshContactTreeViewClass))
34
35 typedef struct _SshContactTreeViewPrivate SshContactTreeViewPrivate;
36
37 typedef struct
38 {
39 GtkTreeView parent_instance;
40 SshContactTreeViewPrivate *priv;
41 } SshContactTreeView;
42
43 typedef struct
44 {
45 GtkTreeViewClass parent_class;
46 } SshContactTreeViewClass;
47
48 GType ssh_contact_tree_view_get_type (void) G_GNUC_CONST;
49
50 GtkWidget *ssh_contact_tree_view_new (void);
51
52 TpAccount *ssh_contact_tree_view_get_selected_account (SshContactTreeView *self);
53
54 TpContact *ssh_contact_tree_view_get_selected_contact (SshContactTreeView *self);
55
56
57 G_END_DECLS
58
59 #endif /* __SSH_CONTACT_TREE_VIEW_H__ */
60 /* vim: set ts=8: */