Codebase list telepathy-haze / 325d555
Imported Upstream version 0.2.0 Simon McVittie 15 years ago
31 changed file(s) with 1778 addition(s) and 741 deletion(s). Raw diff Collapse all Expand all
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
1715 VPATH = @srcdir@
1816 pkgdatadir = $(datadir)/@PACKAGE@
1917 pkglibdir = $(libdir)/@PACKAGE@
2018 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
2219 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
2420 install_sh_DATA = $(install_sh) -c -m 644
2521 install_sh_PROGRAM = $(install_sh) -c
2622 install_sh_SCRIPT = $(install_sh) -c
3430 POST_UNINSTALL = :
3531 build_triplet = @build@
3632 host_triplet = @host@
33 subdir = .
3734 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
3835 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
3936 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
4037 config.guess config.sub depcomp install-sh ltmain.sh missing
41 subdir = .
4238 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4339 am__aclocal_m4_deps = $(top_srcdir)/m4/as-compiler-flag.m4 \
4440 $(top_srcdir)/configure.ac
4541 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4642 $(ACLOCAL_M4)
4743 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
48 configure.lineno configure.status.lineno
44 configure.lineno config.status.lineno
4945 mkinstalldirs = $(install_sh) -d
5046 CONFIG_HEADER = config.h
5147 CONFIG_CLEAN_FILES =
5349 DIST_SOURCES =
5450 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5551 html-recursive info-recursive install-data-recursive \
56 install-exec-recursive install-info-recursive \
57 install-recursive installcheck-recursive installdirs-recursive \
58 pdf-recursive ps-recursive uninstall-info-recursive \
59 uninstall-recursive
52 install-dvi-recursive install-exec-recursive \
53 install-html-recursive install-info-recursive \
54 install-pdf-recursive install-ps-recursive install-recursive \
55 installcheck-recursive installdirs-recursive pdf-recursive \
56 ps-recursive uninstall-recursive
57 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
58 distclean-recursive maintainer-clean-recursive
6059 ETAGS = etags
6160 CTAGS = ctags
6261 DIST_SUBDIRS = $(SUBDIRS)
7271 distuninstallcheck_listfiles = find . -type f -print
7372 distcleancheck_listfiles = find . -type f -print
7473 ACLOCAL = @ACLOCAL@
75 AMDEP_FALSE = @AMDEP_FALSE@
76 AMDEP_TRUE = @AMDEP_TRUE@
7774 AMTAR = @AMTAR@
7875 AR = @AR@
7976 AUTOCONF = @AUTOCONF@
9794 ECHO_N = @ECHO_N@
9895 ECHO_T = @ECHO_T@
9996 EGREP = @EGREP@
97 ENABLE_LEAKY_REQUEST_STUBS = @ENABLE_LEAKY_REQUEST_STUBS@
10098 ERROR_CFLAGS = @ERROR_CFLAGS@
10199 EXEEXT = @EXEEXT@
102100 F77 = @F77@
103101 FFLAGS = @FFLAGS@
104102 GREP = @GREP@
103 INSTALL = @INSTALL@
105104 INSTALL_DATA = @INSTALL_DATA@
106105 INSTALL_PROGRAM = @INSTALL_PROGRAM@
107106 INSTALL_SCRIPT = @INSTALL_SCRIPT@
113112 LN_S = @LN_S@
114113 LTLIBOBJS = @LTLIBOBJS@
115114 MAKEINFO = @MAKEINFO@
115 MKDIR_P = @MKDIR_P@
116116 OBJEXT = @OBJEXT@
117117 PACKAGE = @PACKAGE@
118118 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132132 TP_GLIB_CFLAGS = @TP_GLIB_CFLAGS@
133133 TP_GLIB_LIBS = @TP_GLIB_LIBS@
134134 VERSION = @VERSION@
135 abs_builddir = @abs_builddir@
136 abs_srcdir = @abs_srcdir@
137 abs_top_builddir = @abs_top_builddir@
138 abs_top_srcdir = @abs_top_srcdir@
135139 ac_ct_CC = @ac_ct_CC@
136140 ac_ct_CXX = @ac_ct_CXX@
137141 ac_ct_F77 = @ac_ct_F77@
138 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
139 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
140 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
141 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
142142 am__include = @am__include@
143143 am__leading_dot = @am__leading_dot@
144144 am__quote = @am__quote@
150150 build_cpu = @build_cpu@
151151 build_os = @build_os@
152152 build_vendor = @build_vendor@
153 builddir = @builddir@
153154 datadir = @datadir@
154155 datarootdir = @datarootdir@
155156 docdir = @docdir@
177178 psdir = @psdir@
178179 sbindir = @sbindir@
179180 sharedstatedir = @sharedstatedir@
181 srcdir = @srcdir@
180182 sysconfdir = @sysconfdir@
181183 target_alias = @target_alias@
184 top_builddir = @top_builddir@
185 top_srcdir = @top_srcdir@
182186 ACLOCAL_AMFLAGS = -I m4
183187 SUBDIRS = src data m4
184188 all: config.h
222226 config.h: stamp-h1
223227 @if test ! -f $@; then \
224228 rm -f stamp-h1; \
225 $(MAKE) stamp-h1; \
229 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
226230 else :; fi
227231
228232 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
244248
245249 distclean-libtool:
246250 -rm -f libtool
247 uninstall-info-am:
248251
249252 # This directory's subdirectories are mostly independent; you can cd
250253 # into them and run `make' without going through this Makefile.
277280 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
278281 fi; test -z "$$fail"
279282
280 mostlyclean-recursive clean-recursive distclean-recursive \
281 maintainer-clean-recursive:
283 $(RECURSIVE_CLEAN_TARGETS):
282284 @failcom='exit 1'; \
283285 for f in x $$MAKEFLAGS; do \
284286 case $$f in \
380382
381383 distdir: $(DISTFILES)
382384 $(am__remove_distdir)
383 mkdir $(distdir)
384 $(mkdir_p) $(distdir)/m4
385 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
387 list='$(DISTFILES)'; for file in $$list; do \
388 case $$file in \
389 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
390 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
391 esac; \
385 test -d $(distdir) || mkdir $(distdir)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
392398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
395 dir="/$$dir"; \
396 $(mkdir_p) "$(distdir)$$dir"; \
397 else \
398 dir=''; \
399 fi; \
400399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403403 fi; \
411411 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
412412 if test "$$subdir" = .; then :; else \
413413 test -d "$(distdir)/$$subdir" \
414 || $(mkdir_p) "$(distdir)/$$subdir" \
414 || $(MKDIR_P) "$(distdir)/$$subdir" \
415415 || exit 1; \
416416 distdir=`$(am__cd) $(distdir) && pwd`; \
417417 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
419419 $(MAKE) $(AM_MAKEFLAGS) \
420420 top_distdir="$$top_distdir" \
421421 distdir="$$distdir/$$subdir" \
422 am__remove_distdir=: \
423 am__skip_length_check=: \
422424 distdir) \
423425 || exit 1; \
424426 fi; \
426428 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
427429 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
428430 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
429 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
431 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
430432 || chmod -R a+r $(distdir)
431433 dist-gzip: distdir
432434 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
501503 $(am__remove_distdir)
502504 @(echo "$(distdir) archives ready for distribution: "; \
503505 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
504 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
506 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
505507 distuninstallcheck:
506508 @cd $(distuninstallcheck_dir) \
507509 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
571573
572574 install-data-am:
573575
576 install-dvi: install-dvi-recursive
577
574578 install-exec-am:
575579
580 install-html: install-html-recursive
581
576582 install-info: install-info-recursive
577583
578584 install-man:
585
586 install-pdf: install-pdf-recursive
587
588 install-ps: install-ps-recursive
579589
580590 installcheck-am:
581591
597607
598608 ps-am:
599609
600 uninstall-am: uninstall-info-am
601
602 uninstall-info: uninstall-info-recursive
603
604 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
605 check-am clean clean-generic clean-libtool clean-recursive \
606 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
607 dist-shar dist-tarZ dist-zip distcheck distclean \
610 uninstall-am:
611
612 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
613 install-strip
614
615 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
616 all all-am am--refresh check check-am clean clean-generic \
617 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
618 dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
608619 distclean-generic distclean-hdr distclean-libtool \
609 distclean-recursive distclean-tags distcleancheck distdir \
610 distuninstallcheck dvi dvi-am html html-am info info-am \
611 install install-am install-data install-data-am install-exec \
612 install-exec-am install-info install-info-am install-man \
613 install-strip installcheck installcheck-am installdirs \
614 installdirs-am maintainer-clean maintainer-clean-generic \
615 maintainer-clean-recursive mostlyclean mostlyclean-generic \
616 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
617 tags tags-recursive uninstall uninstall-am uninstall-info-am
620 distclean-tags distcleancheck distdir distuninstallcheck dvi \
621 dvi-am html html-am info info-am install install-am \
622 install-data install-data-am install-dvi install-dvi-am \
623 install-exec install-exec-am install-html install-html-am \
624 install-info install-info-am install-man install-pdf \
625 install-pdf-am install-ps install-ps-am install-strip \
626 installcheck installcheck-am installdirs installdirs-am \
627 maintainer-clean maintainer-clean-generic mostlyclean \
628 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
629 tags tags-recursive uninstall uninstall-am
618630
619631 # Tell versions [3.59,3.63) of GNU make to not export all variables.
620632 # Otherwise a system limit (for SysV at least) may be exceeded.
0 telepathy-haze 0.2.0 – "I Remember Piano Lessons" (2008-02-07)
1 ==============================================================
2
3 * Protocols now present the correct parameters, with appropriate
4 defaults, rather than always taking account, password and server.
5 * Send apostrophes correctly on Yahoo! Messenger.
6
07 telepathy-haze 0.1.4 – "Watch That Pinkie" (2007-11-21)
18 =======================================================
29
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
0 # generated automatically by aclocal 1.10 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
3 # 2005, 2006 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_if(m4_PACKAGE_VERSION, [2.61],,
14 [m4_fatal([this file was generated for autoconf 2.61.
15 You have another version of autoconf. If you want to use that,
16 you should regenerate the build system entirely.], [63])])
17
1318 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1419
15 # serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
20 # serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
1621
1722
1823 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
67496754 fi[]dnl
67506755 ])# PKG_CHECK_MODULES
67516756
6752 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6757 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
67536758 #
67546759 # This file is free software; the Free Software Foundation
67556760 # gives unlimited permission to copy and/or distribute it,
67596764 # ----------------------------
67606765 # Automake X.Y traces this macro to ensure aclocal.m4 has been
67616766 # generated from the m4 files accompanying Automake X.Y.
6762 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6767 # (This private macro should not be called outside this file.)
6768 AC_DEFUN([AM_AUTOMAKE_VERSION],
6769 [am__api_version='1.10'
6770 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6771 dnl require some minimum version. Point them to the right macro.
6772 m4_if([$1], [1.10], [],
6773 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6774 ])
6775
6776 # _AM_AUTOCONF_VERSION(VERSION)
6777 # -----------------------------
6778 # aclocal traces this macro to find the Autoconf version.
6779 # This is a private macro too. Using m4_define simplifies
6780 # the logic in aclocal, which can simply ignore this definition.
6781 m4_define([_AM_AUTOCONF_VERSION], [])
67636782
67646783 # AM_SET_CURRENT_AUTOMAKE_VERSION
67656784 # -------------------------------
6766 # Call AM_AUTOMAKE_VERSION so it can be traced.
6785 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
67676786 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
67686787 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6769 [AM_AUTOMAKE_VERSION([1.9.6])])
6788 [AM_AUTOMAKE_VERSION([1.10])dnl
6789 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
67706790
67716791 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
67726792
68236843
68246844 # AM_CONDITIONAL -*- Autoconf -*-
68256845
6826 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6846 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
68276847 # Free Software Foundation, Inc.
68286848 #
68296849 # This file is free software; the Free Software Foundation
68306850 # gives unlimited permission to copy and/or distribute it,
68316851 # with or without modifications, as long as this notice is preserved.
68326852
6833 # serial 7
6853 # serial 8
68346854
68356855 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
68366856 # -------------------------------------
68396859 [AC_PREREQ(2.52)dnl
68406860 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
68416861 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6842 AC_SUBST([$1_TRUE])
6843 AC_SUBST([$1_FALSE])
6862 AC_SUBST([$1_TRUE])dnl
6863 AC_SUBST([$1_FALSE])dnl
6864 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
6865 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
68446866 if $2; then
68456867 $1_TRUE=
68466868 $1_FALSE='#'
68546876 Usually this means the macro was only invoked conditionally.]])
68556877 fi])])
68566878
6857
6858 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6879 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
68596880 # Free Software Foundation, Inc.
68606881 #
68616882 # This file is free software; the Free Software Foundation
68626883 # gives unlimited permission to copy and/or distribute it,
68636884 # with or without modifications, as long as this notice is preserved.
68646885
6865 # serial 8
6886 # serial 9
68666887
68676888 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
68686889 # written in clear, in which case automake, when reading aclocal.m4,
68906911 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
68916912 [$1], CXX, [depcc="$CXX" am_compiler_list=],
68926913 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6914 [$1], UPC, [depcc="$UPC" am_compiler_list=],
68936915 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
68946916 [depcc="$$1" am_compiler_list=])
68956917
69556977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
69566978 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
69576979 >/dev/null 2>conftest.err &&
6980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
69586981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
69596982 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
69606983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
70077030 AMDEPBACKSLASH='\'
70087031 fi
70097032 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7010 AC_SUBST([AMDEPBACKSLASH])
7033 AC_SUBST([AMDEPBACKSLASH])dnl
7034 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
70117035 ])
70127036
70137037 # Generate code to set up dependency tracking. -*- Autoconf -*-
70327056 # some people rename them; so instead we look at the file content.
70337057 # Grep'ing the first line is not enough: some people post-process
70347058 # each Makefile.in and add a new line on top of each file to say so.
7035 # So let's grep whole file.
7036 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7059 # Grep'ing the whole file is not good either: AIX grep has a line
7060 # limit of 2048, but all sed's we know have understand at least 4000.
7061 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
70377062 dirpart=`AS_DIRNAME("$mf")`
70387063 else
70397064 continue
70927117
70937118 # Do all the work for Automake. -*- Autoconf -*-
70947119
7095 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7096 # Free Software Foundation, Inc.
7120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7121 # 2005, 2006 Free Software Foundation, Inc.
70977122 #
70987123 # This file is free software; the Free Software Foundation
70997124 # gives unlimited permission to copy and/or distribute it,
71167141 # arguments mandatory, and then we can depend on a new Autoconf
71177142 # release and drop the old call support.
71187143 AC_DEFUN([AM_INIT_AUTOMAKE],
7119 [AC_PREREQ([2.58])dnl
7144 [AC_PREREQ([2.60])dnl
71207145 dnl Autoconf wants to disallow AM_ names. We explicitly allow
71217146 dnl the ones we care about.
71227147 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
71237148 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
71247149 AC_REQUIRE([AC_PROG_INSTALL])dnl
7125 # test to see if srcdir already configured
7126 if test "`cd $srcdir && pwd`" != "`pwd`" &&
7127 test -f $srcdir/config.status; then
7128 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7150 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7152 # is not polluted with repeated "-I."
7153 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7154 # test to see if srcdir already configured
7155 if test -f $srcdir/config.status; then
7156 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7157 fi
71297158 fi
71307159
71317160 # test whether we have cygpath
71457174 AC_SUBST([PACKAGE], [$1])dnl
71467175 AC_SUBST([VERSION], [$2])],
71477176 [_AM_SET_OPTIONS([$1])dnl
7177 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7178 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7179 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
71487180 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
71497181 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
71507182
71807212 [_AM_DEPENDENCIES(CXX)],
71817213 [define([AC_PROG_CXX],
71827214 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7215 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7216 [_AM_DEPENDENCIES(OBJC)],
7217 [define([AC_PROG_OBJC],
7218 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
71837219 ])
71847220 ])
71857221
72157251 # Define $install_sh.
72167252 AC_DEFUN([AM_PROG_INSTALL_SH],
72177253 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7218 install_sh=${install_sh-"$am_aux_dir/install-sh"}
7254 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
72197255 AC_SUBST(install_sh)])
72207256
72217257 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
72937329
72947330 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
72957331
7296 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7332 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
72977333 # Free Software Foundation, Inc.
72987334 #
72997335 # This file is free software; the Free Software Foundation
73007336 # gives unlimited permission to copy and/or distribute it,
73017337 # with or without modifications, as long as this notice is preserved.
73027338
7303 # serial 4
7339 # serial 5
73047340
73057341 # AM_MISSING_PROG(NAME, PROGRAM)
73067342 # ------------------------------
73167352 # If it does, set am_missing_run to use it, otherwise, to nothing.
73177353 AC_DEFUN([AM_MISSING_HAS_RUN],
73187354 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7355 AC_REQUIRE_AUX_FILE([missing])dnl
73197356 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
73207357 # Use eval to expand $SHELL
73217358 if eval "$MISSING --run true"; then
73267363 fi
73277364 ])
73287365
7329 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7366 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
73307367 #
73317368 # This file is free software; the Free Software Foundation
73327369 # gives unlimited permission to copy and/or distribute it,
73347371
73357372 # AM_PROG_MKDIR_P
73367373 # ---------------
7337 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7338 #
7339 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7340 # created by `make install' are always world readable, even if the
7341 # installer happens to have an overly restrictive umask (e.g. 077).
7342 # This was a mistake. There are at least two reasons why we must not
7343 # use `-m 0755':
7344 # - it causes special bits like SGID to be ignored,
7345 # - it may be too restrictive (some setups expect 775 directories).
7346 #
7347 # Do not use -m 0755 and let people choose whatever they expect by
7348 # setting umask.
7349 #
7350 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7351 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7352 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7353 # concurrently, both version can detect that a/ is missing, but only
7354 # one can create it and the other will error out. Consequently we
7355 # restrict ourselves to GNU make (using the --version option ensures
7356 # this.)
7374 # Check for `mkdir -p'.
73577375 AC_DEFUN([AM_PROG_MKDIR_P],
7358 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7359 # We used to keeping the `.' as first argument, in order to
7360 # allow $(mkdir_p) to be used without argument. As in
7361 # $(mkdir_p) $(somedir)
7362 # where $(somedir) is conditionally defined. However this is wrong
7363 # for two reasons:
7364 # 1. if the package is installed by a user who cannot write `.'
7365 # make install will fail,
7366 # 2. the above comment should most certainly read
7367 # $(mkdir_p) $(DESTDIR)$(somedir)
7368 # so it does not work when $(somedir) is undefined and
7369 # $(DESTDIR) is not.
7370 # To support the latter case, we have to write
7371 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7372 # so the `.' trick is pointless.
7373 mkdir_p='mkdir -p --'
7374 else
7375 # On NextStep and OpenStep, the `mkdir' command does not
7376 # recognize any option. It will interpret all options as
7377 # directories to create, and then abort because `.' already
7378 # exists.
7379 for d in ./-p ./--version;
7380 do
7381 test -d $d && rmdir $d
7382 done
7383 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7384 if test -f "$ac_aux_dir/mkinstalldirs"; then
7385 mkdir_p='$(mkinstalldirs)'
7386 else
7387 mkdir_p='$(install_sh) -d'
7388 fi
7389 fi
7390 AC_SUBST([mkdir_p])])
7376 [AC_PREREQ([2.60])dnl
7377 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7378 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7379 dnl while keeping a definition of mkdir_p for backward compatibility.
7380 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7381 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7382 dnl Makefile.ins that do not define MKDIR_P, so we do our own
7383 dnl adjustment using top_builddir (which is defined more often than
7384 dnl MKDIR_P).
7385 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7386 case $mkdir_p in
7387 [[\\/$]]* | ?:[[\\/]]*) ;;
7388 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7389 esac
7390 ])
73917391
73927392 # Helper functions for option handling. -*- Autoconf -*-
73937393
74997499 if test "$cross_compiling" != no; then
75007500 AC_CHECK_TOOL([STRIP], [strip], :)
75017501 fi
7502 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
75037503 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7504
7505 # Copyright (C) 2006 Free Software Foundation, Inc.
7506 #
7507 # This file is free software; the Free Software Foundation
7508 # gives unlimited permission to copy and/or distribute it,
7509 # with or without modifications, as long as this notice is preserved.
7510
7511 # _AM_SUBST_NOTMAKE(VARIABLE)
7512 # ---------------------------
7513 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7514 # This macro is traced by Automake.
7515 AC_DEFUN([_AM_SUBST_NOTMAKE])
75047516
75057517 # Check how to create a tarball. -*- Autoconf -*-
75067518
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
44 # Inc.
55
6 timestamp='2007-03-06'
6 timestamp='2007-07-22'
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
329329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331331 exit ;;
332 i86pc:SunOS:5.*:*)
332 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
333333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334334 exit ;;
335335 sun4*:SunOS:6*:*)
792792 exit ;;
793793 *:Interix*:[3456]*)
794794 case ${UNAME_MACHINE} in
795 x86)
795 x86)
796796 echo i586-pc-interix${UNAME_RELEASE}
797797 exit ;;
798798 EM64T | authenticamd)
00 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Enable the leaky stub implementation of the request API for debugging
3 purposes */
4 #undef ENABLE_LEAKY_REQUEST_STUBS
15
26 /* Define to 1 if you have the <dlfcn.h> header file. */
37 #undef HAVE_DLFCN_H
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
44 # Inc.
55
6 timestamp='2007-01-18'
6 timestamp='2007-06-28'
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
474474 basic_machine=craynv-cray
475475 os=-unicosmp
476476 ;;
477 cr16c)
478 basic_machine=cr16c-unknown
477 cr16)
478 basic_machine=cr16-unknown
479479 os=-elf
480480 ;;
481481 crds | unos)
681681 mingw32)
682682 basic_machine=i386-pc
683683 os=-mingw32
684 ;;
685 mingw32ce)
686 basic_machine=arm-unknown
687 os=-mingw32ce
684688 ;;
685689 miniframe)
686690 basic_machine=m68000-convergent
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61 for telepathy-haze 0.1.4.
2 # Generated by GNU Autoconf 2.61 for telepathy-haze 0.2.0.
33 #
44 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-haze>.
55 #
727727 # Identity of this package.
728728 PACKAGE_NAME='telepathy-haze'
729729 PACKAGE_TARNAME='telepathy-haze'
730 PACKAGE_VERSION='0.1.4'
731 PACKAGE_STRING='telepathy-haze 0.1.4'
730 PACKAGE_VERSION='0.2.0'
731 PACKAGE_STRING='telepathy-haze 0.2.0'
732732 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-haze'
733733
734734 # Factoring default headers for most tests.
807807 INSTALL_PROGRAM
808808 INSTALL_SCRIPT
809809 INSTALL_DATA
810 am__isrc
810811 CYGPATH_W
811812 PACKAGE
812813 VERSION
869870 ac_ct_F77
870871 LIBTOOL
871872 ERROR_CFLAGS
873 ENABLE_LEAKY_REQUEST_STUBS
872874 PKG_CONFIG
873875 PURPLE_CFLAGS
874876 PURPLE_LIBS
13991401 # Omit some internal or obsolete options to make the list less imposing.
14001402 # This message is too long to be a string in the A/UX 3.1 sh.
14011403 cat <<_ACEOF
1402 \`configure' configures telepathy-haze 0.1.4 to adapt to many kinds of systems.
1404 \`configure' configures telepathy-haze 0.2.0 to adapt to many kinds of systems.
14031405
14041406 Usage: $0 [OPTION]... [VAR=VALUE]...
14051407
14691471
14701472 if test -n "$ac_init_help"; then
14711473 case $ac_init_help in
1472 short | recursive ) echo "Configuration of telepathy-haze 0.1.4:";;
1474 short | recursive ) echo "Configuration of telepathy-haze 0.2.0:";;
14731475 esac
14741476 cat <<\_ACEOF
14751477
14851487 --disable-libtool-lock avoid locking (might break parallel builds)
14861488 --disable-Werror compile without -Werror (normally enabled in
14871489 development builds)
1490 --enable-leaky-request-stubs
1491 print debugging information when libpurple attempts
1492 to use the request API (warning: very leaky)
14881493
14891494 Optional Packages:
14901495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15811586 test -n "$ac_init_help" && exit $ac_status
15821587 if $ac_init_version; then
15831588 cat <<\_ACEOF
1584 telepathy-haze configure 0.1.4
1589 telepathy-haze configure 0.2.0
15851590 generated by GNU Autoconf 2.61
15861591
15871592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15951600 This file contains any messages produced by compilers while
15961601 running configure, to aid debugging if configure makes a mistake.
15971602
1598 It was created by telepathy-haze $as_me 0.1.4, which was
1603 It was created by telepathy-haze $as_me 0.2.0, which was
15991604 generated by GNU Autoconf 2.61. Invocation command line was
16001605
16011606 $ $0 $@
19511956
19521957
19531958
1954 am__api_version="1.9"
1959 am__api_version='1.10'
1960
19551961 ac_aux_dir=
19561962 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
19571963 if test -f "$ac_dir/install-sh"; then
21342140 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
21352141 fi
21362142
2137 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2138 # We used to keeping the `.' as first argument, in order to
2139 # allow $(mkdir_p) to be used without argument. As in
2140 # $(mkdir_p) $(somedir)
2141 # where $(somedir) is conditionally defined. However this is wrong
2142 # for two reasons:
2143 # 1. if the package is installed by a user who cannot write `.'
2144 # make install will fail,
2145 # 2. the above comment should most certainly read
2146 # $(mkdir_p) $(DESTDIR)$(somedir)
2147 # so it does not work when $(somedir) is undefined and
2148 # $(DESTDIR) is not.
2149 # To support the latter case, we have to write
2150 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2151 # so the `.' trick is pointless.
2152 mkdir_p='mkdir -p --'
2153 else
2154 # On NextStep and OpenStep, the `mkdir' command does not
2155 # recognize any option. It will interpret all options as
2156 # directories to create, and then abort because `.' already
2157 # exists.
2158 for d in ./-p ./--version;
2159 do
2160 test -d $d && rmdir $d
2161 done
2162 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2163 if test -f "$ac_aux_dir/mkinstalldirs"; then
2164 mkdir_p='$(mkinstalldirs)'
2143 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2144 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2145 if test -z "$MKDIR_P"; then
2146 if test "${ac_cv_path_mkdir+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_prog in mkdir gmkdir; do
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2157 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2158 'mkdir (GNU coreutils) '* | \
2159 'mkdir (coreutils) '* | \
2160 'mkdir (fileutils) '4.1*)
2161 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2162 break 3;;
2163 esac
2164 done
2165 done
2166 done
2167 IFS=$as_save_IFS
2168
2169 fi
2170
2171 if test "${ac_cv_path_mkdir+set}" = set; then
2172 MKDIR_P="$ac_cv_path_mkdir -p"
21652173 else
2166 mkdir_p='$(install_sh) -d'
2174 # As a last resort, use the slow shell script. Don't cache a
2175 # value for MKDIR_P within a source directory, because that will
2176 # break other packages using the cache if that directory is
2177 # removed, or if the value is a relative name.
2178 test -d ./--version && rmdir ./--version
2179 MKDIR_P="$ac_install_sh -d"
21672180 fi
21682181 fi
2182 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2183 echo "${ECHO_T}$MKDIR_P" >&6; }
2184
2185 mkdir_p="$MKDIR_P"
2186 case $mkdir_p in
2187 [\\/$]* | ?:[\\/]*) ;;
2188 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2189 esac
21692190
21702191 for ac_prog in gawk mawk nawk awk
21712192 do
22482269 fi
22492270 rmdir .tst 2>/dev/null
22502271
2251 # test to see if srcdir already configured
2252 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2253 test -f $srcdir/config.status; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2272 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2273 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2274 # is not polluted with repeated "-I."
2275 am__isrc=' -I$(srcdir)'
2276 # test to see if srcdir already configured
2277 if test -f $srcdir/config.status; then
2278 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
22552279 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
22562280 { (exit 1); exit 1; }; }
2281 fi
22572282 fi
22582283
22592284 # test whether we have cygpath
22682293
22692294 # Define the identity of the package.
22702295 PACKAGE='telepathy-haze'
2271 VERSION='0.1.4'
2296 VERSION='0.2.0'
22722297
22732298
22742299 cat >>confdefs.h <<_ACEOF
22962321
22972322 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
22982323
2299 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2324 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
23002325
23012326 # Installed binaries are usually stripped using `strip' when the user
23022327 # run `make install-strip'. However `strip' might not be the right
24002425 fi
24012426
24022427 fi
2403 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2428 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24042429
24052430 # We need awk for the "check" target. The system "awk" is bad on
24062431 # some platforms.
33883413 am_depcomp="$ac_aux_dir/depcomp"
33893414 AMDEPBACKSLASH='\'
33903415 fi
3391
3392
3393 if test "x$enable_dependency_tracking" != xno; then
3416 if test "x$enable_dependency_tracking" != xno; then
33943417 AMDEP_TRUE=
33953418 AMDEP_FALSE='#'
33963419 else
33973420 AMDEP_TRUE='#'
33983421 AMDEP_FALSE=
33993422 fi
3400
34013423
34023424
34033425
34683490 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34693491 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
34703492 >/dev/null 2>conftest.err &&
3493 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34713494 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
34723495 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
34733496 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34973520 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
34983521 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
34993522
3500
3501
3502 if
3523 if
35033524 test "x$enable_dependency_tracking" != xno \
35043525 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35053526 am__fastdepCC_TRUE=
47414762 ;;
47424763 *-*-irix6*)
47434764 # Find out which ABI we are using.
4744 echo '#line 4745 "configure"' > conftest.$ac_ext
4765 echo '#line 4766 "configure"' > conftest.$ac_ext
47454766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47464767 (eval $ac_compile) 2>&5
47474768 ac_status=$?
59775998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
59785999 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
59796000 >/dev/null 2>conftest.err &&
6001 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
59806002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
59816003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
59826004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
60066028 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
60076029 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
60086030
6009
6010
6011 if
6031 if
60126032 test "x$enable_dependency_tracking" != xno \
60136033 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
60146034 am__fastdepCXX_TRUE=
74847504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
74857505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
74867506 -e 's:$: $lt_compiler_flag:'`
7487 (eval echo "\"\$as_me:7488: $lt_compile\"" >&5)
7507 (eval echo "\"\$as_me:7508: $lt_compile\"" >&5)
74887508 (eval "$lt_compile" 2>conftest.err)
74897509 ac_status=$?
74907510 cat conftest.err >&5
7491 echo "$as_me:7492: \$? = $ac_status" >&5
7511 echo "$as_me:7512: \$? = $ac_status" >&5
74927512 if (exit $ac_status) && test -s "$ac_outfile"; then
74937513 # The compiler can only warn and ignore the option if not recognized
74947514 # So say no if there are warnings other than the usual output.
77747794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
77757795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
77767796 -e 's:$: $lt_compiler_flag:'`
7777 (eval echo "\"\$as_me:7778: $lt_compile\"" >&5)
7797 (eval echo "\"\$as_me:7798: $lt_compile\"" >&5)
77787798 (eval "$lt_compile" 2>conftest.err)
77797799 ac_status=$?
77807800 cat conftest.err >&5
7781 echo "$as_me:7782: \$? = $ac_status" >&5
7801 echo "$as_me:7802: \$? = $ac_status" >&5
77827802 if (exit $ac_status) && test -s "$ac_outfile"; then
77837803 # The compiler can only warn and ignore the option if not recognized
77847804 # So say no if there are warnings other than the usual output.
78787898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
78797899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
78807900 -e 's:$: $lt_compiler_flag:'`
7881 (eval echo "\"\$as_me:7882: $lt_compile\"" >&5)
7901 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
78827902 (eval "$lt_compile" 2>out/conftest.err)
78837903 ac_status=$?
78847904 cat out/conftest.err >&5
7885 echo "$as_me:7886: \$? = $ac_status" >&5
7905 echo "$as_me:7906: \$? = $ac_status" >&5
78867906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
78877907 then
78887908 # The compiler can only warn and ignore the option if not recognized
1024010260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1024110261 lt_status=$lt_dlunknown
1024210262 cat > conftest.$ac_ext <<EOF
10243 #line 10244 "configure"
10263 #line 10264 "configure"
1024410264 #include "confdefs.h"
1024510265
1024610266 #if HAVE_DLFCN_H
1034010360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1034110361 lt_status=$lt_dlunknown
1034210362 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10363 #line 10364 "configure"
1034410364 #include "confdefs.h"
1034510365
1034610366 #if HAVE_DLFCN_H
1276012780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1276112781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1276212782 -e 's:$: $lt_compiler_flag:'`
12763 (eval echo "\"\$as_me:12764: $lt_compile\"" >&5)
12783 (eval echo "\"\$as_me:12784: $lt_compile\"" >&5)
1276412784 (eval "$lt_compile" 2>conftest.err)
1276512785 ac_status=$?
1276612786 cat conftest.err >&5
12767 echo "$as_me:12768: \$? = $ac_status" >&5
12787 echo "$as_me:12788: \$? = $ac_status" >&5
1276812788 if (exit $ac_status) && test -s "$ac_outfile"; then
1276912789 # The compiler can only warn and ignore the option if not recognized
1277012790 # So say no if there are warnings other than the usual output.
1286412884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1286512885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1286612886 -e 's:$: $lt_compiler_flag:'`
12867 (eval echo "\"\$as_me:12868: $lt_compile\"" >&5)
12887 (eval echo "\"\$as_me:12888: $lt_compile\"" >&5)
1286812888 (eval "$lt_compile" 2>out/conftest.err)
1286912889 ac_status=$?
1287012890 cat out/conftest.err >&5
12871 echo "$as_me:12872: \$? = $ac_status" >&5
12891 echo "$as_me:12892: \$? = $ac_status" >&5
1287212892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1287312893 then
1287412894 # The compiler can only warn and ignore the option if not recognized
1444114461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1444214462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1444314463 -e 's:$: $lt_compiler_flag:'`
14444 (eval echo "\"\$as_me:14445: $lt_compile\"" >&5)
14464 (eval echo "\"\$as_me:14465: $lt_compile\"" >&5)
1444514465 (eval "$lt_compile" 2>conftest.err)
1444614466 ac_status=$?
1444714467 cat conftest.err >&5
14448 echo "$as_me:14449: \$? = $ac_status" >&5
14468 echo "$as_me:14469: \$? = $ac_status" >&5
1444914469 if (exit $ac_status) && test -s "$ac_outfile"; then
1445014470 # The compiler can only warn and ignore the option if not recognized
1445114471 # So say no if there are warnings other than the usual output.
1454514565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1454614566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1454714567 -e 's:$: $lt_compiler_flag:'`
14548 (eval echo "\"\$as_me:14549: $lt_compile\"" >&5)
14568 (eval echo "\"\$as_me:14569: $lt_compile\"" >&5)
1454914569 (eval "$lt_compile" 2>out/conftest.err)
1455014570 ac_status=$?
1455114571 cat out/conftest.err >&5
14552 echo "$as_me:14553: \$? = $ac_status" >&5
14572 echo "$as_me:14573: \$? = $ac_status" >&5
1455314573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1455414574 then
1455514575 # The compiler can only warn and ignore the option if not recognized
1674516765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1674616766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1674716767 -e 's:$: $lt_compiler_flag:'`
16748 (eval echo "\"\$as_me:16749: $lt_compile\"" >&5)
16768 (eval echo "\"\$as_me:16769: $lt_compile\"" >&5)
1674916769 (eval "$lt_compile" 2>conftest.err)
1675016770 ac_status=$?
1675116771 cat conftest.err >&5
16752 echo "$as_me:16753: \$? = $ac_status" >&5
16772 echo "$as_me:16773: \$? = $ac_status" >&5
1675316773 if (exit $ac_status) && test -s "$ac_outfile"; then
1675416774 # The compiler can only warn and ignore the option if not recognized
1675516775 # So say no if there are warnings other than the usual output.
1703517055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1703617056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1703717057 -e 's:$: $lt_compiler_flag:'`
17038 (eval echo "\"\$as_me:17039: $lt_compile\"" >&5)
17058 (eval echo "\"\$as_me:17059: $lt_compile\"" >&5)
1703917059 (eval "$lt_compile" 2>conftest.err)
1704017060 ac_status=$?
1704117061 cat conftest.err >&5
17042 echo "$as_me:17043: \$? = $ac_status" >&5
17062 echo "$as_me:17063: \$? = $ac_status" >&5
1704317063 if (exit $ac_status) && test -s "$ac_outfile"; then
1704417064 # The compiler can only warn and ignore the option if not recognized
1704517065 # So say no if there are warnings other than the usual output.
1713917159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1714017160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1714117161 -e 's:$: $lt_compiler_flag:'`
17142 (eval echo "\"\$as_me:17143: $lt_compile\"" >&5)
17162 (eval echo "\"\$as_me:17163: $lt_compile\"" >&5)
1714317163 (eval "$lt_compile" 2>out/conftest.err)
1714417164 ac_status=$?
1714517165 cat out/conftest.err >&5
17146 echo "$as_me:17147: \$? = $ac_status" >&5
17166 echo "$as_me:17167: \$? = $ac_status" >&5
1714717167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1714817168 then
1714917169 # The compiler can only warn and ignore the option if not recognized
2012020140
2012120141
2012220142
20143 # Check whether --enable-leaky-request-stubs was given.
20144 if test "${enable_leaky_request_stubs+set}" = set; then
20145 enableval=$enable_leaky_request_stubs;
20146 cat >>confdefs.h <<\_ACEOF
20147 #define ENABLE_LEAKY_REQUEST_STUBS
20148 _ACEOF
20149
20150 fi
20151
20152
20153
2012320154
2012420155
2012520156 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2025020281 pkg_cv_PURPLE_CFLAGS="$PURPLE_CFLAGS"
2025120282 else
2025220283 if test -n "$PKG_CONFIG" && \
20253 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"purple >= 2.0.0\"") >&5
20254 ($PKG_CONFIG --exists --print-errors "purple >= 2.0.0") 2>&5
20284 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"purple >= 2.1.1\"") >&5
20285 ($PKG_CONFIG --exists --print-errors "purple >= 2.1.1") 2>&5
2025520286 ac_status=$?
2025620287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025720288 (exit $ac_status); }; then
20258 pkg_cv_PURPLE_CFLAGS=`$PKG_CONFIG --cflags "purple >= 2.0.0" 2>/dev/null`
20289 pkg_cv_PURPLE_CFLAGS=`$PKG_CONFIG --cflags "purple >= 2.1.1" 2>/dev/null`
2025920290 else
2026020291 pkg_failed=yes
2026120292 fi
2026820299 pkg_cv_PURPLE_LIBS="$PURPLE_LIBS"
2026920300 else
2027020301 if test -n "$PKG_CONFIG" && \
20271 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"purple >= 2.0.0\"") >&5
20272 ($PKG_CONFIG --exists --print-errors "purple >= 2.0.0") 2>&5
20302 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"purple >= 2.1.1\"") >&5
20303 ($PKG_CONFIG --exists --print-errors "purple >= 2.1.1") 2>&5
2027320304 ac_status=$?
2027420305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027520306 (exit $ac_status); }; then
20276 pkg_cv_PURPLE_LIBS=`$PKG_CONFIG --libs "purple >= 2.0.0" 2>/dev/null`
20307 pkg_cv_PURPLE_LIBS=`$PKG_CONFIG --libs "purple >= 2.1.1" 2>/dev/null`
2027720308 else
2027820309 pkg_failed=yes
2027920310 fi
2029220323 _pkg_short_errors_supported=no
2029320324 fi
2029420325 if test $_pkg_short_errors_supported = yes; then
20295 PURPLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "purple >= 2.0.0"`
20326 PURPLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "purple >= 2.1.1"`
2029620327 else
20297 PURPLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "purple >= 2.0.0"`
20328 PURPLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "purple >= 2.1.1"`
2029820329 fi
2029920330 # Put the nasty error message in config.log where it belongs
2030020331 echo "$PURPLE_PKG_ERRORS" >&5
2030120332
20302 { { echo "$as_me:$LINENO: error: Package requirements (purple >= 2.0.0) were not met:
20333 { { echo "$as_me:$LINENO: error: Package requirements (purple >= 2.1.1) were not met:
2030320334
2030420335 $PURPLE_PKG_ERRORS
2030520336
2031020341 and PURPLE_LIBS to avoid the need to call pkg-config.
2031120342 See the pkg-config man page for more details.
2031220343 " >&5
20313 echo "$as_me: error: Package requirements (purple >= 2.0.0) were not met:
20344 echo "$as_me: error: Package requirements (purple >= 2.1.1) were not met:
2031420345
2031520346 $PURPLE_PKG_ERRORS
2031620347
2036420395 pkg_cv_TP_GLIB_CFLAGS="$TP_GLIB_CFLAGS"
2036520396 else
2036620397 if test -n "$PKG_CONFIG" && \
20367 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"telepathy-glib\"") >&5
20368 ($PKG_CONFIG --exists --print-errors "telepathy-glib") 2>&5
20398 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7\"") >&5
20399 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.7") 2>&5
2036920400 ac_status=$?
2037020401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037120402 (exit $ac_status); }; then
20372 pkg_cv_TP_GLIB_CFLAGS=`$PKG_CONFIG --cflags "telepathy-glib" 2>/dev/null`
20403 pkg_cv_TP_GLIB_CFLAGS=`$PKG_CONFIG --cflags "telepathy-glib >= 0.7" 2>/dev/null`
2037320404 else
2037420405 pkg_failed=yes
2037520406 fi
2038220413 pkg_cv_TP_GLIB_LIBS="$TP_GLIB_LIBS"
2038320414 else
2038420415 if test -n "$PKG_CONFIG" && \
20385 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"telepathy-glib\"") >&5
20386 ($PKG_CONFIG --exists --print-errors "telepathy-glib") 2>&5
20416 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"telepathy-glib >= 0.7\"") >&5
20417 ($PKG_CONFIG --exists --print-errors "telepathy-glib >= 0.7") 2>&5
2038720418 ac_status=$?
2038820419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038920420 (exit $ac_status); }; then
20390 pkg_cv_TP_GLIB_LIBS=`$PKG_CONFIG --libs "telepathy-glib" 2>/dev/null`
20421 pkg_cv_TP_GLIB_LIBS=`$PKG_CONFIG --libs "telepathy-glib >= 0.7" 2>/dev/null`
2039120422 else
2039220423 pkg_failed=yes
2039320424 fi
2040620437 _pkg_short_errors_supported=no
2040720438 fi
2040820439 if test $_pkg_short_errors_supported = yes; then
20409 TP_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "telepathy-glib"`
20440 TP_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "telepathy-glib >= 0.7"`
2041020441 else
20411 TP_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "telepathy-glib"`
20442 TP_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "telepathy-glib >= 0.7"`
2041220443 fi
2041320444 # Put the nasty error message in config.log where it belongs
2041420445 echo "$TP_GLIB_PKG_ERRORS" >&5
2041520446
20416 { { echo "$as_me:$LINENO: error: Package requirements (telepathy-glib) were not met:
20447 { { echo "$as_me:$LINENO: error: Package requirements (telepathy-glib >= 0.7) were not met:
2041720448
2041820449 $TP_GLIB_PKG_ERRORS
2041920450
2042420455 and TP_GLIB_LIBS to avoid the need to call pkg-config.
2042520456 See the pkg-config man page for more details.
2042620457 " >&5
20427 echo "$as_me: error: Package requirements (telepathy-glib) were not met:
20458 echo "$as_me: error: Package requirements (telepathy-glib >= 0.7) were not met:
2042820459
2042920460 $TP_GLIB_PKG_ERRORS
2043020461
2103221063 # report actual input values of CONFIG_FILES etc. instead of their
2103321064 # values after options handling.
2103421065 ac_log="
21035 This file was extended by telepathy-haze $as_me 0.1.4, which was
21066 This file was extended by telepathy-haze $as_me 0.2.0, which was
2103621067 generated by GNU Autoconf 2.61. Invocation command line was
2103721068
2103821069 CONFIG_FILES = $CONFIG_FILES
2108521116 _ACEOF
2108621117 cat >>$CONFIG_STATUS <<_ACEOF
2108721118 ac_cs_version="\\
21088 telepathy-haze config.status 0.1.4
21119 telepathy-haze config.status 0.2.0
2108921120 configured by $0, generated by GNU Autoconf 2.61,
2109021121 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2109121122
2109621127 ac_pwd='$ac_pwd'
2109721128 srcdir='$srcdir'
2109821129 INSTALL='$INSTALL'
21130 MKDIR_P='$MKDIR_P'
2109921131 _ACEOF
2110021132
2110121133 cat >>$CONFIG_STATUS <<\_ACEOF
2130621338 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
2130721339 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
2130821340 INSTALL_DATA!$INSTALL_DATA$ac_delim
21341 am__isrc!$am__isrc$ac_delim
2130921342 CYGPATH_W!$CYGPATH_W$ac_delim
2131021343 PACKAGE!$PACKAGE$ac_delim
2131121344 VERSION!$VERSION$ac_delim
2136221395 CXXDEPMODE!$CXXDEPMODE$ac_delim
2136321396 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
2136421397 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21365 CXXCPP!$CXXCPP$ac_delim
2136621398 _ACEOF
2136721399
2136821400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2140421436 ac_delim='%!_!# '
2140521437 for ac_last_try in false false false false false :; do
2140621438 cat >conf$$subs.sed <<_ACEOF
21439 CXXCPP!$CXXCPP$ac_delim
2140721440 F77!$F77$ac_delim
2140821441 FFLAGS!$FFLAGS$ac_delim
2140921442 ac_ct_F77!$ac_ct_F77$ac_delim
2141021443 LIBTOOL!$LIBTOOL$ac_delim
2141121444 ERROR_CFLAGS!$ERROR_CFLAGS$ac_delim
21445 ENABLE_LEAKY_REQUEST_STUBS!$ENABLE_LEAKY_REQUEST_STUBS$ac_delim
2141221446 PKG_CONFIG!$PKG_CONFIG$ac_delim
2141321447 PURPLE_CFLAGS!$PURPLE_CFLAGS$ac_delim
2141421448 PURPLE_LIBS!$PURPLE_LIBS$ac_delim
2141821452 LTLIBOBJS!$LTLIBOBJS$ac_delim
2141921453 _ACEOF
2142021454
21421 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
21455 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
2142221456 break
2142321457 elif $ac_last_try; then
2142421458 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2164521679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2164621680 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
2164721681 esac
21682 ac_MKDIR_P=$MKDIR_P
21683 case $MKDIR_P in
21684 [\\/$]* | ?:[\\/]* ) ;;
21685 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21686 esac
2164821687 _ACEOF
2164921688
2165021689 cat >>$CONFIG_STATUS <<\_ACEOF
2169821737 s&@abs_builddir@&$ac_abs_builddir&;t t
2169921738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2170021739 s&@INSTALL@&$ac_INSTALL&;t t
21740 s&@MKDIR_P@&$ac_MKDIR_P&;t t
2170121741 $ac_datarootdir_hack
2170221742 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
2170321743
2186221902 # some people rename them; so instead we look at the file content.
2186321903 # Grep'ing the first line is not enough: some people post-process
2186421904 # each Makefile.in and add a new line on top of each file to say so.
21865 # So let's grep whole file.
21866 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21905 # Grep'ing the whole file is not good either: AIX grep has a line
21906 # limit of 2048, but all sed's we know have understand at least 4000.
21907 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
2186721908 dirpart=`$as_dirname -- "$mf" ||
2186821909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2186921910 X"$mf" : 'X\(//\)[^/]' \| \
66 # set nano_version to 1
77
88 m4_define([haze_major_version], [0])
9 m4_define([haze_minor_version], [1])
10 m4_define([haze_micro_version], [4])
9 m4_define([haze_minor_version], [2])
10 m4_define([haze_micro_version], [0])
1111 m4_define([haze_nano_version], [0])
1212
1313 m4_define([haze_base_version],
6060
6161 AC_SUBST(ERROR_CFLAGS)
6262
63 PKG_CHECK_MODULES(PURPLE,[purple >= 2.0.0])
63 AC_ARG_ENABLE(leaky-request-stubs,
64 AC_HELP_STRING([--enable-leaky-request-stubs],[print debugging information when libpurple attempts to use the request API (warning: very leaky)]),
65 AC_DEFINE(ENABLE_LEAKY_REQUEST_STUBS, [], [Enable the leaky stub implementation of the request API for debugging purposes]))
66 AC_SUBST(ENABLE_LEAKY_REQUEST_STUBS)
67
68 PKG_CHECK_MODULES(PURPLE,[purple >= 2.1.1])
6469 AC_SUBST(PURPLE_CFLAGS)
6570 AC_SUBST(PURPLE_LIBS)
6671
67 PKG_CHECK_MODULES(TP_GLIB,[telepathy-glib])
72 PKG_CHECK_MODULES(TP_GLIB,[telepathy-glib >= 0.7])
6873 AC_SUBST(TP_GLIB_CFLAGS)
6974 AC_SUBST(TP_GLIB_LIBS)
7075
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1313
1414 @SET_MAKE@
1515
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
1816 VPATH = @srcdir@
1917 pkgdatadir = $(datadir)/@PACKAGE@
2018 pkglibdir = $(libdir)/@PACKAGE@
2119 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
2320 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
2521 install_sh_DATA = $(install_sh) -c -m 644
2622 install_sh_PROGRAM = $(install_sh) -c
2723 install_sh_SCRIPT = $(install_sh) -c
6056 DATA = $(dist_manager_DATA) $(service_DATA)
6157 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6258 ACLOCAL = @ACLOCAL@
63 AMDEP_FALSE = @AMDEP_FALSE@
64 AMDEP_TRUE = @AMDEP_TRUE@
6559 AMTAR = @AMTAR@
6660 AR = @AR@
6761 AUTOCONF = @AUTOCONF@
8579 ECHO_N = @ECHO_N@
8680 ECHO_T = @ECHO_T@
8781 EGREP = @EGREP@
82 ENABLE_LEAKY_REQUEST_STUBS = @ENABLE_LEAKY_REQUEST_STUBS@
8883 ERROR_CFLAGS = @ERROR_CFLAGS@
8984 EXEEXT = @EXEEXT@
9085 F77 = @F77@
9186 FFLAGS = @FFLAGS@
9287 GREP = @GREP@
88 INSTALL = @INSTALL@
9389 INSTALL_DATA = @INSTALL_DATA@
9490 INSTALL_PROGRAM = @INSTALL_PROGRAM@
9591 INSTALL_SCRIPT = @INSTALL_SCRIPT@
10197 LN_S = @LN_S@
10298 LTLIBOBJS = @LTLIBOBJS@
10399 MAKEINFO = @MAKEINFO@
100 MKDIR_P = @MKDIR_P@
104101 OBJEXT = @OBJEXT@
105102 PACKAGE = @PACKAGE@
106103 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
120117 TP_GLIB_CFLAGS = @TP_GLIB_CFLAGS@
121118 TP_GLIB_LIBS = @TP_GLIB_LIBS@
122119 VERSION = @VERSION@
120 abs_builddir = @abs_builddir@
121 abs_srcdir = @abs_srcdir@
122 abs_top_builddir = @abs_top_builddir@
123 abs_top_srcdir = @abs_top_srcdir@
123124 ac_ct_CC = @ac_ct_CC@
124125 ac_ct_CXX = @ac_ct_CXX@
125126 ac_ct_F77 = @ac_ct_F77@
126 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
127 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
128 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
129 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
130127 am__include = @am__include@
131128 am__leading_dot = @am__leading_dot@
132129 am__quote = @am__quote@
138135 build_cpu = @build_cpu@
139136 build_os = @build_os@
140137 build_vendor = @build_vendor@
138 builddir = @builddir@
141139 datadir = @datadir@
142140 datarootdir = @datarootdir@
143141 docdir = @docdir@
165163 psdir = @psdir@
166164 sbindir = @sbindir@
167165 sharedstatedir = @sharedstatedir@
166 srcdir = @srcdir@
168167 sysconfdir = @sysconfdir@
169168 target_alias = @target_alias@
169 top_builddir = @top_builddir@
170 top_srcdir = @top_srcdir@
170171
171172 # Telepathy manager file
172173 managerdir = $(datadir)/telepathy/managers
217218
218219 clean-libtool:
219220 -rm -rf .libs _libs
220
221 distclean-libtool:
222 -rm -f libtool
223 uninstall-info-am:
224221 install-dist_managerDATA: $(dist_manager_DATA)
225222 @$(NORMAL_INSTALL)
226 test -z "$(managerdir)" || $(mkdir_p) "$(DESTDIR)$(managerdir)"
223 test -z "$(managerdir)" || $(MKDIR_P) "$(DESTDIR)$(managerdir)"
227224 @list='$(dist_manager_DATA)'; for p in $$list; do \
228225 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
229226 f=$(am__strip_dir) \
240237 done
241238 install-serviceDATA: $(service_DATA)
242239 @$(NORMAL_INSTALL)
243 test -z "$(servicedir)" || $(mkdir_p) "$(DESTDIR)$(servicedir)"
240 test -z "$(servicedir)" || $(MKDIR_P) "$(DESTDIR)$(servicedir)"
244241 @list='$(service_DATA)'; for p in $$list; do \
245242 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
246243 f=$(am__strip_dir) \
263260
264261
265262 distdir: $(DISTFILES)
266 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
267 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
268 list='$(DISTFILES)'; for file in $$list; do \
269 case $$file in \
270 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
271 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
272 esac; \
263 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
264 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
265 list='$(DISTFILES)'; \
266 dist_files=`for file in $$list; do echo $$file; done | \
267 sed -e "s|^$$srcdirstrip/||;t" \
268 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
269 case $$dist_files in \
270 */*) $(MKDIR_P) `echo "$$dist_files" | \
271 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
272 sort -u` ;; \
273 esac; \
274 for file in $$dist_files; do \
273275 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
274 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
275 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
276 dir="/$$dir"; \
277 $(mkdir_p) "$(distdir)$$dir"; \
278 else \
279 dir=''; \
280 fi; \
281276 if test -d $$d/$$file; then \
277 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
282278 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
283279 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
284280 fi; \
294290 all-am: Makefile $(DATA)
295291 installdirs:
296292 for dir in "$(DESTDIR)$(managerdir)" "$(DESTDIR)$(servicedir)"; do \
297 test -z "$$dir" || $(mkdir_p) "$$dir"; \
293 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
298294 done
299295 install: install-am
300296 install-exec: install-exec-am
327323
328324 distclean: distclean-am
329325 -rm -f Makefile
330 distclean-am: clean-am distclean-generic distclean-libtool
326 distclean-am: clean-am distclean-generic
331327
332328 dvi: dvi-am
333329
341337
342338 install-data-am: install-dist_managerDATA install-serviceDATA
343339
340 install-dvi: install-dvi-am
341
344342 install-exec-am:
345343
344 install-html: install-html-am
345
346346 install-info: install-info-am
347347
348348 install-man:
349
350 install-pdf: install-pdf-am
351
352 install-ps: install-ps-am
349353
350354 installcheck-am:
351355
365369
366370 ps-am:
367371
368 uninstall-am: uninstall-dist_managerDATA uninstall-info-am \
369 uninstall-serviceDATA
372 uninstall-am: uninstall-dist_managerDATA uninstall-serviceDATA
373
374 .MAKE: install-am install-strip
370375
371376 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
372377 distclean distclean-generic distclean-libtool distdir dvi \
373378 dvi-am html html-am info info-am install install-am \
374379 install-data install-data-am install-dist_managerDATA \
375 install-exec install-exec-am install-info install-info-am \
376 install-man install-serviceDATA install-strip installcheck \
380 install-dvi install-dvi-am install-exec install-exec-am \
381 install-html install-html-am install-info install-info-am \
382 install-man install-pdf install-pdf-am install-ps \
383 install-ps-am install-serviceDATA install-strip installcheck \
377384 installcheck-am installdirs maintainer-clean \
378385 maintainer-clean-generic mostlyclean mostlyclean-generic \
379386 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
380 uninstall-dist_managerDATA uninstall-info-am \
381 uninstall-serviceDATA
387 uninstall-dist_managerDATA uninstall-serviceDATA
382388
383389
384390 # Rule to make the service file with libexecdir expanded
55 param-account=s required
66 param-password=s required
77 param-server=s
8
9 [Protocol local-xmpp]
10 param-account=s required
11 param-password=s required
12 param-server=s
8 param-port=i
9 param-always-use-rv-proxy=b
10 default-server=login.messaging.aol.com
11 default-port=5190
12 default-always-use-rv-proxy=false
1313
1414 [Protocol gadugadu]
1515 param-account=s required
1616 param-password=s required
17 param-server=s
17 param-nick=s
18 default-nick=Gadu-Gadu User
1819
1920 [Protocol groupwise]
2021 param-account=s required
2122 param-password=s required
2223 param-server=s
24 param-port=i
25 default-port=8300
2326
2427 [Protocol icq]
2528 param-account=s required
2629 param-password=s required
2730 param-server=s
31 param-port=i
32 param-always-use-rv-proxy=b
33 param-charset=s
34 default-server=login.messaging.aol.com
35 default-port=5190
36 default-always-use-rv-proxy=false
37 default-charset=UTF-8
2838
2939 [Protocol irc]
3040 param-account=s required
41 param-password=s
42 param-port=i
43 param-charset=s
44 param-username=s
45 param-realname=s
46 param-ssl=b
47 default-port=6667
48 default-charset=UTF-8
49 default-ssl=false
50
51 [Protocol jabber]
52 param-account=s required
3153 param-password=s required
54 param-require-encryption=b
55 param-old-ssl=b
56 param-auth-plain-in-clear=b
57 param-port=i
3258 param-server=s
59 param-ft-proxies=s
60 default-require-encryption=false
61 default-old-ssl=false
62 default-auth-plain-in-clear=false
63 default-port=5222
64 default-ft-proxies=proxy.jabber.org:7777
65
66 [Protocol local-xmpp]
67 param-account=s required
68 param-first-name=s required
69 param-last-name=s required
70 param-email=s
71 param-AIM=s
72 param-jid=s
3373
3474 [Protocol msn]
3575 param-account=s required
3676 param-password=s required
3777 param-server=s
78 param-port=i
79 param-http-method=b
80 param-http-method-server=s
81 param-custom-smileys=b
82 default-server=messenger.hotmail.com
83 default-port=1863
84 default-http-method=false
85 default-http-method-server=gateway.messenger.hotmail.com
86 default-custom-smileys=true
87
88 [Protocol myspace]
89 param-account=s required
90 param-password=s required
91 param-server=s
92 param-port=i
93 default-server=im.myspace.akadns.net
94 default-port=1863
3895
3996 [Protocol qq]
4097 param-account=s required
4198 param-password=s required
99 param-use-tcp=b
42100 param-server=s
43
44 [Protocol simple]
45 param-account=s required
46 param-password=s required
47 param-server=s
101 param-port=s
102 default-use-tcp=false
48103
49104 [Protocol sametime]
50105 param-account=s required
51106 param-password=s required
52107 param-server=s
108 param-port=i
109 param-force-login=b
110 param-fake-client-id=b
111 default-port=1533
112 default-force-login=false
113 default-fake-client-id=false
53114
54 [Protocol jabber]
115 [Protocol simple]
55116 param-account=s required
56117 param-password=s required
118 param-dopublish=b
119 param-port=i
120 param-udp=b
121 param-useproxy=b
122 param-proxy=s
123 param-authuser=s
124 param-authdomain=s
125 default-dopublish=true
126 default-port=0
127 default-udp=false
128 default-useproxy=false
129
130 [Protocol snpp]
131 param-account=s required
132 param-password=s
57133 param-server=s
134 param-port=i
135 default-server=localhost
136 default-port=444
58137
59138 [Protocol yahoo]
60139 param-account=s required
61140 param-password=s required
141 param-yahoojp=b
62142 param-server=s
143 param-serverjp=s
144 param-port=i
145 param-xfer-host=s
146 param-xferjp-host=s
147 param-xfer-port=i
148 param-room-list-locale=s
149 param-ignore-invites=b
150 param-charset=s
151 default-yahoojp=false
152 default-server=scs.msg.yahoo.com
153 default-serverjp=cs.yahoo.co.jp
154 default-port=5050
155 default-xfer-host=filetransfer.msg.yahoo.com
156 default-xferjp-host=filetransfer.msg.yahoo.co.jp
157 default-xfer-port=80
158 default-room-list-locale=us
159 default-ignore-invites=false
160 default-charset=UTF-8
63161
64162 [Protocol zephyr]
65163 param-account=s required
66 param-password=s required
67 param-server=s
164 param-use-tzc=b
165 param-tzc-command=s
166 param-write-anyone=b
167 param-write-zsubs=b
168 param-read-anyone=b
169 param-read-zsubs=b
170 param-realm=s
171 param-exposure-level=s
172 param-charset=s
173 default-use-tzc=false
174 default-tzc-command=/usr/bin/tzc -e %s
175 default-write-anyone=false
176 default-write-zsubs=false
177 default-read-anyone=true
178 default-read-zsubs=true
179 default-exposure-level=REALM-VISIBLE
180 default-charset=UTF-8
181
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
3 scriptversion=2006-10-15.18
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
6 # Foundation, Inc.
67
78 # This program is free software; you can redistribute it and/or modify
89 # it under the terms of the GNU General Public License as published by
9091 ## gcc 3 implements dependency tracking that does exactly what
9192 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
9293 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
95 ## the command line argument order; so add the flags where they
96 ## appear in depend2.am. Note that the slowdown incurred here
97 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
98 for arg
99 do
100 case $arg in
101 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
102 *) set fnord "$@" "$arg" ;;
103 esac
104 shift # fnord
105 shift # $arg
106 done
107 "$@"
94108 stat=$?
95109 if test $stat -eq 0; then :
96110 else
275289 rm -f "$tmpdepfile"
276290 ;;
277291
292 hp2)
293 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
294 # compilers, which have integrated preprocessors. The correct option
295 # to use with these is +Maked; it writes dependencies to a file named
296 # 'foo.d', which lands next to the object file, wherever that
297 # happens to be.
298 # Much of this is similar to the tru64 case; see comments there.
299 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
300 test "x$dir" = "x$object" && dir=
301 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
302 if test "$libtool" = yes; then
303 tmpdepfile1=$dir$base.d
304 tmpdepfile2=$dir.libs/$base.d
305 "$@" -Wc,+Maked
306 else
307 tmpdepfile1=$dir$base.d
308 tmpdepfile2=$dir$base.d
309 "$@" +Maked
310 fi
311 stat=$?
312 if test $stat -eq 0; then :
313 else
314 rm -f "$tmpdepfile1" "$tmpdepfile2"
315 exit $stat
316 fi
317
318 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
319 do
320 test -f "$tmpdepfile" && break
321 done
322 if test -f "$tmpdepfile"; then
323 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
324 # Add `dependent.h:' lines.
325 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
326 else
327 echo "#dummy" > "$depfile"
328 fi
329 rm -f "$tmpdepfile" "$tmpdepfile2"
330 ;;
331
278332 tru64)
279333 # The Tru64 compiler uses -MD to generate dependencies as a side
280334 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
287341
288342 if test "$libtool" = yes; then
289343 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
344 # static library. This mechanism is used in libtool 1.4 series to
291345 # handle both shared and static libraries in a single compilation.
292346 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293347 #
294348 # With libtool 1.5 this exception was removed, and libtool now
295349 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
350 # compilations output dependencies in $dir.libs/$base.o.d and
297351 # in $dir$base.o.d. We have to check for both files, because
298352 # one of the two compilations can be disabled. We should prefer
299353 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2005-05-14.22
3 scriptversion=2006-10-14.15
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
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
4346
4447 # set DOITPROG to echo to test this script
4548
4649 # Don't use :- since 4.3BSD and earlier shells don't like it.
4750 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
5059
5160 mvprog="${MVPROG-mv}"
5261 cpprog="${CPPROG-cp}"
5766 rmprog="${RMPROG-rm}"
5867 mkdirprog="${MKDIRPROG-mkdir}"
5968
60 chmodcmd="$chmodprog 0755"
69 posix_glob=
70 posix_mkdir=
71
72 # Desired mode of installed file.
73 mode=0755
74
75 chmodcmd=$chmodprog
6176 chowncmd=
6277 chgrpcmd=
6378 stripcmd=
94109 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95110 "
96111
97 while test -n "$1"; do
112 while test $# -ne 0; do
98113 case $1 in
99114 -c) shift
100115 continue;;
110125
111126 --help) echo "$usage"; exit $?;;
112127
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
128 -m) mode=$2
129 shift
130 shift
131 case $mode in
132 *' '* | *' '* | *'
133 '* | *'*'* | *'?'* | *'['*)
134 echo "$0: invalid mode: $mode" >&2
135 exit 1;;
136 esac
116137 continue;;
117138
118139 -o) chowncmd="$chownprog $2"
135156
136157 --version) echo "$0 $scriptversion"; exit $?;;
137158
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
159 --) shift
152160 break;;
161
162 -*) echo "$0: invalid option: $1" >&2
163 exit 1;;
164
165 *) break;;
153166 esac
154167 done
155168
156 if test -z "$1"; then
169 if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
170 # When -d is used, all remaining arguments are directories to create.
171 # When -t is used, the destination is already specified.
172 # Otherwise, the last argument is the destination. Remove it from $@.
173 for arg
174 do
175 if test -n "$dstarg"; then
176 # $@ is not empty: it contains at least $arg.
177 set fnord "$@" "$dstarg"
178 shift # fnord
179 fi
180 shift # arg
181 dstarg=$arg
182 done
183 fi
184
185 if test $# -eq 0; then
157186 if test -z "$dir_arg"; then
158187 echo "$0: no input file specified." >&2
159188 exit 1
163192 exit 0
164193 fi
165194
195 if test -z "$dir_arg"; then
196 trap '(exit $?); exit' 1 2 13 15
197
198 # Set umask so as not to create temps with too-generous modes.
199 # However, 'strip' requires both read and write access to temps.
200 case $mode in
201 # Optimize common cases.
202 *644) cp_umask=133;;
203 *755) cp_umask=22;;
204
205 *[0-7])
206 if test -z "$stripcmd"; then
207 u_plus_rw=
208 else
209 u_plus_rw='% 200'
210 fi
211 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
212 *)
213 if test -z "$stripcmd"; then
214 u_plus_rw=
215 else
216 u_plus_rw=,u+rw
217 fi
218 cp_umask=$mode$u_plus_rw;;
219 esac
220 fi
221
166222 for src
167223 do
168224 # Protect names starting with `-'.
172228
173229 if test -n "$dir_arg"; then
174230 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
231 dstdir=$dst
232 test -d "$dstdir"
233 dstdir_status=$?
183234 else
235
184236 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185237 # might cause directories to be created, which would be especially bad
186238 # if $src (and thus $dsttmp) contains '*'.
207259 echo "$0: $dstarg: Is a directory" >&2
208260 exit 1
209261 fi
210 dst=$dst/`basename "$src"`
262 dstdir=$dst
263 dst=$dstdir/`basename "$src"`
264 dstdir_status=0
265 else
266 # Prefer dirname, but fall back on a substitute if dirname fails.
267 dstdir=`
268 (dirname "$dst") 2>/dev/null ||
269 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
270 X"$dst" : 'X\(//\)[^/]' \| \
271 X"$dst" : 'X\(//\)$' \| \
272 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
273 echo X"$dst" |
274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
275 s//\1/
276 q
277 }
278 /^X\(\/\/\)[^/].*/{
279 s//\1/
280 q
281 }
282 /^X\(\/\/\)$/{
283 s//\1/
284 q
285 }
286 /^X\(\/\).*/{
287 s//\1/
288 q
289 }
290 s/.*/./; q'
291 `
292
293 test -d "$dstdir"
294 dstdir_status=$?
211295 fi
212296 fi
213297
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
298 obsolete_mkdir_used=false
299
300 if test $dstdir_status != 0; then
301 case $posix_mkdir in
302 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
335 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
336
337 if (umask $mkdir_umask &&
338 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
339 then
340 if test -z "$dir_arg" || {
341 # Check for POSIX incompatibilities with -m.
342 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
343 # other-writeable bit of parent directory when it shouldn't.
344 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
345 ls_ld_tmpdir=`ls -ld "$tmpdir"`
346 case $ls_ld_tmpdir in
347 d????-?r-*) different_mode=700;;
348 d????-?--*) different_mode=755;;
349 *) false;;
350 esac &&
351 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
352 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
353 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
354 }
355 }
356 then posix_mkdir=:
357 fi
358 rmdir "$tmpdir/d" "$tmpdir"
359 else
360 # Remove any dirs left behind by ancient mkdir implementations.
361 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
362 fi
363 trap '' 0;;
364 esac;;
365 esac
366
367 if
368 $posix_mkdir && (
369 umask $mkdir_umask &&
370 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
371 )
372 then :
373 else
374
375 # The umask is ridiculous, or mkdir does not conform to POSIX,
376 # or it failed possibly due to a race condition. Create the
377 # directory the slow way, step by step, checking for races as we go.
378
379 case $dstdir in
380 /*) prefix=/ ;;
381 -*) prefix=./ ;;
382 *) prefix= ;;
383 esac
384
385 case $posix_glob in
386 '')
387 if (set -f) 2>/dev/null; then
388 posix_glob=true
389 else
390 posix_glob=false
391 fi ;;
392 esac
393
394 oIFS=$IFS
395 IFS=/
396 $posix_glob && set -f
397 set fnord $dstdir
236398 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
399 $posix_glob && set +f
400 IFS=$oIFS
401
402 prefixes=
403
404 for d
405 do
406 test -z "$d" && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
426 done
427
428 if test -n "$prefixes"; then
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
243434 fi
244 pathcomp=$pathcomp/
245 done
435 fi
246436 fi
247437
248438 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
439 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
255443 else
256 dstfile=`basename "$dst"`
257444
258445 # Make a couple of temp file names in the proper directory.
259446 dsttmp=$dstdir/_inst.$$_
261448
262449 # Trap to clean up those temp files at exit.
263450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265451
266452 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
268454
269455 # and set any options; do chmod last to preserve setuid bits.
270456 #
275461 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276462 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277463 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
464 && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
279465
280466 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
467 { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
282468 || {
283469 # The rename failed, perhaps because mv can't rename something else
284470 # to itself, or perhaps because mv is so ancient that it does not
290476 # reasons. In this case, the final cleanup might fail but the new
291477 # file should still install successfully.
292478 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
479 if test -f "$dst"; then
480 $doit $rmcmd -f "$dst" 2>/dev/null \
481 || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
482 && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
296483 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
484 echo "$0: cannot unlink or rename $dst" >&2
298485 (exit 1); exit 1
299486 }
300487 else
303490 } &&
304491
305492 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
493 $doit $mvcmd "$dsttmp" "$dst"
307494 }
308 }
309 fi || { (exit 1); exit 1; }
495 } || exit 1
496
497 trap '' 0
498 fi
310499 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316500
317501 # Local variables:
318502 # eval: (add-hook 'write-file-hooks 'time-stamp)
4242
4343 PROGRAM=ltmain.sh
4444 PACKAGE=libtool
45 VERSION="1.5.24 Debian 1.5.24-1ubuntu1"
45 VERSION="1.5.24 Debian 1.5.24-2"
4646 TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
4747
4848 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
1715 VPATH = @srcdir@
1816 pkgdatadir = $(datadir)/@PACKAGE@
1917 pkglibdir = $(libdir)/@PACKAGE@
2018 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
2219 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
2420 install_sh_DATA = $(install_sh) -c -m 644
2521 install_sh_PROGRAM = $(install_sh) -c
2622 install_sh_SCRIPT = $(install_sh) -c
4844 DIST_SOURCES =
4945 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
5046 ACLOCAL = @ACLOCAL@
51 AMDEP_FALSE = @AMDEP_FALSE@
52 AMDEP_TRUE = @AMDEP_TRUE@
5347 AMTAR = @AMTAR@
5448 AR = @AR@
5549 AUTOCONF = @AUTOCONF@
7367 ECHO_N = @ECHO_N@
7468 ECHO_T = @ECHO_T@
7569 EGREP = @EGREP@
70 ENABLE_LEAKY_REQUEST_STUBS = @ENABLE_LEAKY_REQUEST_STUBS@
7671 ERROR_CFLAGS = @ERROR_CFLAGS@
7772 EXEEXT = @EXEEXT@
7873 F77 = @F77@
7974 FFLAGS = @FFLAGS@
8075 GREP = @GREP@
76 INSTALL = @INSTALL@
8177 INSTALL_DATA = @INSTALL_DATA@
8278 INSTALL_PROGRAM = @INSTALL_PROGRAM@
8379 INSTALL_SCRIPT = @INSTALL_SCRIPT@
8985 LN_S = @LN_S@
9086 LTLIBOBJS = @LTLIBOBJS@
9187 MAKEINFO = @MAKEINFO@
88 MKDIR_P = @MKDIR_P@
9289 OBJEXT = @OBJEXT@
9390 PACKAGE = @PACKAGE@
9491 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
108105 TP_GLIB_CFLAGS = @TP_GLIB_CFLAGS@
109106 TP_GLIB_LIBS = @TP_GLIB_LIBS@
110107 VERSION = @VERSION@
108 abs_builddir = @abs_builddir@
109 abs_srcdir = @abs_srcdir@
110 abs_top_builddir = @abs_top_builddir@
111 abs_top_srcdir = @abs_top_srcdir@
111112 ac_ct_CC = @ac_ct_CC@
112113 ac_ct_CXX = @ac_ct_CXX@
113114 ac_ct_F77 = @ac_ct_F77@
114 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
115 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
116 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
117 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
118115 am__include = @am__include@
119116 am__leading_dot = @am__leading_dot@
120117 am__quote = @am__quote@
126123 build_cpu = @build_cpu@
127124 build_os = @build_os@
128125 build_vendor = @build_vendor@
126 builddir = @builddir@
129127 datadir = @datadir@
130128 datarootdir = @datarootdir@
131129 docdir = @docdir@
153151 psdir = @psdir@
154152 sbindir = @sbindir@
155153 sharedstatedir = @sharedstatedir@
154 srcdir = @srcdir@
156155 sysconfdir = @sysconfdir@
157156 target_alias = @target_alias@
157 top_builddir = @top_builddir@
158 top_srcdir = @top_srcdir@
158159 EXTRA_DIST = \
159160 as-ac-expand.m4
160161
196197
197198 clean-libtool:
198199 -rm -rf .libs _libs
199
200 distclean-libtool:
201 -rm -f libtool
202 uninstall-info-am:
203200 tags: TAGS
204201 TAGS:
205202
208205
209206
210207 distdir: $(DISTFILES)
211 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
212 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
213 list='$(DISTFILES)'; for file in $$list; do \
214 case $$file in \
215 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
216 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
217 esac; \
208 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
209 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
210 list='$(DISTFILES)'; \
211 dist_files=`for file in $$list; do echo $$file; done | \
212 sed -e "s|^$$srcdirstrip/||;t" \
213 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
214 case $$dist_files in \
215 */*) $(MKDIR_P) `echo "$$dist_files" | \
216 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
217 sort -u` ;; \
218 esac; \
219 for file in $$dist_files; do \
218220 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
219 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
220 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
221 dir="/$$dir"; \
222 $(mkdir_p) "$(distdir)$$dir"; \
223 else \
224 dir=''; \
225 fi; \
226221 if test -d $$d/$$file; then \
222 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
227223 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
228224 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
229225 fi; \
268264
269265 distclean: distclean-am
270266 -rm -f Makefile
271 distclean-am: clean-am distclean-generic distclean-libtool
267 distclean-am: clean-am distclean-generic
272268
273269 dvi: dvi-am
274270
282278
283279 install-data-am:
284280
281 install-dvi: install-dvi-am
282
285283 install-exec-am:
286284
285 install-html: install-html-am
286
287287 install-info: install-info-am
288288
289289 install-man:
290
291 install-pdf: install-pdf-am
292
293 install-ps: install-ps-am
290294
291295 installcheck-am:
292296
306310
307311 ps-am:
308312
309 uninstall-am: uninstall-info-am
313 uninstall-am:
314
315 .MAKE: install-am install-strip
310316
311317 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
312318 distclean distclean-generic distclean-libtool distdir dvi \
313319 dvi-am html html-am info info-am install install-am \
314 install-data install-data-am install-exec install-exec-am \
315 install-info install-info-am install-man install-strip \
320 install-data install-data-am install-dvi install-dvi-am \
321 install-exec install-exec-am install-html install-html-am \
322 install-info install-info-am install-man install-pdf \
323 install-pdf-am install-ps install-ps-am install-strip \
316324 installcheck installcheck-am installdirs maintainer-clean \
317325 maintainer-clean-generic mostlyclean mostlyclean-generic \
318 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
319 uninstall-info-am
326 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
320327
321328 # Tell versions [3.59,3.63) of GNU make to not export all variables.
322329 # Otherwise a system limit (for SysV at least) may be exceeded.
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
66 # Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
3232 fi
3333
3434 run=:
35 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
36 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
3537
3638 # In the cases where this matters, `missing' is being run in the
3739 # srcdir already.
4345
4446 msg="missing on your system"
4547
46 case "$1" in
48 case $1 in
4749 --run)
4850 # Try to run requested program, and just exit if it succeeds.
4951 run=
7678 aclocal touch file \`aclocal.m4'
7779 autoconf touch file \`configure'
7880 autoheader touch file \`config.h.in'
81 autom4te touch the output file, or create a stub one
7982 automake touch all \`Makefile.in' files
8083 bison create \`y.tab.[ch]', if possible, from existing .[ch]
8184 flex create \`lex.yy.c', if possible, from existing .c
105108 # Now exit if we have it, but it failed. Also exit now if we
106109 # don't have it and --version was passed (most likely to detect
107110 # the program).
108 case "$1" in
111 case $1 in
109112 lex|yacc)
110113 # Not GNU programs, they don't have --version.
111114 ;;
134137
135138 # If it does not exist, or fails to run (possibly an outdated version),
136139 # try to emulate it.
137 case "$1" in
140 case $1 in
138141 aclocal*)
139142 echo 1>&2 "\
140143 WARNING: \`$1' is $msg. You should only need it if
163166 test -z "$files" && files="config.h"
164167 touch_files=
165168 for f in $files; do
166 case "$f" in
169 case $f in
167170 *:*) touch_files="$touch_files "`echo "$f" |
168171 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169172 *) touch_files="$touch_files $f.in";;
191194 You can get \`$1' as part of \`Autoconf' from any GNU
192195 archive site."
193196
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
197 file=`echo "$*" | sed -n "$sed_output"`
198 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
196199 if test -f "$file"; then
197200 touch $file
198201 else
213216 in order for those modifications to take effect. You can get
214217 \`Bison' from any GNU archive site."
215218 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
219 if test $# -ne 1; then
217220 eval LASTARG="\${$#}"
218 case "$LASTARG" in
221 case $LASTARG in
219222 *.y)
220223 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
224 if test -f "$SRCFILE"; then
222225 cp "$SRCFILE" y.tab.c
223226 fi
224227 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
228 if test -f "$SRCFILE"; then
226229 cp "$SRCFILE" y.tab.h
227230 fi
228231 ;;
229232 esac
230233 fi
231 if [ ! -f y.tab.h ]; then
234 if test ! -f y.tab.h; then
232235 echo >y.tab.h
233236 fi
234 if [ ! -f y.tab.c ]; then
237 if test ! -f y.tab.c; then
235238 echo 'main() { return 0; }' >y.tab.c
236239 fi
237240 ;;
243246 in order for those modifications to take effect. You can get
244247 \`Flex' from any GNU archive site."
245248 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
249 if test $# -ne 1; then
247250 eval LASTARG="\${$#}"
248 case "$LASTARG" in
251 case $LASTARG in
249252 *.l)
250253 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
254 if test -f "$SRCFILE"; then
252255 cp "$SRCFILE" lex.yy.c
253256 fi
254257 ;;
255258 esac
256259 fi
257 if [ ! -f lex.yy.c ]; then
260 if test ! -f lex.yy.c; then
258261 echo 'main() { return 0; }' >lex.yy.c
259262 fi
260263 ;;
266269 \`Help2man' package in order for those modifications to take
267270 effect. You can get \`Help2man' from any GNU archive site."
268271
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
272 file=`echo "$*" | sed -n "$sed_output"`
273 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
274 if test -f "$file"; then
274275 touch $file
275276 else
276277 test -z "$file" || exec >$file
288289 DU, IRIX). You might want to install the \`Texinfo' package or
289290 the \`GNU make' package. Grab either from any GNU archive site."
290291 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 file=`echo "$*" | sed -n "$sed_output"`
293 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
292294 if test -z "$file"; then
293295 # ... or it is the one specified with @setfilename ...
294296 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
297 file=`sed -n '
298 /^@setfilename/{
299 s/.* \([^ ]*\) *$/\1/
300 p
301 q
302 }' $infile`
296303 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297304 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298305 fi
316323 fi
317324 firstarg="$1"
318325 if shift; then
319 case "$firstarg" in
326 case $firstarg in
320327 *o*)
321328 firstarg=`echo "$firstarg" | sed s/o//`
322329 tar "$firstarg" "$@" && exit 0
323330 ;;
324331 esac
325 case "$firstarg" in
332 case $firstarg in
326333 *h*)
327334 firstarg=`echo "$firstarg" | sed s/h//`
328335 tar "$firstarg" "$@" && exit 0
2828 im-channel.h \
2929 im-channel.c \
3030 im-channel-factory.c \
31 im-channel-factory.h
31 im-channel-factory.h \
32 notify.c \
33 notify.h \
34 request.c \
35 request.h
3236
3337 AM_CFLAGS = \
3438 $(ERROR_CFLAGS) \
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1313
1414 @SET_MAKE@
1515
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
1816 VPATH = @srcdir@
1917 pkgdatadir = $(datadir)/@PACKAGE@
2018 pkglibdir = $(libdir)/@PACKAGE@
2119 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
2320 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
2521 install_sh_DATA = $(install_sh) -c -m 644
2622 install_sh_PROGRAM = $(install_sh) -c
2723 install_sh_SCRIPT = $(install_sh) -c
5450 connection-avatars.$(OBJEXT) connection-presence.$(OBJEXT) \
5551 connection.$(OBJEXT) contact-list.$(OBJEXT) \
5652 contact-list-channel.$(OBJEXT) im-channel.$(OBJEXT) \
57 im-channel-factory.$(OBJEXT)
53 im-channel-factory.$(OBJEXT) notify.$(OBJEXT) \
54 request.$(OBJEXT)
5855 telepathy_haze_OBJECTS = $(am_telepathy_haze_OBJECTS)
5956 telepathy_haze_LDADD = $(LDADD)
60 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
57 DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
6158 depcomp = $(SHELL) $(top_srcdir)/depcomp
6259 am__depfiles_maybe = depfiles
6360 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
6461 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
66 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
67 $(AM_CFLAGS) $(CFLAGS)
62 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
63 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
64 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
6865 CCLD = $(CC)
69 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
70 $(AM_LDFLAGS) $(LDFLAGS) -o $@
66 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
68 $(LDFLAGS) -o $@
7169 SOURCES = $(telepathy_haze_SOURCES)
7270 DIST_SOURCES = $(telepathy_haze_SOURCES)
7371 man8dir = $(mandir)/man8
7775 CTAGS = ctags
7876 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
7977 ACLOCAL = @ACLOCAL@
80 AMDEP_FALSE = @AMDEP_FALSE@
81 AMDEP_TRUE = @AMDEP_TRUE@
8278 AMTAR = @AMTAR@
8379 AR = @AR@
8480 AUTOCONF = @AUTOCONF@
10298 ECHO_N = @ECHO_N@
10399 ECHO_T = @ECHO_T@
104100 EGREP = @EGREP@
101 ENABLE_LEAKY_REQUEST_STUBS = @ENABLE_LEAKY_REQUEST_STUBS@
105102 ERROR_CFLAGS = @ERROR_CFLAGS@
106103 EXEEXT = @EXEEXT@
107104 F77 = @F77@
108105 FFLAGS = @FFLAGS@
109106 GREP = @GREP@
107 INSTALL = @INSTALL@
110108 INSTALL_DATA = @INSTALL_DATA@
111109 INSTALL_PROGRAM = @INSTALL_PROGRAM@
112110 INSTALL_SCRIPT = @INSTALL_SCRIPT@
118116 LN_S = @LN_S@
119117 LTLIBOBJS = @LTLIBOBJS@
120118 MAKEINFO = @MAKEINFO@
119 MKDIR_P = @MKDIR_P@
121120 OBJEXT = @OBJEXT@
122121 PACKAGE = @PACKAGE@
123122 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
137136 TP_GLIB_CFLAGS = @TP_GLIB_CFLAGS@
138137 TP_GLIB_LIBS = @TP_GLIB_LIBS@
139138 VERSION = @VERSION@
139 abs_builddir = @abs_builddir@
140 abs_srcdir = @abs_srcdir@
141 abs_top_builddir = @abs_top_builddir@
142 abs_top_srcdir = @abs_top_srcdir@
140143 ac_ct_CC = @ac_ct_CC@
141144 ac_ct_CXX = @ac_ct_CXX@
142145 ac_ct_F77 = @ac_ct_F77@
143 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
144 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
145 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
146 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
147146 am__include = @am__include@
148147 am__leading_dot = @am__leading_dot@
149148 am__quote = @am__quote@
155154 build_cpu = @build_cpu@
156155 build_os = @build_os@
157156 build_vendor = @build_vendor@
157 builddir = @builddir@
158158 datadir = @datadir@
159159 datarootdir = @datarootdir@
160160 docdir = @docdir@
182182 psdir = @psdir@
183183 sbindir = @sbindir@
184184 sharedstatedir = @sharedstatedir@
185 srcdir = @srcdir@
185186 sysconfdir = @sysconfdir@
186187 target_alias = @target_alias@
188 top_builddir = @top_builddir@
189 top_srcdir = @top_srcdir@
187190 man_MANS = telepathy-haze.8
188191 EXTRA_DIST = telepathy-haze.8.in
189192 CLEANFILES = $(man_MANS)
208211 im-channel.h \
209212 im-channel.c \
210213 im-channel-factory.c \
211 im-channel-factory.h
214 im-channel-factory.h \
215 notify.c \
216 notify.h \
217 request.c \
218 request.h
212219
213220 AM_CFLAGS = \
214221 $(ERROR_CFLAGS) \
251258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
252259 install-libexecPROGRAMS: $(libexec_PROGRAMS)
253260 @$(NORMAL_INSTALL)
254 test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)"
261 test -z "$(libexecdir)" || $(MKDIR_P) "$(DESTDIR)$(libexecdir)"
255262 @list='$(libexec_PROGRAMS)'; for p in $$list; do \
256263 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
257264 if test -f $$p \
279286 done
280287 telepathy-haze$(EXEEXT): $(telepathy_haze_OBJECTS) $(telepathy_haze_DEPENDENCIES)
281288 @rm -f telepathy-haze$(EXEEXT)
282 $(LINK) $(telepathy_haze_LDFLAGS) $(telepathy_haze_OBJECTS) $(telepathy_haze_LDADD) $(LIBS)
289 $(LINK) $(telepathy_haze_OBJECTS) $(telepathy_haze_LDADD) $(LIBS)
283290
284291 mostlyclean-compile:
285292 -rm -f *.$(OBJEXT)
298305 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/im-channel-factory.Po@am__quote@
299306 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/im-channel.Po@am__quote@
300307 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
308 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/notify.Po@am__quote@
309 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/request.Po@am__quote@
301310
302311 .c.o:
303 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
304 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
312 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305314 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306315 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307316 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
308317
309318 .c.obj:
310 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
311 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
319 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312321 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313322 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314323 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315324
316325 .c.lo:
317 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
318 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
326 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320329 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321330 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325334
326335 clean-libtool:
327336 -rm -rf .libs _libs
328
329 distclean-libtool:
330 -rm -f libtool
331 uninstall-info-am:
332337 install-man8: $(man8_MANS) $(man_MANS)
333338 @$(NORMAL_INSTALL)
334 test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
339 test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
335340 @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
336341 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
337342 for i in $$l2; do \
424429 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
425430
426431 distdir: $(DISTFILES)
427 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
428 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
429 list='$(DISTFILES)'; for file in $$list; do \
430 case $$file in \
431 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
432 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
433 esac; \
432 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
433 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
434 list='$(DISTFILES)'; \
435 dist_files=`for file in $$list; do echo $$file; done | \
436 sed -e "s|^$$srcdirstrip/||;t" \
437 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
438 case $$dist_files in \
439 */*) $(MKDIR_P) `echo "$$dist_files" | \
440 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
441 sort -u` ;; \
442 esac; \
443 for file in $$dist_files; do \
434444 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
435 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
436 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
437 dir="/$$dir"; \
438 $(mkdir_p) "$(distdir)$$dir"; \
439 else \
440 dir=''; \
441 fi; \
442445 if test -d $$d/$$file; then \
446 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
443447 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
444448 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
445449 fi; \
455459 all-am: Makefile $(PROGRAMS) $(MANS)
456460 installdirs:
457461 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(man8dir)"; do \
458 test -z "$$dir" || $(mkdir_p) "$$dir"; \
462 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
459463 done
460464 install: install-am
461465 install-exec: install-exec-am
491495 -rm -rf ./$(DEPDIR)
492496 -rm -f Makefile
493497 distclean-am: clean-am distclean-compile distclean-generic \
494 distclean-libtool distclean-tags
498 distclean-tags
495499
496500 dvi: dvi-am
497501
505509
506510 install-data-am: install-man
507511
512 install-dvi: install-dvi-am
513
508514 install-exec-am: install-libexecPROGRAMS
509515
516 install-html: install-html-am
517
510518 install-info: install-info-am
511519
512520 install-man: install-man8
521
522 install-pdf: install-pdf-am
523
524 install-ps: install-ps-am
513525
514526 installcheck-am:
515527
531543
532544 ps-am:
533545
534 uninstall-am: uninstall-info-am uninstall-libexecPROGRAMS \
535 uninstall-man
546 uninstall-am: uninstall-libexecPROGRAMS uninstall-man
536547
537548 uninstall-man: uninstall-man8
549
550 .MAKE: install-am install-strip
538551
539552 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
540553 clean-libexecPROGRAMS clean-libtool ctags distclean \
541554 distclean-compile distclean-generic distclean-libtool \
542555 distclean-tags distdir dvi dvi-am html html-am info info-am \
543 install install-am install-data install-data-am install-exec \
544 install-exec-am install-info install-info-am \
545 install-libexecPROGRAMS install-man install-man8 install-strip \
556 install install-am install-data install-data-am install-dvi \
557 install-dvi-am install-exec install-exec-am install-html \
558 install-html-am install-info install-info-am \
559 install-libexecPROGRAMS install-man install-man8 install-pdf \
560 install-pdf-am install-ps install-ps-am install-strip \
546561 installcheck installcheck-am installdirs maintainer-clean \
547562 maintainer-clean-generic mostlyclean mostlyclean-compile \
548563 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
549 tags uninstall uninstall-am uninstall-info-am \
550 uninstall-libexecPROGRAMS uninstall-man uninstall-man8
564 tags uninstall uninstall-am uninstall-libexecPROGRAMS \
565 uninstall-man uninstall-man8
551566
552567
553568 %.8: %.8.in Makefile
3333 haze_connection_manager,
3434 TP_TYPE_BASE_CONNECTION_MANAGER)
3535
36 typedef struct _HazeParams HazeParams;
37
38 struct _HazeParams {
39 gchar *username;
40 gchar *password;
41 gchar *server;
36 /* For some protocols, removing the "prpl-" prefix from its name in libpurple
37 * doesn't give the right name for Telepathy. Other protocols need some
38 * parameters renaming to match well-known names in the spec, or to have
39 * hyphens rather than underscores for consistency.
40 */
41 static HazeProtocolInfo known_protocol_info[] = {
42 { "aim", "prpl-aim", NULL,
43 "always_use_rv_proxy:always-use-rv-proxy" },
44 { "gadugadu", "prpl-gg", NULL, "" },
45 { "groupwise", "prpl-novell", NULL, "" },
46 { "irc", "prpl-irc", NULL, "encoding:charset" },
47 { "icq", "prpl-icq", NULL,
48 "encoding:charset,always_use_rv_proxy:always-use-rv-proxy" },
49 { "jabber", "prpl-jabber", NULL,
50 "connect_server:server,old_ssl:old-ssl,require_tls:require-encryption,"
51 "auth_plain_in_clear:auth-plain-in-clear,ft_proxies:ft-proxies" },
52 { "local-xmpp", "prpl-bonjour", NULL,
53 "first:first-name,last:last-name" },
54 { "msn", "prpl-msn", NULL,
55 "http_method:http-method,http_method_server:http-method-server,"
56 "custom_smileys:custom-smileys" },
57 { "qq", "prpl-qq", NULL, "use_tcp:use-tcp" },
58 { "sametime", "prpl-meanwhile", NULL,
59 "force_login:force-login,fake_client_id:fake-client-id" },
60 { "yahoo", "prpl-yahoo", NULL,
61 "local_charset:charset,xfer_host:xfer-host,xferjp_host:xferjp-host,"
62 "xfer_port:xfer-port,room_list_locale:room-list-locale,"
63 "ignore_invites:ignore-invites" },
64 { "zephyr", "prpl-zephyr", NULL,
65 "encoding:charset,use_tzc:use-tzc,tzc_command:tzc-command,"
66 "write_anyone:write-anyone,write_zsubs:write-zsubs,"
67 "read_anyone:read-anyone,read_zsubs:read-zsubs,"
68 "exposure_level:exposure-level" },
69 { NULL, NULL, NULL, "" }
4270 };
4371
44 /** These are protocols for which stripping off the "prpl-" prefix is not
45 * sufficient, or for which special munging has to be done.
46 */
47 static HazeProtocolInfo known_protocol_info[] = {
48 { "gadugadu", "prpl-gg", NULL },
49 { "groupwise", "prpl-novell", NULL },
50 { "irc", "prpl-irc", NULL },
51 { "sametime", "prpl-meanwhile", NULL },
52 { "local-xmpp", "prpl-bonjour", NULL },
53 { NULL, NULL, NULL }
54 };
55
56 static const TpCMParamSpec params[] = {
57 { "account", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING,
58 TP_CONN_MGR_PARAM_FLAG_REQUIRED, NULL,
59 G_STRUCT_OFFSET(HazeParams, username), NULL, NULL },
60 { "password", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING,
61 /* FIXME: zephyr for instance doesn't need a password */
62 TP_CONN_MGR_PARAM_FLAG_REQUIRED, NULL,
63 G_STRUCT_OFFSET(HazeParams, password), NULL, NULL },
64 { "server", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING, 0, NULL,
65 G_STRUCT_OFFSET(HazeParams, server), NULL, NULL },
66 { NULL, NULL, 0, 0, NULL, 0, NULL, NULL }
67 };
68
6972 static void *
70 alloc_params (void)
71 {
72 return g_new0 (HazeParams, 1);
73 }
74
75 static void
76 free_params (void *p)
77 {
78 HazeParams *params = (HazeParams *)p;
79 g_free (params->username);
80 g_free (params->password);
81 g_free (params->server);
82
83 g_free (params);
73 _haze_cm_alloc_params (void)
74 {
75 /* (gchar *) => (GValue *) */
76 return g_hash_table_new_full (g_str_hash, g_str_equal, NULL,
77 (GDestroyNotify) tp_g_value_slice_free);
78 }
79
80 static void
81 _haze_cm_free_params (void *p)
82 {
83 GHashTable *params = (GHashTable *)p;
84 g_hash_table_unref (params);
85 }
86
87 static void
88 _haze_cm_set_param (const TpCMParamSpec *paramspec,
89 const GValue *value,
90 gpointer params_)
91 {
92 GHashTable *params = (GHashTable *) params_;
93 GValue *value_copy = tp_g_value_slice_new (paramspec->gtype);
94 gchar *prpl_param_name = (gchar *) paramspec->setter_data;
95
96 g_assert (G_VALUE_TYPE (value) == G_VALUE_TYPE (value_copy));
97
98 g_value_copy (value, value_copy);
99
100 DEBUG ("setting parameter %s (telepathy name %s)",
101 prpl_param_name, paramspec->name);
102
103 g_hash_table_insert (params, prpl_param_name, value_copy);
104 }
105
106 /* Populates a TpCMParamSpec from a PurpleAccountOption, possibly renaming the
107 * parameter as specified in parameter_map. paramspec is assumed to be zeroed out.
108 * Returns TRUE on success, and FALSE if paramspec could not be populated (and
109 * thus should not be used).
110 */
111 static gboolean
112 _translate_protocol_option (PurpleAccountOption *option,
113 TpCMParamSpec *paramspec,
114 HazeProtocolInfo *hpi,
115 GHashTable *parameter_map)
116 {
117 const char *pref_name = purple_account_option_get_setting (option);
118 PurplePrefType pref_type = purple_account_option_get_type (option);
119 gchar *name = g_hash_table_lookup (parameter_map, pref_name);
120 /* These strings are never free'd, but need to last until exit anyway.
121 */
122 paramspec->name = g_strdup (name ? name : pref_name);
123 paramspec->setter_data = option->pref_name;
124 /* TODO: does libpurple ever require a parameter besides the username
125 * and possibly password?
126 */
127 paramspec->flags = 0;
128
129 switch (pref_type)
130 {
131 case PURPLE_PREF_BOOLEAN:
132 paramspec->dtype = DBUS_TYPE_BOOLEAN_AS_STRING;
133 paramspec->gtype = G_TYPE_BOOLEAN;
134 paramspec->flags |= TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT;
135 paramspec->def = GINT_TO_POINTER (
136 purple_account_option_get_default_bool (option));
137 break;
138 case PURPLE_PREF_INT:
139 paramspec->dtype = DBUS_TYPE_INT32_AS_STRING;
140 paramspec->gtype = G_TYPE_INT;
141 paramspec->flags |= TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT;
142 paramspec->def = GINT_TO_POINTER (
143 purple_account_option_get_default_int (option));
144 break;
145 case PURPLE_PREF_STRING:
146 {
147 const gchar *def;
148
149 paramspec->dtype = DBUS_TYPE_STRING_AS_STRING;
150 paramspec->gtype = G_TYPE_STRING;
151
152 /* prpl-bonjour chooses the defaults for these parameters with
153 * getpwuid(3); but for haze's purposes that's the UI's job.
154 */
155 if (g_str_equal (hpi->prpl_id, "prpl-bonjour")
156 && (g_str_equal (paramspec->name, "first-name")
157 || g_str_equal (paramspec->name, "last-name")))
158 {
159 paramspec->flags |= TP_CONN_MGR_PARAM_FLAG_REQUIRED;
160 break;
161 }
162
163 if (g_str_equal (paramspec->name, "charset"))
164 def = "UTF-8";
165 else
166 def = purple_account_option_get_default_string (option);
167
168 if (def && *def)
169 {
170 paramspec->def = g_strdup (def);
171 paramspec->flags |= TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT;
172 }
173 break;
174 }
175 default:
176 g_warning ("account option %s has unknown type %u; ignoring",
177 pref_name, pref_type);
178 return FALSE;
179 }
180
181 return TRUE;
182 }
183
184 /* Constructs a parameter specification from the prpl's options list, renaming
185 * protocols and parameters according to known_protocol_info.
186 */
187 static TpCMParamSpec *
188 _build_paramspecs (HazeProtocolInfo *hpi)
189 {
190 const TpCMParamSpec account_spec =
191 { "account", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING,
192 TP_CONN_MGR_PARAM_FLAG_REQUIRED, NULL, 0, NULL, NULL,
193 (gpointer) "account", NULL };
194 TpCMParamSpec password_spec =
195 { "password", DBUS_TYPE_STRING_AS_STRING, G_TYPE_STRING,
196 TP_CONN_MGR_PARAM_FLAG_REQUIRED, NULL, 0, NULL, NULL,
197 (gpointer) "password", NULL };
198
199 GArray *paramspecs = g_array_new (TRUE, TRUE, sizeof (TpCMParamSpec));
200 GList *opts;
201
202 /* Deserialize the hpi->parameter_map string to a hash table;
203 * "libpurple_name1:telepathy-name1,libpurple_name2:telepathy-name2"
204 * becomes
205 * "libpurple_name1" => "telepathy-name1"
206 * "libpurple_name2" => "telepathy-name2"
207 */
208 GHashTable *parameter_map = g_hash_table_new (g_str_hash, g_str_equal);
209 gchar **map_chunks = g_strsplit_set (hpi->parameter_map, ",:", 0);
210 int i;
211 for (i = 0; map_chunks[i] != NULL; i = i + 2)
212 {
213 g_assert (map_chunks[i+1] != NULL);
214 g_hash_table_insert (parameter_map, map_chunks[i], map_chunks[i+1]);
215 }
216
217 /* TODO: local-xmpp shouldn't have an account parameter */
218 g_array_append_val (paramspecs, account_spec);
219
220 /* Password parameter: */
221 if (!(hpi->prpl_info->options & OPT_PROTO_NO_PASSWORD))
222 {
223 if (hpi->prpl_info->options & OPT_PROTO_PASSWORD_OPTIONAL)
224 password_spec.flags = 0;
225 g_array_append_val (paramspecs, password_spec);
226 }
227
228 for (opts = hpi->prpl_info->protocol_options; opts; opts = opts->next)
229 {
230 PurpleAccountOption *option = (PurpleAccountOption *)opts->data;
231 TpCMParamSpec paramspec =
232 { NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL};
233
234 if (_translate_protocol_option (option, &paramspec, hpi, parameter_map))
235 g_array_append_val (paramspecs, paramspec);
236 }
237
238 g_hash_table_destroy (parameter_map);
239 g_strfreev (map_chunks);
240
241 return (TpCMParamSpec *) g_array_free (paramspecs, FALSE);
84242 }
85243
86244 struct _protocol_info_foreach_data
100258 TpCMProtocolSpec *protocol = &(data->protocols[data->index]);
101259
102260 protocol->name = info->tp_protocol_name;
103 protocol->parameters = params;
104 protocol->params_new = alloc_params;
105 protocol->params_free = free_params;
261 protocol->parameters = _build_paramspecs (info);
262 protocol->params_new = _haze_cm_alloc_params;
263 protocol->params_free = _haze_cm_free_params;
264 protocol->set_param = _haze_cm_set_param;
106265
107266 (data->index)++;
267 }
268
269 static int
270 _compare_protocol_names(gconstpointer a,
271 gconstpointer b)
272 {
273 const TpCMProtocolSpec *protocol_a = a;
274 const TpCMProtocolSpec *protocol_b = b;
275
276 return strcmp(protocol_a->name, protocol_b->name);
108277 }
109278
110279 static TpCMProtocolSpec *
121290
122291 g_hash_table_foreach (klass->protocol_info_table, _protocol_info_foreach,
123292 &foreach_data);
293
294 qsort (protocols, n_protocols, sizeof (TpCMProtocolSpec),
295 _compare_protocol_names);
296
297 {
298 GString *debug_string = g_string_new ("");
299 TpCMProtocolSpec *p = protocols;
300 while (p->name != NULL)
301 {
302 g_string_append (debug_string, p->name);
303 p += 1;
304 if (p->name != NULL)
305 g_string_append (debug_string, ", ");
306 }
307
308 DEBUG ("Found protocols %s", debug_string->str);
309 g_string_free (debug_string, TRUE);
310 }
124311
125312 return protocols;
126313 }
160347 {
161348 HazeConnectionManager *cm = HAZE_CONNECTION_MANAGER(base);
162349 HazeConnectionManagerClass *klass = HAZE_CONNECTION_MANAGER_GET_CLASS (cm);
163 HazeParams *params = (HazeParams *)parsed_params;
350 GHashTable *params = (GHashTable *)parsed_params;
164351 HazeProtocolInfo *info =
165352 g_hash_table_lookup (klass->protocol_info_table, proto);
166353 HazeConnection *conn = g_object_new (HAZE_TYPE_CONNECTION,
167354 "protocol", proto,
168355 "protocol-info", info,
169 "username", params->username,
170 "password", params->password,
171 "server", params->server,
356 "parameters", params,
172357 NULL);
173358
174359 cm->connections = g_list_prepend(cm->connections, conn);
202387 HazeProtocolInfo *info = (HazeProtocolInfo *)value;
203388 const gchar *prpl_id = (const gchar *)data;
204389 return (!strcmp (info->prpl_id, prpl_id));
205 }
206
207 static void
208 get_values_foreach (gpointer key,
209 gpointer value,
210 gpointer data)
211 {
212 GList **values = data;
213
214 *values = g_list_prepend (*values, value);
215 }
216
217 /* Equivalent to g_hash_table_get_values, which only exists in GLib >=2.14. */
218 static GList *
219 haze_g_hash_table_get_values (GHashTable *table)
220 {
221 GList *values = NULL;
222
223 g_hash_table_foreach (table, get_values_foreach, &values);
224
225 return values;
226390 }
227391
228392 static void _init_protocol_table (HazeConnectionManagerClass *klass)
248412 info->prpl_id = i->prpl_id;
249413 info->tp_protocol_name = i->tp_protocol_name;
250414 info->prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO (plugin);
415 info->parameter_map = i->parameter_map;
251416
252417 g_hash_table_insert (table, info->tp_protocol_name, info);
253418 }
271436 info->tp_protocol_name = p_info->id;
272437 }
273438 info->prpl_info = prpl_info;
439 info->parameter_map = "";
274440
275441 g_hash_table_insert (table, info->tp_protocol_name, info);
276 }
277
278 {
279 GList *protocols = haze_g_hash_table_get_values (table);
280 GList *l;
281 GString *debug_string = g_string_new ("");
282
283 for (l = protocols; l; l = l->next)
284 {
285 info = l->data;
286 g_string_append (debug_string, info->tp_protocol_name);
287 if (l->next)
288 g_string_append (debug_string, ", ");
289 }
290
291 DEBUG ("Found protocols %s", debug_string->str);
292
293 g_list_free (protocols);
294 g_string_free (debug_string, TRUE);
295442 }
296443
297444 klass->protocol_info_table = table;
5252 gchar *prpl_id;
5353 PurplePluginProtocolInfo *prpl_info;
5454
55 /** A string of the form
56 * "foo:bar,baz:badger"
57 * where foo and baz are the names of prpl account options, and bar
58 * and badger are the names theses options should be given as
59 * Telepathy parameters.
60 */
61 const gchar *parameter_map;
5562 };
5663
5764 GType haze_connection_manager_get_type (void);
3838
3939 enum
4040 {
41 PROP_USERNAME = 1,
42 PROP_PASSWORD,
43 PROP_SERVER,
41 PROP_PARAMETERS = 1,
4442 PROP_PROTOCOL_INFO,
4543
4644 LAST_PROPERTY
47 };
45 } HazeConnectionProperties;
4846
4947 G_DEFINE_TYPE_WITH_CODE(HazeConnection,
5048 haze_connection,
5957
6058 typedef struct _HazeConnectionPrivate
6159 {
62 char *username;
63 char *password;
64 char *server;
60 GHashTable *parameters;
6561
6662 HazeProtocolInfo *protocol_info;
63
64 gboolean dispose_has_run;
6765 } HazeConnectionPrivate;
6866
6967 #define HAZE_CONNECTION_GET_PRIVATE(o) \
7169
7270 #define PC_GET_BASE_CONN(pc) \
7371 (ACCOUNT_GET_TP_BASE_CONNECTION (purple_connection_get_account (pc)))
72
73 static const gchar *
74 _get_param_string (GHashTable *parameters,
75 const gchar *key)
76 {
77 GValue *value = (GValue *) g_hash_table_lookup (parameters, key);
78 if (value)
79 {
80 g_assert (G_VALUE_TYPE (value) == G_TYPE_STRING);
81 return (g_value_get_string (value));
82 }
83 else
84 {
85 return NULL;
86 }
87 }
7488
7589 void
7690 connected_cb (PurpleConnection *pc)
202216 }
203217
204218 static void
219 _warn_unhandled_parameter (const gchar *key,
220 const GValue *value,
221 gpointer user_data)
222 {
223 g_warning ("received an unknown parameter '%s'; ignoring", key);
224 }
225
226 struct _i_want_closure
227 {
228 PurpleAccount *account;
229 GHashTable *params;
230 };
231
232 static void
233 _set_option (const PurpleAccountOption *option,
234 struct _i_want_closure *context)
235 {
236 GValue *value = g_hash_table_lookup (context->params, option->pref_name);
237 if (!value)
238 return;
239
240 switch (option->type)
241 {
242 case PURPLE_PREF_BOOLEAN:
243 g_assert (G_VALUE_TYPE (value) == G_TYPE_BOOLEAN);
244 purple_account_set_bool (context->account, option->pref_name,
245 g_value_get_boolean (value));
246 break;
247 case PURPLE_PREF_INT:
248 g_assert (G_VALUE_TYPE (value) == G_TYPE_INT);
249 purple_account_set_int (context->account, option->pref_name,
250 g_value_get_int (value));
251 break;
252 case PURPLE_PREF_STRING:
253 g_assert (G_VALUE_TYPE (value) == G_TYPE_STRING);
254 purple_account_set_string (context->account, option->pref_name,
255 g_value_get_string (value));
256 break;
257 default:
258 g_warning ("option '%s' has unhandled type %u",
259 option->pref_name, option->type);
260 }
261
262 g_hash_table_remove (context->params, option->pref_name);
263 }
264
265 static void
205266 _create_account (HazeConnection *self)
206267 {
207268 HazeConnectionPrivate *priv = HAZE_CONNECTION_GET_PRIVATE(self);
208
209 PurpleAccount *account;
269 GHashTable *params = priv->parameters;
210270 PurplePluginProtocolInfo *prpl_info = priv->protocol_info->prpl_info;
211271
272 const gchar *username, *password;
273 struct _i_want_closure context;
274
275 username = _get_param_string (params, "account");
276 g_assert (username);
277
212278 g_assert (self->account == NULL);
213
214 account = self->account =
215 purple_account_new(priv->username, priv->protocol_info->prpl_id);
216 purple_accounts_add (account);
217
218 account->ui_data = self;
219 purple_account_set_password (account, priv->password);
220
221 if (priv->server && *priv->server)
279 self->account = purple_account_new (username, priv->protocol_info->prpl_id);
280 purple_accounts_add (self->account);
281 g_assert (self->account);
282 g_hash_table_remove (params, "account");
283
284 self->account->ui_data = self;
285
286 password = _get_param_string (params, "password");
287 if (password)
222288 {
223 GList *l;
224 PurpleAccountOption *option;
225
226 /* :'-( :'-( :'-( :'-( */
227 for (l = prpl_info->protocol_options; l != NULL; l = l->next)
228 {
229 option = (PurpleAccountOption *)l->data;
230 if (!strcmp (option->pref_name, "server") /* oscar */
231 || !strcmp (option->pref_name, "connect_server")) /* xmpp */
232 {
233 purple_account_set_string (account, option->pref_name,
234 priv->server);
235 break;
236 }
237 }
238 if (l == NULL)
239 g_warning ("server specified, but corresponding protocol option "
240 "not found!");
241 }
289 purple_account_set_password (self->account, password);
290 g_hash_table_remove (params, "password");
291 }
292
293 context.account = self->account;
294 context.params = params;
295 g_list_foreach (prpl_info->protocol_options, (GFunc) _set_option, &context);
296
297 g_hash_table_foreach (params, (GHFunc) _warn_unhandled_parameter, "lala");
242298 }
243299
244300 static gboolean
345401 HazeConnectionPrivate *priv = HAZE_CONNECTION_GET_PRIVATE(self);
346402
347403 switch (property_id) {
348 case PROP_USERNAME:
349 g_value_set_string (value, priv->username);
350 break;
351 case PROP_PASSWORD:
352 g_value_set_string (value, priv->password);
353 break;
354 case PROP_SERVER:
355 g_value_set_string (value, priv->server);
404 case PROP_PARAMETERS:
405 g_value_set_pointer (value, priv->parameters);
356406 break;
357407 case PROP_PROTOCOL_INFO:
358408 g_value_set_pointer (value, priv->protocol_info);
373423 HazeConnectionPrivate *priv = HAZE_CONNECTION_GET_PRIVATE(self);
374424
375425 switch (property_id) {
376 case PROP_USERNAME:
377 g_free (priv->username);
378 priv->username = g_value_dup_string(value);
379 break;
380 case PROP_PASSWORD:
381 g_free (priv->password);
382 priv->password = g_value_dup_string(value);
383 break;
384 case PROP_SERVER:
385 g_free (priv->server);
386 priv->server = g_value_dup_string(value);
426 case PROP_PARAMETERS:
427 priv->parameters = g_value_get_pointer (value);
428 g_hash_table_ref (priv->parameters);
387429 break;
388430 case PROP_PROTOCOL_INFO:
389431 priv->protocol_info = g_value_get_pointer (value);
402444 HazeConnection *self = HAZE_CONNECTION (
403445 G_OBJECT_CLASS (haze_connection_parent_class)->constructor (
404446 type, n_construct_properties, construct_params));
447 HazeConnectionPrivate *priv = HAZE_CONNECTION_GET_PRIVATE (self);
405448
406449 DEBUG ("Post-construction: (HazeConnection *)%p", self);
407450
451 priv->dispose_has_run = FALSE;
452
408453 _create_account (self);
409454
410455 return (GObject *)self;
414459 haze_connection_dispose (GObject *object)
415460 {
416461 HazeConnection *self = HAZE_CONNECTION(object);
462 HazeConnectionPrivate *priv = HAZE_CONNECTION_GET_PRIVATE (self);
463
464 if (priv->dispose_has_run)
465 return;
466
467 priv->dispose_has_run = TRUE;
417468
418469 DEBUG ("disposing of (HazeConnection *)%p", self);
419470
471 g_hash_table_unref (priv->parameters);
472 priv->parameters = NULL;
473
420474 G_OBJECT_CLASS (haze_connection_parent_class)->dispose (object);
421475 }
422476
423477 static void
424478 haze_connection_finalize (GObject *object)
425479 {
426 HazeConnection *self = HAZE_CONNECTION (object);
427 HazeConnectionPrivate *priv = HAZE_CONNECTION_GET_PRIVATE(self);
428
429 g_free (priv->username);
430 g_free (priv->password);
431 g_free (priv->server);
432 self->priv = NULL;
433
434480 tp_presence_mixin_finalize (object);
435481
436482 G_OBJECT_CLASS (haze_connection_parent_class)->finalize (object);
469515 base_class->shut_down = _haze_connection_shut_down;
470516 base_class->interfaces_always_present = interfaces_always_present;
471517
472 param_spec = g_param_spec_string ("username", "Account username",
473 "The username used when authenticating.",
474 NULL,
475 G_PARAM_CONSTRUCT_ONLY |
476 G_PARAM_READWRITE |
477 G_PARAM_STATIC_NAME |
478 G_PARAM_STATIC_BLURB);
479 g_object_class_install_property (object_class, PROP_USERNAME, param_spec);
480
481 param_spec = g_param_spec_string ("password", "Account password",
482 "The password used when authenticating.",
483 NULL,
484 G_PARAM_CONSTRUCT_ONLY |
485 G_PARAM_READWRITE |
486 G_PARAM_STATIC_NAME |
487 G_PARAM_STATIC_BLURB);
488 g_object_class_install_property (object_class, PROP_PASSWORD, param_spec);
489
490 param_spec = g_param_spec_string ("server", "Hostname or IP of server",
491 "The server used when establishing a connection.",
492 NULL,
493 G_PARAM_CONSTRUCT_ONLY |
494 G_PARAM_READWRITE |
495 G_PARAM_STATIC_NAME |
496 G_PARAM_STATIC_BLURB);
497 g_object_class_install_property (object_class, PROP_SERVER, param_spec);
518 param_spec = g_param_spec_pointer ("parameters",
519 "GHashTable of gchar * => GValue",
520 "Connection parameters (username, "
521 "password, etc.)",
522 G_PARAM_CONSTRUCT_ONLY |
523 G_PARAM_READWRITE |
524 G_PARAM_STATIC_NAME |
525 G_PARAM_STATIC_BLURB);
526 g_object_class_install_property (object_class, PROP_PARAMETERS, param_spec);
498527
499528 param_spec = g_param_spec_pointer ("protocol-info",
500529 "HazeProtocolInfo instance",
532561 const char *alias,
533562 const char *message,
534563 gboolean on_list,
535 #if PURPLE_VERSION_CHECK(2,1,1)
536564 PurpleAccountRequestAuthorizationCb authorize_cb,
537565 PurpleAccountRequestAuthorizationCb deny_cb,
538 #else
539 GCallback authorize_cb,
540 GCallback deny_cb,
541 #endif
542566 void *user_data)
543567 {
544568 /* Woo for argument lists which are longer than the function! */
545 PurpleAccountRequestAuthorizationCb cb =
546 #if PURPLE_VERSION_CHECK(2,1,1)
547 authorize_cb;
548 #else
549 (PurpleAccountRequestAuthorizationCb) authorize_cb;
550 #endif
551569
552570 /* FIXME: Implement the publish list, then deal with this properly. */
553571 DEBUG ("[%s] Quietly authorizing presence subscription from '%s'...",
554572 account->username, remote_user);
555 cb (user_data);
573 authorize_cb (user_data);
556574 return NULL;
557575 }
558576
359359 tp_svc_channel_emit_closed ((TpSvcChannel *)self);
360360 }
361361
362 g_free (priv->object_path);
363
362364 if (G_OBJECT_CLASS (haze_contact_list_channel_parent_class)->dispose)
363365 G_OBJECT_CLASS (haze_contact_list_channel_parent_class)->dispose (object);
364366 }
422424 g_free (priv->object_path);
423425 priv->object_path = g_value_dup_string (value);
424426 break;
427 case PROP_CHANNEL_TYPE:
428 /* this property is writable in the interface (in
429 * telepathy-glib > 0.7.0), but not actually
430 * meaningfully changeable on this channel, so we do nothing */
431 break;
425432 case PROP_HANDLE_TYPE:
426433 priv->handle_type = g_value_get_uint (value);
427434 break;
277277 return chan;
278278 }
279279
280 static HazeContactListChannel *
281 _haze_contact_list_get_channel (HazeContactList *contact_list,
282 guint handle_type,
283 TpHandle handle,
284 gboolean *created)
285 {
286 HazeContactListPrivate *priv = HAZE_CONTACT_LIST_GET_PRIVATE(contact_list);
280 HazeContactListChannel *
281 haze_contact_list_get_channel (HazeContactList *contact_list,
282 guint handle_type,
283 TpHandle handle,
284 gboolean *created)
285 {
286 HazeContactListPrivate *priv = HAZE_CONTACT_LIST_GET_PRIVATE (contact_list);
287287 TpBaseConnection *conn = TP_BASE_CONNECTION (priv->conn);
288288 TpHandleRepoIface *handle_repo =
289289 tp_base_connection_get_handles (conn, handle_type);
328328 NULL);
329329 HazeContactListChannel *group;
330330
331 group = _haze_contact_list_get_channel (contact_list, TP_HANDLE_TYPE_GROUP,
331 group = haze_contact_list_get_channel (contact_list, TP_HANDLE_TYPE_GROUP,
332332 group_handle, created);
333333
334334 tp_handle_unref (group_repo, group_handle);
401401
402402 add_handles = _handle_a_buddy (priv->conn, buddy);
403403
404 subscribe = _haze_contact_list_get_channel (contact_list,
404 subscribe = haze_contact_list_get_channel (contact_list,
405405 TP_HANDLE_TYPE_LIST, HAZE_LIST_HANDLE_SUBSCRIBE, NULL);
406406
407407 tp_group_mixin_change_members (G_OBJECT (subscribe), "",
452452
453453 if (last_instance)
454454 {
455 subscribe = _haze_contact_list_get_channel (contact_list,
455 subscribe = haze_contact_list_get_channel (contact_list,
456456 TP_HANDLE_TYPE_LIST, HAZE_LIST_HANDLE_SUBSCRIBE, NULL);
457457
458458 tp_group_mixin_change_members (G_OBJECT (subscribe), "",
512512 HazeContactListChannel *group;
513513 TpHandle group_handle = tp_handle_ensure (handle_repo, group_name, NULL,
514514 NULL);
515 group = _haze_contact_list_get_channel (contact_list,
515 group = haze_contact_list_get_channel (contact_list,
516516 TP_HANDLE_TYPE_GROUP, group_handle, NULL /*created*/);
517517
518518 tp_group_mixin_change_members (G_OBJECT (group), "", handles, NULL,
544544 g_slist_foreach (buddies, (GFunc) _initial_buddies_foreach, &context);
545545 g_slist_free (buddies);
546546
547 subscribe = _haze_contact_list_get_channel (self, TP_HANDLE_TYPE_LIST,
547 subscribe = haze_contact_list_get_channel (self, TP_HANDLE_TYPE_LIST,
548548 HAZE_LIST_HANDLE_SUBSCRIBE, NULL /*created*/);
549549
550550 tp_group_mixin_change_members (G_OBJECT (subscribe), "",
634634
635635 channel_name = tp_handle_inspect (handle_repo, handle);
636636 DEBUG ("grabbing channel '%s'...", channel_name);
637 chan = _haze_contact_list_get_channel (self, handle_type, handle,
637 chan = haze_contact_list_get_channel (self, handle_type, handle,
638638 &created);
639639
640640 if (chan)
2020 */
2121
2222 #include <glib-object.h>
23
24 #include "contact-list-channel.h"
2325
2426 G_BEGIN_DECLS
2527
5658
5759 G_END_DECLS
5860
61 HazeContactListChannel *haze_contact_list_get_channel (HazeContactList *self,
62 guint handle_type, TpHandle handle, gboolean *created);
63
5964 #endif /* #ifndef __HAZE_CONTACT_LIST_H__*/
1717 *
1818 */
1919
20 #include <glib.h>
21
2022 void haze_debug_init(void);
2123
2224 void haze_debug (const gchar *format, ...)
418418 ACCOUNT_GET_HAZE_CONNECTION (account)->im_factory;
419419 TpChannelTextMessageType type = TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL;
420420 HazeIMChannel *chan = NULL;
421 char *message;
421 char *line_broken, *message;
422422
423423 HazeConversationUiData *ui_data = PURPLE_CONV_GET_HAZE_UI_DATA (conv);
424424
425 message = purple_markup_strip_html (xhtml_message);
425 /* Replaces newline characters with <br>, which then get turned back into
426 * newlines by purple_markup_strip_html (which replaces "\n" with " ")...
427 */
428 line_broken = purple_strdup_withhtml (xhtml_message);
429 message = purple_markup_strip_html (line_broken);
430 g_free (line_broken);
426431
427432 if (flags & PURPLE_MESSAGE_AUTO_RESP)
428433 type = TP_CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY;
266266 HazeIMChannelPrivate *priv = HAZE_IM_CHANNEL_GET_PRIVATE (self);
267267 GError *error = NULL;
268268 PurpleMessageFlags flags = 0;
269 char *message, *escaped;
269 char *message, *escaped, *line_broken, *reapostrophised;
270270
271271 if (type >= NUM_TP_CHANNEL_TEXT_MESSAGE_TYPES) {
272272 DEBUG ("invalid message type %u", type);
289289 }
290290
291291 escaped = g_markup_escape_text (message, -1);
292 /* avoid line breaks being swallowed! */
293 line_broken = purple_strreplace (escaped, "\n", "<br>");
294 /* This is a workaround for prpl-yahoo, which in libpurple <= 2.3.1 could
295 * not deal with &apos; and would send it literally.
296 * TODO: When we depend on new enough libpurple, remove this workaround.
297 */
298 reapostrophised = purple_strreplace (line_broken, "&apos;", "'");
292299
293300 if (type == TP_CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY) {
294301 flags |= PURPLE_MESSAGE_AUTO_RESP;
295302 }
296303
297 purple_conv_im_send_with_flags (PURPLE_CONV_IM (priv->conv), escaped,
298 flags);
299
304 purple_conv_im_send_with_flags (PURPLE_CONV_IM (priv->conv),
305 reapostrophised, flags);
306
307 g_free (reapostrophised);
308 g_free (line_broken);
300309 g_free (escaped);
301310 g_free (message);
302311
366375 */
367376 priv->handle = g_value_get_uint (value);
368377 break;
378 case PROP_CHANNEL_TYPE:
369379 case PROP_HANDLE_TYPE:
370380 /* this property is writable in the interface, but not actually
371381 * meaningfully changable on this channel, so we do nothing.
3939 #include <libpurple/util.h>
4040
4141 #ifdef HAVE_PURPLE_DBUS_UNINIT
42 # if PURPLE_VERSION_CHECK(2,1,1)
43 /* Before 2.1.1, this include failed because dbus-types.h was not installed. */
44 # include <libpurple/dbus-server.h>
45 # else
46 void purple_dbus_uninit(void);
47 # endif
42 #include <libpurple/dbus-server.h>
43 #endif
44
45 #if !PURPLE_VERSION_CHECK (2, 4, 0)
46 extern const guint purple_major_version;
47 extern const guint purple_minor_version;
48 extern const guint purple_micro_version;
4849 #endif
4950
5051 #include <telepathy-glib/run.h>
5354 #include "defines.h"
5455 #include "debug.h"
5556 #include "connection-manager.h"
57 #include "notify.h"
58 #include "request.h"
5659
5760 /* Copied verbatim from nullclient, modulo changing whitespace. */
5861 #define PURPLE_GLIB_READ_COND (G_IO_IN | G_IO_HUP | G_IO_ERR)
136139 purple_accounts_set_ui_ops (haze_get_account_ui_ops ());
137140 purple_conversations_set_ui_ops (haze_get_conv_ui_ops ());
138141 purple_connections_set_ui_ops (haze_get_connection_ui_ops ());
142 #ifdef ENABLE_LEAKY_REQUEST_STUBS
143 purple_request_set_ui_ops (haze_request_get_ui_ops ());
144 #endif
145 purple_notify_set_ui_ops (haze_notify_get_ui_ops ());
139146 }
140147
141148 static PurpleCoreUiOps haze_core_uiops =
183190 purple_blist_load();
184191
185192 purple_prefs_load();
193
194 DEBUG ("libpurple %d.%d.%d loaded (compiled against %d.%d.%d)",
195 purple_major_version, purple_minor_version, purple_micro_version,
196 PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, PURPLE_MICRO_VERSION);
186197 }
187198
188199 static TpBaseConnectionManager *
0 /*
1 * notify.c - stub implementation of the libpurple notify API.
2 * Copyright (C) 2007 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
20 #include "notify.h"
21 #include "debug.h"
22
23 static const gchar *
24 _account_name (PurpleConnection *gc)
25 {
26 return purple_account_get_username (purple_connection_get_account (gc));
27 }
28
29 static const gchar *
30 _stringify_notify_message_type (PurpleNotifyMsgType type)
31 {
32 switch (type)
33 {
34 case PURPLE_NOTIFY_MSG_ERROR:
35 return "error";
36 case PURPLE_NOTIFY_MSG_WARNING:
37 return "warning";
38 case PURPLE_NOTIFY_MSG_INFO:
39 return "info";
40 default:
41 return "(invalid PurpleNotifyMsgType)";
42 }
43 }
44
45 static gpointer
46 haze_notify_message (PurpleNotifyMsgType type,
47 const char *title,
48 const char *primary,
49 const char *secondary)
50 {
51 DEBUG ("%s: %s", _stringify_notify_message_type (type), title);
52 DEBUG ("%s", primary);
53 DEBUG ("%s", secondary);
54 return NULL;
55 }
56
57 static gpointer
58 haze_notify_email (PurpleConnection *gc,
59 const char *subject,
60 const char *from,
61 const char *to,
62 const char *url)
63 {
64 DEBUG ("[%s] from: %s; to: %s; subject: %s; url: %s", _account_name (gc),
65 from, to, subject, url);
66 return NULL;
67 }
68
69 static gpointer
70 haze_notify_emails (PurpleConnection *gc,
71 size_t count,
72 gboolean detailed,
73 const char **subjects,
74 const char **froms,
75 const char **tos,
76 const char **urls)
77 {
78 DEBUG ("[%s] %d new emails", _account_name (gc), count);
79 return NULL;
80 }
81
82 static gpointer
83 haze_notify_formatted (const char *title,
84 const char *primary,
85 const char *secondary,
86 const char *text)
87 {
88 DEBUG ("%s", title);
89 DEBUG ("%s", primary);
90 DEBUG ("%s", secondary);
91 DEBUG ("%s", text);
92 return NULL;
93 }
94
95 static gpointer
96 haze_notify_uri (const char *uri)
97 {
98 DEBUG ("%s", uri);
99 return NULL;
100 }
101
102 static gpointer
103 haze_notify_userinfo (PurpleConnection *gc,
104 const char *who,
105 PurpleNotifyUserInfo *user_info)
106 {
107 DEBUG ("[%s] %s", _account_name (gc), who);
108 return NULL;
109 }
110
111 static PurpleNotifyUiOps notify_ui_ops =
112 {
113 .notify_message = haze_notify_message,
114 .notify_email = haze_notify_email,
115 .notify_emails = haze_notify_emails,
116 .notify_formatted = haze_notify_formatted,
117 .notify_userinfo = haze_notify_userinfo,
118 .notify_uri = haze_notify_uri,
119 .notify_searchresults = NULL,
120 .notify_searchresults_new_rows = NULL
121 };
122
123 PurpleNotifyUiOps *
124 haze_notify_get_ui_ops ()
125 {
126 return &notify_ui_ops;
127 }
0 /*
1 * notify.h - headers for stub implementation of the libpurple notify API.
2 * Copyright (C) 2007 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
20 #include <libpurple/notify.h>
21
22 PurpleNotifyUiOps *haze_notify_get_ui_ops (void);
0 /*
1 * request.c - stub implementation of the libpurple request API.
2 * Copyright (C) 2007 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
20 #include <glib-object.h>
21
22 #include <libpurple/account.h>
23 #include <libpurple/conversation.h>
24
25 #include "debug.h"
26 #include "request.h"
27
28 static gpointer
29 haze_request_input (const char *title,
30 const char *primary,
31 const char *secondary,
32 const char *default_value,
33 gboolean multiline,
34 gboolean masked,
35 gchar *hint,
36 const char *ok_text,
37 GCallback ok_cb,
38 const char *cancel_text,
39 GCallback cancel_cb,
40 PurpleAccount *account,
41 const char *who,
42 PurpleConversation *conv,
43 void *user_data)
44 {
45 DEBUG ("ignoring request:");
46 DEBUG (" title: %s", (title ? title : "(null)"));
47 DEBUG (" primary: %s", (primary ? primary : "(null)"));
48 DEBUG (" secondary: %s", (secondary ? secondary : "(null)"));
49 DEBUG (" default_value: %s", default_value ? default_value : "(null)");
50
51 return NULL;
52 }
53
54 static gpointer
55 haze_request_choice (const char *title,
56 const char *primary,
57 const char *secondary,
58 int default_value,
59 const char *ok_text,
60 GCallback ok_cb,
61 const char *cancel_text,
62 GCallback cancel_cb,
63 PurpleAccount *account,
64 const char *who,
65 PurpleConversation *conv,
66 void *user_data,
67 va_list choices)
68 {
69 DEBUG ("ignoring request:");
70 DEBUG (" title: %s", (title ? title : "(null)"));
71 DEBUG (" primary: %s", (primary ? primary : "(null)"));
72 DEBUG (" secondary: %s", (secondary ? secondary : "(null)"));
73 DEBUG (" default_value: %i", default_value);
74
75 return NULL;
76 }
77
78 static gpointer
79 haze_request_action (const char *title,
80 const char *primary,
81 const char *secondary,
82 int default_action,
83 PurpleAccount *account,
84 const char *who,
85 PurpleConversation *conv,
86 void *user_data,
87 size_t action_count,
88 va_list actions)
89 {
90 DEBUG ("ignoring request:");
91 DEBUG (" title: %s", (title ? title : "(null)"));
92 DEBUG (" primary: %s", (primary ? primary : "(null)"));
93 DEBUG (" secondary: %s", (secondary ? secondary : "(null)"));
94
95 return NULL;
96 }
97
98 static gpointer
99 haze_request_fields (const char *title,
100 const char *primary,
101 const char *secondary,
102 PurpleRequestFields *fields,
103 const char *ok_text,
104 GCallback ok_cb,
105 const char *cancel_text,
106 GCallback cancel_cb,
107 PurpleAccount *account,
108 const char *who,
109 PurpleConversation *conv,
110 void *user_data)
111 {
112 DEBUG ("ignoring request:");
113 DEBUG (" title: %s", (title ? title : "(null)"));
114 DEBUG (" primary: %s", (primary ? primary : "(null)"));
115 DEBUG (" secondary: %s", (secondary ? secondary : "(null)"));
116
117 return NULL;
118 }
119
120 static gpointer
121 haze_request_file (const char *title,
122 const char *filename,
123 gboolean savedialog,
124 GCallback ok_cb,
125 GCallback cancel_cb,
126 PurpleAccount *account,
127 const char *who,
128 PurpleConversation *conv,
129 void *user_data)
130 {
131 DEBUG ("ignoring request:");
132 DEBUG (" title: %s", (title ? title : "(null)"));
133 DEBUG (" filename: %s", (filename ? filename : "(null)"));
134
135 return NULL;
136 }
137
138 static gpointer
139 haze_request_folder (const char *title,
140 const char *dirname,
141 GCallback ok_cb,
142 GCallback cancel_cb,
143 PurpleAccount *account,
144 const char *who,
145 PurpleConversation *conv,
146 void *user_data)
147 {
148 DEBUG ("ignoring request:");
149 DEBUG (" title: %s", (title ? title : "(null)"));
150 DEBUG (" dirname: %s", (dirname ? dirname : "(null)"));
151
152 return NULL;
153 }
154
155
156 /*
157 void (*close_request)(PurpleRequestType type, void *ui_handle);
158 */
159
160 static PurpleRequestUiOps request_uiops =
161 {
162 .request_input = haze_request_input,
163 .request_choice = haze_request_choice,
164 .request_action = haze_request_action,
165 .request_fields = haze_request_fields,
166 .request_file = haze_request_file,
167 .request_folder = haze_request_folder
168 };
169
170 PurpleRequestUiOps *
171 haze_request_get_ui_ops ()
172 {
173 return &request_uiops;
174 }
0 /*
1 * request.h - headers for stub implementation of the libpurple request API.
2 * Copyright (C) 2007 Collabora Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
20 #include <libpurple/request.h>
21
22 PurpleRequestUiOps *haze_request_get_ui_ops (void);