rubrica-2.0/0000755000175000017500000000000010637712740011603 5ustar seb128seb128rubrica-2.0/Makefile.am0000644000175000017500000000166310557744266013656 0ustar seb128seb128SUBDIRS = libral src doc pixmaps interface po @INTLTOOL_DESKTOP_RULE@ desktopdir = $(datadir)/applications desktop_in_files = rubrica2.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) mimedir = $(datadir)/mime-info mime_file = rubrica2.mime key_file = rubrica2.keys mime_DATA = $(mime_file) $(key_file) schemadir = @GCONF_SCHEMA_FILE_DIR@ schema_DATA = rubrica2.schemas install-data-local: GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA) EXTRA_DIST = \ intltool-merge.in \ intltool-update.in \ intltool-extract.in \ AUTHORS \ COPYING \ ChangeLog \ INSTALL \ NEWS \ README \ TODO \ CREDITS \ rubrica2.spec \ $(desktop_DATA) \ $(mime_DATA) \ $(key_file) DISTCLEANFILES = \ gnome-doc-utils.make \ intltool-extract \ intltool-merge \ intltool-update CLEANFILES = ./po/.intltool-merge-cache rubrica-2.0/config.guess0000644000175000017500000012206510554703327014125 0ustar seb128seb128#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2003-06-17' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown ## for Red Hat Linux if test -f /etc/redhat-release ; then VENDOR=redhat ; else VENDOR= ; fi # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; macppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvmeppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; pmax:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sgi:OpenBSD:*:*) echo mipseb-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sun3:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; wgrisc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} exit 0 ;; alpha:OSF1:*:*) if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` fi # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit 0 ;; Alpha*:OpenVMS:*:*) echo alpha-hp-vms exit 0 ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit 0;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit 0 ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit 0 ;; *:OS/390:*:*) echo i370-ibm-openedition exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit 0;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit 0 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit 0 ;; DRS?6000:UNIX_SV:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7 && exit 0 ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit 0 ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit 0 ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c \ && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ && exit 0 echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit 0 ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit 0 ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit 0 ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit 0 ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then # avoid double evaluation of $set_cc_for_build test -n "$CC_FOR_BUILD" || eval $set_cc_for_build if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; *:UNICOS/mp:*:*) echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit 0 ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) # Determine whether the default compiler uses glibc. eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #if __GLIBC__ >= 2 LIBC=gnu #else LIBC= #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit 0 ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit 0 ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit 0 ;; x86:Interix*:[34]*) echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' exit 0 ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit 0 ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit 0 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit 0 ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit 0 ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; ppc:Linux:*:*) echo powerpc-${VENDOR:-unknown}-linux-gnu exit 0 ;; ppc64:Linux:*:*) echo powerpc64-${VENDOR:-unknown}-linux-gnu exit 0 ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit 0 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit 0 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu exit 0 ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; x86_64:Linux:*:*) echo x86_64-${VENDOR:-unknown}-linux-gnu exit 0 ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit 0 ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit 0 ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit 0 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #ifdef __INTEL_COMPILER LIBC=gnu #else LIBC=gnuaout #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit 0 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit 0 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit 0 ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit 0 ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit 0 ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit 0 ;; i*86:*:5:[78]*) case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit 0 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit 0 ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit 0 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit 0 ;; paragon:*:*:*) echo i860-intel-osf1 exit 0 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit 0 ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit 0 ;; M68*:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4.3${OS_REL} && exit 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit 0 ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit 0 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit 0 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit 0 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit 0 ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit 0 ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit 0 ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit 0 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit 0 ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Darwin:*:*) case `uname -p` in *86) UNAME_PROCESSOR=i686 ;; powerpc) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit 0 ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit 0 ;; *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit 0 ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit 0 ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit 0 ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit 0 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit 0 ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit 0 ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit 0 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit 0 ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit 0 ;; *:ITS:*:*) echo pdp10-unknown-its exit 0 ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: rubrica-2.0/config.h.in0000644000175000017500000000514210637712716013633 0ustar seb128seb128/* config.h.in. Generated from configure.in by autoheader. */ /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Package for GettText */ #undef GETTEXT_PACKAGE /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the `localtime_r' function. */ #undef HAVE_LOCALTIME_R /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The program name with capital initial letter */ #undef RUBRICA_CAP_NAME /* The program name */ #undef RUBRICA_NAME /* The program version */ #undef RUBRICA_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Define to empty if `const' does not conform to ANSI C. */ #undef const rubrica-2.0/mkinstalldirs0000644000175000017500000000370410554703327014411 0ustar seb128seb128#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here rubrica-2.0/aclocal.m40000644000175000017500000107520310637712663013457 0ustar seb128seb128# generated automatically by aclocal 1.10 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_if(m4_PACKAGE_VERSION, [2.61],, [m4_fatal([this file was generated for autoconf 2.61. You have another version of autoconf. If you want to use that, you should regenerate the build system entirely.], [63])]) dnl AM_GCONF_SOURCE_2 dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas dnl (i.e. pass to gconftool-2 dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where dnl you should install foo.schemas files dnl AC_DEFUN([AM_GCONF_SOURCE_2], [ if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` else GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE fi AC_ARG_WITH(gconf-source, [ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",) AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE) AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation]) if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' fi AC_ARG_WITH(gconf-schema-file-dir, [ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",) AC_SUBST(GCONF_SCHEMA_FILE_DIR) AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files]) AC_ARG_ENABLE(schemas-install, [ --disable-schemas-install Disable the schemas installation], [case ${enableval} in yes|no) ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;; esac]) AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no]) ]) # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [AC_REQUIRE([AC_CANONICAL_HOST])dnl USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) MSGFMT_OPTS= AC_MSG_CHECKING([if msgfmt accepts -c]) GLIB_RUN_PROG([msgfmt -c -o /dev/null],[ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) AC_SUBST(MSGFMT_OPTS) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" glib_save_datarootdir="$datarootdir" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix datarootdir=`eval echo "${datarootdir}"` if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" datarootdir="$glib_save_datarootdir" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) # # Create a temporary file with TEST-FILE as its contents and pass the # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with # 0 and perform ACTION-IF-FAIL for any other exit status. AC_DEFUN([GLIB_RUN_PROG], [cat >conftest.foo <<_ACEOF $2 _ACEOF if AC_RUN_LOG([$1 conftest.foo]); then m4_ifval([$3], [$3], [:]) m4_ifvaln([$4], [else $4])dnl echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD fi]) dnl -*- mode: autoconf -*- # serial 1 dnl Usage: dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) AC_DEFUN([GTK_DOC_CHECK], [ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first dnl for overriding the documentation installation directory AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, [with_html_dir='${datadir}/gtk-doc/html']) HTML_DIR="$with_html_dir" AC_SUBST(HTML_DIR) dnl enable/disable documentation building AC_ARG_ENABLE(gtk-doc, AC_HELP_STRING([--enable-gtk-doc], [use gtk-doc to build documentation [default=no]]),, enable_gtk_doc=no) have_gtk_doc=no if test x$enable_gtk_doc = xyes; then if test -z "$PKG_CONFIG"; then AC_PATH_PROG(PKG_CONFIG, pkg-config, no) fi if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then have_gtk_doc=yes fi dnl do we want to do a version check? ifelse([$1],[],, [gtk_doc_min_version=$1 if test "$have_gtk_doc" = yes; then AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version]) if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) have_gtk_doc=no fi fi ]) if test "$have_gtk_doc" != yes; then enable_gtk_doc=no fi fi AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL") ]) dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) # serial 35 IT_PROG_INTLTOOL AC_DEFUN([IT_PROG_INTLTOOL], [AC_PREREQ([2.50])dnl case "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;; esac if test -n "$1"; then AC_MSG_CHECKING(for intltool >= $1) INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` ] AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' AC_SUBST(INTLTOOL_DESKTOP_RULE) AC_SUBST(INTLTOOL_DIRECTORY_RULE) AC_SUBST(INTLTOOL_KEYS_RULE) AC_SUBST(INTLTOOL_PROP_RULE) AC_SUBST(INTLTOOL_OAF_RULE) AC_SUBST(INTLTOOL_PONG_RULE) AC_SUBST(INTLTOOL_SERVER_RULE) AC_SUBST(INTLTOOL_SHEET_RULE) AC_SUBST(INTLTOOL_SOUNDLIST_RULE) AC_SUBST(INTLTOOL_UI_RULE) AC_SUBST(INTLTOOL_XAM_RULE) AC_SUBST(INTLTOOL_KBD_RULE) AC_SUBST(INTLTOOL_XML_RULE) AC_SUBST(INTLTOOL_XML_NOMERGE_RULE) AC_SUBST(INTLTOOL_CAVES_RULE) AC_SUBST(INTLTOOL_SCHEMAS_RULE) AC_SUBST(INTLTOOL_THEME_RULE) AC_SUBST(INTLTOOL_SERVICE_RULE) # Use the tools built into the package, not the ones that are installed. AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract') AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge') AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update') AC_PATH_PROG(INTLTOOL_PERL, perl) if test -z "$INTLTOOL_PERL"; then AC_MSG_ERROR([perl not found; required for intltool]) fi if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then AC_MSG_ERROR([perl 5.x required for intltool]) fi if test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fi fi AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv) AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt) AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge) AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext) # Substitute ALL_LINGUAS so we can use it in po/Makefile AC_SUBST(ALL_LINGUAS) # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share dnl in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [DATADIRNAME=share], [DATADIRNAME=lib]) ;; *) [DATADIRNAME=lib] ;; esac]) fi AC_SUBST(DATADIRNAME) IT_PO_SUBDIR([po]) dnl The following is very similar to dnl dnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update]) dnl dnl with the following slight differences: dnl - the *.in files are in ac_aux_dir, dnl - if the file haven't changed upon reconfigure, it's not touched, dnl - the evaluation of the third parameter enables a hack which computes dnl the actual value of $libdir, dnl - the user sees "executing intltool commands", instead of dnl "creating intltool-extract" and such. dnl dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were dnl a reason for it. AC_CONFIG_COMMANDS([intltool], [ for file in intltool-extract intltool-merge intltool-update; do sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \ -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \ -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \ -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \ -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ < ${ac_aux_dir}/${file}.in > ${file}.out if cmp -s ${file} ${file}.out 2>/dev/null; then rm -f ${file}.out else mv -f ${file}.out ${file} fi chmod ugo+x ${file} chmod u+w ${file} done ], [INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}' prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}' INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}' INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}']) ]) # IT_PO_SUBDIR(DIRNAME) # --------------------- # All po subdirs have to be declared with this macro; the subdir "po" is # declared by IT_PROG_INTLTOOL. # AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. dnl dnl The following CONFIG_COMMANDS should be exetuted at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] if test ! -f "$1/Makefile"; then AC_MSG_ERROR([$1/Makefile is not ready.]) fi mv "$1/Makefile" "$1/Makefile.tmp" [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.tmp" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ]) ])dnl ]) # deprecated macros AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # A hint is needed for aclocal from Automake <= 1.9.4: # AC_DEFUN([AC_PROG_INTLTOOL], ...) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 48 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_LINKER_BOILERPLATE # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^[ ]*//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10])dnl _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR rubrica-2.0/README0000644000175000017500000000235410554703327012466 0ustar seb128seb128General Information =================== Installation ============ Please consult the 'INSTALL' file more detailed instructions. per compilare il programma assicuratevi di avere installato le seguenti librerie (e i relativi paccheti di sviluppo, cioè non basta aver installato libglade, per compilare i sorgenti serve anche libglade-devel): libglade gtk+ pango atk glib In genere se si ha installato correttamente gtk+ (ver. 2.x) si hanno anche pango, atk, glib In ogni caso la sequenza dei comandi da seguire (dalla directory in cui scompattate i sorgenti) per compilare sono: 1. aclocal (serve ad aggirnare alcuni file di configurazione, non dovrebbe essere necessario, ma non si sa mai, alcuni messaggi di errore possono essere ignorati) 2. autoconf 3. automake 4. ./configure 5. make se la compilazione è andata a buon fine nella directory src/ trovate l'eseguibile, per poter funzionare il programma ha al momento bisogno di un'hack. dovete creare un link simbolico all'unico plugin esistente. ln -s plugins/fcfs/.libs/libfcfs.so . attenti ai punti, copiateli pari pari. (la directory libs è nascosta => .libs) . indica la directory corrente. Alla fine in src/ dovrete trovare il link simbolico a libfcfs.so Reporting Bugs ============== rubrica-2.0/libral/0000755000175000017500000000000010637712736013055 5ustar seb128seb128rubrica-2.0/libral/Makefile.am0000644000175000017500000000341210620105516015071 0ustar seb128seb128SUBDIRS = plugins # # RAL - Rubrica Addressbook Library - # # -D=\""@@"\" INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ -DRUBRICA_VERSION=\""@RUBRICA_VERSION@"\" \ -DRUBRICA_FILE_FORMAT=\""@RUBRICA_FILE_FORMAT@"\" \ -DLIBRAL_VERSION=\""@LIBRAL_VERSION@"\" \ -DLIBRAL_CODE_NAME=\""@LIBRAL_CODE_NAME@"\" \ -DLIBRAL_INFO_CODE_NAME=\""@LIBRAL_INFO_CODE_NAME@"\" \ -DLIBRAL_PLUGINS_DIR=\""$(libral_plugins_dir)"\" \ -DLIBRAL_PLUGINS_GUI_DIR=\""$(libral_plugins_gui_dir)"\" \ -DLIBRAL_PLUGINS_PIXMAPS_DIR=\""$(libral_plugins_pixmaps_dir)"\" lib_LTLIBRARIES = libral.la libral_la_SOURCES = \ abook.h abook.c \ address.c address.h \ card.c card.h \ company.c company.h \ contact.c contact.h \ date.c date.h \ filter.c filter.h \ group.c group.h \ group_box.c group_box.h \ lookup.c lookup.h \ manager.c manager.h \ net.c net.h \ notes.c notes.h \ personal.c personal.h \ plugin.c plugin.h \ rlib.c rlib.h \ ref.c ref.h \ telephone.c telephone.h \ timeout.c timeout.h \ utils.c utils.h \ work.c work.h \ error.h \ types.h \ libral.h # #libral_la_include_HEADERS = \ # libral.h \ # abook.h \ # address.h \ # card.h \ # company.h \ # contact.h \ # date.h \ # filter.h \ # group.h \ # group_set.h \ # lookup.h \ # manager.h \ # net.h \ # notes.h \ # personal.h \ # plugin.h \ # ref.h \ # rlib.h \ # telephone.h \ # timeout.h \ # utils.h \ # work.h \ # error.h \ # types.h # # #libral_la_includedir = $(includedir)/libral-$(LIBRAL_VERSION)/libral # libral_la_LDFLAGS = -version-info $(LIBRAL_CURRENT_VERSION):$(LIBRAL_REVISION_VERSION):$(LIBRAL_COMPAT_VERSION) libral_la_CFLAGS = ${LIBRAL_CFLAGS} -Wall -Wmissing-prototypes -g rubrica-2.0/libral/abook.h0000644000175000017500000001301410620101434014273 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: abook.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_ABOOK_H #define _R_ABOOK_H #include #include #include "card.h" #include "error.h" #define R_ABOOK_TYPE (r_abook_get_type()) #define R_ABOOK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_ABOOK_TYPE, RAbook)) #define R_ABOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_ABOOK_TYPE, RAbookClass)) #define IS_R_ABOOK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_ABOOK_TYPE)) #define IS_R_ABOOK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_ABOOK_TYPE)) #define R_ABOOK_GET_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS((klass), \ R_ABOOK_TYPE, RAbookClass)) typedef struct _RAbook RAbook; typedef struct _RAbookClass RAbookClass; typedef struct _RAbookPrivate RAbookPrivate; struct _RAbook { GObject parent; RAbookPrivate *priv; }; struct _RAbookClass { GObjectClass parent_class; /* methods */ gboolean (*abook_open_file) (RAbook* abook, gchar* filename); gboolean (*abook_save_file) (RAbook* abook, gchar* filename, gint rate); gboolean (*abook_overwrite) (RAbook* abook, gint rate); /* signals */ void (*open_fail) (RAbook* abook, RError* err); void (*save_fail) (RAbook* abook, RError* err); void (*card_read) (RAbook* abook, gpointer card); void (*card_added) (RAbook* abook, gpointer card); void (*card_deleted) (RAbook* abook, gpointer card); void (*card_destroyed) (RAbook* abook, gchar* name); void (*card_recovered) (RAbook* abook, gpointer card); void (*card_replaced) (RAbook* abook, gpointer card); void (*card_cutted) (RAbook* abook, gpointer card); void (*card_pasted) (RAbook* abook, gpointer card); void (*need_name) (RAbook* abook); void (*addressbook_changed) (RAbook* abook); void (*addressbook_read) (RAbook* abook); void (*addressbook_saved) (RAbook* abook); void (*addressbook_closed) (RAbook* abook); }; GType r_abook_get_type (void); RAbook* r_abook_new (void); void r_abook_free (RAbook* abook); gboolean r_abook_open_file (RAbook* abook, gchar* fname); gboolean r_abook_save_file (RAbook* abook, gchar* fname, gint compression_rate); gboolean r_abook_overwrite_file (RAbook* abook, gboolean backup, gint compression_rate); RAbook* r_abook_copy (RAbook* abook); gboolean r_abook_plugin_from_file (RAbook* abook, gchar* filename); gboolean r_abook_load_plugin (RAbook* abook, const gchar* name); gchar* r_abook_get_plugin_extension (RAbook* abook); gpointer r_abook_get_plugin (RAbook* abook); gpointer r_abook_get_r_plugin (RAbook* abook); gint r_abook_get_items (RAbook* abook); gint r_abook_get_deleted (RAbook* abook); gboolean r_abook_is_empty (RAbook* abook); void r_abook_add_card (RAbook* abook, RCard* card); void r_abook_add_loaded_card (RAbook* abook, RCard* card); void r_abook_paste_card (RAbook* abook, RCard* card); void r_abook_empty_trash (RAbook* abook); void r_abook_delete_card (RAbook* abook, RCard* card); void r_abook_destroy_card (RAbook* abook, RCard* card); gboolean r_abook_recovery_card (RAbook* abook, RCard* card); void r_abook_replace_card (RAbook* abook, RCard* old, RCard* new); gpointer r_abook_get_card (RAbook* abook); gpointer r_abook_get_next_card (RAbook* abook); gpointer r_abook_get_prev_card (RAbook* abook); void r_abook_reset_book (RAbook* abook); void r_abook_foreach_card (RAbook* abook, RFunc func, gpointer data); gpointer r_abook_get_card_by_id (RAbook* abook, glong id); gpointer r_abook_get_selected_card (RAbook* abook); void r_abook_unselect_cards (RAbook* abook); gpointer r_abook_get_groups_box (RAbook* abook); GList* r_abook_find_cards_by_group (RAbook* abook, const gchar* group_name); GList* r_abook_find_cards_by_type (RAbook* abook, const gchar* type); GList* r_abook_find_cards_by_genre (RAbook* abook, const gchar* genre); GList* r_abook_find_cards_by_rate (RAbook* abook, RRate rate); GList* r_abook_search (RAbook* abook, const gchar* str); GList* r_abook_search_date (RAbook* abook, gint date, SearchType type); GList* r_abook_search_between (RAbook* abook, gint first, gint second, SearchType type); #endif rubrica-2.0/libral/plugin.h0000644000175000017500000000651710637703465014534 0ustar seb128seb128/* * file: plugin.h * * * Copyright (C) 2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_PLUGIN_H #define _R_PLUGIN_H #include #include #include "types.h" #include "filter.h" #define R_PLUGIN_TYPE (r_plugin_get_type()) #define R_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_PLUGIN_TYPE, RPlugin)) #define R_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_PLUGIN_TYPE, RPluginClass)) #define R_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_PLUGIN_TYPE)) #define R_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_PLUGIN_TYPE)) #define R_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ R_PLUGIN_TYPE, RPluginClass)) typedef struct _RPlugin RPlugin; typedef struct _RPluginClass RPluginClass; typedef struct _RPluginPrivate RPluginPrivate; /* il tipo "plugin_init" descrive una funzione che prende un argomento di tipo Plugin, e non restituisce alcun valore */ //typedef void (*RPluginInit) (RPlugin* plugin); /** * RPluginAction * @name: gchar*, the action's name * @handle: gchar*, handle to a function. * * RPluginAction is used to manage the action that a plugin can make * * examples (from rubrica's plugin): * action->name = g_strdup("read"); * action->handle = (gpointer) r_rubrica_open_file; */ typedef struct _plugin_action { gchar* name; gchar* handle; } RPluginAction; struct _RPlugin { GObject parent; RPluginPrivate* priv; }; struct _RPluginClass { GObjectClass parent; /* methods */ void (*run_configure_gui) (gpointer); }; GType r_plugin_get_type (void); RPlugin* r_plugin_new (void); void r_plugin_free (RPlugin* plugin); // gboolean r_plugin_load (RPlugin* plugin, const gchar* file); void r_plugin_set_obj (RPlugin* plugin, gpointer obj); gpointer r_plugin_get_obj (RPlugin* plugin); void r_plugin_add_action (RPlugin* plugin, RPluginAction* action); void r_plugin_add_filter (RPlugin* plugin, RFilter* filter); gpointer r_plugin_get_handle (RPlugin* plugin, gchar* name); GList* r_plugin_get_filters (RPlugin* plugin); gchar* r_plugin_get_name (RPlugin* plugin); gchar* r_plugin_get_info (RPlugin* plugin); gchar* r_plugin_get_file_name (RPlugin* plugin); gboolean r_plugin_is_configurable (RPlugin* plugin); void r_plugin_run_configure_gui (RPlugin* plugin); #endif rubrica-2.0/libral/libral.h0000644000175000017500000000250310620101434014446 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: libral.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __LIBRAL_H__ #define __LIBRAL_H__ #include "types.h" #include "abook.h" #include "address.h" #include "card.h" #include "company.h" #include "contact.h" #include "date.h" #include "filter.h" #include "group.h" #include "group_box.h" #include "manager.h" #include "net.h" #include "notes.h" #include "personal.h" #include "plugin.h" #include "rlib.h" #include "ref.h" #include "telephone.h" #include "timeout.h" #include "utils.h" #include "work.h" #include "error.h" #endif /* __LIBRAL_H__ */ rubrica-2.0/libral/lookup.h0000644000175000017500000000304410620101434014513 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: types.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_LOOKUP_TABLE_H #define _R_LOOKUP_TABLE_H #include typedef struct _lookuptable { gchar* str; gchar* lbl; gint val; } RLookupTable; typedef struct _pairtable { gchar* str; gint left; gint right; } RPairTable; gint r_lookup_table_str2enum (RLookupTable *table, gchar* str); gchar* r_lookup_table_enum2str (RLookupTable *table, gint value); gchar* r_lookup_table_str2lbl (RLookupTable *table, gchar* str); gchar* r_lookup_table_enum2lbl (RLookupTable *table, gint value); gint r_lookup_table_get_pair_left (RPairTable *table, gint item); gint r_lookup_table_get_pair_right (RPairTable *table, gint item); gchar* r_lookup_table_pair2str (RPairTable *table, gint item); #endif rubrica-2.0/libral/plugin.c0000644000175000017500000002473510637703462014526 0ustar seb128seb128/* * file: plugin.c * * * Copyright (C) 2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "plugin.h" #include "filter.h" #include "types.h" /* property enumeration */ enum { PLUGIN_PROP_0, PLUGIN_NAME, /* the name of the plugin */ PLUGIN_FILENAME, /* shared object file */ PLUGIN_INFO, /* a short plugin's description */ PLUGIN_CONFIGURABLE, /* is the plugin configurable? */ }; struct _RPluginPrivate { // RPluginInit plugin_init; // plugin init function // RPluginInit plugin_fini; // plugin termination function // GModule* plugin; // plugin module (shared object, the .so file) gchar* filename; // plugin's shared object file name (the .so file) gpointer obj; // new allocated object in plugin shared object gchar* name; // plugin's name gchar* info; // plugin's infos gboolean configurable; GList* filters; GList* actions; // plugin's actions gboolean dispose_has_run; }; static void r_plugin_class_init (RPluginClass* klass); static void r_plugin_init (RPlugin* obj); static void r_plugin_dispose (RPlugin* obj); static void r_plugin_finalize (RPlugin* obj); static void r_plugin_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_plugin_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_plugin_get_type() { static GType plugin_type = 0; if (!plugin_type) { static const GTypeInfo plugin_info = { sizeof(RPluginClass), NULL, NULL, (GClassInitFunc) r_plugin_class_init, NULL, NULL, sizeof(RPlugin), 0, (GInstanceInitFunc) r_plugin_init }; plugin_type = g_type_register_static (G_TYPE_OBJECT, "RPlugin", &plugin_info, 0); } return plugin_type; } static void r_plugin_class_init(RPluginClass* klass) { GObjectClass *class; GParamSpec* pspec; klass->run_configure_gui = NULL; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_plugin_dispose; class->finalize = (GObjectFinalizeFunc) r_plugin_finalize; class->set_property = r_plugin_set_property; class->get_property = r_plugin_get_property; /** * RPlugin:plugin-name * * the plungin's name */ pspec = g_param_spec_string("plugin-name", "the plungin's name", NULL, NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, PLUGIN_NAME, pspec); /** * RPlugin:plugin-filename * * the plungin's file name */ pspec = g_param_spec_string("plugin-filename", "the plungin's file name", NULL, NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, PLUGIN_FILENAME, pspec); /** * RPlugin:plugin-info * * a short plugin's description */ pspec = g_param_spec_string("plugin-info", "a short plugin's description", NULL, NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, PLUGIN_INFO, pspec); /** * RPlugin:plugin-configurable * * is the plugin configurable? */ pspec = g_param_spec_boolean("plugin-configurable", "is the plugin configurable?", NULL, FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, PLUGIN_CONFIGURABLE, pspec); } static void r_plugin_init(RPlugin* plugin) { plugin->priv = g_new(RPluginPrivate, 1); plugin->priv->filename = NULL; plugin->priv->obj = NULL; plugin->priv->name = NULL; plugin->priv->info = NULL; plugin->priv->configurable = FALSE; plugin->priv->filters = NULL; plugin->priv->actions = NULL ; plugin->priv->dispose_has_run = FALSE; } static void r_plugin_dispose (RPlugin* plugin) { g_return_if_fail(R_IS_PLUGIN(plugin)); if (plugin->priv->dispose_has_run) return; plugin->priv->dispose_has_run = TRUE; } static void r_plugin_finalize (RPlugin* plugin) { g_return_if_fail(R_IS_PLUGIN(plugin)); g_free(plugin->priv); plugin->priv = NULL; } static void r_plugin_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RPlugin* self = (RPlugin*) obj; switch(property_id) { case PLUGIN_FILENAME: g_free(self->priv->filename); self->priv->filename = g_value_dup_string(value); break; case PLUGIN_NAME: g_free(self->priv->name); self->priv->name = g_value_dup_string(value); break; case PLUGIN_INFO: g_free(self->priv->info); self->priv->info = g_value_dup_string(value); break; case PLUGIN_CONFIGURABLE: self->priv->configurable = g_value_get_boolean(value); break; default: break; } } static void r_plugin_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RPlugin* self = (RPlugin*) obj; switch(property_id) { case PLUGIN_NAME: g_value_set_string(value, self->priv->name); break; case PLUGIN_FILENAME: g_value_set_string(value, self->priv->filename); break; case PLUGIN_INFO: g_value_set_string(value, self->priv->info); break; case PLUGIN_CONFIGURABLE: g_value_set_boolean(value, self->priv->configurable); break; default: break; } } /* Public */ /** * r_plugin_new * * create a new #RPlugin * * Returns: a new #RPlugin */ RPlugin* r_plugin_new(void) { RPlugin* plugin; plugin = g_object_new(r_plugin_get_type(), NULL); return plugin; } /** * r_plugin_free * @plugin: a #RPlugin * * free the object */ void r_plugin_free(RPlugin* plugin) { g_return_if_fail(R_IS_PLUGIN(plugin)); g_object_unref(plugin); } /** * r_plugin_get_obj * @plugin: a #RPlugin * * Get the real plugin (a gobject) * * Returns: a gpointer */ gpointer r_plugin_get_obj (RPlugin* plugin) { g_return_val_if_fail(R_IS_PLUGIN(plugin), NULL); return plugin->priv->obj; } /** * r_plugin_set_obj * @plugin: a #RPlugin * @obj: a gpointer * * use this function to set the real plugin. This function is * called by the plugin (see rubrica, csv, vcard plugins source) * during initialization. The obj is returned by a g_object_new call * and is the object that makes work. */ void r_plugin_set_obj (RPlugin* plugin, gpointer obj) { g_return_if_fail(R_IS_PLUGIN(plugin)); g_return_if_fail(obj != NULL); plugin->priv->obj = obj; } /** * r_plugin_add_filter * @plugin: a #RPlugin * @filter: a #RFilter * * Add a #RFilter to the plugin */ void r_plugin_add_filter (RPlugin* plugin, RFilter* filter) { g_return_if_fail(R_IS_PLUGIN(plugin)); g_return_if_fail(filter != NULL); plugin->priv->filters = g_list_append(plugin->priv->filters, filter); } /** * r_plugin_add_action * @plugin: a #RPlugin * @action: a #RPluginAction * * add a #RPluginAction to the plugin. */ void r_plugin_add_action (RPlugin* plugin, RPluginAction* action) { g_return_if_fail(R_IS_PLUGIN(plugin)); g_return_if_fail(action != NULL); plugin->priv->actions = g_list_append(plugin->priv->actions, action); } /** * r_plugin_get_filters * @plugin: a #RPlugin * * Get the plugin's file filters * * Returns: a #GList of #RFilter */ GList* r_plugin_get_filters (RPlugin* plugin) { g_return_val_if_fail(R_IS_PLUGIN(plugin), NULL); return plugin->priv->filters; } /** * r_plugin_get_handle * @plugin: a #RPlugin * * Get the handle with the given name * * Returns: a pointer to the requested function or %NULL if * function was not found */ gpointer r_plugin_get_handle (RPlugin* plugin, gchar* name) { GList* iter; g_return_val_if_fail(R_IS_PLUGIN(plugin), NULL); g_return_val_if_fail(name != NULL, NULL); for (iter = plugin->priv->actions; iter; iter = iter->next) { RPluginAction* action = iter->data; if (g_ascii_strcasecmp(action->name, name) == 0) return action->handle; } return NULL; } /** * r_plugin_get_name * @plugin: a #RPlugin * * Get the plugin's name * * Returns: a gchar* */ gchar* r_plugin_get_name (RPlugin* plugin) { gchar* ret; g_return_val_if_fail(R_IS_PLUGIN(plugin), NULL); g_object_get(plugin, "plugin-name", &ret, NULL); return ret; } /** * r_plugin_get_file_name * @plugin: a #RPlugin * * Get the plugin's file name * * Returns: a gchar* */ gchar* r_plugin_get_file_name (RPlugin* plugin) { g_return_val_if_fail(R_IS_PLUGIN(plugin), NULL); return plugin->priv->filename; } /** * r_plugin_get_info * @plugin: a #RPlugin * * Get info about the plugin * * Returns: a gchar* */ gchar* r_plugin_get_info (RPlugin* plugin) { gchar* ret; g_return_val_if_fail(R_IS_PLUGIN(plugin), NULL); g_object_get(plugin, "plugin-info", &ret, NULL); return ret; } /** * r_plugin_is_configurable * @plugin: a #RPlugin * * Check if the plugin is configurable * * Returns: %TRUE if plugin is configurable, %FALSE otherwise */ gboolean r_plugin_is_configurable (RPlugin* plugin) { gboolean ret; g_return_val_if_fail(R_IS_PLUGIN(plugin), FALSE); g_object_get(plugin, "plugin-configurable", &ret, NULL); return ret; } /** * r_plugin_run_configure_gui * @plugin: a #RPlugin * * if plugin is configurable, user can run the configuration * gui that the plugin installs */ void r_plugin_run_configure_gui (RPlugin* plugin) { RPluginClass* klass; g_return_if_fail(R_IS_PLUGIN(plugin)); klass = R_PLUGIN_GET_CLASS(plugin); if (R_PLUGIN_CLASS(klass)->run_configure_gui) klass->run_configure_gui(plugin->priv->obj); } rubrica-2.0/libral/date.c0000644000175000017500000002120110620117202014105 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: date.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "date.h" #include "utils.h" #define BUFLEN 64 /* property enumeration */ enum { DATE_KNOW = 1, DATE_DAY, DATE_MONTH, DATE_YEAR, DATE_HUMAN }; struct _RDatePrivate { gboolean know; /* is date khnown? */ gint day; gint month; gint year; GDate* gdate; gchar* human_date; gboolean dispose_has_run; }; #define R_DATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ R_DATE_TYPE, RDatePrivate)) static void r_date_class_init (RDateClass* klass); static void r_date_init (RDate* obj); static void r_date_dispose (RDate* obj); static void r_date_finalize (RDate* obj); static void r_date_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void r_date_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static gboolean date_is_valid (RDate* date); static void update_human_date (RDate* date); static gboolean date_is_valid (RDate* date) { if (date->priv->day && date->priv->month && date->priv->year) return TRUE; return FALSE; } static void update_human_date(RDate* date) { gchar buffer[BUFLEN]; g_return_if_fail(IS_R_DATE(date)); if (date_is_valid(date)) { g_date_set_dmy(date->priv->gdate, date->priv->day, date->priv->month + 1, date->priv->year); date->priv->know = TRUE; if(g_date_strftime(buffer, BUFLEN, "%Ex", date->priv->gdate)) { g_free(date->priv->human_date); date->priv->human_date = g_strdup(buffer); } } else date->priv->know = FALSE; } GType r_date_get_type() { static GType r_date_type = 0; if (!r_date_type) { static const GTypeInfo r_date_info = { sizeof(RDateClass), NULL, NULL, (GClassInitFunc) r_date_class_init, NULL, NULL, sizeof(RDate), 0, (GInstanceInitFunc) r_date_init }; r_date_type = g_type_register_static (G_TYPE_OBJECT, "RDate", &r_date_info, 0); } return r_date_type; } static void r_date_class_init(RDateClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_date_dispose; class->finalize = (GObjectFinalizeFunc) r_date_finalize; class->set_property = (gpointer) r_date_set_property; class->get_property = (gpointer) r_date_get_property; g_type_class_add_private (klass, sizeof(RDatePrivate)); /** * RDate:know: * * */ pspec = g_param_spec_boolean("know", "know", "is date known", FALSE, G_PARAM_READWRITE); g_object_class_install_property (class, DATE_KNOW, pspec); /** * RDate:day: * * day */ pspec = g_param_spec_int("day", "day", "the day", 0, 31, 0, G_PARAM_READWRITE); g_object_class_install_property (class, DATE_DAY, pspec); /** * RDate:month: * * month */ pspec = g_param_spec_int("month", "month", "the month", 0, 12, 0, G_PARAM_READWRITE); g_object_class_install_property (class, DATE_MONTH, pspec); /** * RDate:year: * * year */ pspec = g_param_spec_int("year", "year", "the year", 0, 10000, 0, G_PARAM_READWRITE); g_object_class_install_property (class, DATE_YEAR, pspec); /** * RDate:human-date: * * date in a human readable format */ pspec = g_param_spec_string("human-date", "human readable", "data displayed in a human readable format", NULL, G_PARAM_READABLE); g_object_class_install_property (class, DATE_HUMAN, pspec); } static void r_date_init(RDate* self) { self->priv = R_DATE_GET_PRIVATE(self); self->priv->know = FALSE; self->priv->day = 0; self->priv->month = 0; self->priv->year = 0; self->priv->gdate = g_date_new(); self->priv->human_date = g_strdup(_("unknown")); self->priv->dispose_has_run = FALSE; } static void r_date_dispose (RDate* self) { g_return_if_fail(IS_R_DATE(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void r_date_finalize (RDate* self) { g_return_if_fail(IS_R_DATE(self)); r_utils_free_string(self->priv->human_date); } static void r_date_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RDate* self = (RDate *) obj; RDatePrivate* priv = R_DATE_GET_PRIVATE(self); switch(property_id) { case DATE_KNOW: priv->know = g_value_get_boolean(value); break; case DATE_DAY: priv->day = g_value_get_int(value); update_human_date(self); break; case DATE_MONTH: priv->month = g_value_get_int(value); update_human_date(self); break; case DATE_YEAR: priv->year = g_value_get_int(value); update_human_date(self); break; default: break; } return; } static void r_date_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RDate *self = (RDate *) obj; switch(property_id) { case DATE_KNOW: g_value_set_boolean(value, self->priv->know); break; case DATE_DAY: g_value_set_int(value, self->priv->day); break; case DATE_MONTH: g_value_set_int(value, self->priv->month); break; case DATE_YEAR: g_value_set_int(value, self->priv->year); break; case DATE_HUMAN: g_value_set_string(value, self->priv->human_date); break; default: break; } } /** * r_date_new * * create a new #RDate object * * Returns: a #RDate **/ RDate* r_date_new(void) { RDate* date; date = g_object_new(r_date_get_type(), NULL); return date; } /** * r_date_free * @date: a #RDate * * free the RDate object */ void r_date_free(RDate* date) { g_return_if_fail(IS_R_DATE(date)); g_object_unref(date); } /** * r_date_get_human_date * @date: a #RDate * * get the date as a locale string. Caller must free the returned value * * returns: a gchar* or "unknown", if date is not set */ gchar* r_date_get_human_date (RDate* date) { g_return_val_if_fail(IS_R_DATE(date), g_strdup(_("unknown"))); return g_strdup(date->priv->human_date); } /** * r_date_is_date_known * @date: a #RDate * * get the state of know date flag * * returns: a boolean */ gboolean r_date_is_known (RDate* date) { g_return_val_if_fail(IS_R_DATE(date), FALSE); return date->priv->know; } gboolean r_date_is_valid (RDate* date) { g_return_val_if_fail(IS_R_DATE(date), FALSE); return date_is_valid(date); } /** * r_date_copy * @date: a #RDate * * copy the given #RDate * * returns: a new allocated RDate* */ RDate* r_date_copy (RDate* date) { RDate* new; gchar *day, *month, *year; gboolean known; g_return_val_if_fail(IS_R_DATE(date), NULL); new = r_date_new(); g_object_get(date, "known", &known, "day", &day, "month", &month, "year", &year, NULL); g_object_set(new, "known", known, "day", day, "month", month, "year", year, NULL); return new; } gchar* r_date_get_day (RDate* date) { g_return_val_if_fail(IS_R_DATE(date), NULL); if(date->priv->day) return g_strdup_printf("%d", date->priv->day); return g_strdup("BadDay"); } gchar* r_date_get_month (RDate* date) { g_return_val_if_fail(IS_R_DATE(date), NULL); if(date->priv->month) return g_strdup_printf("%d", date->priv->month); return g_strdup("BadDay"); } gchar* r_date_get_year (RDate* date) { g_return_val_if_fail(IS_R_DATE(date), NULL); if (date->priv->year) return g_strdup_printf("%d", date->priv->year); return g_strdup("BadYear"); } rubrica-2.0/libral/date.h0000644000175000017500000000426410620101434014124 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: date.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_DATE_H #define _R_DATE_H #include #include #include #define R_DATE_TYPE (r_date_get_type()) #define R_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_DATE_TYPE, RDate)) #define R_DATE_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ R_DATE_TYPE, RDateClass)) #define IS_R_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), R_DATE_TYPE)) #define IS_R_DATE_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), R_DATE_TYPE)) #define R_DATE_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_DATE_TYPE, RDateClass)) typedef struct _RDate RDate; typedef struct _RDateClass RDateClass; typedef struct _RDatePrivate RDatePrivate; struct _RDate { GObject parent; RDatePrivate *priv; }; struct _RDateClass { GObjectClass parent_class; }; GType r_date_get_type (void); RDate* r_date_new (void); void r_date_free (RDate* date); RDate* r_date_copy (RDate* date); gboolean r_date_is_known (RDate* date); gboolean r_date_is_valid (RDate* date); gchar* r_date_get_human_date (RDate* date); gchar* r_date_get_day (RDate* date); gchar* r_date_get_month (RDate* date); gchar* r_date_get_year (RDate* date); #endif rubrica-2.0/libral/rlib.c0000644000175000017500000000751510620101434014134 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: init.c * * Copyright (C) 2006 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // #define GETTEXT_PACKAGE "libral" #include #include #include "rlib.h" #include "manager.h" #include "group_box.h" #include "timeout.h" RPluginManager *manager = NULL; RGroupBox *group_box = NULL; RTimeout *timeout = NULL; GList *adrbooks = NULL; gboolean init = FALSE; gchar* release = RUBRICA_VERSION; gchar* code_name = LIBRAL_CODE_NAME; gchar* info_code_name = LIBRAL_INFO_CODE_NAME; static void r_lib_remove(gpointer obj, gpointer userdata); /* Private callback */ static void r_lib_remove(gpointer obj, gpointer userdata) { g_return_if_fail(obj != NULL); adrbooks = g_list_remove(adrbooks, obj); } /** Public **/ /** * r_lib_get_release * * Get the libral release * * Returns: a gchar* */ gchar* r_lib_get_release (void) { return release; } /** * r_lib_get_code_name * * Get the libral release code name * * Returns: a gchar* */ gchar* r_lib_get_code_name(void) { return code_name; } /** * r_lib_get_ral_info * * Get the libral release infos * * Returns: a gchar* */ gchar* r_lib_get_ral_info (void) { return info_code_name; } /** * r_lib_init * * initialize the libral library * * Returns: %TRUE if libral was successfully initialized, %FALSE otherwise */ gboolean r_lib_init(void) { manager = r_plugin_manager_new(); if(manager) r_plugin_manager_scan_directory(manager, LIBRAL_PLUGINS_DIR); else g_error(_("\nCan't initialize r")); group_box = r_group_box_new(); if (!group_box) g_error(_("\nCan't initialize r")); timeout = r_timeout_new(0); if (!timeout) g_error(_("\nCan't initialize r")); init = TRUE; return init; } /** * r_lib_admit * @abook: a gpointer * * admit a new addressbook (a #RAbook) to the list of active addressbooks * User should not use this function. * It is called during RAbook's object initialization. */ void r_lib_admit(gpointer abook) { g_signal_connect(G_OBJECT(abook), "addressbook_closed", G_CALLBACK(r_lib_remove), NULL); adrbooks = g_list_append(adrbooks, abook); } /** * r_lib_is_running * * Check if libral is running * * Returns: %TRUE if libral is running, %FALSE otherwise */ gboolean r_lib_is_running(void) { return init; } /** * r_lib_get_manager * * Get the plugin manager, a #RPluginManager * * Returns: a gpointer */ gpointer r_lib_get_manager(void) { return manager; } /** * r_lib_get_group_set * * Get the active group set, a #RGroupSet * * Returns: a gpointer */ gpointer r_lib_get_group_box (void) { return group_box; } gpointer r_lib_get_timeout(void) { return timeout; } /** * r_lib_get_addressbooks * * Get the list of the opened addressbooks * * Returns: a #GList of #RAbooks */ GList* r_lib_get_addressbooks (void) { return adrbooks; } /** * r_lib_get_nth_addressbook * * Get the nth of the opened addressbooks * * Returns: a gpointer (#RAbook) */ gpointer r_lib_get_nth_addressbook(gint n) { return g_list_nth_data(adrbooks, n); } rubrica-2.0/libral/net.c0000644000175000017500000001725710620101434013776 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: net.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "net.h" #include "utils.h" enum { NET_URL = 1, NET_TYPE }; typedef struct _NetConversion { gint token; gchar* label; } NetConversion; struct _RNetAddressPrivate { gchar* url; gint type; gboolean dispose_has_run; }; static NetConversion table[] = { {R_NET_ADDRESS_WEB, "web" }, {R_NET_ADDRESS_EMAIL, "email" }, {R_NET_ADDRESS_EKIGA, "ekiga" }, {R_NET_ADDRESS_IRC, "irc" }, {R_NET_ADDRESS_IRC_AIM, "aim" }, {R_NET_ADDRESS_IRC_ICQ, "icq" }, {R_NET_ADDRESS_IRC_JABBER, "jabber" }, {R_NET_ADDRESS_IRC_YAHOO, "yahoo" }, {R_NET_ADDRESS_IRC_MSN, "msn" }, {R_NET_ADDRESS_WORK_WEB, "work web" }, {R_NET_ADDRESS_WORK_EMAIL, "work email"}, {R_NET_ADDRESS_UNKNOWN, "unknown" }, }; static void r_net_address_class_init (RNetAddressClass* klass); static void r_net_address_init (RNetAddress* obj); static void r_net_address_dispose (RNetAddress* obj); static void r_net_address_finalize (RNetAddress* obj); static void r_net_address_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_net_address_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_net_address_get_type() { static GType r_net_address_type = 0; if (!r_net_address_type) { static const GTypeInfo r_net_address_info = { sizeof(RNetAddressClass), NULL, NULL, (GClassInitFunc) r_net_address_class_init, NULL, NULL, sizeof(RNetAddress), 0, (GInstanceInitFunc) r_net_address_init }; r_net_address_type = g_type_register_static (G_TYPE_OBJECT, "RNetAddress", &r_net_address_info, 0); } return r_net_address_type; } static void r_net_address_class_init(RNetAddressClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_net_address_dispose; class->finalize = (GObjectFinalizeFunc) r_net_address_finalize; class->set_property = r_net_address_set_property; class->get_property = r_net_address_get_property; /** * RNetAddress:url: * * the net address uri */ pspec = g_param_spec_string("url", "url", "the net address uri", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, NET_URL, pspec); /** * RNetAddress:url-type: * * the uri's type, see #RNetAddressType for valid values */ pspec = g_param_spec_int("url-type", "url's type", "url's type", R_NET_ADDRESS_WEB, R_NET_ADDRESS_UNKNOWN, R_NET_ADDRESS_UNKNOWN, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, NET_TYPE, pspec); } static void r_net_address_init(RNetAddress* self) { self->private = g_new(RNetAddressPrivate, 1); self->private->url = NULL; self->private->dispose_has_run = FALSE; } static void r_net_address_dispose (RNetAddress* self) { g_return_if_fail(IS_R_NET_ADDRESS(self)); if (self->private->dispose_has_run) return; self->private->dispose_has_run = TRUE; } static void r_net_address_finalize (RNetAddress* self) { g_return_if_fail(IS_R_NET_ADDRESS(self)); r_utils_free_string(self->private->url); g_free(self->private); self->private = NULL; } static void r_net_address_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RNetAddress* self = (RNetAddress*) obj; switch (property_id) { case NET_URL: g_free(self->private->url); self->private->url = g_value_dup_string(value); break; case NET_TYPE: self->private->type = g_value_get_int(value); break; default: break; } } static void r_net_address_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RNetAddress* self = (RNetAddress*) obj; switch (property_id) { case NET_URL: g_value_set_string(value, self->private->url); break; case NET_TYPE: g_value_set_int(value, self->private->type); break; default: break; } } /** * r_net_address_new * * create a new #RNetAddress * * returns: a #RNetAddress* */ RNetAddress* r_net_address_new(void) { RNetAddress* net; net = g_object_new(r_net_address_get_type(), NULL); return net; } /** * r_net_address_free * @net: a #RNetAddress * * free the memory owned by net */ void r_net_address_free(RNetAddress* net) { g_return_if_fail(IS_R_NET_ADDRESS(net)); g_object_unref(net); } gboolean r_net_address_search (RNetAddress *net, const gchar* str) { g_return_val_if_fail(IS_R_NET_ADDRESS(net), FALSE); g_return_val_if_fail(str != NULL, FALSE); if (g_strrstr(net->private->url, str)) return TRUE; return FALSE; } /** * r_net_address_copy * @net: a #RNetAddress * * copy the given net address. * * returns: a new allocated #RNetAddress* */ RNetAddress* r_net_address_copy (RNetAddress *net) { RNetAddress* new; RNetAddressType type; gchar *url; g_return_val_if_fail(IS_R_NET_ADDRESS(net), NULL); new = r_net_address_new(); g_object_get(G_OBJECT(net), "url", &url, "url-type", &type, NULL); g_object_set(G_OBJECT(new), "url", url, "url-type", type, NULL); return new; } /** * r_net_address_decode_type * @type: a #RNetAddressType * * decode the #RNetAddressType given type * * returns: a gchar* */ gchar* r_net_address_decode_type (RNetAddressType type) { if ((type < R_NET_ADDRESS_WEB) || (type > R_NET_ADDRESS_UNKNOWN)) return "unknown"; return table[type].label; } /** * r_net_address_get_decoded_type * @type: gchar* * * decode the string returned by r_net_address_get_url_type() * * returns: a #RNetAddressType */ RNetAddressType r_net_address_encode_type (gchar* type) { RNetAddressType ret = R_NET_ADDRESS_UNKNOWN; if (!type) return ret; if (g_ascii_strcasecmp(type, "web") == 0) ret = R_NET_ADDRESS_WEB; if (g_ascii_strcasecmp(type, "work web") == 0) ret = R_NET_ADDRESS_WORK_WEB; else if (g_ascii_strcasecmp(type, "email") == 0) ret = R_NET_ADDRESS_EMAIL; else if (g_ascii_strcasecmp(type, "work email") == 0) ret = R_NET_ADDRESS_WORK_EMAIL; else if (g_ascii_strcasecmp(type, "ekiga") == 0) ret = R_NET_ADDRESS_EKIGA; else if (g_ascii_strcasecmp(type, "irc") == 0) ret = R_NET_ADDRESS_IRC; else if (g_ascii_strcasecmp(type, "aim") == 0) ret = R_NET_ADDRESS_IRC_AIM; else if (g_ascii_strcasecmp(type, "jabber") == 0) ret = R_NET_ADDRESS_IRC_JABBER; else if (g_ascii_strcasecmp(type, "icq") == 0) ret = R_NET_ADDRESS_IRC_ICQ; else if (g_ascii_strcasecmp(type, "yahoo") == 0) ret = R_NET_ADDRESS_IRC_YAHOO; else if (g_ascii_strcasecmp(type, "msn") == 0) ret = R_NET_ADDRESS_IRC_MSN; return ret; } rubrica-2.0/libral/utils.c0000644000175000017500000000172510620101434014341 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: utils.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "utils.h" void r_utils_free_string (gchar* str) { if (str) { g_free(str); str = NULL; } } rubrica-2.0/libral/group.h0000644000175000017500000000433510620101435014343 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: groups.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_GROUPS_SET_H #define _R_GROUPS_SET_H #include #include #include "utils.h" #include "group.h" #define R_GROUP_TYPE (r_group_get_type()) #define R_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_GROUP_TYPE, RGroup)) #define R_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_GROUP_TYPE, RGroupClass)) #define IS_R_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_GROUP_TYPE)) #define IS_R_GROUP_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), R_GROUP_TYPE)) #define R_GROUP_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_GROUP_TYPE, RGroupClass)) typedef struct _RGroup RGroup; typedef struct _RGroupClass RGroupClass; typedef struct _RGroupPrivate RGroupPrivate; struct _RGroup { GObject parent; RGroupPrivate* priv; }; struct _RGroupClass { GObjectClass parent; }; GType r_group_get_type (void); RGroup* r_group_new (void); void r_group_free (RGroup* group); RGroup* r_group_copy (RGroup* group); gboolean r_group_rename (RGroup* group, gchar* newname); gboolean r_group_change_pixmap (RGroup* group, gchar* newpix); gboolean r_group_has_name (RGroup* group, gchar* name); gboolean r_group_has_owner (RGroup* group, const gchar* owner); #endif rubrica-2.0/libral/address.h0000644000175000017500000000610510620101435014631 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: address.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_ADDRESS_H #define _R_ADDRESS_H #include #include #define R_ADDRESS_TYPE (r_address_get_type()) #define R_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_ADDRESS_TYPE, RAddress)) #define R_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_ADDRESS_TYPE, RAddressClass)) #define IS_R_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_ADDRESS_TYPE)) #define IS_R_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_ADDRESS_TYPE)) #define R_ADDRESS_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_ADDRESS_TYPE, RAddressClass)) // delivery address - indirizzo (indirizzo di consegna) typedef enum { R_ADDRESS_PREF = 0, // preferred delivery address R_ADDRESS_HOME, // delivery address for a residence R_ADDRESS_WORK, // delivery address for a place of work R_ADDRESS_PARCEL, // parcel delivery address (consegna pacchi) R_ADDRESS_POSTAL, // postal delivery address R_ADDRESS_INTL, // international delivery address R_ADDRESS_DOM, // domestic delivery address R_ADDRESS_COMPANY, // registered office R_ADDRESS_SUBSIDIARY, // subsidiary company R_ADDRESS_OTHER, // other address type R_ADDRESS_UNKNOWN, // R_ADDRESS_INVALID } RAddressType; typedef struct _RAddress RAddress; typedef struct _RAddressClass RAddressClass; typedef struct _RAddressPrivate RAddressPrivate; struct _RAddress { GObject parent; RAddressPrivate* private; }; struct _RAddressClass { GObjectClass parent_class; }; GType r_address_get_type (void); RAddress* r_address_new (void); void r_address_free (RAddress* address); RAddress* r_address_copy (RAddress* address); gboolean r_address_search (RAddress* address, const gchar* str); RAddressType r_address_lookup_str2enum (gchar* str); gchar* r_address_lookup_enum2str (RAddressType type); gchar* r_address_lookup_enum2lbl (RAddressType type); gchar* r_address_lookup_str2lbl (gchar* str); #endif rubrica-2.0/libral/group_box.c0000644000175000017500000003227410620101435015211 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: groups.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "group_box.h" #include "group.h" enum { GROUP_ADDED, GROUP_REMOVED, GROUP_RENAMED, LAST_SIGNAL }; static guint r_group_box_signals[LAST_SIGNAL] = {0}; struct _RGroupBoxPrivate { GList* lst; GList* iter; GList* find; gboolean dispose_has_run; }; static void r_group_box_class_init (RGroupBoxClass* klass); static void r_group_box_init (RGroupBox* obj); static void r_group_box_dispose (RGroupBox* obj); static void r_group_box_finalize (RGroupBox* obj); /* Private */ static gboolean delete_group(RGroupBox* box, gchar* name); GType r_group_box_get_type() { static GType group_box_type = 0; if (!group_box_type) { static const GTypeInfo group_box_info = { sizeof(RGroupBoxClass), NULL, NULL, (GClassInitFunc) r_group_box_class_init, NULL, NULL, sizeof(RGroupBox), 0, (GInstanceInitFunc) r_group_box_init }; group_box_type = g_type_register_static (G_TYPE_OBJECT, "RGroupBox", &group_box_info, 0); } return group_box_type; } static void r_group_box_class_init(RGroupBoxClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_group_box_dispose; class->finalize = (GObjectFinalizeFunc) r_group_box_finalize; /* class signals */ /** * RGroupBox::group_added * @box: the #RGroupBox that receives the signal * @group: the group added to the box * * signal emitted when a new group is added to the group's box. */ r_group_box_signals[GROUP_ADDED] = g_signal_new("group_added", R_GROUP_BOX_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RGroupBoxClass, group_added), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_POINTER); /* params type */ /** * RGroupbox::group_removed * @set: the #RGroupBox that receives the signal * @group: the group removed from the set * * signal emitted when a group is removed from the group's set. */ r_group_box_signals[GROUP_REMOVED] = g_signal_new("group_removed", R_GROUP_BOX_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RGroupBoxClass, group_removed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_INT); /* params type */ /** * RGroupbox::group_remamed * @set: the #RGroupBox that receives the signal * @group: the group remamed from the set * * signal emitted when a group is removed from the group's set. */ r_group_box_signals[GROUP_RENAMED] = g_signal_new("group_renamed", R_GROUP_BOX_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RGroupBoxClass, group_removed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_POINTER); /* params type */ } static void r_group_box_init(RGroupBox* self) { self->priv = g_new(RGroupBoxPrivate, 1); self->priv->lst = NULL; self->priv->iter = NULL; self->priv->dispose_has_run = FALSE; } static void r_group_box_dispose (RGroupBox* self) { GList* list; g_return_if_fail(IS_R_GROUP_BOX(self)); if (self->priv->dispose_has_run) return; for (list = self->priv->lst; list; list = g_list_next(list)) r_group_free(R_GROUP(list->data)); g_list_free(self->priv->lst); self->priv->dispose_has_run = TRUE; } static void r_group_box_finalize (RGroupBox* self) { g_return_if_fail(IS_R_GROUP_BOX(self)); g_free(self->priv); self->priv = NULL; } static gboolean delete_group(RGroupBox* box, gchar* name) { gint id; box->priv->iter = box->priv->lst; for (; box->priv->iter; box->priv->iter = box->priv->iter->next) { RGroup* group = box->priv->iter->data; if (r_group_has_name(R_GROUP(group), name)) { g_object_get(group, "id", &id, NULL); box->priv->lst = g_list_remove_link(box->priv->lst, box->priv->iter); r_group_free(R_GROUP(box->priv->iter->data)); g_list_free_1(box->priv->iter); box->priv->iter = NULL; g_signal_emit_by_name(box, "group_removed", id, G_TYPE_INT); return TRUE; } } return FALSE; } /* Public */ /** * r_group_box_ * @box: a #RGroupBox * * create a new #RGroupBox * * returns: a new allocated #RGroupBox* */ RGroupBox* r_group_box_new(void) { RGroupBox* box; box = g_object_new(r_group_box_get_type(), NULL); return box; } /** * r_group_box_free * @box: a #RGroupBox * * free memory owned by a #RGroupBox */ void r_group_box_free(RGroupBox* box) { g_return_if_fail(IS_R_GROUP_BOX(box)); g_object_unref(box); } /** * r_group_box_is_empty * @box: a #RGroupBox * * Test if the given group_box is empty * * Returns: %TRUE if the box is empty, %FALSE otherwise */ gboolean r_group_box_is_empty (RGroupBox* box) { g_return_val_if_fail(IS_R_GROUP_BOX(box), TRUE); return (box->priv->lst == NULL); } /** * r_group_box_find * @box: a #RGroupBox * @group_name: a #RGroup's name * * find a group by name * * returns: a gpoiter, to the group with the given name or NULL, if * box haven't the group. */ gpointer r_group_box_find (RGroupBox* box, gchar* group_name) { g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); g_return_val_if_fail(group_name != NULL, NULL); box->priv->find = box->priv->lst; for (; box->priv->find; box->priv->find = box->priv->find->next) { RGroup* grp = box->priv->find->data; if (r_group_has_name(R_GROUP(grp), group_name)) return (gpointer) grp; } return NULL; } /** * r_group_box_find_groups_owned_by * @box: a #RGroupBox * @owner: a gchar* * * search for all groups owned by the given "owner" * * Returns: a #GList of #RGroup or NULL */ GList* r_group_box_find_groups_owned_by (RGroupBox* box, const gchar* owner) { GList* ret = NULL; g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); g_return_val_if_fail(owner != NULL, NULL); box->priv->find = box->priv->lst; for (; box->priv->find; box->priv->find = box->priv->find->next) { RGroup* grp = box->priv->find->data; if (r_group_has_owner(R_GROUP(grp), owner)) ret = g_list_append(ret, grp); } return ret; } /** * r_group_box_owns_group * @box: a #RGroupBox * @group_name: a #RGroup's name * * test if box owns the given group * * returns: a gboolean, %TRUE if box owns group, %FALSE otherwise */ gboolean r_group_box_owns_group (RGroupBox* box, const gchar* group_name) { g_return_val_if_fail(IS_R_GROUP_BOX(box), FALSE); g_return_val_if_fail(group_name != NULL, FALSE); if (r_group_box_find(box, group_name)) return TRUE; return FALSE; } /** * r_group_box_add_group * @box: a #RGroupBox * @group: a #RGroup * * add the group to te box * * returns: a gboolean. %TRUE if group if added successfully, %FALSE otherwise */ gboolean r_group_box_add_group (RGroupBox* box, RGroup* group) { gchar* name; g_return_val_if_fail(IS_R_GROUP_BOX(box), FALSE); g_return_val_if_fail(IS_R_GROUP(group), FALSE); /* test if group is already known */ g_object_get(group, "group-name", &name, NULL); if (r_group_box_owns_group(box, name)) return TRUE; /* else add to the box */ box->priv->lst = g_list_append(box->priv->lst, group); /* init group iterator */ if (!box->priv->iter) box->priv->iter = box->priv->lst; g_signal_emit_by_name(box, "group_added", group, G_TYPE_POINTER); return TRUE; } /** * r_group_box_delete_group_by_name * @box: a #RGroupBox * @name: group's name * * delete a group from box * * returns: a gboolean. %TRUE if group is deleted, %FALSE otherwise */ gboolean r_group_box_delete_group_by_name (RGroupBox* box, gchar* name) { g_return_val_if_fail(IS_R_GROUP_BOX(box), FALSE); g_return_val_if_fail(name != NULL, FALSE); return delete_group(box, name); } /** * r_group_box_delete_group * @box: a #RGroupBox * @group: a #RGroup * * delete a group from box * * returns: a gboolean. %TRUE if group is deleted, %FALSE otherwise */ gboolean r_group_box_delete_group (RGroupBox* box, RGroup* group) { gchar* name; g_return_val_if_fail(IS_R_GROUP_BOX(box), FALSE); g_return_val_if_fail(IS_R_GROUP(group), FALSE); g_object_get(group, "group-name", &name, NULL); return r_group_box_delete_group_by_name(box, name); } /** * r_group_box_rename_group * @box: a #RGroupBox * @oldname: * @newname: * * rename a group in the box * * returns: a gboolean. %TRUE if group is renamed, %FALSE otherwise */ gboolean r_group_box_rename_group (RGroupBox* box, gchar* oldname, gchar* newname) { RGroup* group; gint id; g_return_val_if_fail(IS_R_GROUP_BOX(box), FALSE); g_return_val_if_fail(oldname != NULL, FALSE); g_return_val_if_fail(newname != NULL, FALSE); group = r_group_box_find(box, oldname); if (r_group_rename(group, newname)) { g_object_set(group, "group-label", newname, NULL); g_object_get(group, "id", &id, NULL); g_signal_emit_by_name(box, "group_renamed", group, G_TYPE_POINTER); return TRUE; } return FALSE; } /** * r_group_box_disable_all * @box: a #RGroupBox * * disable all groups in box */ void r_group_box_disable_all (RGroupBox* box) { RGroup* group; g_return_if_fail(IS_R_GROUP_BOX(box)); r_group_box_reset(box); group = r_group_box_get_group(box); for(; group; group = r_group_box_get_next_group(box)) g_object_set(group, "enabled", FALSE, NULL); } /** * r_group_box_enable_group * @box: a #RGroupBox * @group: a #RGroup * * enable the given group */ void r_group_box_enable_group (RGroupBox* box, RGroup* grp) { gchar* name; RGroup* group = NULL; g_return_if_fail(IS_R_GROUP_BOX(box)); g_return_if_fail(IS_R_GROUP(grp)); g_object_get(grp, "group-name", &name, NULL); group = r_group_box_find(box, name); if (group) g_object_set(group, "enabled", TRUE, NULL); } /** * r_group_box_disable_group * @box: a #RGroupBox * @group: a #RGroup * * disable the given group */ void r_group_box_disable_group (RGroupBox* box, RGroup* grp) { gchar* name; RGroup* group = NULL; g_return_if_fail(IS_R_GROUP_BOX(box)); g_return_if_fail(IS_R_GROUP(grp)); g_object_get(grp, "group-name", &name, NULL); group = r_group_box_find(box, name); if (group) g_object_set(group, "enabled", FALSE, NULL); } /** * r_group_box_merge_boxes * @box: a #RGroupBox * @second: a #RGroupBox * * merges the #RGroupBoxs * *returns: a RGroupBox* */ RGroupBox* r_group_box_merge_boxes (RGroupBox* box, RGroupBox* second) { g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); g_return_val_if_fail(IS_R_GROUP_BOX(second), box); box->priv->lst = g_list_concat(box->priv->lst, second->priv->lst); return box; } /** * r_group_box_reset * @box: a #RGroupBox * * reset the private #RGroupBox iterator to the head of group's list. */ void r_group_box_reset(RGroupBox* box) { g_return_if_fail(IS_R_GROUP_BOX(box)); box->priv->iter = box->priv->lst; } /** * r_group_box_get_group * @box: a #RGroupBox * * get the first group in box * * returns: a gpointer or NULL if box is void */ RGroup* r_group_box_get_group (RGroupBox* box) { g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); if (box->priv->iter) return (RGroup*) box->priv->iter->data; return NULL; } /** * r_group_box_get_next_group * @box: a #RGroupBox * * get the next group in box. * * returns: a gpointer or NULL if the groups's end list is reached. */ RGroup* r_group_box_get_next_group (RGroupBox* box) { g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); box->priv->iter = g_list_next(box->priv->iter); if (box->priv->iter) return (RGroup*) box->priv->iter->data; else box->priv->iter = box->priv->lst; return NULL; } /** * r_group_box_get_prev_group * @box: a #RGroupBox * * get the previous group in box. * * returns: a gpointer or NULL if the groups's head list is reached. */ RGroup* r_group_box_get_prev_group (RGroupBox* box) { g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); g_return_val_if_fail(IS_R_GROUP_BOX(box), NULL); box->priv->iter = g_list_previous(box->priv->iter); if (box->priv->iter) return (RGroup*) box->priv->iter->data; else box->priv->iter = box->priv->lst; return NULL; } rubrica-2.0/libral/personal.h0000644000175000017500000000560610620101435015034 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: personal.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_PERSONAL_CARD_H #define _R_PERSONAL_CARD_H #include #include #include "card.h" #include "contact.h" #include "work.h" #include "notes.h" #define R_PERSONAL_CARD_TYPE (r_personal_card_get_type()) #define R_PERSONAL_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_PERSONAL_CARD_TYPE, \ RPersonalCard)) #define R_PERSONAL_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_PERSONAL_CARD_TYPE, \ RPersonalCardClass)) #define IS_R_PERSONAL_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_PERSONAL_CARD_TYPE)) #define IS_R_PERSONAL_CARD_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ R_PERSONAL_CARD_TYPE)) #define R_PERSONAL_CARD_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_PERSONAL_CARD_TYPE, \ RPersonalCardClass)) typedef struct _RPersonalCard RPersonalCard; typedef struct _RPersonalCardClass RPersonalCardClass; typedef struct _RPersonalCardPrivate RPersonalCardPrivate; struct _RPersonalCard { RCard parent; RPersonalCardPrivate* priv; }; struct _RPersonalCardClass { RCardClass parent; }; GType r_personal_card_get_type (void); RPersonalCard* r_personal_card_new (void); RContact* r_personal_card_get_contact (RPersonalCard* card); RWork* r_personal_card_get_work (RPersonalCard* card); RNotes* r_personal_card_get_notes (RPersonalCard* card); void r_personal_card_set_contact (RPersonalCard* card, RContact* contact); void r_personal_card_set_work (RPersonalCard* card, RWork* work); void r_personal_card_set_notes (RPersonalCard* card, RNotes* notes); gboolean r_personal_card_belongs_to_genre (RPersonalCard* card, const gchar* genre); #endif rubrica-2.0/libral/group.c0000644000175000017500000002333410620101435014336 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: groups.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "group.h" #include "utils.h" enum { PROP_0, GROUP_ID, GROUP_NAME, GROUP_LABEL, GROUP_OWNER, GROUP_PIXMAP, GROUP_ENABLED }; static gint id = 0; struct _RGroupPrivate { gint id; gchar* name; gchar* label; gchar* owner; gchar* pixmap; gboolean enabled; gboolean dispose_has_run; }; #define R_GROUP_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), \ R_GROUP_TYPE, RGroupPrivate)) static void r_group_class_init (RGroupClass* klass); static void r_group_init (RGroup* obj); static void r_group_dispose (RGroup* obj); static void r_group_finalize (RGroup* obj); static void r_group_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_group_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_group_get_type() { static GType group_type = 0; if (!group_type) { static const GTypeInfo group_info = { sizeof(RGroupClass), NULL, NULL, (GClassInitFunc) r_group_class_init, NULL, NULL, sizeof(RGroup), 0, (GInstanceInitFunc) r_group_init }; group_type = g_type_register_static (G_TYPE_OBJECT, "RGroup", &group_info, 0); } return group_type; } static void r_group_class_init(RGroupClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_group_dispose; class->finalize = (GObjectFinalizeFunc) r_group_finalize; class->set_property = r_group_set_property; class->get_property = r_group_get_property; g_type_class_add_private (klass, sizeof(RGroupPrivate)); /* class property */ pspec = g_param_spec_int("id", "group's id", "the id of the groups", G_MINLONG, G_MAXLONG, 0, G_PARAM_READABLE); g_object_class_install_property(class, GROUP_ID, pspec); /** * RGroup:group-name * * the name of the group */ pspec = g_param_spec_string("group-name", "group name", "the name of the group", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, GROUP_NAME, pspec); /** * RGroup:group-label * * the name of the group */ pspec = g_param_spec_string("group-label", "group label", "the label of the group", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, GROUP_LABEL, pspec); /** * RGroup:group-owner * * the owner (creator) of the group. It can have two values: * "r" for the default groups, and "user" for the * user's defined groups */ pspec = g_param_spec_string("group-owner", "group's owner", "the owner of the group. It can get " "two values: \"rubrica\", if the owner of " "the group is rubrica, \"user\" if the " "group's owner is defined by user", "rubrica", /* default */ G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, GROUP_OWNER, pspec); /** * RGroup:group-pixmap * * a pixmap for the group */ pspec = g_param_spec_string("group-pixmap", "group's pixmap", "the path or uri to the pixmap that will be" "shown near group's name", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, GROUP_PIXMAP, pspec); /** * RGroup:enabled * * enabled/disabled */ pspec = g_param_spec_boolean("enabled", "enabled flag", "check if group is enabled", 0, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, GROUP_ENABLED, pspec); } static void r_group_init(RGroup* self) { self->priv = R_GROUP_GET_PRIVATE(self); self->priv->id = 0; self->priv->name = NULL; self->priv->label = NULL; self->priv->owner = NULL; self->priv->pixmap = NULL; self->priv->enabled = FALSE; self->priv->dispose_has_run = FALSE; } static void r_group_dispose (RGroup* self) { g_return_if_fail(IS_R_GROUP(self)); if (self->priv->dispose_has_run) return; g_free(self->priv->name); g_free(self->priv->label); g_free(self->priv->owner); g_free(self->priv->pixmap); self->priv->dispose_has_run = TRUE; } static void r_group_finalize (RGroup* self) { g_return_if_fail(IS_R_GROUP(self)); } static void r_group_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RGroup* self = (RGroup*) obj; switch (property_id) { case GROUP_ID: break; case GROUP_NAME: g_free(self->priv->name); self->priv->name = g_value_dup_string(value); break; case GROUP_LABEL: g_free(self->priv->label); self->priv->label = g_value_dup_string(value); break; case GROUP_OWNER: g_free(self->priv->owner); self->priv->owner = g_value_dup_string(value); break; case GROUP_PIXMAP: g_free(self->priv->pixmap); self->priv->pixmap = g_value_dup_string(value); break; case GROUP_ENABLED: self->priv->enabled = g_value_get_boolean(value); break; default: break; } } static void r_group_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RGroup* self = (RGroup*) obj; switch (property_id) { case GROUP_ID: g_value_set_int(value, self->priv->id); break; case GROUP_NAME: g_value_set_string(value, self->priv->name); break; case GROUP_LABEL: g_value_set_string(value, self->priv->label); break; case GROUP_OWNER: g_value_set_string(value, self->priv->owner); break; case GROUP_PIXMAP: g_value_set_string(value, self->priv->pixmap); break; case GROUP_ENABLED: g_value_set_boolean(value, self->priv->enabled); break; default: break; } } /* ************************************* Public */ /** * r_group_new * * create a new #RGroup * * returns: a RGroup* */ RGroup* r_group_new(void) { RGroup* group; group = g_object_new(r_group_get_type(), NULL); group->priv->id = ++id; return group; } /** * r_group_free * @group: a #RGroup * * free memory */ void r_group_free(RGroup* group) { g_return_if_fail(IS_R_GROUP(group)); g_object_unref(group); } /** * r_group_copy * @group: a #RGroup * * copy the given group * * returns: a new allocated RGroup* */ RGroup* r_group_copy (RGroup* group) { RGroup* new; gchar *name, *label, *owner, *pixmap; gboolean enabled; g_return_val_if_fail(IS_R_GROUP(group), NULL); new = r_group_new(); g_object_get(G_OBJECT(group), "group-name", &name, "group-label", &label, "group-owner", &owner, "group-pixmap", &pixmap, "enabled", &enabled, NULL); g_object_set(G_OBJECT(new), "group-name", name, "group-label", label, "group-owner", owner, "group-pixmap", pixmap, "enabled", enabled, NULL); return new; } /** * r_group_rename * @group: a #RGroup * @newname: a gchar * * rename the given group. * * returns: a gboolean. %TRUE if group has been renamed, %FALSE otherwise. */ gboolean r_group_rename (RGroup* group, gchar* newname) { g_return_val_if_fail(IS_R_GROUP(group), FALSE); g_return_val_if_fail(newname != NULL, FALSE); g_object_set(group, "group-name", newname, NULL); return TRUE; } /** * r_group_change_pixmap * @group: a #RGroup * @newpix: a gchar* * * replace the pixmap's path with the new one * * returns: a gboolean. %TRUE if pixmap's path has been changed, * %FALSE otherwise. */ gboolean r_group_change_pixmap (RGroup* group, gchar* newpix) { g_return_val_if_fail(IS_R_GROUP(group), FALSE); g_return_val_if_fail(newpix != NULL, FALSE); g_object_set(group, "group-pixmap", newpix, NULL); return TRUE; } /** * r_group_is * @group: a #RGroup * @name: a gchar* * * test if the group has the given name * * returns: a gboolean. %TRUE if group's name and name coincide, * %FALSE otherwise. */ gboolean r_group_has_name (RGroup* group, gchar* name) { g_return_val_if_fail(IS_R_GROUP(group), FALSE); g_return_val_if_fail(name != NULL, FALSE); return (g_ascii_strcasecmp(group->priv->name, name) == 0); } /** * r_group_has_owner * @group: a #RGroup * @owner: a gchar* * * check group's owner * * Returns: %TRUE if "owner" is the group's owner, %FALSE otherwise */ gboolean r_group_has_owner (RGroup* group, const gchar* owner) { g_return_val_if_fail(IS_R_GROUP(group), FALSE); g_return_val_if_fail(owner != NULL, FALSE); return (g_ascii_strcasecmp(group->priv->owner, owner) == 0); } rubrica-2.0/libral/rlib.h0000644000175000017500000000277310620101435014143 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: init.h * * Copyright (C) 2006 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_LIB_INIT_H #define _R_LIB_INIT_H #include #include #include "card.h" // #include "trash.h" #include "error.h" gboolean r_lib_init (void); void r_lib_admit (gpointer abook); gboolean r_lib_is_running (void); gpointer r_lib_get_manager (void); gpointer r_lib_get_group_box (void); gpointer r_lib_get_timeout (void); GList* r_lib_get_addressbooks (void); gpointer r_lib_get_nth_addressbook (gint n); gchar* r_lib_get_release (void); gchar* r_lib_get_code_name (void); gchar* r_lib_get_info (void); gchar* r_lib_get_ral_info (void); #endif rubrica-2.0/libral/ref.h0000644000175000017500000000347410620101435013766 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_REF_H #define _R_REF_H #include #include #define R_REF_TYPE (r_ref_get_type()) #define R_REF(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_REF_TYPE, RRef)) #define R_REF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_REF_TYPE, RRefClass)) #define IS_R_REF(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), R_REF_TYPE)) #define IS_R_REF_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), R_REF_TYPE)) #define R_REF_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_REF_TYPE, RRefClass)) typedef struct _RRef RRef; typedef struct _RRefClass RRefClass; typedef struct _RRefPrivate RRefPrivate; struct _RRef { GObject parent; RRefPrivate* private; }; struct _RRefClass { GObjectClass parent; }; GType r_ref_get_type (void); RRef* r_ref_new (glong id); void r_ref_free (RRef* ref); RRef* r_ref_copy (RRef* ref); #endif rubrica-2.0/libral/Makefile.in0000644000175000017500000012751110637712667015134 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libral DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libral_la_LIBADD = am_libral_la_OBJECTS = libral_la-abook.lo libral_la-address.lo \ libral_la-card.lo libral_la-company.lo libral_la-contact.lo \ libral_la-date.lo libral_la-filter.lo libral_la-group.lo \ libral_la-group_box.lo libral_la-lookup.lo \ libral_la-manager.lo libral_la-net.lo libral_la-notes.lo \ libral_la-personal.lo libral_la-plugin.lo libral_la-rlib.lo \ libral_la-ref.lo libral_la-telephone.lo libral_la-timeout.lo \ libral_la-utils.lo libral_la-work.lo libral_la_OBJECTS = $(am_libral_la_OBJECTS) libral_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libral_la_CFLAGS) \ $(CFLAGS) $(libral_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libral_la_SOURCES) DIST_SOURCES = $(libral_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = plugins # # RAL - Rubrica Addressbook Library - # # -D=\""@@"\" INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ -DRUBRICA_VERSION=\""@RUBRICA_VERSION@"\" \ -DRUBRICA_FILE_FORMAT=\""@RUBRICA_FILE_FORMAT@"\" \ -DLIBRAL_VERSION=\""@LIBRAL_VERSION@"\" \ -DLIBRAL_CODE_NAME=\""@LIBRAL_CODE_NAME@"\" \ -DLIBRAL_INFO_CODE_NAME=\""@LIBRAL_INFO_CODE_NAME@"\" \ -DLIBRAL_PLUGINS_DIR=\""$(libral_plugins_dir)"\" \ -DLIBRAL_PLUGINS_GUI_DIR=\""$(libral_plugins_gui_dir)"\" \ -DLIBRAL_PLUGINS_PIXMAPS_DIR=\""$(libral_plugins_pixmaps_dir)"\" lib_LTLIBRARIES = libral.la libral_la_SOURCES = \ abook.h abook.c \ address.c address.h \ card.c card.h \ company.c company.h \ contact.c contact.h \ date.c date.h \ filter.c filter.h \ group.c group.h \ group_box.c group_box.h \ lookup.c lookup.h \ manager.c manager.h \ net.c net.h \ notes.c notes.h \ personal.c personal.h \ plugin.c plugin.h \ rlib.c rlib.h \ ref.c ref.h \ telephone.c telephone.h \ timeout.c timeout.h \ utils.c utils.h \ work.c work.h \ error.h \ types.h \ libral.h # #libral_la_include_HEADERS = \ # libral.h \ # abook.h \ # address.h \ # card.h \ # company.h \ # contact.h \ # date.h \ # filter.h \ # group.h \ # group_set.h \ # lookup.h \ # manager.h \ # net.h \ # notes.h \ # personal.h \ # plugin.h \ # ref.h \ # rlib.h \ # telephone.h \ # timeout.h \ # utils.h \ # work.h \ # error.h \ # types.h # # #libral_la_includedir = $(includedir)/libral-$(LIBRAL_VERSION)/libral # libral_la_LDFLAGS = -version-info $(LIBRAL_CURRENT_VERSION):$(LIBRAL_REVISION_VERSION):$(LIBRAL_COMPAT_VERSION) libral_la_CFLAGS = ${LIBRAL_CFLAGS} -Wall -Wmissing-prototypes -g all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libral/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu libral/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libral.la: $(libral_la_OBJECTS) $(libral_la_DEPENDENCIES) $(libral_la_LINK) -rpath $(libdir) $(libral_la_OBJECTS) $(libral_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-abook.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-address.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-card.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-company.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-contact.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-date.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-filter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-group.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-group_box.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-lookup.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-manager.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-net.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-notes.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-personal.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-plugin.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-ref.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-rlib.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-telephone.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-timeout.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-utils.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libral_la-work.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< libral_la-abook.lo: abook.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-abook.lo -MD -MP -MF $(DEPDIR)/libral_la-abook.Tpo -c -o libral_la-abook.lo `test -f 'abook.c' || echo '$(srcdir)/'`abook.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-abook.Tpo $(DEPDIR)/libral_la-abook.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='abook.c' object='libral_la-abook.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-abook.lo `test -f 'abook.c' || echo '$(srcdir)/'`abook.c libral_la-address.lo: address.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-address.lo -MD -MP -MF $(DEPDIR)/libral_la-address.Tpo -c -o libral_la-address.lo `test -f 'address.c' || echo '$(srcdir)/'`address.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-address.Tpo $(DEPDIR)/libral_la-address.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='address.c' object='libral_la-address.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-address.lo `test -f 'address.c' || echo '$(srcdir)/'`address.c libral_la-card.lo: card.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-card.lo -MD -MP -MF $(DEPDIR)/libral_la-card.Tpo -c -o libral_la-card.lo `test -f 'card.c' || echo '$(srcdir)/'`card.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-card.Tpo $(DEPDIR)/libral_la-card.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='card.c' object='libral_la-card.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-card.lo `test -f 'card.c' || echo '$(srcdir)/'`card.c libral_la-company.lo: company.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-company.lo -MD -MP -MF $(DEPDIR)/libral_la-company.Tpo -c -o libral_la-company.lo `test -f 'company.c' || echo '$(srcdir)/'`company.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-company.Tpo $(DEPDIR)/libral_la-company.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='company.c' object='libral_la-company.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-company.lo `test -f 'company.c' || echo '$(srcdir)/'`company.c libral_la-contact.lo: contact.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-contact.lo -MD -MP -MF $(DEPDIR)/libral_la-contact.Tpo -c -o libral_la-contact.lo `test -f 'contact.c' || echo '$(srcdir)/'`contact.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-contact.Tpo $(DEPDIR)/libral_la-contact.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='contact.c' object='libral_la-contact.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-contact.lo `test -f 'contact.c' || echo '$(srcdir)/'`contact.c libral_la-date.lo: date.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-date.lo -MD -MP -MF $(DEPDIR)/libral_la-date.Tpo -c -o libral_la-date.lo `test -f 'date.c' || echo '$(srcdir)/'`date.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-date.Tpo $(DEPDIR)/libral_la-date.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='date.c' object='libral_la-date.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-date.lo `test -f 'date.c' || echo '$(srcdir)/'`date.c libral_la-filter.lo: filter.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-filter.lo -MD -MP -MF $(DEPDIR)/libral_la-filter.Tpo -c -o libral_la-filter.lo `test -f 'filter.c' || echo '$(srcdir)/'`filter.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-filter.Tpo $(DEPDIR)/libral_la-filter.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='filter.c' object='libral_la-filter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-filter.lo `test -f 'filter.c' || echo '$(srcdir)/'`filter.c libral_la-group.lo: group.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-group.lo -MD -MP -MF $(DEPDIR)/libral_la-group.Tpo -c -o libral_la-group.lo `test -f 'group.c' || echo '$(srcdir)/'`group.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-group.Tpo $(DEPDIR)/libral_la-group.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='group.c' object='libral_la-group.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-group.lo `test -f 'group.c' || echo '$(srcdir)/'`group.c libral_la-group_box.lo: group_box.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-group_box.lo -MD -MP -MF $(DEPDIR)/libral_la-group_box.Tpo -c -o libral_la-group_box.lo `test -f 'group_box.c' || echo '$(srcdir)/'`group_box.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-group_box.Tpo $(DEPDIR)/libral_la-group_box.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='group_box.c' object='libral_la-group_box.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-group_box.lo `test -f 'group_box.c' || echo '$(srcdir)/'`group_box.c libral_la-lookup.lo: lookup.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-lookup.lo -MD -MP -MF $(DEPDIR)/libral_la-lookup.Tpo -c -o libral_la-lookup.lo `test -f 'lookup.c' || echo '$(srcdir)/'`lookup.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-lookup.Tpo $(DEPDIR)/libral_la-lookup.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lookup.c' object='libral_la-lookup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-lookup.lo `test -f 'lookup.c' || echo '$(srcdir)/'`lookup.c libral_la-manager.lo: manager.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-manager.lo -MD -MP -MF $(DEPDIR)/libral_la-manager.Tpo -c -o libral_la-manager.lo `test -f 'manager.c' || echo '$(srcdir)/'`manager.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-manager.Tpo $(DEPDIR)/libral_la-manager.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='manager.c' object='libral_la-manager.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-manager.lo `test -f 'manager.c' || echo '$(srcdir)/'`manager.c libral_la-net.lo: net.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-net.lo -MD -MP -MF $(DEPDIR)/libral_la-net.Tpo -c -o libral_la-net.lo `test -f 'net.c' || echo '$(srcdir)/'`net.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-net.Tpo $(DEPDIR)/libral_la-net.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='net.c' object='libral_la-net.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-net.lo `test -f 'net.c' || echo '$(srcdir)/'`net.c libral_la-notes.lo: notes.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-notes.lo -MD -MP -MF $(DEPDIR)/libral_la-notes.Tpo -c -o libral_la-notes.lo `test -f 'notes.c' || echo '$(srcdir)/'`notes.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-notes.Tpo $(DEPDIR)/libral_la-notes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='notes.c' object='libral_la-notes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-notes.lo `test -f 'notes.c' || echo '$(srcdir)/'`notes.c libral_la-personal.lo: personal.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-personal.lo -MD -MP -MF $(DEPDIR)/libral_la-personal.Tpo -c -o libral_la-personal.lo `test -f 'personal.c' || echo '$(srcdir)/'`personal.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-personal.Tpo $(DEPDIR)/libral_la-personal.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='personal.c' object='libral_la-personal.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-personal.lo `test -f 'personal.c' || echo '$(srcdir)/'`personal.c libral_la-plugin.lo: plugin.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-plugin.lo -MD -MP -MF $(DEPDIR)/libral_la-plugin.Tpo -c -o libral_la-plugin.lo `test -f 'plugin.c' || echo '$(srcdir)/'`plugin.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-plugin.Tpo $(DEPDIR)/libral_la-plugin.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='plugin.c' object='libral_la-plugin.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-plugin.lo `test -f 'plugin.c' || echo '$(srcdir)/'`plugin.c libral_la-rlib.lo: rlib.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-rlib.lo -MD -MP -MF $(DEPDIR)/libral_la-rlib.Tpo -c -o libral_la-rlib.lo `test -f 'rlib.c' || echo '$(srcdir)/'`rlib.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-rlib.Tpo $(DEPDIR)/libral_la-rlib.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='rlib.c' object='libral_la-rlib.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-rlib.lo `test -f 'rlib.c' || echo '$(srcdir)/'`rlib.c libral_la-ref.lo: ref.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-ref.lo -MD -MP -MF $(DEPDIR)/libral_la-ref.Tpo -c -o libral_la-ref.lo `test -f 'ref.c' || echo '$(srcdir)/'`ref.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-ref.Tpo $(DEPDIR)/libral_la-ref.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ref.c' object='libral_la-ref.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-ref.lo `test -f 'ref.c' || echo '$(srcdir)/'`ref.c libral_la-telephone.lo: telephone.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-telephone.lo -MD -MP -MF $(DEPDIR)/libral_la-telephone.Tpo -c -o libral_la-telephone.lo `test -f 'telephone.c' || echo '$(srcdir)/'`telephone.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-telephone.Tpo $(DEPDIR)/libral_la-telephone.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='telephone.c' object='libral_la-telephone.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-telephone.lo `test -f 'telephone.c' || echo '$(srcdir)/'`telephone.c libral_la-timeout.lo: timeout.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-timeout.lo -MD -MP -MF $(DEPDIR)/libral_la-timeout.Tpo -c -o libral_la-timeout.lo `test -f 'timeout.c' || echo '$(srcdir)/'`timeout.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-timeout.Tpo $(DEPDIR)/libral_la-timeout.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timeout.c' object='libral_la-timeout.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-timeout.lo `test -f 'timeout.c' || echo '$(srcdir)/'`timeout.c libral_la-utils.lo: utils.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-utils.lo -MD -MP -MF $(DEPDIR)/libral_la-utils.Tpo -c -o libral_la-utils.lo `test -f 'utils.c' || echo '$(srcdir)/'`utils.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-utils.Tpo $(DEPDIR)/libral_la-utils.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='utils.c' object='libral_la-utils.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-utils.lo `test -f 'utils.c' || echo '$(srcdir)/'`utils.c libral_la-work.lo: work.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -MT libral_la-work.lo -MD -MP -MF $(DEPDIR)/libral_la-work.Tpo -c -o libral_la-work.lo `test -f 'work.c' || echo '$(srcdir)/'`work.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libral_la-work.Tpo $(DEPDIR)/libral_la-work.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='work.c' object='libral_la-work.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libral_la_CFLAGS) $(CFLAGS) -c -o libral_la-work.lo `test -f 'work.c' || echo '$(srcdir)/'`work.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-exec-am: install-libLTLIBRARIES install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/libral/notes.c0000644000175000017500000003232110620101436014327 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: notes.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "notes.h" #include "date.h" #include "utils.h" enum { NOTES_HAS_PARTNER = 1, NOTES_PARTNER, NOTES_CHILDREN, NOTES_OTHER_NOTES, // hobbies and other notes NOTES_PUBKEY }; struct _RNotesPrivate { gboolean has_partner; /* have a partner? */ gchar* partner; /* partner's name */ gchar* notes; /* other notes */ gchar* pubkey; /* public key */ RDate* birthday; /* partner's birthday */ RDate* anniversary; /* their anniversary */ gboolean dispose_has_run; }; static void r_notes_class_init (RNotesClass* klass); static void r_notes_init (RNotes* obj); static void r_notes_dispose (RNotes* obj); static void r_notes_finalize (RNotes* obj); static void r_notes_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_notes_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_notes_get_type() { static GType notes_type = 0; if (!notes_type) { static const GTypeInfo notes_info = { sizeof(RNotesClass), NULL, NULL, (GClassInitFunc) r_notes_class_init, NULL, NULL, sizeof(RNotes), 0, (GInstanceInitFunc) r_notes_init }; notes_type = g_type_register_static (G_TYPE_OBJECT, "RNotes", ¬es_info, 0); } return notes_type; } static void r_notes_class_init(RNotesClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_notes_dispose; class->finalize = (GObjectFinalizeFunc) r_notes_finalize; class->set_property = r_notes_set_property; class->get_property = r_notes_get_property; /** * RNotes:has-partner: * * contact has got a partner */ pspec = g_param_spec_boolean("has-partner", "has partner", "contact has got a partner", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, NOTES_HAS_PARTNER, pspec); /** * RNotes:partner-name: * * partner's name (first name last name) */ pspec = g_param_spec_string("partner-name", "partner", "partner's name", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, NOTES_PARTNER, pspec); /** * RNotes:notes: * * contact's hobbies and other notes */ pspec = g_param_spec_string("other-notes", "other notes", "contact's hobbies and other notes", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, NOTES_OTHER_NOTES, pspec); /** * RNotes:pubkey: * * contact's public key */ pspec = g_param_spec_string("pubkey", "pubkey", "contact's public key", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, NOTES_PUBKEY, pspec); } static void r_notes_init(RNotes* self) { self->priv = g_new(RNotesPrivate, 1); self->priv->dispose_has_run = FALSE; self->priv->has_partner = FALSE; self->priv->partner = NULL; self->priv->notes = NULL; self->priv->pubkey = NULL; self->priv->birthday = r_date_new(); self->priv->anniversary = r_date_new(); } static void r_notes_dispose (RNotes* self) { g_return_if_fail(IS_R_NOTES(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void r_notes_finalize (RNotes* self) { g_return_if_fail(IS_R_NOTES(self)); r_utils_free_string(self->priv->partner); r_utils_free_string(self->priv->notes); r_utils_free_string(self->priv->pubkey); } static void r_notes_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RNotes *self = (RNotes *) obj; switch(property_id) { case NOTES_HAS_PARTNER: self->priv->has_partner = g_value_get_boolean(value); break; case NOTES_PARTNER: g_free(self->priv->partner); self->priv->partner = g_value_dup_string(value); break; case NOTES_OTHER_NOTES: g_free(self->priv->notes); self->priv->notes = g_value_dup_string(value); break; case NOTES_PUBKEY: g_free(self->priv->pubkey); self->priv->pubkey = g_value_dup_string(value); break; default: break; } } static void r_notes_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RNotes *self = (RNotes *) obj; switch(property_id) { case NOTES_HAS_PARTNER: g_value_set_boolean (value, self->priv->has_partner); break; case NOTES_PARTNER: g_value_set_string (value, self->priv->partner); break; case NOTES_OTHER_NOTES: g_value_set_string (value, self->priv->notes); break; case NOTES_PUBKEY: g_value_set_string (value, self->priv->pubkey); break; default: break; } } /* Public */ /** * r_notes_new * * create a new #RNotes * * returns: a RNotes* */ RNotes* r_notes_new(void) { RNotes* notes; notes = g_object_new(r_notes_get_type(), NULL); return notes; } /** * r_notes_free * @notes: a #RNotes * * free memory owned by notes */ void r_notes_free(RNotes* notes) { g_return_if_fail(IS_R_NOTES(notes)); g_object_unref(notes); } /** * r_notes_set_know_birthday * @notes: a #RNotes * @know: gboolean * * set the know birthday flag */ void r_notes_set_know_birthday (RNotes* notes, gboolean know) { g_return_if_fail(IS_R_NOTES(notes)); g_object_set(notes->priv->birthday, "know", know, NULL); } /** * r_notes_set_know_anniversary * @notes: a #RNotes * @know: gboolean * * set the know anniversary flag */ void r_notes_set_know_anniversary (RNotes* notes, gboolean know) { g_return_if_fail(IS_R_NOTES(notes)); g_object_set(notes->priv->anniversary, "know", know, NULL); } /** * r_notes_set_birthday * @notes: a #RNotes * @day: * @month: * @year: * * set the partner's birthday */ void r_notes_set_birthday (RNotes* notes, gint day, gint month, gint year) { g_object_set(notes->priv->birthday, "day", day, "month", month, "year", year, NULL); } /** * r_notes_set_anniversary * @notes: a #RNotes * @day: * @month: * @year: * * set the contact's and his/her partner anniversary */ void r_notes_set_anniversary (RNotes* notes, gint day, gint month, gint year) { g_object_set(notes->priv->anniversary, "day", day, "month", month, "year", year, NULL); } /** * r_notes_known_birthday * @notes: a #RNotes * * get the known_birthday flag value * * returns: gboolean. %TRUE if partner's birthday is known, %FALSE otherwise */ gboolean r_notes_know_birthday (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), FALSE); return r_date_is_known(R_DATE(notes->priv->birthday)); } /** * r_notes_know_anniversary * @notes: a #RNotes * * get the known_anniversary flag value * * returns:gboolean. %TRUE if contact and his/her partner's * anniversary is known, %FALSE otherwise */ gboolean r_notes_know_anniversary (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), FALSE); return r_date_is_known(R_DATE(notes->priv->anniversary)); } gboolean r_notes_have_data (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), FALSE); if (notes->priv->partner || notes->priv->notes || notes->priv->pubkey || notes->priv->has_partner) return TRUE; return FALSE; } RDate* r_notes_get_birthday (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return notes->priv->birthday; } RDate* r_notes_get_anniversary (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return notes->priv->anniversary; } /** * r_notes_get_birth_day * @notes: a #RNotes * * get the partner's birth day. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_birth_day (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return r_date_get_day(notes->priv->birthday); } /** * r_notes_get_birth_month * @notes: a #RNotes * * get the partner's birth month. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_birth_month (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return r_date_get_month(notes->priv->birthday); } /** * r_notes_get_birth_year * @notes: a #RNotes * * get the partner's birth year. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_birth_year (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return r_date_get_year(notes->priv->birthday); } /** * r_notes_get_anniversary_day * @notes: a #RNotes * * get the anniversary day. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_anniversary_day (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return r_date_get_day(notes->priv->anniversary); } /** * r_notes_get_anniversary_month * @notes: a #RNotes * * get the anniversary month. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_anniversary_month (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return r_date_get_month(notes->priv->anniversary); } /** * r_notes_get_anniversary_year * @notes: a #RNotes * * get the anniversary year. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_anniversary_year (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), NULL); return r_date_get_year(notes->priv->anniversary); } /** * r_notes_get_birth_date * @notes: a #RNotes * * get partner's birthday, or unknown. Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_birth_date (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), g_strdup(_("unknown"))); return r_date_get_human_date(R_DATE(notes->priv->birthday)); } /** * r_notes_get_anniversary_date * @notes: a #RNotes * * get contact and partner's anniversary, or unknown. * Caller must free the returned value * * returns: a gchar* */ gchar* r_notes_get_anniversary_date (RNotes* notes) { g_return_val_if_fail(IS_R_NOTES(notes), g_strdup(_("unknown"))); return r_date_get_human_date(R_DATE(notes->priv->anniversary)); } /** * r_notes_append_other_notes * @notes: a #RNotes * @other_note: * * append to other note */ void r_notes_append_other_notes (RNotes* notes, gchar* other_note) { gchar* tmp = NULL; gchar* new; g_return_if_fail(IS_R_NOTES(notes)); g_return_if_fail(other_note != NULL); g_object_get(notes, "other-notes", &tmp, NULL); if (tmp && (g_ascii_strcasecmp(tmp, "") != 0)) new = g_strdup_printf("%s\n%s", other_note, tmp); else new = g_strdup_printf("%s\n", other_note); g_object_set(notes, "other-notes", tmp, NULL); } gboolean r_notes_search (RNotes* notes, const gchar* str) { g_return_val_if_fail(IS_R_NOTES(notes), FALSE); g_return_val_if_fail(str != NULL, FALSE); if (notes->priv->partner && g_strrstr (notes->priv->partner, str)) return TRUE; if (notes->priv->notes && g_strrstr (notes->priv->notes, str)) return TRUE; if (notes->priv->pubkey && g_strrstr (notes->priv->pubkey, str)) return TRUE; return FALSE; } /** * r_notes_copy * @notes: a #RNotes * * copy the given notes * * returns: a new allocated #RNotes* */ RNotes* r_notes_copy (RNotes* notes) { RNotes* new; RDate* date; gchar *partner, *other, *pubkey; gint day, month, year; gboolean has_partner; g_return_val_if_fail(IS_R_NOTES(notes), NULL); new = r_notes_new(); g_object_get(notes, "has-partner", &has_partner, "partner-name", &partner, "other-notes", &other, "pubkey", &pubkey, NULL); g_object_set(new, "has-partner", has_partner, "partner-name", partner, "other-notes", other, "pubkey", pubkey, NULL); r_notes_set_know_birthday(new, r_notes_know_birthday(notes)); r_notes_set_know_anniversary(new, r_notes_know_anniversary(notes)); date = r_notes_get_birthday(notes); g_object_get(date, "day", &day, "month", &month, "year", &year, NULL); r_notes_set_birthday (new, day, month, year); date = r_notes_get_anniversary (notes); g_object_get(date, "day", &day, "month", &month, "year", &year, NULL); r_notes_set_anniversary(new, day, month, year); return new; } rubrica-2.0/libral/filter.h0000644000175000017500000000446510637703440014514 0ustar seb128seb128/* * file: rfilter.h * * * Copyright (C) 2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_FILTER_H #define _R_FILTER_H #include #include #include "types.h" #define R_FILTER_TYPE (r_filter_get_type()) #define R_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_FILTER_TYPE, RFilter)) #define R_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_FILTER_TYPE, RFilterClass)) #define R_IS_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_FILTER_TYPE)) #define R_IS_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_FILTER_TYPE)) #define R_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ R_FILTER_TYPE, RFilterClass)) typedef struct _RFilter RFilter; typedef struct _RFilterClass RFilterClass; typedef struct _RFilterPrivate RFilterPrivate; struct _RFilter { GObject parent; RFilterPrivate* priv; }; struct _RFilterClass { GObjectClass parent; }; GType r_filter_get_type (void); RFilter* r_filter_new (void); void r_filter_free (RFilter* filter); RFilter* r_filter_copy (RFilter* filter); void r_filter_add_pattern (RFilter* filter, gchar* pattern); gboolean r_filter_delete_pattern (RFilter* filter, gchar* pattern); void r_filter_reset (RFilter* filter); gchar* r_filter_get_pattern (RFilter* filter); gchar* r_filter_get_next_pattern (RFilter* filter); #endif rubrica-2.0/libral/timeout.h0000644000175000017500000000462710620101436014702 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: timeout.h * * * Copyright (C) 2000-2001 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __R_TIMEOUT_H #define __R_TIMEOUT_H #include #include #define R_TIMEOUT_TYPE (r_timeout_get_type()) #define R_TIMEOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_TIMEOUT_TYPE, RTimeout)) #define R_TIMEOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_TIMEOUT_TYPE, RTimeoutClass)) #define IS_R_TIMEOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_TIMEOUT_TYPE)) #define IS_R_TIMEOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_TIMEOUT_TYPE)) #define R_TIMEOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ R_TIMEOUT_TYPE, RTimeoutClass)) typedef struct _RTimeout RTimeout; typedef struct _RTimeoutClass RTimeoutClass; typedef struct _RTimeoutPrivate RTimeoutPrivate; struct _RTimeout { GObject parent; guint32 wait_time; RTimeoutPrivate* private; }; struct _RTimeoutClass { GObjectClass parent; /* signals */ void (*timeout_signal) (RTimeout* timeout); }; GType r_timeout_get_type (void); RTimeout* r_timeout_new (guint32 time); void r_timeout_free (RTimeout* timeout); void r_timeout_start (RTimeout* timeout); void r_timeout_enable (RTimeout* timeout); void r_timeout_disable (RTimeout* timeout); void r_timeout_restart (RTimeout* timeout, guint32 time); gboolean r_timeout_is_running (RTimeout* timeout); #endif rubrica-2.0/libral/net.h0000644000175000017500000000534610620101436014001 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: net.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_NET_ADDRESS_H #define _R_NET_ADDRESS_H #include #include #define R_NET_ADDRESS_TYPE (r_net_address_get_type()) #define R_NET_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_NET_ADDRESS_TYPE, RNetAddress)) #define R_NET_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_NET_ADDRESS_TYPE, RNetAddressClass)) #define IS_R_NET_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_NET_ADDRESS_TYPE)) #define IS_R_NET_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_NET_ADDRESS_TYPE)) #define R_NET_ADDRESS_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_NET_ADDRESS_TYPE, RNetAddressClass)) typedef struct _RNetAddress RNetAddress; typedef struct _RNetAddressClass RNetAddressClass; typedef struct _RNetAddressPrivate RNetAddressPrivate; typedef enum { R_NET_ADDRESS_WEB = 0, R_NET_ADDRESS_EMAIL, R_NET_ADDRESS_EKIGA, R_NET_ADDRESS_IRC, R_NET_ADDRESS_IRC_AIM, R_NET_ADDRESS_IRC_ICQ, R_NET_ADDRESS_IRC_JABBER, R_NET_ADDRESS_IRC_YAHOO, R_NET_ADDRESS_IRC_MSN, R_NET_ADDRESS_WORK_WEB, R_NET_ADDRESS_WORK_EMAIL, R_NET_ADDRESS_UNKNOWN } RNetAddressType; struct _RNetAddress { GObject parent; RNetAddressPrivate* private; }; struct _RNetAddressClass { GObjectClass parent; }; GType r_net_address_get_type (void); RNetAddress* r_net_address_new (void); void r_net_address_free (RNetAddress *net); gboolean r_net_address_search (RNetAddress *net, const gchar* str); RNetAddress* r_net_address_copy (RNetAddress *net); gchar* r_net_address_decode_type (RNetAddressType type); RNetAddressType r_net_address_encode_type (gchar* type); #endif rubrica-2.0/libral/telephone.h0000644000175000017500000000544610620101436015177 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: telephone.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_TELEPHONE_H #define _R_TELEPHONE_H #include #include #define R_TELEPHONE_TYPE (r_telephone_get_type()) #define R_TELEPHONE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_TELEPHONE_TYPE, RTelephone)) #define R_TELEPHONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_TELEPHONE_TYPE, RTelephoneClass)) #define IS_R_TELEPHONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_TELEPHONE_TYPE)) #define IS_R_TELEPHONE_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ R_TELEPHONE_TYPE)) #define R_TELEPHONE_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_TELEPHONE_TYPE, RTelephoneClass)) typedef struct _RTelephone RTelephone; typedef struct _RTelephoneClass RTelephoneClass; typedef struct _RTelephonePrivate RTelephonePrivate; typedef enum { R_TELEPHONE_HOME = 0, R_TELEPHONE_WORK, R_TELEPHONE_FAX, R_TELEPHONE_CELLPHONE, R_TELEPHONE_PAGER, R_TELEPHONE_OTHER, R_TELEPHONE_OPERATOR, R_TELEPHONE_GREEN, R_TELEPHONE_CUSTOMER_CARE, R_TELEPHONE_UNKNOWN, R_TELEPHONE_INVALID } RTelephoneType; struct _RTelephone { GObject parent; RTelephonePrivate* private; }; struct _RTelephoneClass { GObjectClass parent; }; GType r_telephone_get_type (void); RTelephone* r_telephone_new (void); void r_telephone_free (RTelephone *telephone); gboolean r_telephone_search (RTelephone *telephone, const gchar* str); RTelephone* r_telephone_copy (RTelephone *telephone); RTelephoneType r_telephone_lookup_str2enum (gchar* str); gchar* r_telephone_lookup_enum2str (RTelephoneType type); gchar* r_telephone_lookup_enum2lbl (RTelephoneType type); gchar* r_telephone_lookup_str2lbl (gchar* str); #endif rubrica-2.0/libral/TODO0000644000175000017500000000130010620101436013514 0ustar seb128seb128- Makefile modificare il makefile, aggiungere --enable-gtk-doc per poter richiamare make distcheck e compilare la documentazione - r_abook_delete_card_with_refs(RAbook* abook, RCard* card) cancellare la scheda e i riferimenti alla schesa corrente dalle altre - r_plugin_manager_scan_directory gestione errore in caso di errore nella lettura della dir dei plugin - plugin_fini (vcard) - plugin_fini (rubrica) - plugin_fini (csv) da scrivere - plugin_init (vcard) - plugin_init (rubrica) - plugin_init (csv) gestione handler overvwite - load.c gestione errore nella lettura - r_vcard_build_card gestione campi condivisi - RVCardType tokens[] = aggiungere estensioni per evolution rubrica-2.0/libral/timeout.c0000644000175000017500000001322210620101436014664 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: timeout.c * * Copyright (C) 2000-2001 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "timeout.h" struct _RTimeoutPrivate { gint timeout; gboolean have_timeout; gboolean dispose_has_run; }; static void r_timeout_class_init (RTimeoutClass* klass); static void r_timeout_init (RTimeout* obj); static void r_timeout_dispose (RTimeout* obj); static void r_timeout_finalize (RTimeout* obj); static gboolean r_timeout_emit_signal (RTimeout *timeout); /* signals enumeration */ enum { TIMEOUT, /* signal: timeout, countdown is done */ LAST_SIGNAL }; static guint r_timeout_signals[LAST_SIGNAL] = {0}; GType r_timeout_get_type() { static GType r_timeout_type = 0; if (!r_timeout_type) { static const GTypeInfo r_timeout_info = { sizeof(RTimeoutClass), NULL, NULL, (GClassInitFunc) r_timeout_class_init, NULL, NULL, sizeof(RTimeout), 0, (GInstanceInitFunc) r_timeout_init }; r_timeout_type = g_type_register_static (G_TYPE_OBJECT, "RTimeout", &r_timeout_info, 0); } return r_timeout_type; } static void r_timeout_class_init(RTimeoutClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_timeout_dispose; class->finalize = (GObjectFinalizeFunc) r_timeout_finalize; r_timeout_signals[TIMEOUT] = g_signal_new("timeout", R_TIMEOUT_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RTimeoutClass, timeout_signal), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); } static void r_timeout_init(RTimeout* timeout) { timeout->private = g_new(RTimeoutPrivate, 1); timeout->private->timeout = 0; timeout->private->have_timeout = FALSE; timeout->private->dispose_has_run = FALSE; } static void r_timeout_dispose (RTimeout* timeout) { g_return_if_fail(IS_R_TIMEOUT(timeout)); if (timeout->private->dispose_has_run) return; timeout->private->dispose_has_run = TRUE; } static void r_timeout_finalize (RTimeout* timeout) { g_return_if_fail(IS_R_TIMEOUT(timeout)); g_free(timeout->private); timeout->private = NULL; } static gboolean r_timeout_emit_signal(RTimeout *timeout) { g_return_val_if_fail(IS_R_TIMEOUT(timeout), FALSE); if (timeout->private->have_timeout) { g_signal_emit_by_name(timeout, "timeout", G_TYPE_NONE); return TRUE; } return FALSE; } /* Public Functions */ /** * r_timeout_new * @time: time * * Create a new timer. * Timer will wait "time" seconds, when a "timeout" signal is emitted. * If time is 0, then timer will wait 15 minutes, before emit signal. * * returns: a #RTimeout* */ RTimeout* r_timeout_new(guint32 time) { RTimeout* timeout; timeout = g_object_new(r_timeout_get_type(), NULL); timeout->wait_time = time; return (RTimeout*) timeout; } /** * r_timeout_free * @timeout: a #RTimeout * * free the #RTimeout object */ void r_timeout_free(RTimeout *timeout) { g_return_if_fail(IS_R_TIMEOUT(timeout)); g_object_unref(timeout); } /** * r_timeout_start * @timeout: #RTimeout * * start the timeout object */ void r_timeout_start(RTimeout *timeout) { g_return_if_fail(IS_R_TIMEOUT(timeout)); /* default time to wait is 15 minutes */ if (timeout->wait_time == 0) timeout->wait_time = 15; /* wait_time *= 60000 (1 minute = 60 seconds * 1000 microseconds) */ timeout->wait_time *= 60000; timeout->private->timeout = g_timeout_add(timeout->wait_time, (GSourceFunc) r_timeout_emit_signal, timeout); timeout->private->have_timeout = TRUE; } /** * r_timeout_enable * @timeout: a #RTimeout * * enable the timeout */ void r_timeout_enable(RTimeout *timeout) { g_return_if_fail(IS_R_TIMEOUT(timeout)); r_timeout_start(timeout); } /** * r_timeout_disable * @timeout: a #RTimeout * * disable the timeout */ void r_timeout_disable(RTimeout *timeout) { g_return_if_fail(IS_R_TIMEOUT(timeout)); if (timeout->private->timeout != 0) g_source_remove(timeout->private->timeout); else return; timeout->private->timeout = 0; timeout->private->have_timeout = FALSE; } /** * r_timeout_restart * @timeout: a #RTimeout * @time: anew time * * restart the timeout, but waiting "time" seconds */ void r_timeout_restart(RTimeout *timeout, guint32 time) { g_return_if_fail(IS_R_TIMEOUT(timeout)); r_timeout_disable(timeout); timeout->wait_time = time; r_timeout_enable(timeout); } /** * r_timeout_is_running * @timeout: a #RTimeout * * check if timer is running or is disabled * * returns: a gboolean, %TRUE if timeout is running, %FALSE otherwise. */ gboolean r_timeout_is_running(RTimeout* timeout) { g_return_val_if_fail(IS_R_TIMEOUT(timeout), FALSE); return timeout->private->have_timeout; } rubrica-2.0/libral/company.c0000644000175000017500000002272710620101436014656 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: company.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "types.h" #include "card.h" #include "company.h" #include "date.h" #include "group.h" #include "address.h" #include "net.h" #include "telephone.h" #include "utils.h" enum { PROP_0, COMPANY_NAME, COMPANY_LOGO, COMPANY_VAT, COMPANY_NOTES }; struct _RCompanyCardPrivate { gchar* company_name; gchar* logo; gchar* vat; /* VAT Value added tax (iva)/codice fiscale */ gchar* notes; gboolean dispose_has_run; }; static void r_company_card_class_init (RCompanyCardClass* klass); static void r_company_card_init (RCompanyCard* obj); static void r_company_card_dispose (RCompanyCard* obj); static void r_company_card_finalize (RCompanyCard* obj); static void r_company_card_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_company_card_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void r_company_card_free (RCompanyCard* self); static gboolean r_company_card_search (RCompanyCard* self, const gchar* str); RCompanyCard* r_company_card_copy (RCompanyCard* self); RInfos* r_company_get_infos (RCompanyCard* self); static RCardClass* parent_class = NULL; GType r_company_card_get_type() { static GType company_card_type = 0; if (!company_card_type) { static const GTypeInfo company_card_info = { sizeof(RCompanyCardClass), NULL, NULL, (GClassInitFunc) r_company_card_class_init, NULL, NULL, sizeof(RCompanyCard), 0, (GInstanceInitFunc) r_company_card_init }; company_card_type = g_type_register_static (R_CARD_TYPE, "RCompanyCard", &company_card_info, 0); } return company_card_type; } static void r_company_card_class_init(RCompanyCardClass* klass) { GObjectClass *class; GParamSpec* pspec; parent_class = R_CARD_CLASS(klass); parent_class->free = (gpointer) r_company_card_free; parent_class->copy = (gpointer) r_company_card_copy; parent_class->search = (gpointer) r_company_card_search; parent_class->get_infos = (gpointer) r_company_get_infos; parent_class->print_card = NULL; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_company_card_dispose; class->finalize = (GObjectFinalizeFunc) r_company_card_finalize; class->set_property = r_company_card_set_property; class->get_property = r_company_card_get_property; /** * RCompanyCard:company-name * * the name of the company */ pspec = g_param_spec_string("company-name", "company name", "the name of the company", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, COMPANY_NAME, pspec); /** * RCompanyCard:notes * * notes about the company */ pspec = g_param_spec_string("company-logo", "logo", "company's logo", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, COMPANY_LOGO, pspec); // FIXME: trovare nome migliore /** * RCompanyCard:pi * * Partita Iva (Codice Fiscale) * Note for translators and/or others: I need the english translation * of "partita iva" and "codice fiscale". * partita iva is the code used by companies to pay taxes (iva == VAT) * codice fiscale is the code associated to peoples */ pspec = g_param_spec_string("company-vat", "VAT or Taxpayer number", "Value added tax or Taxpayer number", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, COMPANY_VAT, pspec); /** * RCompanyCard:notes * * notes about the company */ pspec = g_param_spec_string("company-notes", "notes", "company's notes", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, COMPANY_NOTES, pspec); } static void r_company_card_init(RCompanyCard* self) { self->priv = g_new(RCompanyCardPrivate, 1); self->priv->company_name = NULL; self->priv->logo = NULL; self->priv->vat = NULL; self->priv->notes = NULL; self->priv->dispose_has_run = FALSE; } static void r_company_card_dispose (RCompanyCard* self) { g_return_if_fail(IS_R_COMPANY_CARD(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void r_company_card_finalize (RCompanyCard* self) { g_return_if_fail(IS_R_COMPANY_CARD(self)); r_utils_free_string(self->priv->company_name); r_utils_free_string(self->priv->logo); r_utils_free_string(self->priv->vat); r_utils_free_string(self->priv->notes); } static void r_company_card_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RCompanyCard* self = (RCompanyCard*) obj; switch (property_id) { case COMPANY_NAME: g_free(self->priv->company_name); self->priv->company_name = g_value_dup_string(value); break; case COMPANY_LOGO: g_free(self->priv->logo); self->priv->logo = g_value_dup_string(value); break; case COMPANY_VAT: g_free(self->priv->vat); self->priv->vat = g_value_dup_string(value); break; case COMPANY_NOTES: g_free(self->priv->notes); self->priv->notes = g_value_dup_string(value); break; default: break; } } static void r_company_card_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RCompanyCard* self = (RCompanyCard*) obj; switch (property_id) { case COMPANY_NAME: g_value_set_string(value, self->priv->company_name); break; case COMPANY_LOGO: g_value_set_string(value, self->priv->logo); break; case COMPANY_VAT: g_value_set_string(value, self->priv->vat); break; case COMPANY_NOTES: g_value_set_string(value, self->priv->notes); break; default: break; } } /* private functions */ static void r_company_card_free(RCompanyCard* self) { g_return_if_fail(IS_R_COMPANY_CARD(self)); g_object_unref(G_OBJECT(self)); } RCompanyCard* r_company_card_copy (RCompanyCard* self) { RCompanyCard* new; gchar *name, *logo, *vat, *notes; g_return_val_if_fail(IS_R_COMPANY_CARD(self), NULL); new = r_company_card_new(); g_object_get(self, "company-name", &name, "company-logo", &logo, "company-vat", &vat, "company-notes", ¬es, NULL); g_object_set(new, "company-name", name, "company-logo", logo, "company-vat", vat, "company-notes", notes, NULL); return new; } RInfos* r_company_get_infos (RCompanyCard* self) { RInfos* infos; infos = g_malloc0(sizeof(RInfos)); if (!infos) g_error("Unable to get enougth memory"); g_object_get(self, "company-name", &infos->first, NULL); infos->last = infos->prof = infos->assignment = g_strdup(NULL); return infos; } /* Public functions */ /** * r_company_card_new * * create a new #RCompanyCard * * returns: a #RCompanyCard* */ RCompanyCard* r_company_card_new(void) { RCompanyCard* company; company = g_object_new(r_company_card_get_type(), "card-type", "company", NULL); return company; } static gboolean r_company_card_search (RCompanyCard* self, const gchar* str) { gchar* name; gpointer data; g_object_get(R_CARD(self), "card-name", &name, NULL); if (g_strrstr (name, str)) // cerca l'ago (needle/str) // nel pagliaio (name/haystack) return TRUE; if (g_strrstr(self->priv->company_name, str)) return TRUE; if (g_strrstr(self->priv->logo, str)) return TRUE; if (g_strrstr(self->priv->vat, str)) return TRUE; if (g_strrstr(self->priv->notes, str)) return TRUE; /* search str in card's addresses */ r_card_reset_address(R_CARD(self)); data = r_card_get_address(R_CARD(self)); for (; data; data = r_card_get_next_address(R_CARD(self))) if (r_address_search(R_ADDRESS(data), str)) return TRUE; /* search str in card's net addresses */ r_card_reset_net_address(R_CARD(self)); data = r_card_get_net_address(R_CARD(self)); for (; data; data = r_card_get_next_net_address(R_CARD(self))) if (r_net_address_search(R_NET_ADDRESS(data), str)) return TRUE; /* search str in card's telephone */ r_card_reset_telephone(R_CARD(self)); data = r_card_get_telephone(R_CARD(self)); for (; data; data = r_card_get_next_telephone(R_CARD(self))) if (r_telephone_search(R_TELEPHONE(data), str)) return TRUE; return FALSE; } rubrica-2.0/libral/filter.c0000644000175000017500000002205210637703404014477 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: groups.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "filter.h" #include "utils.h" enum { FILTER_PROP_0, FILTER_NAME, FILTER_MIME, FILTER_EXTENSION, }; struct _RFilterPrivate { gchar* name; gchar* mime; gchar* extension; // extension added to file's name GList* pattern; // extensions' list GList* iter; gboolean dispose_has_run; }; #define R_FILTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ R_FILTER_TYPE, RFilterPrivate)) static void r_filter_class_init (RFilterClass* klass); static void r_filter_init (RFilter* obj); static void r_filter_dispose (RFilter* obj); static void r_filter_finalize (RFilter* obj); static void r_filter_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_filter_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_filter_get_type() { static GType filter_type = 0; if (!filter_type) { static const GTypeInfo filter_info = { sizeof(RFilterClass), NULL, NULL, (GClassInitFunc) r_filter_class_init, NULL, NULL, sizeof(RFilter), 0, (GInstanceInitFunc) r_filter_init }; filter_type = g_type_register_static (G_TYPE_OBJECT, "RFilter", &filter_info, 0); } return filter_type; } static void r_filter_class_init(RFilterClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_filter_dispose; class->finalize = (GObjectFinalizeFunc) r_filter_finalize; class->set_property = r_filter_set_property; class->get_property = r_filter_get_property; g_type_class_add_private (klass, sizeof(RFilterPrivate)); /* class property */ /** * RFilter:filter-name * * the name of the filter */ pspec = g_param_spec_string("filter-name", "filter name", "the name of the filter", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, FILTER_NAME, pspec); /** * RFilter:filter-extension * * extension added to file' name */ pspec = g_param_spec_string("filter-extension", "filter extension", "file's extension", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, FILTER_EXTENSION, pspec); /** * RFilter:filter-mime * * the name of the filter */ pspec = g_param_spec_string("filter-mime", "filter mime", "file's mime type", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, FILTER_MIME, pspec); } static void r_filter_init(RFilter* self) { self->priv = R_FILTER_GET_PRIVATE(self); self->priv->name = NULL; self->priv->mime = NULL; self->priv->extension = NULL; self->priv->pattern = NULL; self->priv->dispose_has_run = FALSE; } static void r_filter_dispose (RFilter* self) { GList* l; RFilterPrivate* priv; g_return_if_fail(R_IS_FILTER(self)); priv = R_FILTER_GET_PRIVATE(self); if (priv->dispose_has_run) return; g_free(priv->name); g_free(priv->extension); g_free(priv->mime); for (l = priv->pattern; l; l = l->next) { if (l->data) g_free(l->data); } g_list_free(priv->pattern); priv->pattern = NULL; priv->dispose_has_run = TRUE; } static void r_filter_finalize (RFilter* self) { g_return_if_fail(R_IS_FILTER(self)); } static void r_filter_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RFilter* self = (RFilter*) obj; RFilterPrivate* priv = R_FILTER_GET_PRIVATE(self); switch (property_id) { case FILTER_NAME: g_free(priv->name); priv->name = g_value_dup_string(value); break; case FILTER_EXTENSION: g_free(priv->extension); priv->extension = g_value_dup_string(value); break; case FILTER_MIME: g_free(priv->mime); priv->mime = g_value_dup_string(value); break; default: break; } } static void r_filter_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RFilter* self = (RFilter*) obj; RFilterPrivate* priv = R_FILTER_GET_PRIVATE(self); switch (property_id) { case FILTER_NAME: g_value_set_string(value, priv->name); break; case FILTER_EXTENSION: g_value_set_string(value, priv->extension); break; case FILTER_MIME: g_value_set_string(value, priv->mime); break; default: break; } } /* ************************************* Public */ /** * r_filter_new * * create a new #RFilter * * returns: a RFilter* */ RFilter* r_filter_new(void) { RFilter* filter; filter = g_object_new(r_filter_get_type(), NULL); return filter; } /** * r_filter_free * @filter: a #RFilter * * free memory */ void r_filter_free(RFilter* filter) { g_return_if_fail(R_IS_FILTER(filter)); g_object_unref(filter); } /** * r_filter_copy * @filter: a #RFilter * * copy the given #RFilter * * Returns: a new #RFilter or %NULL if an error occurred */ RFilter* r_filter_copy (RFilter* filter) { RFilter* new; gchar *name, *ext, *mime; gchar* pattern; g_return_val_if_fail(R_IS_FILTER(filter), NULL); new = r_filter_new(); g_object_get(filter, "filter-name", &name, "filter-extension", &ext, "filter-mime", &mime, NULL); g_object_set(new, "filter-name", name, "filter-extension", ext, "filter-mime", mime, NULL); r_filter_reset(filter); pattern = r_filter_get_pattern(filter); for (; pattern; pattern = r_filter_get_next_pattern(filter)) r_filter_add_pattern(new, g_strdup(pattern)); return new; } /** * r_filter_add_pattern * @filter: a #RFilter * @pattern: a gchar* * * append the given pattern to the filter's list */ void r_filter_add_pattern (RFilter* filter, gchar* pattern) { RFilterPrivate* priv; g_return_if_fail(R_IS_FILTER(filter)); g_return_if_fail(pattern != NULL); priv = R_FILTER_GET_PRIVATE(filter); priv->pattern = g_list_append(priv->pattern, pattern); if (!priv->iter) priv->iter = priv->pattern; } /** * r_filter_delete_pattern * @filter: a #RFilter * @pattern: a gchar* * * delete the given pattern from the filter's list * * Returns: %TRUE if pattern is succesfully deleted, %FALSE otherwise */ gboolean r_filter_delete_pattern(RFilter* filter, gchar* pattern) { RFilterPrivate* priv; g_return_val_if_fail(R_IS_FILTER(filter), FALSE); g_return_val_if_fail(pattern != NULL, FALSE); priv = R_FILTER_GET_PRIVATE(filter); priv->iter = priv->pattern; for (; priv->iter; priv->iter = priv->iter->next) { if (g_ascii_strcasecmp(priv->iter->data, pattern) == 0) { priv->pattern = g_list_remove_link(priv->pattern, priv->iter); g_free(priv->iter->data); g_list_free_1(priv->iter); priv->iter = NULL; return TRUE; } } return FALSE; } /** * r_filter_reset * @filter: a #RFilter * * reset the private filter's iterator */ void r_filter_reset(RFilter* filter) { RFilterPrivate* priv; g_return_if_fail(R_IS_FILTER(filter)); priv = R_FILTER_GET_PRIVATE(filter); priv->iter = priv->pattern; } /** * r_filter_get_pattern * @filter: a #RFilter * * get the first filter's pattern * * Returns: a gchar* or NULL if filter doesn't have patterns */ gchar* r_filter_get_pattern(RFilter* filter) { RFilterPrivate* priv; g_return_val_if_fail(R_IS_FILTER(filter), NULL); priv = R_FILTER_GET_PRIVATE(filter); if (priv->iter) return (gchar*) priv->iter->data; return NULL; } /** * r_filter_get_next_pattern * @filter: a #RFilter * * get the next filter's pattern * * Returns: a gchar* or NULL if filter doesn't have more patterns */ gchar* r_filter_get_next_pattern(RFilter* filter) { RFilterPrivate* priv; g_return_val_if_fail(R_IS_FILTER(filter), NULL); priv = R_FILTER_GET_PRIVATE(filter); priv->iter = g_list_next(priv->iter); if (priv->iter) return (gchar*) priv->iter->data; else priv->iter = priv->pattern; return NULL; } rubrica-2.0/libral/group_box.h0000644000175000017500000000651010620101436015211 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: groups.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_GROUP_BOX_H #define _R_GROUP_BOX_H #include #include #include "group.h" #define R_GROUP_BOX_TYPE (r_group_box_get_type()) #define R_GROUP_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_GROUP_BOX_TYPE, RGroupBox)) #define R_GROUP_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_GROUP_BOX_TYPE, RGroupBoxClass)) #define IS_R_GROUP_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_GROUP_BOX_TYPE)) #define IS_R_GROUP_BOX_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ R_GROUP_BOX_TYPE)) #define R_GROUP_BOX_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_GROUP_BOX_TYPE, RGroupBoxClass)) typedef struct _RGroupBox RGroupBox; typedef struct _RGroupBoxClass RGroupBoxClass; typedef struct _RGroupBoxPrivate RGroupBoxPrivate; struct _RGroupBox { GObject parent; RGroupBoxPrivate* priv; }; struct _RGroupBoxClass { GObjectClass parent; void (*group_added) (RGroupBox* box, gpointer group); void (*group_removed) (RGroupBox* box, gint id); void (*group_renamed) (RGroupBox* box, gpointer group); }; GType r_group_box_get_type (void); RGroupBox* r_group_box_new (void); void r_group_box_free (RGroupBox* box); gboolean r_group_box_is_empty (RGroupBox* box); gpointer r_group_box_find (RGroupBox* box, gchar* group_name); gboolean r_group_box_owns_group (RGroupBox* box, const gchar* group_name); gboolean r_group_box_add_group (RGroupBox* box, RGroup* group); gboolean r_group_box_rename_group (RGroupBox* box, gchar* oldname, gchar* newname); void r_group_box_disable_all (RGroupBox* box); void r_group_box_enable_group (RGroupBox* box, RGroup* group); void r_group_box_disable_group (RGroupBox* box, RGroup* group); gboolean r_group_box_delete_group (RGroupBox* box, RGroup* group); gboolean r_group_box_delete_group_by_name (RGroupBox* box, gchar* name); GList* r_group_box_find_groups_owned_by (RGroupBox* box, const gchar* owner); void r_group_box_reset (RGroupBox* box); RGroup* r_group_box_get_group (RGroupBox* box); RGroup* r_group_box_get_next_group (RGroupBox* box); RGroup* r_group_box_get_prev_group (RGroupBox* box); RGroupBox* r_group_box_merge_boxes (RGroupBox* box, RGroupBox* second); #endif rubrica-2.0/libral/notes.h0000644000175000017500000000627110620101436014341 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: notes.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_NOTES_H #define _R_NOTES_H #include #include #include #include "date.h" #define R_NOTES_TYPE (r_notes_get_type()) #define R_NOTES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_NOTES_TYPE, RNotes)) #define R_NOTES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_NOTES_TYPE, RNotesClass)) #define IS_R_NOTES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_NOTES_TYPE)) #define IS_R_NOTES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_NOTES_TYPE)) #define R_NOTES_GET_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_NOTES_TYPE, RNotesClass)) typedef struct _RNotes RNotes; typedef struct _RNotesClass RNotesClass; typedef struct _RNotesPrivate RNotesPrivate; struct _RNotes { GObject parent; RNotesPrivate* priv; }; struct _RNotesClass { GObjectClass parent_class; }; GType r_notes_get_type (void); RNotes* r_notes_new (void); void r_notes_free (RNotes* notes); gboolean r_notes_search (RNotes* notes, const gchar* str); RNotes* r_notes_copy (RNotes* notes); /* set */ void r_notes_set_know_birthday (RNotes* notes, gboolean know); void r_notes_set_know_anniversary (RNotes* notes, gboolean know); void r_notes_set_birthday (RNotes* notes, gint day, gint month, gint year); void r_notes_set_anniversary (RNotes* notes, gint day, gint month, gint year); /* get */ RDate* r_notes_get_birthday (RNotes* notes); RDate* r_notes_get_anniversary (RNotes* notes); gboolean r_notes_have_data (RNotes* notes); gboolean r_notes_know_birthday (RNotes* notes); gboolean r_notes_know_anniversary (RNotes* notes); gchar* r_notes_get_birth_day (RNotes* notes); gchar* r_notes_get_birth_month (RNotes* notes); gchar* r_notes_get_birth_year (RNotes* notes); gchar* r_notes_get_anniversary_day (RNotes* notes); gchar* r_notes_get_anniversary_month (RNotes* notes); gchar* r_notes_get_anniversary_year (RNotes* notes); gchar* r_notes_get_birth_date (RNotes* notes); gchar* r_notes_get_anniversary_date (RNotes* notes); void r_notes_append_other_notes (RNotes* notes, gchar* other_note); #endif rubrica-2.0/libral/address.c0000644000175000017500000002744610620101436014640 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: address.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "address.h" #include "lookup.h" #include "utils.h" /* Property enumeration */ enum { ADDRESS_PROP_0, ADDRESS_TYPE, ADDRESS_STREET, ADDRESS_NUMBER, ADDRESS_CITY, ADDRESS_ZIP, ADDRESS_PROVINCE, ADDRESS_STATE, ADDRESS_COUNTRY }; struct _RAddressPrivate { gint type; gchar* street; gchar* number; gchar* city; gchar* zip; gchar* province; gchar* state; gchar* country; gboolean dispose_has_run; }; static RLookupTable table[] = { {"pref", N_("preferred"), R_ADDRESS_PREF }, {"home", N_("residence"), R_ADDRESS_HOME }, {"work", N_("work"), R_ADDRESS_WORK }, {"parcel", N_("parcel"), R_ADDRESS_PARCEL }, {"postal", N_("postal"), R_ADDRESS_POSTAL }, {"intl", N_("international"), R_ADDRESS_INTL }, {"dom", N_("domestic"), R_ADDRESS_DOM }, {"registered", N_("registered office"), R_ADDRESS_COMPANY }, {"subsidiary", N_("subsidiary company"), R_ADDRESS_SUBSIDIARY}, {"other", N_("other"), R_ADDRESS_OTHER }, {"unknown", N_("unknown"), R_ADDRESS_UNKNOWN }, {NULL, NULL, R_ADDRESS_INVALID }, }; static void r_address_class_init (RAddressClass* klass); static void r_address_init (RAddress* obj); static void r_address_dispose (RAddress* obj); static void r_address_finalize (RAddress* obj); static void r_address_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_address_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_address_get_type() { static GType address_type = 0; if (!address_type) { static const GTypeInfo address_info = { sizeof(RAddressClass), NULL, NULL, (GClassInitFunc) r_address_class_init, NULL, NULL, sizeof(RAddress), 0, (GInstanceInitFunc) r_address_init }; address_type = g_type_register_static (G_TYPE_OBJECT, "RAddress", &address_info, 0); } return address_type; } static void r_address_class_init(RAddressClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_address_dispose; class->finalize = (GObjectFinalizeFunc) r_address_finalize; class->set_property = r_address_set_property; class->get_property = r_address_get_property; /* class property */ /** * RAddress:address-type: * * defines the address's type. See #RAddressType for valid values */ pspec = g_param_spec_int("address-type", "address's type", "store the address's type, i.e. " "R_ADDRESS_PREF or R_ADDRESS_WORK", R_ADDRESS_PREF, R_ADDRESS_INVALID, R_ADDRESS_UNKNOWN, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_TYPE, pspec); /** * RAddress:street: * * the address's street */ pspec = g_param_spec_string("street", "address's street", "the address's street", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_STREET, pspec); /** * RAddress:address-number: * * the street number */ pspec = g_param_spec_string("street-number", "the street number", "the street number", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_NUMBER, pspec); /** * RAddress:city: * * the address's city */ pspec = g_param_spec_string("city", "the address's city", "the address's city", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_CITY, pspec); /** * RAddress:zip: * * the postal code */ pspec = g_param_spec_string("zip", "postal code", "the postal code", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_ZIP, pspec); /** * RAddress:province: * * the address's province (example: Rm (Rome), Mi (Milan) , Na (Naples) ...) */ pspec = g_param_spec_string("province", "province", "the address's province", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_PROVINCE, pspec); /** * RAddress:state: * * the address's state (examples: UE, USA, ...) */ pspec = g_param_spec_string("state", "the state", "the state", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_STATE, pspec); /** * RAddress:country: * * the address's country (example: Italy, France, ...) */ pspec = g_param_spec_string("country", "the country", "the country", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ADDRESS_COUNTRY, pspec); } static void r_address_init(RAddress* self) { self->private = g_new(RAddressPrivate, 1); self->private->dispose_has_run = FALSE; self->private->street = NULL; self->private->number = NULL; self->private->city = NULL; self->private->zip = NULL; self->private->province = NULL; self->private->state = NULL; self->private->country = NULL; } static void r_address_dispose (RAddress* self) { g_return_if_fail(IS_R_ADDRESS(self)); if (self->private->dispose_has_run) return; self->private->dispose_has_run = TRUE; } static void r_address_finalize (RAddress* self) { g_return_if_fail(IS_R_ADDRESS(self)); r_utils_free_string(self->private->street); r_utils_free_string(self->private->number); r_utils_free_string(self->private->city); r_utils_free_string(self->private->zip); r_utils_free_string(self->private->province); r_utils_free_string(self->private->state); r_utils_free_string(self->private->country); g_free(self->private); self->private = NULL; } static void r_address_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RAddress* self = (RAddress*) obj; switch (property_id) { case ADDRESS_TYPE: self->private->type = g_value_get_int(value); break; case ADDRESS_STREET: g_free(self->private->street); self->private->street = g_value_dup_string(value); break; case ADDRESS_NUMBER: g_free(self->private->number); self->private->number = g_value_dup_string(value); break; case ADDRESS_CITY: g_free(self->private->city); self->private->city = g_value_dup_string(value); break; case ADDRESS_ZIP: g_free(self->private->zip); self->private->zip = g_value_dup_string(value); break; case ADDRESS_PROVINCE: g_free(self->private->province); self->private->province = g_value_dup_string(value); break; case ADDRESS_STATE: g_free(self->private->state); self->private->state = g_value_dup_string(value); break; case ADDRESS_COUNTRY: g_free(self->private->country); self->private->country = g_value_dup_string(value); break; default: break; } } static void r_address_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RAddress* self = (RAddress*) obj; switch (property_id) { case ADDRESS_TYPE: g_value_set_int(value, self->private->type); break; case ADDRESS_STREET: g_value_set_string(value, self->private->street); break; case ADDRESS_NUMBER: g_value_set_string(value, self->private->number); break; case ADDRESS_CITY: g_value_set_string(value, self->private->city); break; case ADDRESS_ZIP: g_value_set_string(value, self->private->zip); break; case ADDRESS_PROVINCE: g_value_set_string(value, self->private->province); break; case ADDRESS_STATE: g_value_set_string(value, self->private->state); break; case ADDRESS_COUNTRY: g_value_set_string(value, self->private->country); break; default: break; } } /* **************** Public */ /** * r_address_new * * create a new #RAddress * * Returns: a #RAddress* */ RAddress* r_address_new(void) { RAddress* address; address = g_object_new(r_address_get_type(), NULL); return address; } /** * r_address_free * @address: a #RAddress * * free the #RAddress* */ void r_address_free(RAddress* address) { g_return_if_fail(IS_R_ADDRESS(address)); g_object_unref(address); } /** * r_address_copy * @address: a #RAddress * * copy the given #RAddress * * Returns: a new allocated #RAddress */ RAddress* r_address_copy (RAddress* address) { RAddress* new; RAddressType type; gchar *street, *number, *city; gchar *zip, *province, *state, *country; g_return_val_if_fail(IS_R_ADDRESS(address), NULL); new = r_address_new(); g_object_get(G_OBJECT(address), "address-type", &type, "street", &street, "street-number", &number, "city", &city, "zip", &zip, "province", &province, "state", &state, "country", &country, NULL); g_object_set(G_OBJECT(new), "address-type", type, "street", street, "street-number", number, "city", city, "zip", zip, "province", province, "state", state, "country", country, NULL); return new; } gboolean r_address_search (RAddress* address, const gchar* str) { g_return_val_if_fail(IS_R_ADDRESS(address), FALSE); g_return_val_if_fail(str != NULL, FALSE); if (g_strrstr(address->private->street, str)) return TRUE; if (g_strrstr(address->private->number, str)) return TRUE; if (g_strrstr(address->private->city, str)) return TRUE; if (g_strrstr(address->private->zip, str)) return TRUE; if (g_strrstr(address->private->province, str)) return TRUE; if (g_strrstr(address->private->state, str)) return TRUE; if (g_strrstr(address->private->country, str)) return TRUE; return FALSE; } /** * r_address_decode_type * @type: a #RAddressType * * decode the address type * * Returns: a gchar* */ gchar* r_address_lookup_enum2str (RAddressType type) { return r_lookup_table_enum2str(table, type); } /** * r_address_encode_type * @type: a gchar* * * encode the address type * * Returns: a RAddressType value or R_ADDRESS_UNKNOWN */ RAddressType r_address_lookup_str2enum (gchar* str) { return (RAddressType) r_lookup_table_str2enum(table, str); } gchar* r_address_lookup_enum2lbl (RAddressType type) { return r_lookup_table_enum2lbl(table, type); } gchar* r_address_lookup_str2lbl (gchar* str) { return r_lookup_table_str2lbl(table, str); } rubrica-2.0/libral/error.h0000644000175000017500000000342410620101436014337 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: error.h * * Copyright (C) 2000-2003 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_ERROR_H #define _R_ERROR_H typedef enum { NO_FILENAME = 0, FILE_EXIST, FILE_NOT_EXIST, FILE_NOT_OPENED, FILE_OPEN_SUCCESS, FILE_SAVE_SUCCESS, FILE_OPEN_FAIL, FILE_CSV_OPEN_FAIL, FILE_IMPORT_SUCCESS, NO_RUBRICA_DOC, UNKNOWN_FILEFORMAT, UNKNOWN_VERSION, UNKNOWN_DOC, UNKNOWN_HEADER, UNKNOWN_FIELD, UNREADABLE_NODE, UNREADABLE_PROPERTY, UNREADABLE_CALENDAR, INVALID_DATE, KEY_NOT_VALID, PARSING_DOC, SELECT_FILE, IMPORT_FILE, BAD_MODULE, MODULE_IS_NULL, NO_ITEM_MODULE, NO_CARD_FORM, CSV_INVALID, FILENAME_INVALID, WRITING_XML, WRITING_FILE, OVERWRITING, DELETE_NOT_ALLOWED, /* Group errors */ GROUP_DELETED, ERROR_DELETING_GROUP, MODIFY_NOT_ALLOWED, GROUP_MODIFIED, ERROR_MODIFYING_GROUP, UNKNOWN_MANAGER, UNKNOWN_GROUP, RUBRICA_VCARD_FILE_OPEN_SUCCESS, RUBRICA_VCARD_FILE_OPEN_FAIL, RUBRICA_VCARD_FILE_IMPORT_SUCCESS, NO_ERROR, } RError; #endif rubrica-2.0/libral/manager.c0000644000175000017500000001746310637703453014642 0ustar seb128seb128/* * file: manager.c * * * Copyright (C) 2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include "manager.h" #include "plugin.h" #include "types.h" struct _RPluginManagerPrivate { GList* plugins; GList* filters; GHashTable* table; gboolean dispose_has_run; }; typedef void (*RPluginInit) (RPlugin* plugin); #define R_PLUGIN_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ R_PLUGIN_MANAGER_TYPE, \ RPluginManagerPrivate)) static void r_plugin_manager_class_init (RPluginManagerClass* klass); static void r_plugin_manager_init (RPluginManager* obj); static void r_plugin_manager_dispose (RPluginManager* obj); static void r_plugin_manager_finalize (RPluginManager* obj); GType r_plugin_manager_get_type() { static GType manager_type = 0; if (!manager_type) { static const GTypeInfo manager_info = { sizeof(RPluginManagerClass), NULL, NULL, (GClassInitFunc) r_plugin_manager_class_init, NULL, NULL, sizeof(RPluginManager), 0, (GInstanceInitFunc) r_plugin_manager_init }; manager_type = g_type_register_static (G_TYPE_OBJECT, "PluginManager", &manager_info, 0); } return manager_type; } static void r_plugin_manager_class_init(RPluginManagerClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_plugin_manager_dispose; class->finalize = (GObjectFinalizeFunc) r_plugin_manager_finalize; g_type_class_add_private (klass, sizeof(RPluginManagerPrivate)); } static void r_plugin_manager_init(RPluginManager* self) { RFilter* filter; filter = r_filter_new(); g_object_set(filter, "filter-name", _("All files"), "filter-mime", "text/plain", NULL); r_filter_add_pattern(filter, "*"); self->priv = R_PLUGIN_MANAGER_GET_PRIVATE(self); self->priv->plugins = NULL; self->priv->filters = g_list_append(self->priv->filters, filter); self->priv->table = g_hash_table_new(g_str_hash, g_str_equal); self->priv->dispose_has_run = FALSE; } static void r_plugin_manager_dispose (RPluginManager* manager) { g_return_if_fail(R_IS_PLUGIN_MANAGER(manager)); if (manager->priv->dispose_has_run) return; manager->priv->dispose_has_run = TRUE; } static void r_plugin_manager_finalize (RPluginManager* manager) { g_return_if_fail(R_IS_PLUGIN_MANAGER(manager)); } /* Public */ /** * r_plugin_manager_new * * create a new plugin manager * * Returns: a #RPluginManager* */ RPluginManager* r_plugin_manager_new(void) { RPluginManager* manager; manager = g_object_new(r_plugin_manager_get_type(), NULL); return manager; } /** * r_plugin_manager_free * @manager: a #RPluginManager * * free the object */ void r_plugin_manager_free(RPluginManager* manager) { g_return_if_fail(R_IS_PLUGIN_MANAGER(manager)); g_object_unref(manager); } /** * r_plugin_manager_scan_directory * @manager: a #RPluginManager * @dirname: a gchar* * * scan the given directory lookinf for RAL's plugins */ void r_plugin_manager_scan_directory (RPluginManager* manager, gchar* dirname) { GDir* dir; GError* error; const gchar* file; RPlugin* plugin; RFilter* filter; RPluginManagerPrivate* priv; g_return_if_fail(R_IS_PLUGIN_MANAGER(manager)); priv = R_PLUGIN_MANAGER_GET_PRIVATE(manager); dir = g_dir_open(dirname, 0, &error); if (error) { // TODO } while ((file = g_dir_read_name(dir)) != NULL) { if (g_str_has_suffix(file, ".so")) { plugin = r_plugin_new(); if (r_manager_load_plugin(plugin, file)) { GList* filters = NULL, *l; priv->plugins = g_list_append(priv->plugins, plugin); filters = r_plugin_get_filters(plugin); for (l = filters; l; l = l->next) { filter = r_filter_copy(R_FILTER(l->data)); priv->filters = g_list_append(priv->filters, filter); } } else g_warning(_("\nerror loading plugin %s"), file); } } } /** * r_manager_load_plugin * @plugin: a #RPlugin * @file: a gchar* * * load the plugin from the given file * * Returns: %TRUE if plugin is successfully loaded, %FALSE otherwise */ gboolean r_manager_load_plugin(RPlugin* plugin, gchar* file) { GModule* module; RPluginInit plugin_init; RPluginInit plugin_fini; gchar* plugin_file; g_return_val_if_fail(R_IS_PLUGIN(plugin), FALSE); plugin_file = g_strdup_printf("%s/%s", LIBRAL_PLUGINS_DIR, file); if ((module = g_module_open(plugin_file, G_MODULE_BIND_LAZY)) == NULL) { g_free(plugin_file); g_error(_("Opening plugin %s"), file); return FALSE; } if (!g_module_symbol(module, "plugin_init", (gpointer *) &plugin_init)) { g_warning(_("\nCan't get initialization handle for %s plugin"), file); return FALSE; } if (!g_module_symbol(module, "plugin_fini", (gpointer *) &plugin_fini)) { g_warning(_("\nCan't get initialization handle for %s plugin"), file); return FALSE; } plugin_init(plugin); g_object_set(plugin, "plugin-filename", plugin_file, NULL); g_free(plugin_file); return TRUE; } /** * r_plugin_manager_how_many * @manager: a #RPluginManager * * returns the number of plugins that have been read * * Returns: a gint */ gint r_plugin_manager_how_many (RPluginManager* manager) { g_return_val_if_fail(R_IS_PLUGIN_MANAGER(manager), 0); return g_list_length(manager->priv->plugins); } /** * r_plugin_manager_get_nth_plugin * @manager: a #RPluginManager * @n: a gint * * get the n-th plugin * * Returns: a #RPlugin* or %NULL */ RPlugin* r_plugin_manager_get_nth_plugin (RPluginManager* manager, gint n) { g_return_val_if_fail(R_IS_PLUGIN_MANAGER(manager), NULL); g_return_val_if_fail(n >= 0, NULL); g_return_val_if_fail(n < g_list_length(manager->priv->plugins), NULL); return g_list_nth_data(manager->priv->plugins, n); } /** * r_plugin_manager_get_plugin * @manager: a #RPluginManager * @name: a gchar* * * get the plugin with the given name * * Returns: a #RPlugin* or %NULL if plugin is not found */ RPlugin* r_plugin_manager_get_plugin (RPluginManager* manager, const gchar* name) { GList *iter; g_return_val_if_fail(R_IS_PLUGIN_MANAGER(manager), NULL); g_return_val_if_fail(name != NULL, NULL); iter = manager->priv->plugins; for (; iter; iter = g_list_next(iter)) { RPlugin* plugin = (RPlugin*) iter->data;; gchar* plugin_name; if (plugin) { g_object_get(plugin, "plugin-name", &plugin_name, NULL); if (g_ascii_strcasecmp(plugin_name, name) == 0) return plugin; } } return NULL; } /** * r_plugin_manager_get_all_filters * @manager: a #RPluginManager * * get all filters mamaged by installed plugin * * Returns: a #GList of #RFilters or NULL */ GList* r_plugin_manager_get_all_filters (RPluginManager* manager) { g_return_val_if_fail(R_IS_PLUGIN_MANAGER(manager), NULL); return manager->priv->filters; } rubrica-2.0/libral/personal.c0000644000175000017500000002751410620101440015025 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: personal.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "types.h" #include "card.h" #include "personal.h" #include "contact.h" #include "work.h" #include "notes.h" #include "utils.h" /* property enumeration enum { PERSONAL_CONTACT = 1, PERSONAL_WORK, PERSONAL_NOTES }; */ struct _RPersonalCardPrivate { RContact* contact; RWork* work; RNotes* notes; gboolean dispose_has_run; }; static void r_personal_card_class_init (RPersonalCardClass* klass); static void r_personal_card_init (RPersonalCard* obj); static void r_personal_card_dispose (RPersonalCard* obj); static void r_personal_card_finalize (RPersonalCard* obj); static void r_personal_card_free (RPersonalCard* self); static gboolean r_personal_card_search (RPersonalCard* self, const gchar* str); static RPersonalCard* r_personal_card_copy (RPersonalCard* self); static RInfos* r_personal_card_get_infos (RPersonalCard* self); /* static void r_personal_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_personal_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); */ static RCardClass* parent_class; GType r_personal_card_get_type() { static GType personal_card_type = 0; if (!personal_card_type) { static const GTypeInfo personal_card_info = { sizeof(RPersonalCardClass), NULL, NULL, (GClassInitFunc) r_personal_card_class_init, NULL, NULL, sizeof(RPersonalCard), 0, (GInstanceInitFunc) r_personal_card_init }; personal_card_type = g_type_register_static (R_CARD_TYPE, "RPersonalCard", &personal_card_info, 0); } return personal_card_type; } static void r_personal_card_class_init(RPersonalCardClass* klass) { GObjectClass *obj_class; // GParamSpec* pspec; parent_class = R_CARD_CLASS(klass); parent_class->free = (gpointer) r_personal_card_free; parent_class->copy = (gpointer) r_personal_card_copy; parent_class->search = (gpointer) r_personal_card_search; parent_class->get_infos = (gpointer) r_personal_card_get_infos; parent_class->print_card = NULL; obj_class = G_OBJECT_CLASS (klass); obj_class->dispose = (GObjectFinalizeFunc) r_personal_card_dispose; obj_class->finalize = (GObjectFinalizeFunc) r_personal_card_finalize; // obj_class->set_property = r_personal_set_property; // obj_class->get_property = r_personal_get_property; /** * RPersonal:contact * pspec = g_param_spec_object("contact", "contact's personal data", "the personal data of the contact " "(first name, last name, etc", R_CONTACT_TYPE, G_PARAM_READWRITE); g_object_class_install_property (obj_class, PERSONAL_CONTACT, pspec); */ /** * RPersonal:work * pspec = g_param_spec_object("work", "contact's work", "the work of the contact. " "His assignment, his role etc", R_WORK_TYPE, G_PARAM_READWRITE); g_object_class_install_property (obj_class, PERSONAL_WORK, pspec); */ /** * RPersonal: * pspec = g_param_spec_object("notes", "contact's notes", "notes about the contact", R_NOTES_TYPE, G_PARAM_READWRITE); g_object_class_install_property (obj_class, PERSONAL_NOTES, pspec); */ } /* static void r_personal_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RPersonalCard *self = (RPersonalCard*) obj; switch(property_id) { case PERSONAL_CONTACT: self->priv->contact = g_value_get_object (value); break; case PERSONAL_WORK: self->priv->work = g_value_get_object (value); break; case PERSONAL_NOTES: self->priv->notes = g_value_get_object (value); break; default: break; } } static void r_personal_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RPersonalCard *self = (RPersonalCard*) obj; switch(property_id) { case PERSONAL_CONTACT: g_value_set_object(value, self->priv->contact); break; case PERSONAL_WORK: g_value_set_object(value, self->priv->work); break; case PERSONAL_NOTES: g_value_set_object(value, self->priv->notes); break; default: break; } } */ static void r_personal_card_init(RPersonalCard* self) { self->priv = g_new(RPersonalCardPrivate, 1); self->priv->contact = NULL; self->priv->work = NULL; self->priv->notes = NULL; self->priv->dispose_has_run = FALSE; } static void r_personal_card_dispose (RPersonalCard* self) { g_return_if_fail(IS_R_PERSONAL_CARD(self)); if (self->priv->dispose_has_run) return; /* free the objects owned by personal card */ r_contact_free(R_CONTACT(self->priv->contact)); r_work_free(R_WORK(self->priv->work)); r_notes_free(R_NOTES(self->priv->notes)); self->priv->dispose_has_run = TRUE; } static void r_personal_card_finalize (RPersonalCard* self) { g_return_if_fail(IS_R_PERSONAL_CARD(self)); g_free(self->priv); self->priv = NULL; } static void r_personal_card_free(RPersonalCard* self) { g_return_if_fail(IS_R_PERSONAL_CARD(self)); g_object_unref(G_OBJECT(self)); } RInfos* r_personal_card_get_infos (RPersonalCard* card) { RInfos *infos; RContact *contact = NULL; RWork *work = NULL; infos = g_malloc0(sizeof(RInfos)); if (!infos) g_error("Unable to get enougth memory"); contact = r_personal_card_get_contact(card); work = r_personal_card_get_work(card); if (contact) g_object_get(contact, "first-name", &infos->first, "last-name", &infos->last, "profession", &infos->prof, NULL); else infos->first = infos->last = infos->prof = g_strdup(NULL); if (work) g_object_get(work, "assignment", &infos->assignment, NULL); else infos->assignment = g_strdup(NULL); return infos; } /* Public */ /** * r_personal_card_new * * create a new #RPersonalCard * * returns: a RPersonalCard* */ RPersonalCard* r_personal_card_new(void) { RPersonalCard* card; card = g_object_new(r_personal_card_get_type(), "card-type", "personal", NULL); return card; } /* personal card is derived from card, call card_free to free RPersonalCard */ /** * r_personal_card_set_contact * @card: a #RPersonalCard * @contact: a #RContact * * store contact's data in the card */ void r_personal_card_set_contact (RPersonalCard* card, RContact* contact) { g_return_if_fail(IS_R_PERSONAL_CARD(card)); g_return_if_fail(IS_R_CONTACT(contact)); if (card->priv->contact) r_contact_free(R_CONTACT(card->priv->contact)); card->priv->contact = contact; } /** * r_personal_card_set_work * @card: a #RPersonalCard * @work: a #RWork * * store contact's work data in card */ void r_personal_card_set_work (RPersonalCard* card, RWork* work) { g_return_if_fail(IS_R_PERSONAL_CARD(card)); g_return_if_fail(IS_R_WORK(work)); if (card->priv->work) r_work_free(R_WORK(card->priv->work)); card->priv->work = work; } /** * r_personal_card_set_notes * @card: a #RPersonalCard * @notes: a #RNotes * * store contact's notes in card */ void r_personal_card_set_notes (RPersonalCard* card, RNotes* notes) { g_return_if_fail(IS_R_PERSONAL_CARD(card)); g_return_if_fail(IS_R_NOTES(notes)); if (card->priv->notes) r_notes_free(R_NOTES(card->priv->notes)); card->priv->notes = notes; } /** * r_personal_card_get_contact * @card: a #RPersonalCard * * get the contact's personal data from card * * returns: a RContact* or NULL */ RContact* r_personal_card_get_contact (RPersonalCard* card) { g_return_val_if_fail(IS_R_PERSONAL_CARD(card), NULL); return card->priv->contact; } /** * r_personal_card_get_work * @card: a #RPersonalCard * * get the contact work's data from card * * returns: a RWork* or NULL */ RWork* r_personal_card_get_work (RPersonalCard* card) { g_return_val_if_fail(IS_R_PERSONAL_CARD(card), NULL); return card->priv->work; } /** * r_personal_card_get_notes * @card: a #RPersonalCard * * get the contact's notes from card * * returns: a RNotes* or NULL */ RNotes* r_personal_card_get_notes (RPersonalCard* card) { g_return_val_if_fail(IS_R_PERSONAL_CARD(card), NULL); return card->priv->notes; } /** * r_personal_card_copy * @card: a #RPersonalCard * * make a copy of given card * * returns: a new #RPersonalCard* or NULL */ RPersonalCard* r_personal_card_copy (RPersonalCard* card) { RPersonalCard* new; RContact* contact = NULL; RWork* work = NULL; RNotes* notes = NULL; g_return_val_if_fail(IS_R_PERSONAL_CARD(card), NULL); new = r_personal_card_new(); contact = r_contact_copy(r_personal_card_get_contact(card)); work = r_work_copy(r_personal_card_get_work(card)); notes = r_notes_copy(r_personal_card_get_notes(card)); r_personal_card_set_contact(new, contact); r_personal_card_set_work(new, work); r_personal_card_set_notes(new, notes); return new; } static gboolean r_personal_card_search (RPersonalCard* self, const gchar* str) { gchar* name; gpointer data; g_object_get(R_CARD(self), "card-name", &name, NULL); if (g_strrstr (name, str)) // cerca l'ago (str) nel pagliaio (haystack) return TRUE; /* search str in card's addresses */ r_card_reset_address(R_CARD(self)); data = r_card_get_address(R_CARD(self)); for (; data; data = r_card_get_next_address(R_CARD(self))) if (r_address_search(R_ADDRESS(data), str)) return TRUE; /* search str in card's net addresses */ r_card_reset_net_address(R_CARD(self)); data = r_card_get_net_address(R_CARD(self)); for (; data; data = r_card_get_next_net_address(R_CARD(self))) if (r_net_address_search(R_NET_ADDRESS(data), str)) return TRUE; /* search str in card's telephone */ r_card_reset_telephone(R_CARD(self)); data = r_card_get_telephone(R_CARD(self)); for (; data; data = r_card_get_next_telephone(R_CARD(self))) if (r_telephone_search(R_TELEPHONE(data), str)) return TRUE; if (r_contact_search(R_CONTACT(self->priv->contact), str)) return TRUE; if (self->priv->work && r_work_search(R_WORK(self->priv->work), str)) return TRUE; if (r_notes_search(R_NOTES(self->priv->notes), str)) return TRUE; return FALSE; } gboolean r_personal_card_belongs_to_genre (RPersonalCard* card, const gchar* genre) { RContact* contact = NULL; gchar* contact_genre; g_return_val_if_fail(IS_R_PERSONAL_CARD(card), FALSE); g_return_val_if_fail(genre != NULL, FALSE); contact = r_personal_card_get_contact(card); if (!contact) return FALSE; g_object_get(G_OBJECT(contact), "genre", &contact_genre, NULL); if (contact_genre && (g_ascii_strcasecmp(genre, contact_genre) == 0)) return TRUE; return FALSE; } rubrica-2.0/libral/work.c0000644000175000017500000002617110620101441014163 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: work.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "work.h" #include "utils.h" enum { WORK_ASSIGNMENT = 1, WORK_ORG, WORK_DEP, WORK_SUBDEP, WORK_MANAGER, WORK_MPHONE, WORK_COLLABORATOR, WORK_CPHONE }; struct _RWorkPrivate { gchar* assignment; /* contact role */ gchar* org; /* organization */ gchar* dep; /* department */ gchar* subdep; /* sub department */ gchar* manager; /* contact's manager */ gchar* mphone; /* manager telephone */ gchar* collaborator; /* contact's collaborator */ gchar* cphone; /* collaborator's telephone */ gboolean dispose_has_run; }; #define R_WORK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ R_WORK_TYPE, RWorkPrivate)) static void r_work_class_init (RWorkClass* klass); static void r_work_init (RWork* obj); static void r_work_dispose (RWork* obj); static void r_work_finalize (RWork* obj); static void r_work_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void r_work_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_work_get_type() { static GType work_type = 0; if (!work_type) { static const GTypeInfo work_info = { sizeof(RWorkClass), NULL, NULL, (GClassInitFunc) r_work_class_init, NULL, NULL, sizeof(RWork), 0, (GInstanceInitFunc) r_work_init }; work_type = g_type_register_static (G_TYPE_OBJECT, "RWork", &work_info, 0); } return work_type; } static void r_work_class_init(RWorkClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_work_dispose; class->finalize = (GObjectFinalizeFunc) r_work_finalize; class->set_property = (gpointer) r_work_set_property; class->get_property = (gpointer) r_work_get_property; g_type_class_add_private (klass, sizeof(RWorkPrivate)); /** * RWork:assignment * * the contact's assignment */ pspec = g_param_spec_string("assignment", "the contact's assignment", "the contact's assignment", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_ASSIGNMENT, pspec); /** * RWork:organization: * * The organization the contact works for */ pspec = g_param_spec_string("organization", "organization", "The organization the contact works for", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_ORG, pspec); /** * RWork:department: * * The department where contact works */ pspec = g_param_spec_string("department", "department", "The department where contact works", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_DEP, pspec); /** * RWork:sub-department: * * The sub department where contact works */ pspec = g_param_spec_string("sub-department", "sub department", "The sub department where contact works", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_SUBDEP, pspec); /** * RWork:manager-name: * * the contact's manager */ pspec = g_param_spec_string("manager-name", "contact's manager", "the contact's manager ", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_MANAGER, pspec); /** * RWork:manager-phone: * * the manager's telephone number */ pspec = g_param_spec_string("manager-phone", "manager's phone", "the manager's telephone number", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_MPHONE, pspec); /** * RWork:collaborator: * * contact's collaborator */ pspec = g_param_spec_string("collaborator", "contact's collaborator", "contact's collaborator", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_COLLABORATOR, pspec); /** * RWork:collaborator-phone: * * collaborator's phone */ pspec = g_param_spec_string("collaborator-phone", "collaborator's phone", "collaborator's phone", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, WORK_CPHONE, pspec); } static void r_work_init(RWork* self) { self->priv = R_WORK_GET_PRIVATE(self); self->priv->assignment = NULL; self->priv->org = NULL; self->priv->dep = NULL; self->priv->subdep = NULL; self->priv->manager = NULL; self->priv->mphone = NULL; self->priv->collaborator = NULL; self->priv->cphone = NULL; self->priv->dispose_has_run = FALSE; } static void r_work_dispose (RWork* self) { g_return_if_fail(IS_R_WORK(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void r_work_finalize (RWork* self) { g_return_if_fail(IS_R_WORK(self)); r_utils_free_string(self->priv->assignment); r_utils_free_string(self->priv->org); r_utils_free_string(self->priv->dep); r_utils_free_string(self->priv->subdep); r_utils_free_string(self->priv->manager); r_utils_free_string(self->priv->mphone); r_utils_free_string(self->priv->collaborator); r_utils_free_string(self->priv->cphone); self->priv->assignment = NULL; self->priv->org = NULL; self->priv->dep = NULL; self->priv->subdep = NULL; self->priv->manager = NULL; self->priv->mphone = NULL; self->priv->collaborator = NULL; self->priv->cphone = NULL; } static void r_work_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RWork* self = (RWork*) obj; RWorkPrivate* priv = R_WORK_GET_PRIVATE(self); switch (property_id) { case WORK_ASSIGNMENT: g_free(priv->assignment); priv->assignment = g_value_dup_string(value); break; case WORK_ORG: g_free(priv->org); priv->org = g_value_dup_string(value); break; case WORK_DEP: g_free(priv->dep); priv->dep = g_value_dup_string(value); break; case WORK_SUBDEP: g_free(priv->subdep); priv->subdep = g_value_dup_string(value); break; case WORK_MANAGER: g_free(priv->manager); priv->manager = g_value_dup_string(value); break; case WORK_MPHONE: g_free(priv->mphone); priv->mphone = g_value_dup_string(value); break; case WORK_COLLABORATOR: g_free(priv->collaborator); priv->collaborator = g_value_dup_string(value); break; case WORK_CPHONE: g_free(priv->cphone); priv->cphone = g_value_dup_string(value); break; default: break; } } static void r_work_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RWork* self = (RWork*) obj; RWorkPrivate* priv = R_WORK_GET_PRIVATE(self); switch (property_id) { case WORK_ASSIGNMENT: g_value_set_string(value, priv->assignment); break; case WORK_ORG: g_value_set_string(value, priv->org); break; case WORK_DEP: g_value_set_string(value, priv->dep); break; case WORK_SUBDEP: g_value_set_string(value, priv->subdep); break; case WORK_MANAGER: g_value_set_string(value, priv->manager); break; case WORK_MPHONE: g_value_set_string(value, priv->mphone); break; case WORK_COLLABORATOR: g_value_set_string(value, priv->collaborator); break; case WORK_CPHONE: g_value_set_string(value, priv->cphone); break; default: break; } } /* Public */ /** * r_work_new * * create a new #RWork * * returns: a new #RWork* */ RWork* r_work_new(void) { RWork* work; work = g_object_new(r_work_get_type(), NULL); return work; } /** * r_work_free * @work: a #RWork * * free the memory owned by object */ void r_work_free(RWork* work) { g_return_if_fail(IS_R_WORK(work)); g_object_unref(work); } gboolean r_work_have_data (RWork* work) { RWorkPrivate* priv; g_return_val_if_fail(IS_R_WORK(work), FALSE); priv = R_WORK_GET_PRIVATE(work); if (priv->assignment || priv->org || priv->dep || priv->subdep || priv->manager || priv->mphone || priv->collaborator || priv->cphone) return TRUE; return FALSE; } gboolean r_work_search (RWork* work, const gchar* str) { RWorkPrivate* priv; g_return_val_if_fail(IS_R_WORK(work), FALSE); g_return_val_if_fail(str != NULL, FALSE); priv = R_WORK_GET_PRIVATE(work); if (priv->assignment && g_strrstr(priv->assignment, str)) return TRUE; if (priv->org && g_strrstr(priv->org, str)) return TRUE; if (priv->dep && g_strrstr(priv->dep, str)) return TRUE; if (priv->subdep && g_strrstr(priv->subdep, str)) return TRUE; if (priv->manager && g_strrstr(priv->manager, str)) return TRUE; if (priv->mphone && g_strrstr(priv->mphone, str)) return TRUE; if (priv->collaborator && g_strrstr(priv->collaborator, str)) return TRUE; if (priv->cphone && g_strrstr(priv->cphone, str)) return TRUE; return FALSE; } /** * r_work_copy * @work: a #RWork * * copy the given #RWork * * returns: a new allocated #RWork* */ RWork* r_work_copy (RWork* work) { RWork* new; gchar *assignment, *org, *dep, *subdep; gchar *manager, *mphone, *collaborator, *cphone; g_return_val_if_fail(IS_R_WORK(work), NULL); new = r_work_new(); g_object_get(G_OBJECT(work), "assignment", &assignment, "organization", &org, "department", &dep, "sub-department", &subdep, "manager-name", &manager, "manager-phone", &mphone, "collaborator", &collaborator, "collaborator-phone", &cphone, NULL); g_object_set(G_OBJECT(new), "assignment", assignment, "organization", org, "department", dep, "sub-department", subdep, "manager-name", manager, "manager-phone", mphone, "collaborator", collaborator, "collaborator-phone", cphone, NULL); return new; } rubrica-2.0/libral/telephone.c0000644000175000017500000001647310620101441015170 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: telephone.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "telephone.h" #include "lookup.h" #include "utils.h" /* property enumetations */ enum { PHONE_PROP_0, PHONE_NUMBER, PHONE_TYPE }; static RLookupTable table[] = { {"home", N_("home"), R_TELEPHONE_HOME }, {"work", N_("work"), R_TELEPHONE_WORK }, {"fax", N_("fax"), R_TELEPHONE_FAX }, {"cellphone", N_("cellphone"), R_TELEPHONE_CELLPHONE }, {"pager", N_("pager"), R_TELEPHONE_PAGER }, {"other", N_("other"), R_TELEPHONE_OTHER }, {"operator", N_("operator"), R_TELEPHONE_OPERATOR }, {"green", N_("green"), R_TELEPHONE_GREEN }, {"customer care", N_("customer care"), R_TELEPHONE_CUSTOMER_CARE }, {"unknown", N_("unknown"), R_TELEPHONE_UNKNOWN }, {NULL, NULL, R_TELEPHONE_INVALID } }; struct _RTelephonePrivate { gchar* number; gint type; gboolean dispose_has_run; }; static void r_telephone_class_init (RTelephoneClass* klass); static void r_telephone_init (RTelephone* obj); static void r_telephone_dispose (RTelephone* obj); static void r_telephone_finalize (RTelephone* obj); static void r_telephone_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_telephone_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_telephone_get_type() { static GType tel_num_type = 0; if (!tel_num_type) { static const GTypeInfo tel_num_info = { sizeof(RTelephoneClass), NULL, NULL, (GClassInitFunc) r_telephone_class_init, NULL, NULL, sizeof(RTelephone), 0, (GInstanceInitFunc) r_telephone_init }; tel_num_type = g_type_register_static (G_TYPE_OBJECT, "RTelephone", &tel_num_info, 0); } return tel_num_type; } static void r_telephone_class_init(RTelephoneClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_telephone_dispose; class->finalize = (GObjectFinalizeFunc) r_telephone_finalize; class->set_property = r_telephone_set_property; class->get_property = r_telephone_get_property; /** * RTelephone:telephone-number: * * contact's telephone number */ pspec = g_param_spec_string("telephone-number", "telephone number", "contact's telephone number", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, PHONE_NUMBER, pspec); /** * RTelephone:telephone-type: * * telephone number's type. See #RTelephoneType for valid values */ pspec = g_param_spec_int("telephone-type", "telephone number's type", "telephone number's type", R_TELEPHONE_HOME, // min R_TELEPHONE_UNKNOWN, // max R_TELEPHONE_UNKNOWN, // default G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, PHONE_TYPE, pspec); } static void r_telephone_init(RTelephone* self) { self->private = g_new(RTelephonePrivate, 1); self->private->number = NULL; self->private->dispose_has_run = FALSE; } static void r_telephone_dispose (RTelephone* self) { g_return_if_fail(IS_R_TELEPHONE(self)); if (self->private->dispose_has_run) return; self->private->dispose_has_run = TRUE; } static void r_telephone_finalize (RTelephone* self) { g_return_if_fail(IS_R_TELEPHONE(self)); r_utils_free_string(self->private->number); g_free(self->private); self->private = NULL; } static void r_telephone_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RTelephone* self = (RTelephone*) obj; switch (property_id) { case PHONE_NUMBER: g_free(self->private->number); self->private->number = g_value_dup_string(value); break; case PHONE_TYPE: self->private->type = g_value_get_int(value); break; default: break; } } static void r_telephone_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RTelephone* self = (RTelephone*) obj; switch (property_id) { case PHONE_NUMBER: g_value_set_string(value, self->private->number); break; case PHONE_TYPE: g_value_set_int(value, self->private->type); break; default: break; } } /** * r_telephone_new * * create a new #RTelephone * * returns: a #RTelephone* */ RTelephone* r_telephone_new(void) { RTelephone* telephone; telephone = g_object_new(r_telephone_get_type(), NULL); return telephone; } /** * r_telephone_free * @telephone: a #RTelephone * * free the #RTelephone* */ void r_telephone_free(RTelephone* telephone) { g_return_if_fail(IS_R_TELEPHONE(telephone)); g_object_unref(telephone); } gboolean r_telephone_search (RTelephone *telephone, const gchar* str) { g_return_val_if_fail(IS_R_TELEPHONE(telephone), FALSE); g_return_val_if_fail(str != NULL, FALSE); if (g_strrstr(telephone->private->number, str)) return TRUE; return FALSE; } /** * r_telephone_get_number * @telephone: a #RTelephone * * copy the given telephone * * returns: a new #RTelephone* */ RTelephone* r_telephone_copy (RTelephone *telephone) { RTelephone* new; RTelephoneType type; gchar *number; g_return_val_if_fail(IS_R_TELEPHONE(telephone), NULL); new = r_telephone_new(); g_object_get(G_OBJECT(telephone), "telephone-number", &number, "telephone-type", &type, NULL); g_object_set(G_OBJECT(new), "telephone-number", number, "telephone-type", type, NULL); return new; } /** * r_telephone_lookup_str2enum * @type: a gchar* * * encode the given string * * returns: a #RTelephoneType */ RTelephoneType r_telephone_lookup_str2enum (gchar* str) { return (RTelephoneType) r_lookup_table_str2enum(table, str); } /** * r_telephone_lookup_enum2str * @type: a #RTelephoneType * * decode the given type * * returns: a gchar* */ gchar* r_telephone_lookup_enum2str (RTelephoneType type) { return r_lookup_table_enum2str(table, type); } gchar* r_telephone_lookup_enum2lbl (RTelephoneType type) { return r_lookup_table_enum2lbl(table, type); } gchar* r_telephone_lookup_str2lbl (gchar* str) { return r_lookup_table_str2lbl(table, str); } rubrica-2.0/libral/ref.c0000644000175000017500000001355010620101441013752 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "ref.h" #include "utils.h" enum { R_REF_TO = 1, R_REF_FROM, R_REF_NAME }; /* to: id of the card referenced from: id of the card that reference this one */ struct _RRefPrivate { glong to; /* card's id: reference to card */ glong from; /* card's id: reference from card */ gchar* info; /* card's info */ gboolean dispose_has_run; }; static void r_ref_class_init (RRefClass* klass); static void r_ref_init (RRef* obj); static void r_ref_dispose (RRef* obj); static void r_ref_finalize (RRef* obj); static void r_ref_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_ref_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_ref_get_type() { static GType r_ref_type = 0; if (!r_ref_type) { static const GTypeInfo r_ref_info = { sizeof(RRefClass), NULL, NULL, (GClassInitFunc) r_ref_class_init, NULL, NULL, sizeof(RRef), 0, (GInstanceInitFunc) r_ref_init }; r_ref_type = g_type_register_static (G_TYPE_OBJECT, "RRef", &r_ref_info, 0); } return r_ref_type; } static void r_ref_class_init(RRefClass* klass) { GObjectClass *parent_class; GParamSpec* pspec; parent_class = G_OBJECT_CLASS (klass); parent_class->dispose = (GObjectFinalizeFunc) r_ref_dispose; parent_class->finalize = (GObjectFinalizeFunc) r_ref_finalize; parent_class->set_property = r_ref_set_property; parent_class->get_property = r_ref_get_property; /* class property */ /** * RRef:ref-to * * the id of the referenced card by this one */ pspec = g_param_spec_long("ref-to", "ref card id", "the id of the referenced card by this one", G_MINLONG, G_MAXLONG, 0, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(parent_class, R_REF_TO, pspec); /** * RRef:ref-from: * * the id of the card that reference this one */ pspec = g_param_spec_long("ref-from", "ref card id", "the id of the card that reference this one", G_MINLONG, G_MAXLONG, 0, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(parent_class, R_REF_FROM, pspec); /** * RRef:ref-info * * the infos related to the card */ pspec = g_param_spec_string("ref-info", "card infos", "the infos related to the card", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(parent_class, R_REF_NAME, pspec); } static void r_ref_init(RRef* self) { self->private = g_new(RRefPrivate, 1); self->private->to = 0L; self->private->from = 0L; self->private->info = NULL; self->private->dispose_has_run = FALSE; } static void r_ref_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RRef* self = (RRef*) obj; switch (property_id) { case R_REF_TO: self->private->to = g_value_get_long(value); break; case R_REF_FROM: self->private->from = g_value_get_long(value); break; case R_REF_NAME: g_free(self->private->info); self->private->info = g_value_dup_string(value); break; default: break; } } static void r_ref_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RRef* self = (RRef*) obj; switch (property_id) { case R_REF_TO: g_value_set_long(value, self->private->to); break; case R_REF_FROM: g_value_set_long(value, self->private->from); break; case R_REF_NAME: g_value_set_string(value, self->private->info); break; default: break; } } static void r_ref_dispose (RRef* self) { g_return_if_fail(IS_R_REF(self)); if (self->private->dispose_has_run) return; self->private->dispose_has_run = TRUE; } static void r_ref_finalize (RRef* self) { g_return_if_fail(IS_R_REF(self)); r_utils_free_string(self->private->info); g_free(self->private); self->private = NULL; } /* Public */ /** * r_ref_new * @id: the id of the referenced card * * create a #RRef * * returns: a new #RRef* */ RRef* r_ref_new(glong id) { RRef* ref; ref = g_object_new(r_ref_get_type(), "ref-to", id, NULL); return ref; } /** * r_ref_free * @ref: a #RRef * * free the #RRef */ void r_ref_free(RRef* ref) { g_return_if_fail(IS_R_REF(ref)); g_object_unref(ref); } /** * r_ref_copy * @ref: a #RRef * * copy the given object * * returns: a new allocated #RRef* */ RRef* r_ref_copy (RRef* ref) { RRef* new; gulong to, from; gchar* info; g_return_val_if_fail(IS_R_REF(ref), NULL); g_object_get(G_OBJECT(ref), "ref-to", &to, "ref-from", &from, "ref-info", &info, NULL); new = r_ref_new(to); g_object_set(G_OBJECT(new), "ref-from", from, "ref-info", info, NULL); return new; } rubrica-2.0/libral/manager.h0000644000175000017500000000567610637703457014656 0ustar seb128seb128/* * file: manager.h * * * Copyright (C) 2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PLUGIN_MANAGER_H #define __PLUGIN_MANAGER_H #include #include #include "plugin.h" #define R_PLUGIN_MANAGER_TYPE (r_plugin_manager_get_type()) #define R_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_PLUGIN_MANAGER_TYPE, \ RPluginManager)) #define R_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_PLUGIN_MANAGER_TYPE, \ RPluginManagerClass)) #define R_IS_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_PLUGIN_MANAGER_TYPE)) #define R_IS_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_PLUGIN_MANAGER_TYPE)) #define R_PLUGIN_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ R_PLUGIN_MANAGER_TYPE, \ RPluginManagerClass)) typedef struct _RPluginManager RPluginManager; typedef struct _RPluginManagerClass RPluginManagerClass; typedef struct _RPluginManagerPrivate RPluginManagerPrivate; struct _RPluginManager { GObject parent; RPluginManagerPrivate* priv; }; struct _RPluginManagerClass { GObjectClass parent; }; GType r_plugin_manager_get_type (void); RPluginManager* r_plugin_manager_new (void); void r_plugin_manager_free (RPluginManager* manager); void r_plugin_manager_scan_directory (RPluginManager* manager, gchar* dir); gboolean r_manager_load_plugin (RPlugin* plugin, gchar* file); gint r_plugin_manager_how_many (RPluginManager* manager); RPlugin* r_plugin_manager_get_plugin (RPluginManager* manager, const gchar* name); RPlugin* r_plugin_manager_get_nth_plugin (RPluginManager* manager, gint n); GList* r_plugin_manager_get_all_filters (RPluginManager* manager); #endif rubrica-2.0/libral/lookup.c0000644000175000017500000000371610620101441014512 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: types.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "lookup.h" gchar* r_lookup_table_enum2str (RLookupTable *table, gint value) { return table[value].str; } gint r_lookup_table_str2enum (RLookupTable *table, gchar* str) { gint i=0; for (; table[i].str; i++) { if (g_ascii_strcasecmp(str, table[i].str) == 0) break; } return table[i].val; } gchar* r_lookup_table_str2lbl (RLookupTable *table, gchar* str) { gint i=0; for (; table[i].str; i++) { if (g_ascii_strcasecmp(str, table[i].str) == 0) break; } return table[i].lbl; } gchar* r_lookup_table_enum2lbl (RLookupTable *table, gint value) { return table[value].lbl; } gint r_lookup_table_get_pair_left (RPairTable *table, gint item) { gint i = 0; for (; table[i].str; i++) { if (table[i].right == item) break; } return table[i].left; } gint r_lookup_table_get_pair_right (RPairTable *table, gint item) { gint i = 0; for (; table[i].str; i++) { if (table[i].left == item) break; } return table[i].right; } gchar* r_lookup_table_pair2str (RPairTable *table, gint item) { return table[item].str; } rubrica-2.0/libral/types.h0000644000175000017500000000526310620101441014351 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: types.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_TYPES_H #define _R_TYPES_H #include typedef enum { SEARCH_ON_STRING, // search string SEARCH_ON_CREATION, // search creation date that is given SEARCH_ON_CHANGE, // search change date that is given SEARCH_CREATION_BEFORE, // search a creation date before given SEARCH_CREATION_AFTER, // after given SEARCH_CREATION_BETWEEN, // between first and second SEARCH_CHANGE_BEFORE, // search a last change date before given SEARCH_CHANGE_AFTER, // after given SEARCH_CHANGE_BETWEEN, // between first and second } SearchType; typedef enum { R_CARD_DELETED, R_CARD_UNDELETED, R_CARD_HAS_REFS } RDelType; typedef void (*RFunc) (gpointer obj, gpointer user_data); typedef struct { glong id; // card id gchar *label; // card label gchar *first; // contact's first name gchar *last; // contact's last name gchar *prof; // contact's profession gchar *city; gchar *country; gchar *assignment; // contact's assignmet gchar *web; // contact's home page gchar *email; // contact's email gchar *irc; gchar *telephone; // contact's telephone number } RInfos; #define r_infos_get_id(x) (x->id) #define r_infos_get_label(x) (x->label) #define r_infos_get_first(x) (x->first) #define r_infos_get_last(x) (x->last) #define r_infos_get_profession(x) (x->prof) #define r_infos_get_city(x) (x->city) #define r_infos_get_country(x) (x->country) #define r_infos_get_assignment(x) (x->assignment) #define r_infos_get_web(x) (x->web) #define r_infos_get_email(x) (x->email) #define r_infos_get_irc(x) (x->irc) #define r_infos_get_telephone(x) (x->telephone) #endif rubrica-2.0/libral/utils.h0000644000175000017500000000171410620101441014342 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: utils.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_UTILS_H #define _R_UTILS_H #include #include void r_utils_free_string (gchar* str); #endif rubrica-2.0/libral/contact.c0000644000175000017500000003127510620101442014636 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: contact.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "contact.h" #include "date.h" #include "utils.h" enum { CONTACT_FIRST = 1, CONTACT_MIDDLE, CONTACT_LAST, CONTACT_NICK, CONTACT_PROFESSION, CONTACT_PREFIX, CONTACT_TITLE, CONTACT_GENRE, CONTACT_PHOTO }; struct _RContactPrivate { gchar* first; /* first name */ gchar* middle; /* middle name */ gchar* last; /* last name */ gchar* nick; /* nick name */ gchar* prof; /* profession */ gchar* prefix; /* prefix (egr. sir. jr. I, II, ...) */ gchar* title; /* title (sig. sig.ra, sig.na dott, ... */ gchar* genre; /* male, female */ RDate* birthday; /* */ gchar* photo; /* contact's photo (uri) */ gboolean dispose_has_run; }; static void r_contact_class_init (RContactClass* klass); static void r_contact_init (RContact* obj); static void r_contact_dispose (RContact* obj); static void r_contact_finalize (RContact* obj); static void r_contact_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_contact_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType r_contact_get_type() { static GType contact_type = 0; if (!contact_type) { static const GTypeInfo contact_info = { sizeof(RContactClass), NULL, NULL, (GClassInitFunc) r_contact_class_init, NULL, NULL, sizeof(RContact), 0, (GInstanceInitFunc) r_contact_init }; contact_type = g_type_register_static (G_TYPE_OBJECT, "RContact", &contact_info, 0); } return contact_type; } static void r_contact_class_init(RContactClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_contact_dispose; class->finalize = (GObjectFinalizeFunc) r_contact_finalize; class->set_property = r_contact_set_property; class->get_property = r_contact_get_property; /** * RContact:first-name: * * contact's fist name */ pspec = g_param_spec_string("first-name", "first name", "contact's given name", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_FIRST, pspec); /** * RContact:middle-name: * * contact's middle name */ pspec = g_param_spec_string("middle-name", "middle name", "contact's middle name", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_MIDDLE, pspec); /** * RContact:last-name: * * contact's last name */ pspec = g_param_spec_string("last-name", "last name", "contact's last name", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_LAST, pspec); /** * RContact:nick-name: * * contact's nick name */ pspec = g_param_spec_string("nick-name", "nick name", "contact's nick name", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_NICK, pspec); /** * RContact:profession: * * contact's profession */ pspec = g_param_spec_string("profession", "profession", "contact's profession", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_PROFESSION, pspec); /** * RContact:prefix: * * contact's prefix */ pspec = g_param_spec_string("prefix", "prefix", "contact's prefix", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_PREFIX, pspec); /** * RContact:title: * * contact's title */ pspec = g_param_spec_string("title", "title", "contact's title", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_TITLE, pspec); /** * RContact:genre: * * contact's genre */ pspec = g_param_spec_string("genre", "genre", "contact's genre", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_GENRE, pspec); /** * RContact:photo: * * contact's photo */ pspec = g_param_spec_string("photo", "photo", "contact's photo", NULL, G_PARAM_READWRITE); g_object_class_install_property (class, CONTACT_PHOTO, pspec); } static void r_contact_init(RContact* self) { self->priv = g_new(RContactPrivate, 1); self->priv->dispose_has_run = FALSE; self->priv->first = NULL; self->priv->middle = NULL; self->priv->last = NULL; self->priv->nick = NULL; self->priv->prof = NULL; self->priv->prefix = NULL; self->priv->title = NULL; self->priv->genre = NULL; self->priv->photo = NULL; self->priv->birthday = r_date_new(); } static void r_contact_dispose (RContact* self) { g_return_if_fail(IS_R_CONTACT(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void r_contact_finalize (RContact* self) { g_return_if_fail(IS_R_CONTACT(self)); r_utils_free_string(self->priv->first); r_utils_free_string(self->priv->middle); r_utils_free_string(self->priv->last); r_utils_free_string(self->priv->nick); r_utils_free_string(self->priv->prof); r_utils_free_string(self->priv->prefix); r_utils_free_string(self->priv->title); r_utils_free_string(self->priv->genre); r_utils_free_string(self->priv->photo); r_date_free(self->priv->birthday); g_free(self->priv); self->priv = NULL; } static void r_contact_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RContact* self = (RContact*) obj; switch (property_id) { case CONTACT_FIRST: g_free(self->priv->first); self->priv->first = g_value_dup_string(value); break; case CONTACT_MIDDLE: g_free(self->priv->middle); self->priv->middle = g_value_dup_string(value); break; case CONTACT_LAST: g_free(self->priv->last); self->priv->last = g_value_dup_string(value); break; case CONTACT_NICK: g_free(self->priv->nick); self->priv->nick = g_value_dup_string(value); break; case CONTACT_PROFESSION: g_free(self->priv->prof); self->priv->prof = g_value_dup_string(value); break; case CONTACT_PREFIX: g_free(self->priv->prefix); self->priv->prefix = g_value_dup_string(value); break; case CONTACT_TITLE: g_free(self->priv->title); self->priv->title = g_value_dup_string(value); break; case CONTACT_GENRE: g_free(self->priv->genre); self->priv->genre = g_value_dup_string(value); break; case CONTACT_PHOTO: g_free(self->priv->photo); self->priv->photo = g_value_dup_string(value); break; default: break; } } static void r_contact_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RContact* self = (RContact*) obj; switch (property_id) { case CONTACT_FIRST: g_value_set_string(value, self->priv->first); break; case CONTACT_MIDDLE: g_value_set_string(value, self->priv->middle); break; case CONTACT_LAST: g_value_set_string(value, self->priv->last); break; case CONTACT_NICK: g_value_set_string(value, self->priv->nick); break; case CONTACT_PROFESSION: g_value_set_string(value, self->priv->prof); break; case CONTACT_PREFIX: g_value_set_string(value, self->priv->prefix); break; case CONTACT_TITLE: g_value_set_string(value, self->priv->title); break; case CONTACT_GENRE: g_value_set_string(value, self->priv->genre); break; case CONTACT_PHOTO: g_value_set_string(value, self->priv->photo); break; default: break; } } /** * r_contact_new * * create a new #RContact * * Returns: a #RContact* */ RContact* r_contact_new(void) { RContact* contact; contact = g_object_new(r_contact_get_type(), NULL); return contact; } /** * r_contact_free * @contact: a #RContact * * free memory owned by #RContact */ void r_contact_free(RContact* contact) { g_return_if_fail(IS_R_CONTACT(contact)); g_object_unref(contact); } RDate* r_contact_get_birthday (RContact* contact) { g_return_val_if_fail(IS_R_CONTACT(contact), FALSE); return contact->priv->birthday; } /** * r_contact_set_birthday * @contact: a #RContact * @day: contact's birth day * @month: contact's birth month * @year: contact's birth year * * set contact's birthday */ void r_contact_set_birthday (RContact* contact, gint day, gint month, gint year) { g_return_if_fail(IS_R_CONTACT(contact)); g_object_set(contact->priv->birthday, "day", day, "month", month, "year", year, NULL); } /** * r_contact_get_birth_day * @contact: a #RContact * * get contact's day of birth. Caller must free the returned value * * returns: a gchar* */ gchar* r_contact_get_birth_day (RContact* contact) { g_return_val_if_fail(IS_R_CONTACT(contact), NULL); return r_date_get_day(contact->priv->birthday); } /** * r_contact_get_bith_month * @contact: a #RContact * * get contact's month of birth. Caller must free the returned value * * returns: a gchar* */ gchar* r_contact_get_birth_month (RContact* contact) { g_return_val_if_fail(IS_R_CONTACT(contact), NULL); return r_date_get_month(contact->priv->birthday); } /** * r_contact_get_birth_year * @contact: a #RContact * * get contact's year of birth. Caller must free the returned value * * returns: a gchar* */ gchar* r_contact_get_birth_year (RContact* contact) { g_return_val_if_fail(IS_R_CONTACT(contact), NULL); return r_date_get_year(contact->priv->birthday); } /** * r_contact_get_birthdate * @contact: a #RContact * * get contact's birthday, or "unknown" if birthday * wasn't setted. Caller must free the returned value * * returns: a gchar* */ gchar* r_contact_get_birth_date (RContact* contact) { g_return_val_if_fail(IS_R_CONTACT(contact), "unknown"); return r_date_get_human_date(contact->priv->birthday); } gboolean r_contact_search (RContact* contact, const gchar* str) { g_return_val_if_fail(IS_R_CONTACT(contact), FALSE); g_return_val_if_fail(str != NULL, FALSE); if (contact->priv->first && g_strrstr(contact->priv->first, str)) return TRUE; if (contact->priv->middle && g_strrstr(contact->priv->middle, str)) return TRUE; if (contact->priv->last && g_strrstr(contact->priv->last, str)) return TRUE; if (contact->priv->nick && g_strrstr(contact->priv->nick, str)) return TRUE; if (contact->priv->prof && g_strrstr(contact->priv->prof, str)) return TRUE; if (contact->priv->prefix && g_strrstr(contact->priv->prefix, str)) return TRUE; if (contact->priv->title && g_strrstr(contact->priv->title, str)) return TRUE; return FALSE; } /** * r_contact_copy * @contact: a #RContact * * make a copy of given object * * returns: a new #RContact object */ RContact* r_contact_copy (RContact* contact) { RContact* new; gchar *first, *middle, *last, *nick; gchar *prof, *prefix, *title, *genre, *photo; g_return_val_if_fail(IS_R_CONTACT(contact), NULL); new = r_contact_new(); g_object_get(G_OBJECT(contact), "first-name", &first, "middle-name", &middle, "last-name", &last, "nick-name", &nick, "profession", &prof, "prefix", &prefix, "title", &title, "genre", &genre, "photo", &photo, NULL); g_object_set(G_OBJECT(new), "first-name", first, "middle-name", middle, "last-name", last, "nick-name", nick, "profession", prof, "prefix", prefix, "title", title, "genre", genre, "photo", photo, NULL); return new; } rubrica-2.0/libral/plugins/0000755000175000017500000000000010637712736014536 5ustar seb128seb128rubrica-2.0/libral/plugins/Makefile.am0000644000175000017500000000003410620101442016541 0ustar seb128seb128SUBDIRS = csv rubrica vcard rubrica-2.0/libral/plugins/Makefile.in0000644000175000017500000004215110637712667016611 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libral/plugins DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = csv rubrica vcard all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libral/plugins/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu libral/plugins/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/libral/plugins/csv/0000755000175000017500000000000010637712736015331 5ustar seb128seb128rubrica-2.0/libral/plugins/csv/Makefile.am0000644000175000017500000000203310637704431017354 0ustar seb128seb128# # Plugin csv # # Plugin glade file # csv_gladedir = $(libral_plugins_gui_dir) # csv_glade_DATA = # Plugin pixmaps # csv_pixmapsdir = $(libral_plugins_pixmaps_dir) # csv_pixmaps_DATA = # # additional libtool flags (such as -version-info or -static or -module) # Ordinarily, Automake requires that a shared library's name start with 'lib'. # However, if you are building a dynamically loadable module, you migth wish # to use a "nonstandard" name. in this case, put -module into the '_LDFLAGS' # variable (automake.pdf pag. 24) # Where to install the plugin libcsv_ladir=$(libral_plugins_dir) # The plugin libcsv_la_LTLIBRARIES = libcsv.la # Plugin sources libcsv_la_SOURCES = csv.c csv.h libcsv_la_LDFLAGS = -version-info $(LIBCSV_CURRENT_VERSION):$(LIBCSV_REVISION_VERSION):$(LIBCSV_COMPAT_VERSION) libcsv_LTLDFLAGS = -module -rpath./ # Include paths INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ $(LIBRAL_CFLAGS) AM_CFLAGS = -Wall -fPIC -DPIC # EXTRA_DIST = \ # $(csv_glade_DATA) \ # $(csv_pixmaps_DATA) rubrica-2.0/libral/plugins/csv/csv.c0000644000175000017500000007651010637706713016277 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: csv.c * * the vcard import engine v0.5 * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "csv.h" #include "../../error.h" #include "../../plugin.h" #include "../../abook.h" #include "../../card.h" #include "../../personal.h" #include "../../company.h" #include "../../contact.h" #include "../../work.h" #include "../../notes.h" #include "../../address.h" #include "../../net.h" #include "../../telephone.h" #include "../../lookup.h" // #include "../../ref.h" #define COMMA_DELIM ',' #define TAB_DELIM '\t' #define QUOTES '"' /* Thunderbird (Mozilla/SeaMonkey/Netscape)'s csv fields: First name, Last name, Display name, Nickname Email1, Email2, Work Tel, Home Tel, Fax, Pager, Mobile, Home Address, Home Address2, City, Province, Zip, State, Work Address, Work Address2, City, Province, Zip, State, Title, Department, Organization, Work web, Personal Web, Undef1, Undef2, Undef3, Undef4, UserDefined1, UserDefined2, UserDefined3, UserDefined4, Notes, Other */ typedef enum { CSV_FIRST_NAME, // 1 CSV_LAST_NAME, // 2 CSV_DISPLAY_NAME, // 3 CSV_NICKNAME, // 4 CSV_EMAIL1, // 5 CSV_EMAIL2, // 6 CSV_TEL_WORK, // 7 CSV_TEL_HOME, // 8 CSV_TEL_FAX, // 9 CSV_TEL_PAGER, // 10 CSV_TEL_MOBILE, // 11 CSV_HOME_STREET, // 12 CSV_HOME_STREET_MORE, // 13 CSV_HOME_CITY, // 14 CSV_HOME_STATE_PROVINCE, // 15 CSV_HOME_ZIP, // 16 CSV_HOME_COUNTRY, // 17 CSV_WORK_STREET, // 18 CSV_WORK_STREET_MORE, // 19 CSV_WORK_CITY, // 20 CSV_WORK_STATE_PROVINCE, // 21 CSV_WORK_ZIP, // 22 CSV_WORK_COUNTRY, // 23 CSV_TITLE, // 24 CSV_DEPARTMENT, // 25 CSV_ORGANIZATION, // 26 CSV_WORK_WEB, // 27 CSV_WEB, // 28 CSV_UNDEF1, // 29 CSV_UNDEF2, // 30 CSV_UNDEF3, // 31 CSV_CUSTOM1, // 32 CSV_CUSTOM2, // 33 CSV_CUSTOM3, // 34 CSV_CUSTOM4, // 35 CSV_NOTE, // 36 CSV_MORE, // 37 } RCsvField; RLookupTable look [] ={ {"first name", N_("first name"), CSV_FIRST_NAME }, {"last name", N_("last name"), CSV_LAST_NAME}, {"display name", N_("display name"), CSV_DISPLAY_NAME}, {"nickname", N_("nickname"), CSV_NICKNAME }, {"email 1", N_("email 1"), CSV_EMAIL1 }, {"email 2", N_("email 2"), CSV_EMAIL2 }, {"tel work", N_("tel work"), CSV_TEL_WORK }, {"tel home", N_("tel home"), CSV_TEL_HOME }, {"tel fax", N_("tel fax"), CSV_TEL_FAX }, {"tel pager", N_("tel pager"), CSV_TEL_PAGER }, {"tel mobile", N_("tel mobile"), CSV_TEL_MOBILE }, {"home street", N_("home street"), CSV_HOME_STREET }, {"home street 2", N_("home street 2"), CSV_HOME_STREET_MORE }, {"home city", N_("home city"), CSV_HOME_CITY }, {"home state", N_("home state"), CSV_HOME_STATE_PROVINCE }, {"home zip", N_("home zip"), CSV_HOME_ZIP }, {"home country", N_("home country"), CSV_HOME_COUNTRY }, {"work street", N_("work street"), CSV_WORK_STREET }, {"work street 2", N_("work street 2"), CSV_WORK_STREET_MORE }, {"work city", N_("work city"), CSV_WORK_CITY }, {"work state", N_("work state"), CSV_WORK_STATE_PROVINCE }, {"work zip", N_("work zip"), CSV_WORK_ZIP }, {"work country", N_("work country"), CSV_WORK_COUNTRY }, {"title", N_("title"), CSV_TITLE }, {"department", N_("department"), CSV_DEPARTMENT }, {"org", N_("org"), CSV_ORGANIZATION }, {"web work", N_("web work"), CSV_WORK_WEB }, {"web", N_("web"), CSV_WEB }, {"undef 1", N_("undef 1"), CSV_UNDEF1 }, {"undef 2", N_("undef 2"), CSV_UNDEF2 }, {"undef 3", N_("undef 3"), CSV_UNDEF3 }, {"custom 1", N_("custom 1"), CSV_CUSTOM1 }, {"custom 2", N_("custom 2"), CSV_CUSTOM2 }, {"custom 3", N_("custom 3"), CSV_CUSTOM3 }, {"custom 4", N_("custom 4"), CSV_CUSTOM4 }, {"note", N_("note"), CSV_NOTE }, {"more", N_("more"), CSV_MORE } }; typedef enum { R_CSV_START, R_CSV_QUOTES, R_CSV_DQUOTES, R_CSV_CLOSE_QUOTES, R_CSV_CLOSE_DQUOTES, R_CSV_BUILD, R_CSV_BUILD_QUOTES, R_CSV_BUILD_DQUOTES, R_CSV_STORE // not used state } RCsvState; static GObject* parent_class = NULL; struct _RCsvPrivate{ RCsvState state; /* automoton's state */ RCsvField field; glong file_pos; GString* buffer; /* data currently read */ gboolean dispose_has_run; }; gboolean new_card = TRUE; RPersonalCard* card = NULL; RContact* contact = NULL; RAddress* home_address = NULL; RAddress* work_address = NULL; RWork* work = NULL; RNotes* notes = NULL; RNetAddress* net = NULL; RTelephone* phone = NULL; static void r_csv_init (RCsv* obj); static void r_csv_class_init (RCsvClass* klass); static void r_csv_dispose (GObject* obj); static void r_csv_finalize (GObject* obj); /* private functions */ static gboolean r_csv_is_separator (gunichar ch); static gboolean r_csv_is_quote (gunichar ch); static RCsvState r_csv_get_state (RCsv* self); static void r_csv_store_decoded_data (RCsv* self, RCard* card); static void r_csv_append_unichar (RCsv* self, gunichar ch); static void r_csv_clean_buffer (RCsv* self); static void r_csv_set_next_state (RCsv* self, RCsvState state); static void r_csv_set_next_field (RCsv* self, RCsvField field); static void r_csv_build_data (RCsv* self, gunichar ch); static void r_csv_store_file_position (RCsv* self); static gint r_csv_open_file (RAbook* abook, gchar* filename); static gboolean r_csv_save_file (RAbook* abook, gchar* filename); #undef DEBUG #ifdef DEBUG #define r_debug(x, y) { \ gchar* str; \ \ if (x >= 0) \ { str = r_lookup_table_enum2str(look, x); \ g_print("\nDEBUG *** %-14s\t%s", str, y); } \ else \ { g_print("\nDEBUG *** %s", y); } \ } #endif #ifndef DEBUG #define r_debug(x, y) #endif GType r_csv_get_type() { static GType r_csv_type = 0; if (!r_csv_type) { static const GTypeInfo r_csv_info = { sizeof(RCsvClass), NULL, NULL, (GClassInitFunc) r_csv_class_init, NULL, NULL, sizeof(RCsv), 0, (GInstanceInitFunc) r_csv_init }; r_csv_type = g_type_register_static (R_ABOOK_TYPE, "RCsv", &r_csv_info, 0); } return r_csv_type; } static void r_csv_class_init(RCsvClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_csv_dispose; class->finalize = (GObjectFinalizeFunc) r_csv_finalize; parent_class = g_type_class_peek_parent (klass); } static void r_csv_init(RCsv* self) { g_return_if_fail(IS_R_CSV(self)); self->fp = NULL; self->private = g_new(RCsvPrivate, 1); if (!self->private) g_error("\nOut of memory"); self->private->field = CSV_FIRST_NAME; self->private->state = R_CSV_START; self->private->file_pos = 0L; self->private->buffer = g_string_new(NULL); self->private->dispose_has_run = FALSE; } static void r_csv_dispose (GObject* obj) { RCsv* self; self = R_CSV(obj); g_return_if_fail(IS_R_CSV(self)); if (self->private->dispose_has_run) return; g_string_free(self->private->buffer, TRUE); self->private->dispose_has_run = TRUE; } static void r_csv_finalize (GObject* obj) { RCsv* self; self = R_CSV(obj); g_return_if_fail(IS_R_CSV(self)); g_free(self->private); if (self->fp) fclose(self->fp); } static gboolean r_csv_is_separator(gunichar ch) { if ((ch == COMMA_DELIM) || /* comma separator */ (ch == TAB_DELIM)) /* tab separator */ return TRUE; return FALSE; } static gboolean r_csv_is_quote(gunichar ch) { if (ch == QUOTES) return TRUE; return FALSE; } static RCsvState r_csv_get_state(RCsv* self) { g_return_val_if_fail(IS_R_CSV(self), R_CSV_START); return (RCsvState) self->private->state; } static void r_csv_store_decoded_data(RCsv* self, RCard* card) { gchar* more = NULL; gchar* tmp = NULL, *str = NULL; g_return_if_fail(IS_R_CSV(self)); if (self->private->buffer->len > 0) { tmp = self->private->buffer->str; switch (self->private->field) { case CSV_FIRST_NAME: r_debug(-1, ""); r_debug(self->private->field, tmp); if (!contact) contact = r_contact_new(); g_object_set(contact, "first-name", tmp, NULL); break; case CSV_LAST_NAME: r_debug(self->private->field, tmp); if (!contact) contact = r_contact_new(); g_object_set(contact, "last-name", tmp, NULL); break; case CSV_DISPLAY_NAME: r_debug(self->private->field, tmp); g_object_set(card, "card-name", tmp, NULL); break; case CSV_NICKNAME: r_debug(self->private->field, tmp); if (!contact) contact = r_contact_new(); g_object_set(contact, "nick-name", tmp, NULL); break; case CSV_EMAIL1: case CSV_EMAIL2: r_debug(self->private->field, tmp); net = r_net_address_new(); g_object_set(net, "url", tmp, "url-type", R_NET_ADDRESS_EMAIL, NULL); r_card_add_net_address(card, net); break; case CSV_TEL_WORK: r_debug(self->private->field, tmp); phone = r_telephone_new(); g_object_set(phone, "telephone-number", tmp, "telephone-type", R_TELEPHONE_WORK, NULL); r_card_add_telephone(card, phone); break; case CSV_TEL_HOME: r_debug(self->private->field, tmp); phone = r_telephone_new(); g_object_set(phone, "telephone-number", tmp, "telephone-type", R_TELEPHONE_HOME, NULL); r_card_add_telephone(card, phone); break; case CSV_TEL_FAX: r_debug(self->private->field, tmp); phone = r_telephone_new(); g_object_set(phone, "telephone-number", tmp, "telephone-type", R_TELEPHONE_FAX, NULL); r_card_add_telephone(card, phone); break; case CSV_TEL_PAGER: r_debug(self->private->field, tmp); phone = r_telephone_new(); g_object_set(phone, "telephone-number", tmp, "telephone-type", R_TELEPHONE_OTHER, NULL); r_card_add_telephone(card, phone); break; case CSV_TEL_MOBILE: r_debug(self->private->field, tmp); phone = r_telephone_new(); g_object_set(phone, "telephone-number", tmp, "telephone-type", R_TELEPHONE_CELLPHONE, NULL); r_card_add_telephone(card, phone); break; case CSV_HOME_STREET: r_debug(self->private->field, tmp); if (!home_address) home_address = r_address_new(); g_object_set(home_address, "street", tmp, "address-type", R_ADDRESS_HOME, NULL); break; case CSV_HOME_STREET_MORE: r_debug(self->private->field, tmp); if (!home_address) { home_address = r_address_new(); g_object_set(home_address, "address-type", R_ADDRESS_HOME, "street", tmp, NULL); } else { g_object_get(home_address, "street", &str, NULL); more = g_strdup_printf("%s %s", str, tmp); g_object_set(home_address, "street", more, NULL); g_free(str); g_free(more); } break; case CSV_HOME_CITY: r_debug(self->private->field, tmp); if (!home_address) { home_address = r_address_new(); g_object_set(home_address, "address-type", R_ADDRESS_HOME, NULL); } g_object_set(home_address, "city", tmp, NULL); break; case CSV_HOME_STATE_PROVINCE: r_debug(self->private->field, tmp); if (!home_address) { home_address = r_address_new(); g_object_set(home_address, "address-type", R_ADDRESS_HOME, NULL); } g_object_set(home_address, "province", tmp, NULL); break; case CSV_HOME_ZIP: r_debug(self->private->field, tmp); if (!home_address) { home_address = r_address_new(); g_object_set(home_address, "address-type", R_ADDRESS_HOME, NULL); } g_object_set(home_address, "zip", tmp, NULL); break; case CSV_HOME_COUNTRY: r_debug(self->private->field, tmp); if (!home_address) { home_address = r_address_new(); g_object_set(home_address, "address-type", R_ADDRESS_HOME, NULL); } g_object_set(home_address, "country", tmp, NULL); break; case CSV_WORK_STREET: r_debug(self->private->field, tmp); if (!work_address) work_address = r_address_new(); g_object_set(work_address, "address-type", R_ADDRESS_WORK, "street", tmp, NULL); break; case CSV_WORK_STREET_MORE: r_debug(self->private->field, tmp); if (!work_address) { work_address = r_address_new(); g_object_set(work_address, "type", R_ADDRESS_WORK, "street", tmp, NULL); } else { g_object_get(work_address, "street", &str, NULL); more = g_strdup_printf("%s %s", str, tmp); g_object_set(work_address, "street", more, NULL); g_free(str); g_free(more); } break; case CSV_WORK_CITY: r_debug(self->private->field, tmp); if (!work_address) { work_address = r_address_new(); g_object_set(work_address, "address-type", R_ADDRESS_WORK, NULL); } g_object_set(work_address, "city", tmp, NULL); break; case CSV_WORK_STATE_PROVINCE: r_debug(self->private->field, tmp); if (!work_address) { work_address = r_address_new(); g_object_set(work_address, "address-type", R_ADDRESS_WORK, NULL); } g_object_set(work_address, "province", tmp, NULL); break; case CSV_WORK_ZIP: r_debug(self->private->field, tmp); if (!work_address) { work_address = r_address_new(); g_object_set(work_address, "address-type",R_ADDRESS_WORK, NULL); } g_object_set(work_address, "zip", tmp, NULL); break; case CSV_WORK_COUNTRY: r_debug(self->private->field, tmp); if (!work_address) { work_address = r_address_new(); g_object_set(work_address, "address-type", R_ADDRESS_WORK, NULL); } g_object_set(work_address, "country", tmp, NULL); break; case CSV_TITLE: r_debug(self->private->field, tmp); if (!work) work = r_work_new(); g_object_set(work, "assignment", tmp, NULL); break; case CSV_DEPARTMENT: r_debug(self->private->field, tmp); if (!work) work = r_work_new(); g_object_set(work, "department", tmp, NULL); break; case CSV_ORGANIZATION: r_debug(self->private->field, tmp); if (!work) work = r_work_new(); g_object_set(work, "organization", tmp, NULL); break; case CSV_WORK_WEB: r_debug(self->private->field, tmp); net = r_net_address_new(); g_object_set(net, "url", tmp, "url-type", R_NET_ADDRESS_WORK_WEB, NULL); r_card_add_net_address(card, net); break; case CSV_WEB: r_debug(self->private->field, tmp); net = r_net_address_new(); g_object_set(net, "url", tmp, "url-type", R_NET_ADDRESS_WEB, NULL); r_card_add_net_address(card, net); break; case CSV_UNDEF1: case CSV_UNDEF2: case CSV_UNDEF3: r_debug(self->private->field, tmp); break; case CSV_CUSTOM1: r_debug(self->private->field, tmp); if (!notes) notes = r_notes_new(); r_notes_append_other_notes(notes, tmp); break; case CSV_CUSTOM2: r_debug(self->private->field, tmp); if (!notes) notes = r_notes_new(); r_notes_append_other_notes(notes, tmp); break; case CSV_CUSTOM3: r_debug(self->private->field, tmp); if (!notes) notes = r_notes_new(); r_notes_append_other_notes(notes, tmp); break; case CSV_CUSTOM4: r_debug(self->private->field, tmp); if (!notes) notes = r_notes_new(); r_notes_append_other_notes(notes, tmp); break; case CSV_NOTE: r_debug(self->private->field, tmp); if (!notes) notes = r_notes_new(); r_notes_append_other_notes(notes, tmp); break; case CSV_MORE: r_debug(self->private->field, tmp); if (!notes) notes = r_notes_new(); r_notes_append_other_notes(notes, tmp); break; default: // g_free(tmp); break; } } else r_debug(self->private->field, "-"); if (self->private->field != CSV_MORE) self->private->field++; else self->private->field = CSV_FIRST_NAME; } static void r_csv_append_unichar(RCsv* self, gunichar ch) { g_return_if_fail(IS_R_CSV(self)); g_string_append_unichar(self->private->buffer, ch); } static void r_csv_set_next_state(RCsv* self, RCsvState state) { g_return_if_fail(IS_R_CSV(self)); self->private->state = state; } static void r_csv_set_next_field(RCsv* self, RCsvField field) { g_return_if_fail(IS_R_CSV(self)); self->private->field = field; } static void r_csv_clean_buffer (RCsv* self) { g_return_if_fail(IS_R_CSV(self)); if (self->private->buffer) g_string_truncate (self->private->buffer, 0); } static void r_csv_build_data(RCsv* self, gunichar ch) { RCsvState current_state; g_return_if_fail(IS_R_CSV(self)); current_state = r_csv_get_state(self); switch (current_state) { case R_CSV_START: if (new_card) { card = r_personal_card_new(); new_card = FALSE; } r_csv_clean_buffer(self); if (r_csv_is_quote(ch)) r_csv_set_next_state(self, R_CSV_QUOTES); else { if (r_csv_is_separator(ch)) { r_csv_store_decoded_data(self, R_CARD(card)); r_csv_set_next_state(self, R_CSV_START); } else { r_csv_append_unichar(self, ch); r_csv_set_next_state(self, R_CSV_BUILD); } } break; case R_CSV_QUOTES: if (r_csv_is_quote(ch)) r_csv_set_next_state(self, R_CSV_DQUOTES); else { r_csv_append_unichar(self, ch); r_csv_set_next_state(self, R_CSV_BUILD_QUOTES); } break; case R_CSV_DQUOTES: if (r_csv_is_quote(ch)) r_csv_set_next_state(self, R_CSV_CLOSE_DQUOTES); else { if (r_csv_is_separator(ch)) { r_csv_store_decoded_data(self, R_CARD(card)); r_csv_set_next_state(self, R_CSV_START); } else { r_csv_append_unichar(self, ch); r_csv_set_next_state(self, R_CSV_BUILD_DQUOTES); } } break; case R_CSV_BUILD: if (r_csv_is_separator(ch)) { r_csv_store_decoded_data(self, R_CARD(card)); r_csv_set_next_state(self, R_CSV_START); } else { r_csv_append_unichar(self, ch); r_csv_set_next_state(self, R_CSV_BUILD); } break; case R_CSV_BUILD_QUOTES: if (r_csv_is_quote(ch)) r_csv_set_next_state(self, R_CSV_CLOSE_QUOTES); else { r_csv_append_unichar(self, ch); r_csv_set_next_state(self, R_CSV_BUILD_QUOTES); } break; case R_CSV_BUILD_DQUOTES: if (r_csv_is_quote(ch)) r_csv_set_next_state(self, R_CSV_CLOSE_DQUOTES); else { r_csv_append_unichar(self, ch); r_csv_set_next_state(self, R_CSV_BUILD_DQUOTES); } break; case R_CSV_CLOSE_QUOTES: if (!r_csv_is_separator(ch)) r_csv_set_next_state(self, R_CSV_CLOSE_QUOTES); else { r_csv_store_decoded_data(self, R_CARD(card)); r_csv_set_next_state(self, R_CSV_START); /* */ } break; case R_CSV_CLOSE_DQUOTES: if (r_csv_is_quote(ch)) r_csv_set_next_state(self, R_CSV_CLOSE_QUOTES); else r_csv_set_next_state(self, R_CSV_CLOSE_DQUOTES); break; default: break; } } void r_csv_store_file_position(RCsv *self) { g_return_if_fail(IS_R_CSV(self)); self->private->file_pos = ftell(self->fp); } /* ***************************** Public functions *********************** */ /** * r_csv_new * * create a new #RCsv * * returns: a #RCsv* */ RCsv* r_csv_new(void) { return (RCsv*) g_object_new(r_csv_get_type(), NULL); } /** * r_csv_free * @csv: a #RCsv * * free the #RCsv object */ void r_csv_free(RCsv *csv) { g_return_if_fail(IS_R_CSV(csv)); g_object_unref(csv); } /** * r_csv_open_file * @csv: #RCsv * @file: the file's name * * Read a csv file. * When a csv file is open a "file_opened" signal is emitted, * with an error code on file status. * Each time a csv's record is decoded, a "card_decoded" signal is * emitted and a #RPersonalCard will be sent to the user callback * function. The "addressbook_decoded" signal is emitted when csv file * if successfully read. * * returns: a gint, %FILE_OPEN_FAIL or %FILE_IMPORT_SUCCESS */ static gboolean r_csv_open_file (RAbook* abook, gchar* filename) { RCsv* csv; gunichar ch; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); if (!filename) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", NO_FILENAME, G_TYPE_INT); return FALSE; } if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", FILE_NOT_EXIST, G_TYPE_INT); return FALSE; } csv = (RCsv*) r_abook_get_plugin(abook); csv->fp = fopen(filename, "r"); if (!csv->fp) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", FILE_OPEN_FAIL, G_TYPE_INT); return FALSE; } g_object_set(R_ABOOK(abook), "addressbook-name", g_path_get_basename(filename), "addressbook-path", g_path_get_dirname(filename), NULL); do { ch = fgetc(csv->fp); while ((ch == '\n') && (csv->private->state == R_CSV_START)) ch = fgetc(csv->fp); /* read characters from file until \n or \n\r or EOF is reached */ if ((ch != feof(csv->fp))) { if ((ch != '\n') && (ch != '\r')) r_csv_build_data(csv, ch); else /* card successfully read */ { // g_print("\nCARD READ"); r_csv_store_file_position(csv); if (contact) { r_personal_card_set_contact(card, contact); contact = NULL; } if (work) { r_personal_card_set_work(card, work); work = NULL; } if (notes) { r_personal_card_set_notes(card, notes); notes = NULL; } if (home_address) { r_card_add_address(R_CARD(card), home_address); home_address = NULL; } if (work_address) { r_card_add_address(R_CARD(card), work_address); work_address = NULL; } r_abook_add_loaded_card(R_ABOOK(abook), R_CARD(card)); g_signal_emit_by_name(R_ABOOK(abook), "card_read", card, G_TYPE_POINTER); r_csv_set_next_field(csv, CSV_FIRST_NAME); r_csv_set_next_state(csv, R_CSV_START); new_card = TRUE; } } } while(!feof(csv->fp)); g_signal_emit_by_name(R_ABOOK(abook), "addressbook_read", NULL, G_TYPE_NONE); return TRUE; } static void write_card (RCard* card, FILE* fp) { RNotes* notes; RAddress* address; RNetAddress* net; RTelephone* tel; gchar *type, *dn; gchar *fn = NULL, *ln = NULL, *nick = NULL; gchar *str = NULL, *city = NULL, *state = NULL; gchar *zip = NULL, *country = NULL; gchar *wstr = NULL, *wcity = NULL, *wstate = NULL; gchar *wzip = NULL, *wcountry = NULL; gchar *email1 = NULL, *email2 = NULL; gchar *web = NULL, *wweb = NULL; gchar *wtel = NULL, *htel = NULL, *fax = NULL; gchar *pager = NULL, *mobile = NULL; gchar *role = NULL, *dep = NULL, *org = NULL; gchar *note = NULL; g_object_get(card, "card-type", &type, "card-name", &dn, NULL); if (g_ascii_strcasecmp(type, "personal") == 0) { RContact* contact; RWork* work; contact = r_personal_card_get_contact(R_PERSONAL_CARD(card)); work = r_personal_card_get_work(R_PERSONAL_CARD(card)); notes = r_personal_card_get_notes(R_PERSONAL_CARD(card)); g_object_get(contact, "first-name", &fn, "last-name", &ln, "nick-name", &nick, NULL); g_object_get(work, "assignment", &role, "department", &dep, "organization", &org, NULL); g_object_get(notes, "other-notes", ¬e, NULL); } else // company { g_object_get(R_COMPANY_CARD(card), "notes", ¬e, NULL); } /* reset iter */ r_card_reset_address(card); /* find address of type: R_ADDRESS_HOME */ address = r_card_find_address(card, R_ADDRESS_HOME); if (address) g_object_get(address, "street", &str, "city", &city, "state", &state, "zip", &zip, "country", &country, NULL); /* reset iter */ r_card_reset_address(card); /* find address of type: R_ADDRESS_WORK */ address = r_card_find_address(card, R_ADDRESS_WORK); if (address) g_object_get(address, "street", &wstr, "city", &wcity, "state", &wstate, "zip", &wzip, "country", &wcountry, NULL); /* reset net iter */ r_card_reset_net_address(card); /* find first net address */ net = r_card_find_net_address(card, R_NET_ADDRESS_EMAIL); if (net) g_object_get(net, "url", &email1, NULL); /* find next next address */ net = r_card_find_net_address(card, R_NET_ADDRESS_EMAIL); if (net) g_object_get(net, "url", &email2, NULL); r_card_reset_net_address(card); net = r_card_find_net_address(card, R_NET_ADDRESS_WEB); if (net) g_object_get(net, "url", &web, NULL); r_card_reset_net_address(card); net = r_card_find_net_address(card, R_NET_ADDRESS_WORK_WEB); if (net) g_object_get(net, "url", &wweb, NULL); r_card_reset_telephone(card); tel = r_card_find_telephone(card, R_TELEPHONE_HOME); if (tel) g_object_get(tel, "telephone-number", &htel, NULL); r_card_reset_telephone(card); tel = r_card_find_telephone(card, R_TELEPHONE_WORK); if (tel) g_object_get(tel, "telephone-number", &wtel, NULL); r_card_reset_telephone(card); tel = r_card_find_telephone(card, R_TELEPHONE_FAX); if (tel) g_object_get(tel, "telephone-number", &fax, NULL); r_card_reset_telephone(card); tel = r_card_find_telephone(card, R_TELEPHONE_CELLPHONE); if (tel) g_object_get(tel, "telephone-number", &mobile, NULL); r_card_reset_telephone(card); tel = r_card_find_telephone(card, R_TELEPHONE_PAGER); if (tel) g_object_get(tel, "telephone-number", &pager, NULL); fprintf(fp, "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"," "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"," "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"," "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"," "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"\n", fn ? fn : "", ln ? ln : "", dn ? dn : "", nick ? nick : "", email1 ? email1 : "", email2 ? email2 : "", wtel ? wtel : "", htel ? htel : "", fax ? fax : "", pager ? pager : "", mobile ? pager : "", str ? str : "", "", city ? city : "", state ? state : "", zip ? zip : "", country ? country : "", wstr ? wstr : "", "", wcity ? wcity :"", wstate ? wstate : "", wzip ? wzip : "", wcountry ? wcountry : "", role ? role : "", dep ? dep : "", org ? org : "", wweb ? wweb : "", web ? web : "", "", "", "", "", "", "", "", note ? note : "", ""); } static gboolean r_csv_save_file (RAbook* abook, gchar* filename) { FILE* fp; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(filename != NULL, FALSE); if (!(fp = fopen(filename, "w"))) { g_warning("\nCan't write file: %s", filename); return FALSE; } r_abook_foreach_card (abook, (RFunc) write_card, fp); fflush(fp); return TRUE; } static gboolean r_csv_overwrite_file(RAbook* abook) { gchar* file; gchar* path; gchar* filename; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_object_get(abook, "addressbook-path", &path, "addressbook-name", &file, NULL); filename = g_strdup_printf("%s%s%s", path, G_DIR_SEPARATOR_S, file); if (g_file_test(filename, G_FILE_TEST_EXISTS)) g_remove(filename); if (!r_csv_save_file(abook, filename)) { g_signal_emit_by_name(abook, "save_fail", OVERWRITING, G_TYPE_INT); g_free(filename); return FALSE; } g_free(filename); g_signal_emit_by_name(abook, "addressbook_saved", NULL, G_TYPE_NONE); return TRUE; } /** * r_csv_read_previous_record * @csv: #RCsv * * read the previous record from csv file */ void r_csv_read_previous_record (RCsv *csv) { g_return_if_fail(IS_R_CSV(csv)); fseek(csv->fp, csv->private->file_pos, SEEK_SET); } G_MODULE_EXPORT void plugin_init (RPlugin* plugin, gchar* file) { RPluginAction* action; RFilter* filter; g_return_if_fail(plugin != NULL); r_plugin_set_obj(plugin, r_csv_new()); g_object_set(plugin, "plugin-name", "csv", "plugin-filename", file, "plugin-info", "This plugin manages the csv file format", "plugin-configurable", TRUE, NULL); filter = r_filter_new(); g_object_set(filter, "filter-name", "CSV", "filter-mime", "text/x-comma-separated-values", NULL); r_filter_add_pattern(filter, "csv"); r_filter_add_pattern(filter, "*.csv"); r_plugin_add_filter (plugin, filter); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("read"); action->handle = (gpointer) r_csv_open_file; r_plugin_add_action(plugin, action); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("write"); action->handle = (gpointer) r_csv_save_file; r_plugin_add_action(plugin, action); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("overwrite"); action->handle = (gpointer) r_csv_overwrite_file; r_plugin_add_action(plugin, action); } G_MODULE_EXPORT void plugin_fini (void) { // TODO: liberare la memoria e rilasciare l'handler al plugin } rubrica-2.0/libral/plugins/csv/Makefile.in0000644000175000017500000004460710637712667017414 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Plugin csv # # Plugin glade file # csv_gladedir = $(libral_plugins_gui_dir) # csv_glade_DATA = # Plugin pixmaps # csv_pixmapsdir = $(libral_plugins_pixmaps_dir) # csv_pixmaps_DATA = # # additional libtool flags (such as -version-info or -static or -module) # Ordinarily, Automake requires that a shared library's name start with 'lib'. # However, if you are building a dynamically loadable module, you migth wish # to use a "nonstandard" name. in this case, put -module into the '_LDFLAGS' # variable (automake.pdf pag. 24) VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libral/plugins/csv DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libcsv_ladir)" libcsv_laLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(libcsv_la_LTLIBRARIES) libcsv_la_LIBADD = am_libcsv_la_OBJECTS = csv.lo libcsv_la_OBJECTS = $(am_libcsv_la_OBJECTS) libcsv_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libcsv_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libcsv_la_SOURCES) DIST_SOURCES = $(libcsv_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Where to install the plugin libcsv_ladir = $(libral_plugins_dir) # The plugin libcsv_la_LTLIBRARIES = libcsv.la # Plugin sources libcsv_la_SOURCES = csv.c csv.h libcsv_la_LDFLAGS = -version-info $(LIBCSV_CURRENT_VERSION):$(LIBCSV_REVISION_VERSION):$(LIBCSV_COMPAT_VERSION) libcsv_LTLDFLAGS = -module -rpath./ # Include paths INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ $(LIBRAL_CFLAGS) AM_CFLAGS = -Wall -fPIC -DPIC all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libral/plugins/csv/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu libral/plugins/csv/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libcsv_laLTLIBRARIES: $(libcsv_la_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libcsv_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libcsv_ladir)" @list='$(libcsv_la_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libcsv_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libcsv_ladir)/$$f'"; \ $(LIBTOOL) --mode=install $(libcsv_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libcsv_ladir)/$$f"; \ else :; fi; \ done uninstall-libcsv_laLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(libcsv_la_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libcsv_ladir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libcsv_ladir)/$$p"; \ done clean-libcsv_laLTLIBRARIES: -test -z "$(libcsv_la_LTLIBRARIES)" || rm -f $(libcsv_la_LTLIBRARIES) @list='$(libcsv_la_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libcsv.la: $(libcsv_la_OBJECTS) $(libcsv_la_DEPENDENCIES) $(libcsv_la_LINK) -rpath $(libcsv_ladir) $(libcsv_la_OBJECTS) $(libcsv_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/csv.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libcsv_ladir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libcsv_laLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-libcsv_laLTLIBRARIES install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libcsv_laLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libcsv_laLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libcsv_laLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-libcsv_laLTLIBRARIES # EXTRA_DIST = \ # $(csv_glade_DATA) \ # $(csv_pixmaps_DATA) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/libral/plugins/csv/csv.h0000644000175000017500000000424710637704413016275 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: csv.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_CSV_H #define _R_CSV_H #include #include #include #include #include "../../abook.h" #include "../../error.h" #include "../../plugin.h" #define R_CSV_TYPE (r_csv_get_type()) #define R_CSV(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_CSV_TYPE, RCsv)) #define R_CSV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_CSV_TYPE, RCsvClass)) #define IS_R_CSV(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), R_CSV_TYPE)) #define IS_R_CSV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), R_CSV_TYPE)) #define R_CSV_GET_CLASS(obj) (G_TYPE_CHECK_INSTANCE_GET_CLASS((obj), \ R_CSV_TYPE, RCsvClass)) typedef struct _RCsv RCsv; typedef struct _RCsvClass RCsvClass; typedef struct _RCsvPrivate RCsvPrivate; struct _RCsv { RAbook parent; FILE* fp; /* the csv file */ /* private */ RCsvPrivate* private; }; struct _RCsvClass { RAbookClass parent; }; GType r_csv_get_type (void); /* ************ Public ************ RCsv* r_csv_new (void); void r_csv_free (RCsv *csv); */ G_MODULE_EXPORT void plugin_init (RPlugin* plugin, gchar* file); G_MODULE_EXPORT void plugin_fini (void); #endif /* _R_CSV_H */ rubrica-2.0/libral/plugins/rubrica/0000755000175000017500000000000010637712736016165 5ustar seb128seb128rubrica-2.0/libral/plugins/rubrica/Makefile.am0000644000175000017500000000230610637704542020216 0ustar seb128seb128# # Plugin rubrica # # Plugin glade file # rubrica_gladedir = # vacrd_glade_DATA = # Plugin pixmaps # rubrica_pixmapsdir = # rubrica_pixmaps_DATA = # # additional libtool flags (such as -version-info or -static or -module) # Ordinarily, Automake requires that a shared library's name start with 'lib'. # However, if you are building a dynamically loadable module, you migth wish # to use a "nonstandard" name. in this case, put -module into the '_LDFLAGS' # variable (automake.pdf pag. 24) # Where to install the plugin librubrica_ladir=$(libral_plugins_dir) # The plugin librubrica_la_LTLIBRARIES = librubrica.la # Plugin sources librubrica_la_SOURCES = \ rubrica.c rubrica.h \ io.c io.h \ load.c load.h \ save.c save.h librubrica_la_LDFLAGS = -version-info $(LIBRUBRICA_CURRENT_VERSION):$(LIBRUBRICA_REVISION_VERSION):$(LIBRUBRICA_COMPAT_VERSION) librubrica_LTLDFLAGS = -module -rpath./ # Include paths INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ -DRUBRICA_VERSION=\""@RUBRICA_VERSION@"\" \ -DRUBRICA_FILE_FORMAT=\""@RUBRICA_FILE_FORMAT@"\" \ $(LIBRAL_CFLAGS) AM_CFLAGS = -Wall -fPIC -DPIC #EXTRA_DIST = \ # $(rubrica_glade_DATA) \ # $(rubrica_pixmaps_DATA) rubrica-2.0/libral/plugins/rubrica/load.c0000644000175000017500000007330210620101445017232 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: load.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "load.h" #include "io.h" #include "../../card.h" #include "../../personal.h" #include "../../company.h" #include "../../contact.h" #include "../../address.h" #include "../../group.h" #include "../../net.h" #include "../../notes.h" #include "../../telephone.h" #include "../../error.h" /* RubricaDoc file structure: version: rubrica's version that made the addressbook file fileformat: #4 doctype: addressbook root card's type card child ... groups children ...... ... ......... ... card child
addresses children .... address child ......... ............ ............... .............
...
.......... ........ .......... .......... ........ .......... ....... ... ... ... .... ... card child ............... data child .............. " " ................ ................ .............. .............. ................... ........... .............. ............ .............. ........... ............. ............ ......... ....... .............. ................... .............. ...............
card's type card child ................... groups children ... ......... ... ............. ................... card child
addresses children .... address child ......... ............ ............... .............
...
.......... ........ ... ...... ... ........ ... first name, last name ...
...
Rubrica | | children | v next next next Card-------->Card-------->....------->Card | | children | v next Groups--->Data--->Addresses--->Net--->....Phone-->Work-->Notes | \ | | | | | | child | child | child | | | | | | v v v v v | | ... ... ... ... ... ... v v Group FirstName--->MiddleName--->... pcxxx => personal card #xxx ccxxx => company card #xxx */ void r_real_load_card (RCard* card, xmlNodePtr xmlcard); gchar *r_get_card_name (xmlNodePtr node, RError *err); void r_read_web (RCard *card, xmlNodePtr node); void r_read_email (RCard *card, xmlNodePtr node); void r_read_address (RCard *card, xmlNodePtr node); gboolean reading_old_card = FALSE; gchar* r_get_card_name(xmlNodePtr node, RError *err) { gchar* ret = NULL; ret = r_io_get_prop(node, "name", err); if (!ret) { // r_log_write(err); return NULL; } return (gchar*) ret; } void r_read_infos(RCard *card, xmlNodePtr node) { xmlNodePtr xmlcard = NULL; RError err; gchar* id; time_t created, changed; g_return_if_fail(IS_R_CARD(card)); xmlcard = r_io_get_node(node, (xmlChar*) "Card"); if (xmlcard) { gchar *name, *tmp; gboolean locked, deleted; // , marked; RRate rate; name = r_get_card_name(xmlcard, &err); locked = r_io_get_bool(xmlcard, "locked", &err); deleted = r_io_get_bool(xmlcard, "deleted", &err); tmp = r_io_get_prop(xmlcard, "rate", &err); if (tmp) { rate = (RRate) atoi(tmp); g_free(tmp); } else rate = R_RATE_NORMAL; id = r_io_get_prop(xmlcard, "id", &err); if (id && (g_ascii_strcasecmp(id, "0") != 0)) { gchar* type = NULL; type = r_io_get_prop(xmlcard, "type", &err); r_card_reassign_id(card, atol(id)); g_free(id); } else // I'm readind an old card, no id is needed to be set { locked = r_io_get_bool(xmlcard, "deleting", &err); deleted = FALSE; } g_object_set(card, "card-name", name, "card-locked", locked, "card-deleted", deleted, "card-rate", rate, NULL); created = r_io_get_date(xmlcard, "created", &err); changed = r_io_get_date(xmlcard, "last_change", &err); g_object_set(card, "card-created", created, "card-changed", changed, NULL); } else { /* TODO segnalare l'errore, far scegliere all'utente se continuare a caricare automaticamente il file o avviare un caricamento assistito */ } } void r_read_groups(RCard *card, xmlNodePtr cardnode) { xmlNodePtr xmltablegroups = NULL; xmlNodePtr xmlgroup; RError err; RGroup* group; gchar* name; gchar* owner; gchar* pixmap; /* card's child ........ groups children ... */ g_return_if_fail(IS_R_CARD(card)); xmltablegroups = r_io_get_node(cardnode, (xmlChar*) "Groups"); if (xmltablegroups) { xmlgroup = xmltablegroups->children; if (xmlIsBlankNode(xmlgroup)) xmlgroup = xmlgroup->next; while (xmlgroup) { if (xmlIsBlankNode(xmlgroup)) xmlgroup = xmlgroup->next; group = r_group_new(); name = r_io_get_content(xmlgroup, &err); owner = r_io_get_prop(xmlgroup, "owner", &err); pixmap = r_io_get_prop(xmlgroup, "pixmap", &err); g_object_set(group, "group-name", name, "group-label", name, "group-owner", owner, "group-pixmap", pixmap, "enabled", TRUE, NULL); r_card_add_group(card, group); if (name) g_free(name); if (owner) g_free(owner); if (pixmap) g_free(pixmap); xmlgroup = xmlgroup->next; if (xmlIsBlankNode(xmlgroup)) xmlgroup = xmlgroup->next; } } else // may be i'm reading an old card { name = r_io_get_prop(cardnode, "group", &err); if (name) { group = r_group_new(); g_object_set(group, "group-name", name, "group-owner", "rubrica", "group-pixmap", "", "enabled", TRUE, NULL); r_card_add_group(card, group); } } } void r_read_refs (RCard *card, xmlNodePtr cardnode) { xmlNodePtr xmlrefs = NULL; xmlNodePtr xmlref; RError err; /* card's child references's description refs children .... */ g_return_if_fail(IS_R_CARD(card)); xmlrefs = r_io_get_node(cardnode, (xmlChar*) "Refs"); if (xmlrefs) { xmlref = xmlrefs->children; if (xmlIsBlankNode(xmlref)) xmlref = xmlref->next; while (xmlref) { RRef* ref; gchar* ref_id, *desc; glong id = 0L; if (xmlIsBlankNode(xmlref)) xmlref = xmlref->next; desc = r_io_get_content(xmlref, &err); ref_id = r_io_get_prop(xmlref, "refid", &err); if (ref_id) id = atol(ref_id); ref = r_ref_new(id); g_object_set(ref, "ref-info", desc, NULL); r_card_add_ref(card, ref); if (ref_id) g_free(ref_id); if (desc) g_free(desc); xmlref = xmlref->next; if (xmlIsBlankNode(xmlref)) xmlref = xmlref->next; } } } void r_read_contact(RPersonalCard *card, xmlNodePtr cardnode) { RError err; RContact* contact; xmlNodePtr xmldata = NULL; g_return_if_fail(IS_R_PERSONAL_CARD(card)); contact = r_contact_new(); if (!IS_R_CONTACT(contact)) { r_personal_card_set_contact(card, NULL); return; } xmldata = r_io_get_node(cardnode, (xmlChar*) "Data"); if (xmldata) { gchar *day, *month, *year; gchar *first, *middle, *last, *nick, *genre; gchar *prefix, *prof, *title, *photo; first = r_io_get(xmldata, "FirstName", &err); middle = r_io_get(xmldata, "MiddleName", &err); last = r_io_get(xmldata, "LastName", &err); nick = r_io_get(xmldata, "NickName", &err); prof = r_io_get(xmldata, "Profession", &err); prefix = r_io_get(xmldata, "NamePrefix", &err); title = r_io_get(xmldata, "Title", &err); genre = r_io_get(xmldata, "Genre", &err); photo = r_io_get(xmldata, "Photo", &err); g_object_set(contact, "first-name", first, "middle-name", middle, "last-name", last, "nick-name", nick, "prefix", prefix, "profession", prof, "genre", genre, "title", title, "photo", photo, NULL); g_free(first); g_free(middle); g_free(last); g_free(nick); g_free(prefix); g_free(prof); g_free(title); g_free(genre); g_free(photo); r_io_get_calendar_from (xmldata, "Birthday", &day, &month, &year, &err); if ((g_ascii_strcasecmp(day, "BadDay") == 0) && (g_ascii_strcasecmp(month, "BadMonth") == 0) && (g_ascii_strcasecmp(year, "BadYear") == 0)) // reading an old node ? { xmlNodePtr node; time_t birth; struct tm time; node = r_io_get_node(xmldata, (xmlChar*) "FirstName"); if (node) { if(xmlHasProp(node, (xmlChar*) "know_birthday")) { if (r_io_get_bool(node, "know_birthday", &err)) { birth = r_io_get_date(node, "birthday", &err); localtime_r(&birth, &time); r_contact_set_birthday (contact, time.tm_mday, time.tm_mon, time.tm_year); } } } } else r_contact_set_birthday (contact, atoi(day), atoi(month), atoi(year)); r_personal_card_set_contact(card, contact); } } void r_read_work(RPersonalCard *card, xmlNodePtr cardnode) { RError err; xmlNodePtr xmlwork = NULL; xmlNodePtr old = NULL; g_return_if_fail(IS_R_PERSONAL_CARD(card)); xmlwork = r_io_get_node(cardnode, (xmlChar*) "Work"); if (xmlwork) { RWork* work; gchar *assignment = NULL, *org = NULL, *dep = NULL, *subdep = NULL; gchar *manager = NULL, *mphone = NULL; gchar *collaborator =NULL, *cphone = NULL; assignment = r_io_get(xmlwork, "Assignment", &err); org = r_io_get(xmlwork, "Organization", &err); dep = r_io_get(xmlwork, "Department", &err); subdep = r_io_get(xmlwork, "SubDepartment", &err); manager = r_io_get(xmlwork, "ManagerName", &err); mphone = r_io_get(xmlwork, "ManagerPhone", &err); collaborator = r_io_get(xmlwork, "CollaboratorName", &err); cphone = r_io_get(xmlwork, "CollaboratorPhone", &err); old = r_io_get_node(xmlwork, (xmlChar*) "SecretaryName"); if (old) // reading old card { collaborator = r_io_get(xmlwork, "SecretaryName", &err); cphone = r_io_get(xmlwork, "SecretaryPhone", &err); } if (assignment || org || dep || subdep || manager || mphone || collaborator || cphone) { work = r_work_new(); if (!IS_R_WORK(work)) return; g_object_set(work, "assignment", assignment, "organization", org, "department", dep, "sub-department", subdep, "manager-name", manager, "manager-phone", mphone, "collaborator", collaborator, "collaborator-phone", cphone, NULL); g_free(assignment); g_free(org); g_free(dep); g_free(subdep); g_free(manager); g_free(mphone); g_free(collaborator); g_free(cphone); r_personal_card_set_work(card, work); } } } void r_read_addresses(RCard *card, xmlNodePtr cardnode) { RAddress* address = NULL; RError err; xmlNodePtr xmladd = NULL; xmlNodePtr xmladdress; gchar *tmp; g_return_if_fail(IS_R_CARD(card)); xmladd = r_io_get_node(cardnode, (xmlChar*) "Addresses"); if (xmladd) { RAddressType type; gchar *street = NULL, *number = NULL, *city = NULL, *zip = NULL; gchar *province = NULL, *state = NULL, *country = NULL; /* child is the head of an
list */ xmladdress = xmladd->children; if (xmlIsBlankNode(xmladdress)) xmladdress = xmladdress->next; while(xmladdress) { /* The address's data:
addresses children .... address child ...
*/ /* get address type ---
*/ tmp = r_io_get_prop(xmladdress, "type", &err); type = r_address_lookup_str2enum(tmp); street = r_io_get(xmladdress, "Street", &err); number = r_io_get_prop_from(xmladdress, "Street", "number", &err); city = r_io_get(xmladdress, "City", &err); zip = r_io_get_prop_from(xmladdress, "City", "zip", &err); province = r_io_get(xmladdress, "Province", &err); state = r_io_get(xmladdress, "State", &err); country = r_io_get(xmladdress, "Country", &err); if (street || number || city || zip || province || state || country) { address = r_address_new(); if (!IS_R_ADDRESS(address)) { g_warning("address obj get wrong type"); return; } g_object_set(address, "address-type", type, "street", street, "street-number", number, "city", city, "zip", zip, "province", province, "state", state, "country", country, NULL); r_card_add_address(card, address); } xmladdress = xmladdress->next; if (xmlIsBlankNode(xmladdress)) xmladdress = xmladdress->next; } } } void r_read_net(RCard *card, xmlNodePtr cardnode) { RNetAddress* net; RError err; xmlNodePtr xmlnet_child; xmlNodePtr xmlnet = NULL; gchar* net_data; gchar* net_type; /* .......... ........ .......... ... */ g_return_if_fail(IS_R_CARD(card)); xmlnet = r_io_get_node(cardnode, (xmlChar*) "Net"); if (xmlnet) { xmlnet_child = xmlnet->children; if (xmlIsBlankNode(xmlnet_child)) xmlnet_child = xmlnet_child->next; while (xmlnet_child) { RNetAddressType type; if (xmlIsBlankNode(xmlnet_child)) xmlnet_child = xmlnet_child->next; net_data = r_io_get_content(xmlnet_child, &err); net_type = r_io_get_prop(xmlnet_child, "type", &err); if (net_data) { net = r_net_address_new(); if(!IS_R_NET_ADDRESS(net)) { g_warning("net obj get wrong type"); g_free(net_type); g_free(net_data); return; } type = r_net_address_encode_type(net_type); g_object_set(net, "url", net_data, "url-type", type, NULL); r_card_add_net_address(card, net); g_free(net_data); g_free(net_type); } xmlnet_child = xmlnet_child->next; if (xmlIsBlankNode(xmlnet_child)) xmlnet_child = xmlnet_child->next; } } } void r_read_web(RCard *card, xmlNodePtr node) { RError err; xmlNodePtr child; RNetAddress* net; xmlNodePtr xmlweb = NULL; gchar *tmp; xmlweb = r_io_get_node(node, (xmlChar*) "WebAddresses"); if (xmlweb) { child = xmlweb->children; if (xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlIsBlankNode(child)) child = child->next; tmp = r_io_get_content(child, &err); if (tmp) { net = r_net_address_new(); if (IS_R_NET_ADDRESS(net)) { g_object_set(net, "url", tmp, "url-type", R_NET_ADDRESS_WEB, NULL); r_card_add_net_address(card, net); g_free(tmp); tmp = NULL; } else return; } if (child->next) { child = child->next; if (xmlIsBlankNode(child)) child = child->next; } } } } void r_read_email(RCard *card, xmlNodePtr node) { RError err; RNetAddress* net; xmlNodePtr xmlemail = NULL; xmlNodePtr child; gchar *tmp; xmlemail = r_io_get_node(node, (xmlChar*) "EmailAddresses"); if (xmlemail) { // foreach child child = xmlemail->children; if (xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlIsBlankNode(child)) child = child->next; tmp = r_io_get_content(child, &err); if (tmp) { net = r_net_address_new(); if (IS_R_NET_ADDRESS(net)) { g_object_set(net, "url", tmp, "url-type", R_NET_ADDRESS_EMAIL, NULL); r_card_add_net_address(card, net); g_free(tmp); tmp = NULL; } else return; } // get next child if (child->next) { child = child->next; if (xmlIsBlankNode(child)) child = child->next; } } } } void r_read_address(RCard *card, xmlNodePtr node) { RAddress* ads; xmlNodePtr xmladdres = NULL; xmlNodePtr child; /*
*/ xmladdres = r_io_get_node(node, (xmlChar*) "Address"); if (xmladdres) { RError err; gchar *st, *num, *zip, *city, *prov, *state, *country; child = xmladdres->children; if (xmlIsBlankNode(child)) child = child->next; ads = r_address_new(); st = r_io_get(child, "Street", &err); num = r_io_get(child, "StreetNumber", &err); zip = r_io_get(child, "ZipCode", &err); city = r_io_get(child, "City", &err); prov = r_io_get(child, "Province", &err); state = r_io_get(child, "State", &err); country = r_io_get(child, "Country", &err); g_object_set(G_OBJECT(ads), "address-type", R_ADDRESS_PREF, "street", st, "street-number", num, "city", city, "zip", zip, "province", prov, "state", state, "country", country, NULL); r_card_add_address(card, ads); } } void r_read_telephone(RCard *card, xmlNodePtr cardnode) { xmlNodePtr xmltel_child; xmlNodePtr xmltel = NULL; RError err; RTelephone* tel; RTelephoneType ttype; gchar* number; gchar* type; g_return_if_fail(IS_R_CARD(card)); xmltel = r_io_get_node(cardnode, (xmlChar*) "TelephoneNumbers"); if (xmltel) { xmltel_child = xmltel->children; if (xmlIsBlankNode(xmltel_child)) xmltel_child = xmltel_child->next; while(xmltel_child) { if (xmlIsBlankNode(xmltel_child)) xmltel_child = xmltel_child->next; number = r_io_get_content(xmltel_child, &err); type = r_io_get_prop(xmltel_child, "type", &err); if (number) { tel = r_telephone_new(); if(!IS_R_TELEPHONE(tel)) { g_warning("telephone obj get wrong type"); return; } ttype = r_telephone_lookup_str2enum(type); g_object_set(tel, "telephone-number", number, "telephone-type", ttype, NULL); r_card_add_telephone(card, tel); g_free(number); g_free(type); } xmltel_child = xmltel_child->next; if (xmlIsBlankNode(xmltel_child)) xmltel_child = xmltel_child->next; } } } void r_read_notes(RPersonalCard *card, xmlNodePtr cardnode) { RError err; xmlNodePtr xmlnote = NULL; g_return_if_fail(IS_R_PERSONAL_CARD(card)); xmlnote = r_io_get_node(cardnode, (xmlChar*) "Notes"); if (xmlnote) { RNotes* notes; gchar *day, *month, *year; gchar *partner, *other, *pubkey; gboolean bool, has_partner; notes = r_notes_new(); if (!IS_R_NOTES(notes)) return; has_partner = r_io_get_bool(xmlnote, "partner", &err); partner = r_io_get(xmlnote, "PartnerName", &err); other = r_io_get(xmlnote, "OtherNotes", &err); pubkey = r_io_get(xmlnote, "PublicKey", &err); g_object_set(notes, "has-partner", has_partner, "partner-name", partner, "other-notes", other, "pubkey", pubkey, NULL); g_free(partner); g_free(other); g_free(pubkey); bool = r_io_get_bool_from(xmlnote, "PartnerBirthday", "known", &err); r_io_get_calendar_from (xmlnote, "PartnerBirthday", &day, &month, &year, &err); if (bool) { r_notes_set_know_birthday(notes, TRUE); r_notes_set_birthday (notes, atoi(day), atoi(month), atoi(year)); } bool = r_io_get_bool_from(xmlnote, "Anniversary", "known", &err); r_io_get_calendar_from (xmlnote, "Anniversary",&day, &month, &year, &err); if (bool) { r_notes_set_know_anniversary(notes, TRUE); r_notes_set_anniversary(notes, atoi(day), atoi(month), atoi(year)); } r_personal_card_set_notes (card, notes); } } void r_read_company (RCompanyCard* card, xmlNodePtr cardnode) { RError err; xmlNodePtr xmlcompany = NULL; gchar* tmp; g_return_if_fail(IS_R_COMPANY_CARD(card)); xmlcompany = r_io_get_node(cardnode, (xmlChar*) "Company"); if (xmlcompany) { tmp = r_io_get(xmlcompany, "CompanyName", &err); g_object_set(card, "company-name", tmp, NULL); g_free(tmp); tmp = r_io_get(xmlcompany, "Logo", &err); g_object_set(card, "company-logo", tmp, NULL); g_free(tmp); tmp = r_io_get(xmlcompany, "VAT", &err); g_object_set(card, "company-vat", tmp, NULL); g_free(tmp); tmp = r_io_get(xmlcompany, "Notes", &err); g_object_set(card, "company-notes", tmp, NULL); g_free(tmp); } } /* Public */ /* open the file "filename" return ptr to xml doc or NULL on error */ xmlDocPtr r_open_doc(gchar *filename, RError* err) { xmlDocPtr doc; *err = NO_FILENAME; g_return_val_if_fail(filename != NULL, NULL); /* read and parse file */ doc = xmlParseFile(filename); if (!doc) { *err = PARSING_DOC; return NULL; } *err = NO_ERROR; return doc; } /* get the file format of the r's doc */ gint r_get_fileformat(xmlDocPtr doc, RError* err) { gchar* tmp; gint ret; *err = NO_RUBRICA_DOC; g_return_val_if_fail(doc != NULL, -1); if(!xmlHasProp(doc->children, (xmlChar*) "fileformat")) { *err = UNKNOWN_FILEFORMAT; return 0; } *err = NO_ERROR; tmp = (gchar*) xmlGetProp(doc->children, (xmlChar*) "fileformat"); ret = atoi(tmp); xmlFree(tmp); return ret; } /* get version. the version of r that make the file */ gchar* r_get_version(xmlDocPtr doc, RError *err) { gchar* ret = NULL; *err = NO_RUBRICA_DOC; g_return_val_if_fail(doc != NULL, NULL); if(!xmlHasProp(doc->children, (xmlChar*) "version")) { *err = UNKNOWN_VERSION; return NULL; } *err = NO_ERROR; ret = (gchar*) xmlGetProp(doc->children, (xmlChar*) "version"); return ret; } /* get the document type values: ADDRESSBOOK_TYPE_DOC ACCOUNT_TYPE_DOC // removed, may be added in future */ gchar* r_get_document_tpye(xmlDocPtr doc, RError *err) { gchar* ret = NULL; *err = NO_RUBRICA_DOC; g_return_val_if_fail(doc != NULL, NULL); if(!xmlHasProp(doc->children, (xmlChar*) "doctype")) { *err = UNKNOWN_DOC; return NULL; } *err = NO_ERROR; ret = (gchar*) xmlGetProp(doc->children, (xmlChar*) "doctype"); return ret; } /* check if file "filename" is a r doc return TRUE if xml doc is a r doc FALSE otherwise */ gboolean r_is_rubrica_doc(xmlDocPtr doc, RError *err) { *err = NO_RUBRICA_DOC; g_return_val_if_fail(doc != NULL, FALSE); if (!doc->children || !doc->children->name || g_ascii_strcasecmp((gchar*) doc->children->name, (gchar*) "Rubrica") != 0) { *err = UNKNOWN_DOC; // rubrica_dialog_error_loading_file(fname, RE_NO_RUBRICA_HEADER); return FALSE; } *err = NO_ERROR; return TRUE; } RPersonalCard* r_read_personal_xmlcard(xmlNodePtr xmlcard) { RPersonalCard* card; card = r_personal_card_new(); r_read_infos (R_CARD(card), xmlcard); r_read_contact (card, xmlcard); r_read_groups (R_CARD(card), xmlcard); r_read_refs (R_CARD(card), xmlcard); r_read_work (card, xmlcard); r_read_addresses (R_CARD(card), xmlcard); r_read_net (R_CARD(card), xmlcard); r_read_telephone (R_CARD(card), xmlcard); r_read_notes (card, xmlcard); return card; } RCompanyCard * r_read_company_xmlcard(xmlNodePtr xmlcard) { RCompanyCard *card; card = r_company_card_new(); r_read_infos (R_CARD(card), xmlcard); r_read_company (card, xmlcard); r_read_groups (R_CARD(card), xmlcard); r_read_refs (R_CARD(card), xmlcard); r_read_addresses (R_CARD(card), xmlcard); r_read_net (R_CARD(card), xmlcard); r_read_telephone (R_CARD(card), xmlcard); return card; } RPersonalCard* r_read_old_personal_xmlcard(xmlNodePtr xmlcard) { RPersonalCard* card = NULL; reading_old_card = TRUE; card = r_personal_card_new(); r_read_infos (R_CARD(card), xmlcard); r_read_groups (R_CARD(card), xmlcard); r_read_contact (card, xmlcard); r_read_work (card, xmlcard); r_read_address (R_CARD(card), xmlcard); r_read_web (R_CARD(card), xmlcard); r_read_email (R_CARD(card), xmlcard); r_read_telephone (R_CARD(card), xmlcard); r_read_notes (card, xmlcard); return card; } rubrica-2.0/libral/plugins/rubrica/rubrica.h0000644000175000017500000000463510637704556017776 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: csv.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_RUBRICA_H #define _R_RUBRICA_H #include #include #include #include #include "../../abook.h" #include "../../error.h" #include "../../plugin.h" #define R_RUBRICA_TYPE (r_rubrica_get_type()) #define R_RUBRICA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_RUBRICA_TYPE, RRubrica)) #define R_RUBRICA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_RUBRICA_TYPE, RRubricaClass)) #define IS_R_RUBRICA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_RUBRICA_TYPE)) #define IS_R_RUBRICA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_RUBRICA_TYPE)) #define R_RUBRICA_GET_CLASS(obj) (G_TYPE_CHECK_INSTANCE_GET_CLASS((obj), \ R_RUBRICA_TYPE, RRubricaClass)) typedef struct _RRubrica RRubrica; typedef struct _RRubricaClass RRubricaClass; typedef struct _RRubricaPrivate RRubricaPrivate; struct _RRubrica { RAbook parent; /* private */ RRubricaPrivate* private; }; struct _RRubricaClass { RAbookClass parent; }; GType r_rubrica_get_type (void); /* ************ Public ************ */ // RRubrica* r_rubrica_new (void); // void r_rubrica_free (RRubrica *rubrica); // void plugin_init (RPlugin* plugin); // void plugin_fini (RPlugin* plugin); G_MODULE_EXPORT void plugin_init (RPlugin* plugin, gchar* file); G_MODULE_EXPORT void plugin_fini (void); #endif /* _R_RUBRICA_H */ rubrica-2.0/libral/plugins/rubrica/save.c0000644000175000017500000004717310620101445017260 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: save.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "save.h" #include "io.h" #include "../../card.h" #include "../../personal.h" #include "../../company.h" #include "../../contact.h" #include "../../address.h" #include "../../group.h" #include "../../net.h" #include "../../notes.h" #include "../../telephone.h" #include "../../error.h" /* RubricaDoc file structure: version: rubrica's version that made the addressbook file fileformat: #4 doctype: addressbook root card's type card child .... groups children ... references's description ... card child .................. data child ................. " " ................... ................... ................. ................. ...................... .............. ................. ............... ................. .............. ................ ............... ............ .......... card child
addresses children ....... address child ............ ............... .................. ................
...
............. ........... ............. ............. ........... ............. .......... ... ...... ...... ....... ... ................. ...................... ................. ..................
card's type card child ...................... groups children ... references's description ... ............. ...................... ................... card child
addresses children ....... address child ............ ............... .................. ................
...
.......... ........ ... ...... ... ........ ...
...
Rubrica | | children | v next next next Card-------->Card-------->....------->Card | | children | v next Groups--->Data--->Addresses--->Net--->....Phone-->Work-->Notes | \ | | | | | | child | child | child | | | | | | v v v v v | | ... ... ... ... ... ... v v Group FirstName--->MiddleName--->... pcxxx => personal card xxx ccxxx => company card xxx */ void r_write_personal_card(RCard *card, xmlNodePtr cardxml); void r_write_company_card(RCard *card, xmlNodePtr cardxml); /** * r_write_card * @card: a #RCard * @cardxml: a #xmlNodePtr * * Write the #RCard into file. This function calls the * virtual functions defined in #RPersonalCard and #RCompanyCard. */ void r_write_card(RCard *card, xmlNodePtr cardxml) { gchar* type; g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(cardxml != NULL); g_object_get(card, "card-type", &type, NULL); if (g_ascii_strcasecmp(type, "personal") == 0) r_write_personal_card(card, cardxml); else r_write_company_card(card, cardxml); } void r_write_personal_card(RCard *card, xmlNodePtr cardxml) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(cardxml != NULL); r_write_infos(card, cardxml); r_write_contact(R_PERSONAL_CARD(card), cardxml); r_write_group(card, cardxml); r_write_refs(card, cardxml); r_write_work(R_PERSONAL_CARD(card), cardxml); r_write_addresses(card, cardxml); r_write_net(card, cardxml); r_write_telephone(card, cardxml); r_write_notes(R_PERSONAL_CARD(card), cardxml); } void r_write_company_card(RCard *card, xmlNodePtr cardxml) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(cardxml != NULL); r_write_infos(card, cardxml); r_write_company(R_COMPANY_CARD(card), cardxml); r_write_group(card, cardxml); r_write_refs(card, cardxml); r_write_addresses(card, cardxml); r_write_net(card, cardxml); r_write_telephone(card, cardxml); } /* Card Infos */ void r_write_infos(RCard *card, xmlNodePtr cardxml) { glong id; gchar *name, *type; gboolean locked, deleted; gint created, changed; RRate rate; g_object_get(card, "card-id", &id, "card-type", &type, "card-name", &name, "card-locked", &locked, "card-deleted", &deleted, "card-rate", &rate, "card-created", &created, "card-changed", &changed, NULL); r_io_write_number (cardxml, "id", id); r_io_write_str (cardxml, "type", type); r_io_write_str (cardxml, "name", name); r_io_write_bool (cardxml, "locked", locked); r_io_write_bool (cardxml, "deleted", deleted); r_io_write_number (cardxml, "rate", rate); r_io_write_time (cardxml, "created", created); r_io_write_time (cardxml, "last_change", changed); g_free(name); g_free(type); } /* Groups */ void r_write_group (RCard *card, xmlNodePtr xmlnode) { gpointer data; xmlNodePtr groupxml; /* group node */ g_return_if_fail(IS_R_CARD(card)); groupxml = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Groups", NULL); data = r_card_get_group(R_CARD(card)); for (; data; data = r_card_get_next_group(R_CARD(card))) { xmlNodePtr grxml; xmlChar* name; xmlChar* owner; xmlChar* pixmap; g_object_get(R_GROUP(data), "group-name", &name, "group-owner", &owner, "group-pixmap", &pixmap, NULL); grxml = xmlNewTextChild(groupxml, NULL, (xmlChar*) "Group", name); r_io_write_str(grxml, "owner", (gchar*) owner); r_io_write_str(grxml, "pixmap", (gchar*) pixmap); } } void r_write_refs (RCard *card, xmlNodePtr xmlnode) { gpointer data; xmlNodePtr refsxml; /* refs node */ g_return_if_fail(IS_R_CARD(card)); refsxml = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Refs", NULL); data = r_card_get_ref(R_CARD(card)); for (; data; data = r_card_get_next_ref(R_CARD(card))) { xmlNodePtr xmlref; xmlChar *info; glong id; g_object_get(R_REF(data), "ref-to", &id, "ref-info", &info, NULL); xmlref = xmlNewTextChild(refsxml, NULL, (xmlChar*) "Ref", info); r_io_write_number(xmlref, "refto", id); } } /* Addresses */ void r_write_addresses (RCard *card, xmlNodePtr xmlnode) { gpointer data; xmlNodePtr addressxml; /* addresses node, address's father */ g_return_if_fail(IS_R_CARD(card)); addressxml = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Addresses", NULL); data = r_card_get_address(R_CARD(card)); for (; data; data = r_card_get_next_address(R_CARD(card))) { if (IS_R_ADDRESS(data)) { xmlNodePtr adsxml; /* address node, addresses's child */ xmlNodePtr node; /* address's child */ RAddressType adtype = R_ADDRESS_UNKNOWN; gchar *type, *street, *number, *city, *zip; gchar *province, *state, *country; g_object_get(R_ADDRESS(data), "address-type", &adtype, "street", &street, "street-number", &number, "city", &city, "zip", &zip, "province", &province, "state", &state, "country", &country, NULL); if ((adtype < R_ADDRESS_PREF) || (adtype > R_ADDRESS_INVALID)) adtype = R_ADDRESS_UNKNOWN; type = r_address_lookup_enum2str(adtype); adsxml = xmlNewTextChild(addressxml, NULL, (xmlChar*) "Address", NULL); r_io_write_str(adsxml, "type", type); node = xmlNewTextChild(adsxml, NULL, (xmlChar*) "Street", (xmlChar*) street); r_io_write_str(node, "number", number); node = xmlNewTextChild(adsxml, NULL, (xmlChar*) "City", (xmlChar*) city); r_io_write_str(node, "zip", zip); xmlNewTextChild(adsxml, NULL, (xmlChar*) "Province", (xmlChar*) province); xmlNewTextChild(adsxml, NULL, (xmlChar*) "State", (xmlChar*) state); xmlNewTextChild(adsxml, NULL, (xmlChar*) "Country", (xmlChar*) country); } } } /* NetAddresses */ void r_write_net (RCard *card, xmlNodePtr xmlnode) { gpointer data; xmlNodePtr netxml; g_return_if_fail(IS_R_CARD(card)); netxml = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Net", NULL); data = r_card_get_net_address(R_CARD(card)); for (; data; data = r_card_get_next_net_address(R_CARD(card))) if (IS_R_NET_ADDRESS(data)) { RNetAddressType nettype; xmlNodePtr uri; gchar *url, *type; g_object_get(R_NET_ADDRESS(data), "url", &url, "url-type", &nettype, NULL); uri = xmlNewTextChild(netxml, NULL, (xmlChar*) "Uri", (xmlChar*) url); type = r_net_address_decode_type(nettype); r_io_write_str(uri, "type", type); } } /* Telephone numbers */ void r_write_telephone (RCard *card, xmlNodePtr xmlnode) { gpointer data; xmlNodePtr telxml; g_return_if_fail(IS_R_CARD(card)); telxml = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "TelephoneNumbers", NULL); data = r_card_get_telephone(R_CARD(card)); for (; data; data = r_card_get_next_telephone(R_CARD(card))) if (IS_R_TELEPHONE(data)) { xmlNodePtr tel; gchar *number, *type; RTelephoneType ttype; g_object_get(R_TELEPHONE(data), "telephone-number", &number, "telephone-type", &ttype, NULL); tel = xmlNewTextChild(telxml, NULL, (xmlChar*) "Telephone", (xmlChar*) number); type = r_telephone_lookup_enum2str(ttype); r_io_write_str(tel, "type", type); } } /* Personal data */ void r_write_contact (RPersonalCard *card, xmlNodePtr xmlnode) { gpointer data; g_return_if_fail(IS_R_CARD(card)); data = r_personal_card_get_contact(R_PERSONAL_CARD(card)); if (IS_R_CONTACT(data)) { xmlNodePtr contact; xmlNodePtr node; gboolean bool; xmlChar *first, *middle, *last, *nick; xmlChar *prof, *prefix, *genre, *title, *photo; gchar *day, *month, *year; g_object_get(R_CONTACT(data), "first-name", &first, "middle-name", &middle, "last-name", &last, "nick-name", &nick, "profession", &prof, "prefix", &prefix, "genre", &genre, "title", &title, "photo", &photo, NULL); day = r_contact_get_birth_day (R_CONTACT(data)); month = r_contact_get_birth_month (R_CONTACT(data)); year = r_contact_get_birth_year (R_CONTACT(data)); contact = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Data", NULL); xmlNewTextChild(contact, NULL, (xmlChar*) "FirstName", first); xmlNewTextChild(contact, NULL, (xmlChar*) "MiddleName", middle); xmlNewTextChild(contact, NULL, (xmlChar*) "LastName", last); xmlNewTextChild(contact, NULL, (xmlChar*) "NickName", nick); xmlNewTextChild(contact, NULL, (xmlChar*) "Genre", genre); xmlNewTextChild(contact, NULL, (xmlChar*) "Profession", prof); xmlNewTextChild(contact, NULL, (xmlChar*) "NamePrefix", prefix); xmlNewTextChild(contact, NULL, (xmlChar*) "Title", title); node = xmlNewTextChild(contact, NULL, (xmlChar*) "Photo", photo); r_io_write_str(node, "type", "url"); node = xmlNewTextChild(contact, NULL, (xmlChar*) "Birthday", NULL); bool = (g_ascii_strcasecmp(day, "BadDay") != 0); r_io_write_bool(node, "known", bool); r_io_write_str (node, "day", day); r_io_write_str (node, "month", month); r_io_write_str (node, "year", year); } } /* Work data */ void r_write_work (RPersonalCard *card, xmlNodePtr xmlnode) { gpointer data; g_return_if_fail(IS_R_CARD(card)); data = r_personal_card_get_work(R_PERSONAL_CARD(card)); if (IS_R_WORK(data)) { xmlNodePtr work; xmlChar *assignment, *org, *dep, *subdep; xmlChar *manager, *mphone, *collaborator, *cphone; g_object_get(R_WORK(data), "assignment", &assignment, "organization", &org, "department", &dep, "sub-department", &subdep, "manager-name", &manager, "manager-phone", &mphone, "collaborator", &collaborator, "collaborator-phone", &cphone, NULL); work = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Work", NULL); xmlNewTextChild(work, NULL, (xmlChar*) "Assignment", assignment); xmlNewTextChild(work, NULL, (xmlChar*) "Organization", org); xmlNewTextChild(work, NULL, (xmlChar*) "Department", dep); xmlNewTextChild(work, NULL, (xmlChar*) "SubDepartment", subdep); xmlNewTextChild(work, NULL, (xmlChar*) "ManagerName", manager); xmlNewTextChild(work, NULL, (xmlChar*) "ManagerPhone", mphone); xmlNewTextChild(work, NULL, (xmlChar*) "CollaboratorName", collaborator); xmlNewTextChild(work, NULL, (xmlChar*) "CollaboratorPhone", cphone); } } void r_write_notes (RPersonalCard *card, xmlNodePtr xmlnode) { gpointer data; g_return_if_fail(IS_R_CARD(card)); data = r_personal_card_get_notes(R_PERSONAL_CARD(card)); if (IS_R_NOTES(data)) { xmlNodePtr notes; xmlNodePtr node; gboolean has_partner, birth, anniversary; xmlChar *partner, *other, *pkey; gchar *bday, *bmonth, *byear; gchar *aday, *amonth, *ayear; birth = r_notes_know_birthday(R_NOTES(data)); anniversary = r_notes_know_anniversary(R_NOTES(data)); bday = r_notes_get_birth_day(R_NOTES(data)); bmonth = r_notes_get_anniversary_month(R_NOTES(data)); byear = r_notes_get_birth_year(R_NOTES(data)); aday = r_notes_get_anniversary_day (R_NOTES(data)); amonth = r_notes_get_anniversary_month(R_NOTES(data)); ayear = r_notes_get_anniversary_year(R_NOTES(data)); g_object_get(R_NOTES(data), "has-partner", &has_partner, "partner-name", &partner, "other-notes", &other, "pubkey", &pkey, NULL); notes = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Notes", NULL); r_io_write_bool(notes, "partner", has_partner); xmlNewTextChild(notes, NULL, (xmlChar*) "PartnerName", partner); xmlNewTextChild(notes, NULL, (xmlChar*) "OtherNotes", other); xmlNewTextChild(notes, NULL, (xmlChar*) "PublicKey", pkey); node = xmlNewTextChild(notes, NULL, (xmlChar*) "PartnerBirthday", NULL); r_io_write_bool(node, "known", birth); r_io_write_str (node, "day", bday); r_io_write_str (node, "month", bmonth); r_io_write_str (node, "year", byear); node = xmlNewTextChild(notes, NULL, (xmlChar*) "Anniversary", NULL); r_io_write_bool(node, "known", anniversary); r_io_write_str (node, "day", aday); r_io_write_str (node, "month", amonth); r_io_write_str (node, "year", ayear); } } void r_write_company (RCompanyCard *card, xmlNodePtr xmlnode) { xmlNodePtr company; xmlChar *name, *logo, *vat, *notes; g_object_get(R_COMPANY_CARD(card), "company-name", &name, "company-logo", &logo, "company-vat", &vat, "company-notes", ¬es, NULL); company = xmlNewTextChild(xmlnode, NULL, (xmlChar*) "Company", NULL); xmlNewTextChild(company, NULL, (xmlChar*) "CompanyName", name); xmlNewTextChild(company, NULL, (xmlChar*) "Logo", logo); xmlNewTextChild(company, NULL, (xmlChar*) "VAT", vat); xmlNewTextChild(company, NULL, (xmlChar*) "Notes", notes); } rubrica-2.0/libral/plugins/rubrica/Makefile.in0000644000175000017500000004571710637712670020245 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Plugin rubrica # # Plugin glade file # rubrica_gladedir = # vacrd_glade_DATA = # Plugin pixmaps # rubrica_pixmapsdir = # rubrica_pixmaps_DATA = # # additional libtool flags (such as -version-info or -static or -module) # Ordinarily, Automake requires that a shared library's name start with 'lib'. # However, if you are building a dynamically loadable module, you migth wish # to use a "nonstandard" name. in this case, put -module into the '_LDFLAGS' # variable (automake.pdf pag. 24) VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libral/plugins/rubrica DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(librubrica_ladir)" librubrica_laLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(librubrica_la_LTLIBRARIES) librubrica_la_LIBADD = am_librubrica_la_OBJECTS = rubrica.lo io.lo load.lo save.lo librubrica_la_OBJECTS = $(am_librubrica_la_OBJECTS) librubrica_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(librubrica_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(librubrica_la_SOURCES) DIST_SOURCES = $(librubrica_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Where to install the plugin librubrica_ladir = $(libral_plugins_dir) # The plugin librubrica_la_LTLIBRARIES = librubrica.la # Plugin sources librubrica_la_SOURCES = \ rubrica.c rubrica.h \ io.c io.h \ load.c load.h \ save.c save.h librubrica_la_LDFLAGS = -version-info $(LIBRUBRICA_CURRENT_VERSION):$(LIBRUBRICA_REVISION_VERSION):$(LIBRUBRICA_COMPAT_VERSION) librubrica_LTLDFLAGS = -module -rpath./ # Include paths INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ -DRUBRICA_VERSION=\""@RUBRICA_VERSION@"\" \ -DRUBRICA_FILE_FORMAT=\""@RUBRICA_FILE_FORMAT@"\" \ $(LIBRAL_CFLAGS) AM_CFLAGS = -Wall -fPIC -DPIC all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libral/plugins/rubrica/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu libral/plugins/rubrica/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-librubrica_laLTLIBRARIES: $(librubrica_la_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(librubrica_ladir)" || $(MKDIR_P) "$(DESTDIR)$(librubrica_ladir)" @list='$(librubrica_la_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(librubrica_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(librubrica_ladir)/$$f'"; \ $(LIBTOOL) --mode=install $(librubrica_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(librubrica_ladir)/$$f"; \ else :; fi; \ done uninstall-librubrica_laLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(librubrica_la_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(librubrica_ladir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(librubrica_ladir)/$$p"; \ done clean-librubrica_laLTLIBRARIES: -test -z "$(librubrica_la_LTLIBRARIES)" || rm -f $(librubrica_la_LTLIBRARIES) @list='$(librubrica_la_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done librubrica.la: $(librubrica_la_OBJECTS) $(librubrica_la_DEPENDENCIES) $(librubrica_la_LINK) -rpath $(librubrica_ladir) $(librubrica_la_OBJECTS) $(librubrica_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/io.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/load.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rubrica.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/save.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(librubrica_ladir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-librubrica_laLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-librubrica_laLTLIBRARIES install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-librubrica_laLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-librubrica_laLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-librubrica_laLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-librubrica_laLTLIBRARIES #EXTRA_DIST = \ # $(rubrica_glade_DATA) \ # $(rubrica_pixmaps_DATA) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/libral/plugins/rubrica/io.c0000644000175000017500000002254310620101446016724 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: io.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "io.h" void r_io_write_str (xmlNodePtr node, gchar *label, gchar* string) { g_return_if_fail(node != NULL); g_return_if_fail(label != NULL); xmlNewProp(node, (xmlChar*) label, (xmlChar*) string); } void r_io_write_bool (xmlNodePtr node, gchar *label, gboolean bool) { g_return_if_fail(node != NULL); g_return_if_fail(label != NULL); if (bool) xmlNewProp(node, (xmlChar*) label, (xmlChar*) "true"); else xmlNewProp(node, (xmlChar*) label, (xmlChar*) "false"); } void r_io_write_number (xmlNodePtr node, gchar *label, gulong val) { xmlChar* xmlstr; gchar* str; g_return_if_fail(node != NULL); g_return_if_fail(label != NULL); str = g_strdup_printf("%ld", val); xmlstr = xmlStrdup((xmlChar*) str); xmlNewProp(node, (xmlChar*) label, xmlstr); g_free(str); } void r_io_write_date (xmlNodePtr node, gboolean bool, time_t date) { GDate* gdate; GDateDay day; GDateMonth month; GDateYear year; g_return_if_fail(node != NULL); r_io_write_bool(node, "known", bool); gdate = g_date_new(); g_date_set_time(gdate, date); day = g_date_get_day(gdate); month = g_date_get_month(gdate); year = g_date_get_year(gdate); if (!bool || day == G_DATE_BAD_DAY) r_io_write_str(node, "day", "BadDay"); else r_io_write_number(node, "day", day); if (!bool || month == G_DATE_BAD_MONTH) r_io_write_str(node, "month", "BadMonth"); else r_io_write_number(node, "month", month); if (!bool || year == G_DATE_BAD_YEAR) r_io_write_str(node, "year", "BadYear"); else r_io_write_number(node, "year", year); g_date_free(gdate); } gchar* r_io_get(xmlNodePtr node, const gchar* name, RError *err) { xmlNodePtr child; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, NULL); child = node->children; if (xmlIsBlankNode(child)) child = child->next; while (child) { gchar* ret; if (xmlStrcmp(child->name, (xmlChar*) name) == 0) { ret = (gchar *) xmlNodeGetContent(child); // caller must free memory if (xmlStrcmp((xmlChar*) ret, (xmlChar*) "") == 0) { xmlFree(ret); return NULL; } return ret; } child = child->next; if (xmlIsBlankNode(child)) child = child->next; } *err = UNREADABLE_NODE; return NULL; } gchar* r_io_get_content(xmlNodePtr node, RError *err) { xmlChar* tmp = NULL; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, NULL); tmp = xmlNodeGetContent(node); // caller must free memory if (!tmp || (xmlStrcmp(tmp, (xmlChar*) "") == 0)) { *err = UNREADABLE_NODE; return NULL; } *err = NO_ERROR; return (gchar *) tmp; } gboolean r_io_get_bool(xmlNodePtr node, gchar* key, RError *err) { gchar* tmp = NULL; gboolean ret = FALSE; *err = UNREADABLE_PROPERTY; g_return_val_if_fail(node != NULL, FALSE); *err = KEY_NOT_VALID; g_return_val_if_fail(key != NULL, FALSE); tmp = r_io_get_prop(node, key, err); if (!tmp) { *err = UNREADABLE_PROPERTY; return FALSE; } *err = NO_ERROR; if(xmlStrcmp((xmlChar*) tmp, (xmlChar*) "true") == 0) ret = TRUE; else ret = FALSE; g_free(tmp); return ret; } glong r_io_get_date (xmlNodePtr node, gchar* key, RError *err) { gchar* tmp = NULL; glong ret; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, 0); *err = KEY_NOT_VALID; g_return_val_if_fail(key != NULL, 0); tmp = r_io_get_prop(node, key, err); if (!tmp) { *err = INVALID_DATE; return 0; } *err = NO_ERROR; ret = atol(tmp); g_free(tmp); return ret; } time_t r_io_get_calendar(xmlNodePtr node, gchar** day, gchar** month, gchar** year, RError *err) { GDate *gdate; struct tm tm; gchar *_day, *_month, *_year; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, 0); _day = r_io_get_prop(node, "day", err); _month = r_io_get_prop(node, "month", err); _year = r_io_get_prop(node, "year", err); if (_day && _month && _year) { if ((g_ascii_strcasecmp(_day, "BadDay") == 0) || (g_ascii_strcasecmp(_day, "") == 0) || (atoi(_day) < 1)) goto exit; if ((g_ascii_strcasecmp(_month, "BadMonth") == 0) || (g_ascii_strcasecmp(_month, "") == 0) || (atoi(_month) < 1)) goto exit; if ((g_ascii_strcasecmp(_year, "BadYear") == 0) || (g_ascii_strcasecmp(_year, "") == 0) || (atoi(_year) < 1)) goto exit; if (day) *day = g_strdup(_day); if (month) *month = g_strdup(_month); if (year) *year = g_strdup(_year); gdate = g_date_new_dmy(atoi(_day), atoi(_month), atoi(_year)); g_date_to_struct_tm(gdate, &tm); g_date_free(gdate); *err = NO_ERROR; return mktime(&tm); } exit: *err = UNREADABLE_CALENDAR; if (day) *day = ""; if (month) *month = ""; if (year) *year = ""; if (_day) g_free(_day); if (_month) g_free(_month); if (_year) g_free(_year); return (time_t) -1; } gchar* r_io_get_prop(xmlNodePtr node, gchar* key, RError *err) { gchar* ret = NULL; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, NULL); *err = KEY_NOT_VALID; g_return_val_if_fail(key != NULL, NULL); if (xmlHasProp(node, (xmlChar*) key)) { *err = NO_ERROR; ret = (gchar*) xmlGetProp(node, (xmlChar*) key); // caller must free memory if (g_ascii_strcasecmp(ret, "") == 0) return NULL; return ret; } *err = UNREADABLE_PROPERTY; return NULL; } gchar* r_io_get_prop_from (xmlNodePtr node, gchar* node_name, gchar* key, RError* err) { xmlNodePtr child; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, NULL); child = node->children; if (xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlStrcmp(child->name, (xmlChar*) node_name) == 0) return r_io_get_prop(child, key, err); child = child->next; if (xmlIsBlankNode(child)) child = child->next; } *err = UNREADABLE_NODE; return NULL; } gboolean r_io_get_bool_from (xmlNodePtr node, gchar* node_name, gchar* key, RError* err) { xmlNodePtr child; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, FALSE); child = node->children; if (xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlStrcmp(child->name, (xmlChar*) node_name) == 0) return r_io_get_bool(child, key, err); child = child->next; if (xmlIsBlankNode(child)) child = child->next; } *err = UNREADABLE_NODE; return FALSE; } time_t r_io_get_calendar_from (xmlNodePtr node, gchar* node_name, gchar** day, gchar** month, gchar** year, RError *err) { xmlNodePtr child; *err = UNREADABLE_NODE; g_return_val_if_fail(node != NULL, -1); child = node->children; if (xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlStrcmp(child->name, (xmlChar*) node_name) == 0) return r_io_get_calendar(child, day, month, year, err); child = child->next; if (xmlIsBlankNode(child)) child = child->next; } if (day) *day = "BadDay"; if (month) *month = "BadMonth"; if (year) *year = "BadYear"; *err = UNREADABLE_NODE; return (time_t) -1; } xmlNodePtr r_io_get_node(xmlNodePtr node, xmlChar* key) { xmlNodePtr child; if(xmlIsBlankNode(node)) node = node->next; if (xmlStrcmp(key, (xmlChar*) "Card") == 0) { return node; } child = node->children; if(xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlStrcmp(child->name, key) == 0) return child; child = child->next; if (xmlIsBlankNode(child)) child = child->next; } return NULL; } xmlNodePtr r_io_get_child(xmlNodePtr node, xmlChar* key) { xmlNodePtr child; if (!node) return NULL; if (xmlIsBlankNode(node)) node = node->next; child = node->children; if(xmlIsBlankNode(child)) child = child->next; while (child) { if (xmlStrcmp(child->name, key) == 0) return child; child = child->next; if (xmlIsBlankNode(child)) child = child->next; } return NULL; } xmlNodePtr r_io_get_brother(xmlNodePtr brother, xmlChar* key) { if (!brother) return NULL; if (xmlIsBlankNode(brother)) brother = brother->next; if (xmlStrcmp(brother->name, key) == 0) return brother; return NULL; } rubrica-2.0/libral/plugins/rubrica/load.h0000644000175000017500000000450610620101446017240 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: load.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_LOAD_H #define _R_LOAD_H #include #include #include "../../card.h" #include "../../personal.h" #include "../../company.h" //#include "../../group_box.h" #include "../../error.h" xmlDocPtr r_open_doc (gchar* filename, RError* err); gint r_get_fileformat (xmlDocPtr xdoc, RError* err); gchar* r_get_version (xmlDocPtr xdoc, RError* err); gchar* r_get_document_tpye (xmlDocPtr xdoc, RError* err); gboolean r_is_rubrica_doc (xmlDocPtr xdoc, RError* err); RPersonalCard* r_read_personal_xmlcard (xmlNodePtr xmlcard); RCompanyCard* r_read_company_xmlcard (xmlNodePtr xmlcard); RPersonalCard* r_read_old_personal_xmlcard (xmlNodePtr xmlcard); void r_read_infos (RCard *card, xmlNodePtr node); void r_read_groups (RCard *card, xmlNodePtr node); void r_read_refs (RCard *card, xmlNodePtr node); void r_read_addresses (RCard *card, xmlNodePtr node); void r_read_net (RCard *card, xmlNodePtr node); void r_read_telephone (RCard *card, xmlNodePtr node); void r_read_contact (RPersonalCard *card, xmlNodePtr node); void r_read_work (RPersonalCard *card, xmlNodePtr node); void r_read_notes (RPersonalCard *card, xmlNodePtr node); void r_read_company (RCompanyCard* card, xmlNodePtr node); void r_read_company_notes (RCompanyCard* card, xmlNodePtr node); // RGroupSet* r_read_get_user_group (void); #endif rubrica-2.0/libral/plugins/rubrica/io.h0000644000175000017500000000443610620101447016733 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: io.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_IO_H #define _R_IO_H #include #include #include "../../error.h" void r_io_write_str (xmlNodePtr node, gchar *label, gchar* string); void r_io_write_bool (xmlNodePtr node, gchar *label, gboolean bool); void r_io_write_number (xmlNodePtr node, gchar *label, gulong val); void r_io_write_date (xmlNodePtr node, gboolean bool, time_t date); #define r_io_write_time(node, lbl, val) r_io_write_number (node, lbl, val) gchar* r_io_get (xmlNodePtr node, const gchar* name, RError* e); gchar* r_io_get_content (xmlNodePtr node, RError* err); gboolean r_io_get_bool (xmlNodePtr node, gchar* key, RError* err); glong r_io_get_date (xmlNodePtr node, gchar* key, RError* err); time_t r_io_get_calendar (xmlNodePtr node, gchar** day, gchar** month, gchar** year, RError *err); gchar* r_io_get_prop (xmlNodePtr node, gchar* key, RError *err); gchar* r_io_get_prop_from (xmlNodePtr node, gchar* node_name, gchar* key, RError* err); gboolean r_io_get_bool_from (xmlNodePtr node, gchar* node_name, gchar* key, RError* err); time_t r_io_get_calendar_from (xmlNodePtr node, gchar* node_name, gchar** day, gchar** month, gchar** year, RError *err); xmlNodePtr r_io_get_node (xmlNodePtr node, xmlChar* key); xmlNodePtr r_io_get_child (xmlNodePtr node, xmlChar* key); xmlNodePtr r_io_get_brother (xmlNodePtr brother, xmlChar* key); #endif rubrica-2.0/libral/plugins/rubrica/save.h0000644000175000017500000000320410620101447017252 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: save.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_SAVE_H #define _RUBRICA_SAVE_H #include #include #include "../../card.h" #include "../../personal.h" #include "../../company.h" void r_write_card (RCard *card, xmlNodePtr cardxml); void r_write_infos (RCard *card, xmlNodePtr cardxml); void r_write_group (RCard *card, xmlNodePtr node); void r_write_refs (RCard *card, xmlNodePtr node); void r_write_addresses (RCard *card, xmlNodePtr node); void r_write_net (RCard *card, xmlNodePtr node); void r_write_telephone (RCard *card, xmlNodePtr node); void r_write_contact (RPersonalCard *card, xmlNodePtr node); void r_write_work (RPersonalCard *card, xmlNodePtr node); void r_write_notes (RPersonalCard *card, xmlNodePtr node); void r_write_company (RCompanyCard *card, xmlNodePtr node); #endif rubrica-2.0/libral/plugins/rubrica/rubrica.c0000644000175000017500000003201410637704552017755 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: csv.c * * the vcard import engine v0.5 * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "rubrica.h" #include "io.h" #include "load.h" #include "save.h" #include "../../abook.h" #include "../../plugin.h" #include "../../card.h" #include "../../personal.h" #include "../../company.h" #include "../../contact.h" #include "../../work.h" #include "../../notes.h" #include "../../address.h" #include "../../net.h" #include "../../telephone.h" #include "../../ref.h" // #define R_FILE_FORMAT 4 static RAbookClass* parent_class = NULL; struct _RRubricaPrivate{ FILE* fp; /* the rubrica file */ gboolean dispose_has_run; }; static void r_rubrica_init (RRubrica* obj); static void r_rubrica_class_init (RRubricaClass* klass); static void r_rubrica_dispose (GObject* obj); static void r_rubrica_finalize (GObject* obj); /* private functions */ static gboolean r_rubrica_open_file (RAbook* abook, gchar* filename); static gboolean r_rubrica_save_file (RAbook* abook, gchar* filename, gint compression_rate); static gboolean r_rubrica_overwrite_file (RAbook* abook, gint compression_rate); static gboolean r_rubrica_parse_doc (RAbook* abook, xmlDocPtr xmldoc); static gboolean r_rubrica_parse_old_doc (RAbook* abook, xmlDocPtr xmldoc); static gboolean r_rubrica_write_doc (RAbook* abook, gchar* name, gint compression_rate); GType r_rubrica_get_type() { static GType r_rubrica_type = 0; if (!r_rubrica_type) { static const GTypeInfo r_rubrica_info = { sizeof(RRubricaClass), NULL, NULL, (GClassInitFunc) r_rubrica_class_init, NULL, NULL, sizeof(RRubrica), 0, (GInstanceInitFunc) r_rubrica_init }; r_rubrica_type = g_type_register_static (R_ABOOK_TYPE, "RRubrica", &r_rubrica_info, 0); } return r_rubrica_type; } static void r_rubrica_class_init(RRubricaClass* klass) { GObjectClass *object_class; object_class = G_OBJECT_CLASS (klass); parent_class = R_ABOOK_CLASS (klass); object_class->dispose = (GObjectFinalizeFunc) r_rubrica_dispose; object_class->finalize = (GObjectFinalizeFunc) r_rubrica_finalize; parent_class->abook_open_file = (gpointer) r_rubrica_open_file; parent_class->abook_save_file = (gpointer) r_rubrica_save_file; } static void r_rubrica_init(RRubrica* self) { g_return_if_fail(IS_R_RUBRICA(self)); self->private = g_new(RRubricaPrivate, 1); if (!self->private) g_error("\nOut of memory"); self->private->fp = NULL; self->private->dispose_has_run = FALSE; } static void r_rubrica_dispose (GObject* obj) { RRubrica* self; self = R_RUBRICA(obj); g_return_if_fail(IS_R_RUBRICA(self)); if (self->private->dispose_has_run) return; self->private->dispose_has_run = TRUE; } static void r_rubrica_finalize (GObject* obj) { RRubrica* self; self = R_RUBRICA(obj); g_return_if_fail(IS_R_RUBRICA(self)); g_free(self->private); if (self->private->fp) fclose(self->private->fp); } static gboolean r_rubrica_open_file (RAbook* abook, gchar* filename) { xmlDocPtr xmldoc = NULL; RError err; gboolean loaded = FALSE; gint fileformat = 0; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); if (!filename) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", NO_FILENAME, G_TYPE_INT); return FALSE; } if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", FILE_NOT_EXIST, G_TYPE_INT); return FALSE; } if((xmldoc = r_open_doc(filename, &err)) == NULL) return FALSE; if(!r_is_rubrica_doc(xmldoc, &err)) { // g_signal_emit_by_name(R_ABOOK(abook), "open_fail", err, G_TYPE_INT); xmlFreeDoc(xmldoc); return FALSE; } /* get the file format */ fileformat = r_get_fileformat(xmldoc, &err); if (fileformat < atoi(RUBRICA_FILE_FORMAT)) /* this is an old rubrica file */ { if (fileformat == 3) loaded = r_rubrica_parse_old_doc(abook, xmldoc); } else loaded = r_rubrica_parse_doc(abook, xmldoc); if (!loaded) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", FILE_NOT_OPENED, G_TYPE_INT); xmlFreeDoc(xmldoc); return FALSE; } else g_signal_emit_by_name(R_ABOOK(abook), "addressbook_read", NULL, G_TYPE_NONE); xmlFreeDoc(xmldoc); g_object_set(R_ABOOK(abook), "addressbook-name", g_path_get_basename(filename), "addressbook-path", g_path_get_dirname(filename), NULL); return TRUE; } static gboolean r_rubrica_save_file (RAbook* abook, gchar* filename, gint compression_rate) { g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); if (!filename) { g_signal_emit_by_name(abook, "save_fail", NO_FILENAME, G_TYPE_INT); return FALSE; } if (g_file_test(filename, G_FILE_TEST_EXISTS)) { g_signal_emit_by_name(abook, "save_fail", FILE_EXIST, G_TYPE_INT); return FALSE; } if (!r_rubrica_write_doc(abook, filename, compression_rate)) { g_signal_emit_by_name(abook, "save_fail", WRITING_XML, G_TYPE_INT); return FALSE; } return TRUE; } static gboolean r_rubrica_overwrite_file(RAbook* abook, gint compression_rate) { gchar* file; gchar* path; gchar* filename; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_object_get(abook, "addressbook-path", &path, "addressbook-name", &file, NULL); filename = g_strdup_printf("%s%s%s", path, G_DIR_SEPARATOR_S, file); if (g_file_test(filename, G_FILE_TEST_EXISTS)) g_remove(filename); if (!r_rubrica_write_doc(abook, filename, compression_rate)) { g_signal_emit_by_name(abook, "save_fail", OVERWRITING, G_TYPE_INT); g_free(filename); return FALSE; } g_free(filename); g_signal_emit_by_name(abook, "addressbook_saved", NULL, G_TYPE_NONE); return TRUE; } static gboolean r_rubrica_parse_old_doc(RAbook* abook, xmlDocPtr xmldoc) { xmlNodePtr xmlabook; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(xmldoc != NULL, FALSE); xmlabook = xmldoc->children; if (xmlIsBlankNode(xmlabook)) xmlabook = xmlabook->next; if (xmlabook && xmlabook->name && xmlStrcmp(xmlabook->name, (xmlChar*) "Rubrica") == 0) { xmlabook = xmlabook->children; if (xmlIsBlankNode(xmlabook)) xmlabook = xmlabook->next; while (xmlabook) { xmlNodePtr xmlcard = NULL; xmlcard = r_io_get_node(xmlabook, (xmlChar*) "Card"); if (xmlcard) { RPersonalCard *card; card = r_read_old_personal_xmlcard(xmlcard); if (card) { r_abook_add_loaded_card(abook, (gpointer) card); g_signal_emit_by_name(abook, "card_read", card, G_TYPE_POINTER); } } /* parse next Card */ xmlabook = xmlabook->next; if(xmlIsBlankNode(xmlabook)) xmlabook = xmlabook->next; } } else { g_signal_emit_by_name(abook, "open_fail", NO_RUBRICA_DOC, G_TYPE_INT); return FALSE; } g_signal_emit_by_name(abook, "addressbook_read", NULL, G_TYPE_NONE); return TRUE; } static gboolean r_rubrica_parse_doc(RAbook* abook, xmlDocPtr xmldoc) { xmlNodePtr xmlabook; RError err; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(xmldoc != NULL, FALSE); xmlabook = xmldoc->children; if (xmlIsBlankNode(xmlabook)) xmlabook = xmlabook->next; if (xmlabook && xmlabook->name && xmlStrcmp(xmlabook->name, (xmlChar*) "Rubrica") == 0) { xmlabook = xmlabook->children; if (xmlIsBlankNode(xmlabook)) xmlabook = xmlabook->next; while (xmlabook) { xmlNodePtr xmlcard = NULL; xmlcard = r_io_get_node(xmlabook, (xmlChar*) "Card"); if (xmlcard) { gchar* tmp = NULL; tmp = r_io_get_prop(xmlcard, "type", &err); if (!tmp || (g_ascii_strcasecmp("personal", tmp) == 0)) { RPersonalCard *card; card = r_read_personal_xmlcard(xmlcard); if (card) { r_abook_add_loaded_card(abook, (gpointer) card); g_signal_emit_by_name(abook, "card_read", card, G_TYPE_POINTER); } } else if (g_ascii_strcasecmp("company", tmp) == 0) { RCompanyCard* card; card = r_read_company_xmlcard(xmlcard); if (card) { r_abook_add_loaded_card(abook, (gpointer) card); g_signal_emit_by_name(abook, "card_read", card, G_TYPE_POINTER); } } if (tmp) g_free(tmp); } /* parse next Card */ xmlabook = xmlabook->next; if(xmlIsBlankNode(xmlabook)) xmlabook = xmlabook->next; } } else return FALSE; return TRUE; } static gboolean r_rubrica_write_doc(RAbook* abook, gchar* name, gint compression_rate) { xmlDocPtr doc; /* puntatore al documento xml */ gpointer card; gchar *path = NULL, *fname; gchar *fileformat; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(name != NULL, FALSE); path = g_dirname(name); fname = g_strdup(name); /* creazione di un nuovo documento xml */ doc = xmlNewDoc((xmlChar*) "1.0"); xmlSetDocCompressMode (doc, compression_rate); /* creo un nuovo nodo radice rubrica */ fileformat = g_strdup_printf("%d", atoi(RUBRICA_FILE_FORMAT)); doc->children = xmlNewDocNode(doc, NULL, (xmlChar*) "Rubrica", NULL); xmlSetProp(doc->children, (xmlChar*) "version", (xmlChar*) RUBRICA_VERSION); xmlSetProp(doc->children, (xmlChar*) "fileformat", (xmlChar*) fileformat); xmlSetProp(doc->children, (xmlChar*) "doctype", (xmlChar*) "AddressBook"); g_free(fileformat); /* attraverso la rubrica e scrivo i dati nell'albero xml */ r_abook_reset_book(abook); card = r_abook_get_card(abook); for ( ; card; card = r_abook_get_next_card(abook)) { xmlNodePtr cardxml; /* card node */ gboolean destroyed; g_object_get(card, "card-destroyed", &destroyed, NULL); if (!destroyed) { cardxml = xmlNewChild(doc->children, NULL, (xmlChar*) "Card", (xmlChar*) NULL); r_write_card(R_CARD(card), cardxml); } } if (xmlSaveFormatFile(fname, doc, 1) == -1) return FALSE; /* if we are here the addressbook is write */ xmlFreeDoc(doc); g_free(fname); return TRUE; } /* ***************************** Public functions *********************** */ /** * r_rubrica_new * * create a new #RRubrica * * returns: a #RRubrica* */ RRubrica* r_rubrica_new(void) { return (RRubrica*) g_object_new(r_rubrica_get_type(), NULL); } /** * r_rubrica_free * @rubrica: a #RRubrica * * free the #RRubrica object */ void r_rubrica_free(RRubrica *rubrica) { g_return_if_fail(IS_R_RUBRICA(rubrica)); g_object_unref(rubrica); } G_MODULE_EXPORT void plugin_init (RPlugin* plugin, gchar* file) { RFilter* filter; RPluginAction* action; g_return_if_fail(plugin != NULL); r_plugin_set_obj(plugin, r_rubrica_new()); g_object_set(plugin, "plugin-name", "rubrica", "plugin-filename", file, "plugin-info", "This plugin manages the rubrica's file format", "plugin-configurable", FALSE, NULL); filter = r_filter_new(); g_object_set(filter, "filter-name", "rubrica", "filter-extension", "rub", "filter-mime", "application/x-rubrica", NULL); r_filter_add_pattern(filter, "rub"); r_filter_add_pattern(filter, "*.rub"); r_plugin_add_filter (plugin, filter); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("read"); action->handle = (gpointer) r_rubrica_open_file; r_plugin_add_action(plugin, action); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("write"); action->handle = (gpointer) r_rubrica_save_file; r_plugin_add_action(plugin, action); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("overwrite"); action->handle = (gpointer) r_rubrica_overwrite_file; r_plugin_add_action(plugin, action); } G_MODULE_EXPORT void plugin_fini (void) { // TODO: liberare la memoria e rilasciare l'handler al plugin } rubrica-2.0/libral/plugins/vcard/0000755000175000017500000000000010637712736015635 5ustar seb128seb128rubrica-2.0/libral/plugins/vcard/Makefile.am0000644000175000017500000000200510637704501017655 0ustar seb128seb128# # Plugin vcard # # Plugin glade file # vcard_gladedir = # vacrd_glade_DATA = # Plugin pixmaps # vcard_pixmapsdir = # vcard_pixmaps_DATA = # # additional libtool flags (such as -version-info or -static or -module) # Ordinarily, Automake requires that a shared library's name start with 'lib'. # However, if you are building a dynamically loadable module, you migth wish # to use a "nonstandard" name. in this case, put -module into the '_LDFLAGS' # variable (automake.pdf pag. 24) # Where to install the plugin libvcard_ladir=$(libral_plugins_dir) # The plugin libvcard_la_LTLIBRARIES = libvcard.la # Plugin sources libvcard_la_SOURCES = vcard.c vcard.h libvcard_la_LDFLAGS = -version-info $(LIBVCARD_CURRENT_VERSION):$(LIBVCARD_REVISION_VERSION):$(LIBVCARD_COMPAT_VERSION) libvcard_LTLDFLAGS = -module -rpath./ # Include paths INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ $(LIBRAL_CFLAGS) AM_CFLAGS = -Wall -fPIC -DPIC #EXTRA_DIST = \ # $(vcard_glade_DATA) \ # $(vcard_pixmaps_DATA) rubrica-2.0/libral/plugins/vcard/vcard.h0000644000175000017500000000713310637704520017101 0ustar seb128seb128/* * Rubrica * file: vcard.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_VCARD_H #define _R_VCARD_H #include #include #include #include #include "../../abook.h" #include "../../plugin.h" #define R_VCARD_TYPE (r_vcard_get_type()) #define R_VCARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_VCARD_TYPE, RVCard)) #define R_VCARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_VCARD_TYPE, RVCardClass)) #define IS_R_VCARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_VCARD_TYPE)) #define IS_R_VCARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_VCARD_TYPE)) #define R_VCARD_GET_CLASS(obj) (G_TYPE_CHECK_INSTANCE_GET_CLASS((obj), \ R_VCARD_TYPE, RVCardClass)) typedef struct _RVCard RVCard; typedef struct _RVCardClass RVCardClass; typedef struct _RVCardPrivate RVCardPrivate; #undef VERSION /* error code returned by r_vcard_open_file */ enum { R_VCARD_FILE_OPEN_SUCCESS, R_VCARD_FILE_OPEN_FAIL, R_VCARD_FILE_IMPORT_SUCCESS }; typedef enum { EVOLUTION_EXT = 0, KADDRBOOK_EXT, R_EXT, VCARD_EXT, BAD_EXT } RVCardExt; /* fn; FN n; N => family name gn; N => given name an; N => additional names hp; N => honorific prefix hs; N => honorific suffix nick; nickname photo; photo (uri or inline binary) - todo bday; birthday label; label (postal address) title; job title or functional position role; role, occupation or business category org; organization note; class; key; public key pbox; post offix box extadd; extended address str; street address loc; locality (city) reg; region (state/province) code; postal code count; country name type; address type num; type; GList* email; GList* url; GList* adr; address (RVCardAddress list) GList* tel; telephone (RVCardTelephone list) GList* cat; categories (groups list) */ struct _RVCard { GObject parent; FILE* fp; /* the vcard file */ /* private */ RVCardPrivate* priv; }; struct _RVCardClass { GObjectClass parent; }; GType r_vcard_get_type (void); /* ************ Public ************ RVCard* r_vcard_new (void); void r_vcard_free (RVCard *vcard); */ G_MODULE_EXPORT void plugin_init (RPlugin* plugin, gchar* file); G_MODULE_EXPORT void plugin_fini (void); #endif rubrica-2.0/libral/plugins/vcard/Makefile.in0000644000175000017500000004472010637712670017706 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Plugin vcard # # Plugin glade file # vcard_gladedir = # vacrd_glade_DATA = # Plugin pixmaps # vcard_pixmapsdir = # vcard_pixmaps_DATA = # # additional libtool flags (such as -version-info or -static or -module) # Ordinarily, Automake requires that a shared library's name start with 'lib'. # However, if you are building a dynamically loadable module, you migth wish # to use a "nonstandard" name. in this case, put -module into the '_LDFLAGS' # variable (automake.pdf pag. 24) VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libral/plugins/vcard DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libvcard_ladir)" libvcard_laLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(libvcard_la_LTLIBRARIES) libvcard_la_LIBADD = am_libvcard_la_OBJECTS = vcard.lo libvcard_la_OBJECTS = $(am_libvcard_la_OBJECTS) libvcard_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libvcard_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libvcard_la_SOURCES) DIST_SOURCES = $(libvcard_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Where to install the plugin libvcard_ladir = $(libral_plugins_dir) # The plugin libvcard_la_LTLIBRARIES = libvcard.la # Plugin sources libvcard_la_SOURCES = vcard.c vcard.h libvcard_la_LDFLAGS = -version-info $(LIBVCARD_CURRENT_VERSION):$(LIBVCARD_REVISION_VERSION):$(LIBVCARD_COMPAT_VERSION) libvcard_LTLDFLAGS = -module -rpath./ # Include paths INCLUDES = \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ $(LIBRAL_CFLAGS) AM_CFLAGS = -Wall -fPIC -DPIC all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libral/plugins/vcard/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu libral/plugins/vcard/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libvcard_laLTLIBRARIES: $(libvcard_la_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libvcard_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvcard_ladir)" @list='$(libvcard_la_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libvcard_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libvcard_ladir)/$$f'"; \ $(LIBTOOL) --mode=install $(libvcard_laLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libvcard_ladir)/$$f"; \ else :; fi; \ done uninstall-libvcard_laLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(libvcard_la_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libvcard_ladir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libvcard_ladir)/$$p"; \ done clean-libvcard_laLTLIBRARIES: -test -z "$(libvcard_la_LTLIBRARIES)" || rm -f $(libvcard_la_LTLIBRARIES) @list='$(libvcard_la_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libvcard.la: $(libvcard_la_OBJECTS) $(libvcard_la_DEPENDENCIES) $(libvcard_la_LINK) -rpath $(libvcard_ladir) $(libvcard_la_OBJECTS) $(libvcard_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vcard.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libvcard_ladir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-libvcard_laLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-libvcard_laLTLIBRARIES install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libvcard_laLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-libvcard_laLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libvcard_laLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-libvcard_laLTLIBRARIES #EXTRA_DIST = \ # $(vcard_glade_DATA) \ # $(vcard_pixmaps_DATA) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/libral/plugins/vcard/vcard.c0000644000175000017500000013530310637704513017077 0ustar seb128seb128/* * LibRAL * file: vcard.c * * the vcard import engine v0.5 * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include "vcard.h" #include "../../types.h" #include "../../abook.h" #include "../../card.h" #include "../../personal.h" #include "../../company.h" #include "../../contact.h" #include "../../work.h" #include "../../notes.h" #include "../../address.h" #include "../../net.h" #include "../../telephone.h" #include "../../plugin.h" #include "../../filter.h" #include "../../lookup.h" #define VCARD_TOKEN_DELIM ':' #define VCARD_PARAM_DELIM ';' #define VCARD_VALUE_DELIM '=' typedef enum { VCARD_START = 0, VCARD_BUILD_TOKEN, // token: VCARD_BUILD_PARAM, // token;param=value: VCARD_BUILD_PARAM_VALUES, VCARD_BUILD_VALUES, VCARD_BUILD_DATA, // token:data;data; VCARD_END } ParserStatus; typedef enum { N = 1, FN, TZ, END, ADR, TEL, GEO, ORG, REV, UID, URL, KEY, BDAY, ROLE, LOGO, NOTE, BEGIN, PHOTO, LABEL, EMAIL, TITLE, AGENT, PROID, SOUND, CLASS, MAILER, VERSION, NICKNAME, CATEGORIES, // last vcard token KDE_EXT_Profession, // KDE extensions KDE_EXT_Department, KDE_EXT_ManagersName, KDE_EXT_AssistantsName, KDE_EXT_Office, KDE_EXT_SpousesName, KDE_EXT_Anniversary, KDE_EXT_CUSTOM, RUBRICA_EXT_Card, // Rubrica extensions RUBRICA_EXT_Group, RUBRICA_EXT_Ref, RUBRICA_EXT_Url, RUBRICA_EXT_CompanyName, RUBRICA_EXT_Street, RUBRICA_EXT_StreetNumber, RUBRICA_EXT_ZipCode, RUBRICA_EXT_City, RUBRICA_EXT_Province, RUBRICA_EXT_Country, RUBRICA_EXT_Web, RUBRICA_EXT_Email, RUBRICA_EXT_Operator, RUBRICA_EXT_Fax, RUBRICA_EXT_Green, RUBRICA_EXT_CustomerCare, RUBRICA_EXT_Notes, RUBRICA_EXT_Department, RUBRICA_EXT_SubDepartment, RUBRICA_EXT_Manager, RUBRICA_EXT_ManagerTelephone, RUBRICA_EXT_Collaborator, RUBRICA_EXT_CollaboratorTelephone, RUBRICA_EXT_SpouseName, RUBRICA_EXT_Child, RUBRICA_EXT_Anniversary, RUBRICA_EXT_Hobbies, EVOLUTION_EXT_File_as, // Evolution extensions EVOLUTION_EXT_Office, EVOLUTION_EXT_Manager, EVOLUTION_EXT_Assistant, EVOLUTION_EXT_Spouse, EVOLUTION_EXT_Anniversary, MOZILLA_EXT_Html, BAD_TOKEN, // this isn't a VCard token } RVCardTokenType; typedef enum { TYPE = 1, VALUE, ENCODING, RATE, // rubrica's param OWNER, BAD_PARAM, // this isn't a VCard token } RVCardParamType; typedef enum { VCARD = 1, BINARY, BASIC, PUBLIC, PRIVATE, CONFIDENTIAL, HOME, WORK, POSTAL, PARCEL, DOM, INTL, PREF, VOICE, FAX, MSG, CELL, PAGER, BBS, MODEM, CAR, ISDN, VIDEO, AOL, INTERNET, APPLELINK, ATTMAIL, CIS, EWORLD, IBMMail, MCIMAIL, POWERSHARE, PRODIGY, TLX, X400, PGP, X509, TEXT, URI, JPEG, QUOTED_PRINTABLE, BAD_VALUE, // this isn't a vcard token } RVCardValueType; static RLookupTable tokens[] = { {"N", "", N}, {"FN", "", FN}, {"TZ", "", TZ}, {"END", "", END}, {"ADR", "", ADR}, {"TEL", "", TEL}, {"GEO", "", GEO}, {"ORG", "", ORG}, {"REV", "", REV}, {"UID", "", UID}, {"URL", "", URL}, {"KEY", "", KEY}, {"BDAY", "", BDAY}, {"ROLE", "", ROLE}, {"LOGO", "", LOGO}, {"NOTE", "", NOTE}, {"BEGIN", "", BEGIN}, {"PHOTO", "", PHOTO}, {"LABEL", "", LABEL}, {"EMAIL", "", EMAIL}, {"TITLE", "", TITLE}, {"AGENT", "", AGENT}, {"PROID", "", PROID}, {"SOUND", "", SOUND}, {"CLASS", "", CLASS}, {"MAILER", "", MAILER}, {"VERSION", "", VERSION}, {"NICKNAME", "", NICKNAME}, {"CATEGORIES", "", CATEGORIES}, /* kde extension. */ {"X-KADDRESSBOOK-X-Profession", "", KDE_EXT_Profession}, {"X-KADDRESSBOOK-X-Department", "", KDE_EXT_Department}, {"X-KADDRESSBOOK-X-ManagersName", "", KDE_EXT_ManagersName}, {"X-KADDRESSBOOK-X-AssistantsName", "", KDE_EXT_AssistantsName}, {"X-KADDRESSBOOK-X-Office", "", KDE_EXT_Office}, {"X-KADDRESSBOOK-X-SpousesName", "", KDE_EXT_SpousesName}, {"X-KADDRESSBOOK-X-Anniversary", "", KDE_EXT_Anniversary}, {"X-KADDRESSBOOK-X-CUSTOM", "", KDE_EXT_CUSTOM}, /* rubrica extension. So rubrica can import a previously exported rubrica's addressbook to vcard format */ {"X-RUBRICA-X-Card", "", RUBRICA_EXT_Card}, {"X-RUBRICA-X-Group", "", RUBRICA_EXT_Group}, {"X-RUBRICA-X-Ref", "", RUBRICA_EXT_Ref}, {"X-RUBRICA-X-URL", "", RUBRICA_EXT_Url}, {"X-RUBRICA-X-CompanyName", "", RUBRICA_EXT_CompanyName}, {"X-RUBRICA-X-Street", "", RUBRICA_EXT_Street}, {"X-RUBRICA-X-StreetNumber", "", RUBRICA_EXT_StreetNumber}, {"X-RUBRICA-X-ZipCode", "", RUBRICA_EXT_ZipCode}, {"X-RUBRICA-X-City", "", RUBRICA_EXT_City}, {"X-RUBRICA-X-Province", "", RUBRICA_EXT_Province}, {"X-RUBRICA-X-Country", "", RUBRICA_EXT_Country}, {"X-RUBRICA-X-Web", "", RUBRICA_EXT_Web}, {"X-RUBRICA-X-Email", "", RUBRICA_EXT_Email}, {"X-RUBRICA-X-Operator", "", RUBRICA_EXT_Operator}, {"X-RUBRICA-X-Fax", "", RUBRICA_EXT_Fax}, {"X-RUBRICA-X-Green", "", RUBRICA_EXT_Green}, {"X-RUBRICA-X-CustomerCare", "", RUBRICA_EXT_CustomerCare}, {"X-RUBRICA-X-Department", "", RUBRICA_EXT_Department}, {"X-RUBRICA-X-SubDepartment", "", RUBRICA_EXT_SubDepartment}, {"X-RUBRICA-X-Manager", "", RUBRICA_EXT_Manager}, {"X-RUBRICA-X-ManagerTelephone", "", RUBRICA_EXT_ManagerTelephone}, {"X-RUBRICA-X-Collaborator", "", RUBRICA_EXT_Collaborator}, {"X-RUBRICA-X-CollaboratorTelephone", "", RUBRICA_EXT_CollaboratorTelephone}, {"X-RUBRICA-X-SpouseName", "", RUBRICA_EXT_SpouseName}, {"X-RUBRICA-X-Child", "", RUBRICA_EXT_Child}, {"X-RUBRICA-X-Anniversary", "", RUBRICA_EXT_Anniversary}, /* evolution extensions */ {"X-EVOLUTION-FILE-AS", "", EVOLUTION_EXT_File_as}, {"X-EVOLUTION-OFFICE", "", EVOLUTION_EXT_Office}, {"X-EVOLUTION-MANAGER", "", EVOLUTION_EXT_Manager}, {"X-EVOLUTION-ASSISTANT", "", EVOLUTION_EXT_Assistant}, {"X-EVOLUTION-SPOUSE", "", EVOLUTION_EXT_Spouse}, {"X-EVOLUTION-ANNIVERSARY", "", EVOLUTION_EXT_Anniversary}, {"X-MOZILLA-HTML", "", MOZILLA_EXT_Html}, /* TODO: add evolution extensions */ {NULL, "", BAD_TOKEN} }; static RLookupTable params[] = { {"type", "", TYPE}, {"value", "", VALUE}, {"encoding", "", ENCODING}, {"rate", "", RATE}, // rubrica's param {"owner", "", OWNER}, {NULL, "", BAD_PARAM} }; static RLookupTable values[] = { {"home", "", HOME}, {"work", "", WORK}, {"cell", "", CELL}, {"fax", "", FAX}, {"postal", "", POSTAL}, {"parcel", "", PARCEL}, {"dom", "", DOM}, {"intl", "", INTL}, {"pref", "", PREF}, {"voice", "", VOICE}, {"msg", "", MSG}, {"pager", "", PAGER}, {"bbs", "", BBS}, {"modem", "", MODEM}, {"car", "", CAR}, {"isdn", "", ISDN}, {"video", "", VIDEO}, {"aol", "", AOL}, {"internet", "", INTERNET}, {"applelink", "", APPLELINK}, {"attmail", "", ATTMAIL}, {"cis", "", CIS}, {"eworld", "", EWORLD}, {"ibmmail", "", IBMMail}, {"mcimail", "", MCIMAIL}, {"powershare", "", POWERSHARE}, {"prodigy", "", PRODIGY}, {"tlx", "", TLX}, {"x400", "", X400}, {"vcard", "", VCARD}, {"pgp", "", PGP}, {"x509", "", X509}, {"b", "", BINARY}, {"binary", "", BINARY}, {"text", "", TEXT}, {"uri", "", URI}, {"basic", "", BASIC}, {"jpeg", "", JPEG}, {"public", "", PUBLIC}, {"private", "", PRIVATE}, {"confidential", "", CONFIDENTIAL}, {"quoted-printable", "", QUOTED_PRINTABLE}, {NULL, "", BAD_VALUE} }; static RPairTable address_pairs[] = { {"home", HOME, R_ADDRESS_HOME}, {"work", WORK, R_ADDRESS_WORK}, {NULL, BAD_VALUE, R_ADDRESS_OTHER}, }; static RPairTable phone_pairs[] = { {"home", HOME, R_TELEPHONE_HOME }, {"work", WORK, R_TELEPHONE_WORK }, {"fax", FAX, R_TELEPHONE_FAX }, {"cellphone", CELL, R_TELEPHONE_CELLPHONE}, {"pref", PREF, R_TELEPHONE_OTHER }, {"voice", VOICE, R_TELEPHONE_OTHER }, {"msg", MSG, R_TELEPHONE_OTHER }, {"pager", PAGER, R_TELEPHONE_OTHER }, {"bbs", BBS, R_TELEPHONE_OTHER }, {"modem", MODEM, R_TELEPHONE_OTHER }, {"car", CAR, R_TELEPHONE_OTHER }, {"isdn", ISDN, R_TELEPHONE_OTHER }, {"video", VIDEO, R_TELEPHONE_OTHER }, {NULL, BAD_VALUE, R_TELEPHONE_OTHER }, }; /* property enumeration */ enum { VCARD_PROP_0, VCARD_TOKEN, VCARD_PARAM, VCARD_VALUE, }; static void r_vcard_init (RVCard* obj); static void r_vcard_class_init (RVCardClass* klass); static void r_vcard_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_vcard_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void r_vcard_dispose (RVCard* obj); static void r_vcard_finalize (RVCard* obj); /* private functions */ static RCompanyCard* r_vcard_company_new (RVCard *vcard, RCard* card); static RAddress* r_vcard_company_address_new(RVCard *vcard); static gchar* r_vcard_get_data (RVCard* vcard); static gchar* r_vcard_get_param_value (RVCard* vcard); static void r_vcard_set_param_value (RVCard* vcard, gchar *string); static void r_vcard_free_values (RVCard* vcard); static RDate* r_vcard_decode_date (gchar* buffer); static void r_vcard_build_card (RVCard *vcard, RAbook* abook); static gboolean r_vcard_read_file (RVCard* vcard, RAbook* abook, gchar* filename); static gboolean r_vcard_open_file (RAbook* vcard, gchar* filename); static gboolean r_vcard_write_file (RAbook* vcard, gchar* filename, gint crate); static gboolean r_vcard_overwrite_file (RAbook* abook, gint crate); struct _RVCardPrivate { gboolean have_company; gboolean have_company_address; RVCardTokenType token; RVCardParamType param; // type || value || encoding || rank || owner RVCardValueType value; // home || work || ... || internet || ... GString *data; // buffered data GList* values; // RParams list gboolean dispose_has_run; }; typedef struct _RParams { RVCardParamType param; RVCardValueType value; gchar* str; } RParams; RPersonalCard *card = NULL; RCompanyCard *company = NULL; RContact *contact = NULL; RWork *work = NULL; RNotes *notes = NULL; RAddress *address = NULL; RTelephone *tel = NULL; RNetAddress *net = NULL; RAddress *company_address = NULL; RTelephone *company_telephone = NULL; RNetAddress *company_net = NULL; gchar** categories = NULL; gchar** decoded; GType r_vcard_get_type() { static GType r_vcard_type = 0; if (!r_vcard_type) { static const GTypeInfo r_vcard_info = { sizeof(RVCardClass), NULL, NULL, (GClassInitFunc) r_vcard_class_init, NULL, NULL, sizeof(RVCard), 0, (GInstanceInitFunc) r_vcard_init }; r_vcard_type = g_type_register_static (G_TYPE_OBJECT, "RVCard", &r_vcard_info, 0); } return r_vcard_type; } static void r_vcard_init(RVCard* vcard) { g_return_if_fail(R_VCARD(vcard) != NULL); vcard->priv = g_new(RVCardPrivate, 1); vcard->fp = NULL; vcard->priv->have_company = FALSE; vcard->priv->have_company_address = FALSE; vcard->priv->token = BAD_TOKEN; vcard->priv->param = BAD_PARAM; vcard->priv->value = BAD_VALUE; vcard->priv->data = g_string_new(NULL); vcard->priv->values = NULL; vcard->priv->dispose_has_run = FALSE; } static void r_vcard_class_init(RVCardClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_vcard_dispose; class->finalize = (GObjectFinalizeFunc) r_vcard_finalize; class->set_property = r_vcard_set_property; class->get_property = r_vcard_get_property; pspec = g_param_spec_int("token", "token", "token", N, BAD_TOKEN, BAD_TOKEN, G_PARAM_READWRITE); g_object_class_install_property(class, VCARD_TOKEN, pspec); pspec = g_param_spec_int("param", "param", "param", TYPE, BAD_PARAM, BAD_PARAM, G_PARAM_READWRITE); g_object_class_install_property(class, VCARD_PARAM, pspec); pspec = g_param_spec_int("value", "value", "value", HOME, BAD_VALUE, BAD_VALUE, G_PARAM_READWRITE); g_object_class_install_property(class, VCARD_VALUE, pspec); } static void r_vcard_dispose (RVCard* vcard) { g_return_if_fail(IS_R_VCARD(vcard)); if (vcard->priv->dispose_has_run) return; vcard->priv->dispose_has_run = TRUE; } static void r_vcard_finalize (RVCard* vcard) { g_return_if_fail(IS_R_VCARD(vcard)); g_free(vcard->priv); vcard->priv = NULL; } static void r_vcard_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RVCard* self = (RVCard*) obj; switch(property_id) { case VCARD_TOKEN: self->priv->token = g_value_get_int(value); break; case VCARD_PARAM: self->priv->param = g_value_get_int(value); break; case VCARD_VALUE: self->priv->value = g_value_get_int(value); break; default: break; } } static void r_vcard_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RVCard* self = (RVCard*) obj; switch(property_id) { case VCARD_TOKEN: g_value_set_int(value, self->priv->token); break; case VCARD_PARAM: g_value_set_int(value, self->priv->param); break; case VCARD_VALUE: g_value_set_int(value, self->priv->value); break; default: break; } } static gchar* r_vcard_get_data(RVCard* vcard) { g_return_val_if_fail(IS_R_VCARD(vcard), ""); return vcard->priv->data->str; } static gchar* r_vcard_get_param_value(RVCard* vcard) { RParams* rparam = NULL; g_return_val_if_fail(IS_R_VCARD(vcard), NULL); if (vcard->priv->values) rparam = vcard->priv->values->data; return rparam->str; } void r_vcard_set_param_value (RVCard* vcard, gchar *string) { RParams* rparam; gint value; g_return_if_fail(IS_R_VCARD(vcard)); value = r_lookup_table_str2enum(values, string); rparam = g_malloc0(sizeof(RParams)); if (!rparam) g_error("not enough memory"); if ((vcard->priv->param == RATE) || (vcard->priv->param == OWNER)) rparam->str = g_strdup(string); else rparam->str = NULL; rparam->param = vcard->priv->param; rparam->value = value; vcard->priv->values = g_list_append(vcard->priv->values, rparam); } static RDate* r_vcard_decode_date (gchar* buffer) { g_return_val_if_fail(buffer!= NULL, NULL); /* date: 2001-10-21T15:53:29 1973-03-18 */ RDate* date; struct tm tm; gchar *tmp; gboolean time2RData = TRUE; date = r_date_new(); tmp = buffer; for (; *tmp; tmp++) if (*tmp == '-') time2RData = FALSE; if (!time2RData) { gchar *str, *tok; str = g_strdup(buffer); tok = strtok(str, "-"); tm.tm_year = atoi(tok) - 1900; tok = strtok(NULL, "-"); tm.tm_mon = atoi(tok) - 1; tok = strtok(NULL, "T"); tm.tm_mday = atoi(tok); g_free(str); /* if (has_hour) { tok = strtok(NULL, ":"); tm.tm_hour = atoi(tok); tok = strtok(NULL, ":"); tm.tm_min = atoi(tok); tok = strtok(NULL, ""); tm.tm_sec = atoi(tok); } */ } else { time_t t; t = atoi(buffer); localtime_r (&t, &tm); } g_object_set(date, "know", TRUE, "day", tm.tm_mday, "month", tm.tm_mon, "year", tm.tm_year, NULL); return date; } static void r_vcard_free_values(RVCard* vcard) { GList* l; g_return_if_fail(IS_R_VCARD(vcard)); l = vcard->priv->values; for (; l; l = l->next) { RParams* rparam = (RParams*) l->data; g_free(rparam->str); g_free(rparam); } vcard->priv->values = NULL; } static RCompanyCard* r_vcard_company_new(RVCard *vcard, RCard* card) { RRef* ref; RCompanyCard* company = NULL; gulong id; gchar* info; vcard->priv->have_company = TRUE; g_object_get(R_CARD(card), "card-id", &id, "card-name", &info, NULL); ref = r_ref_new(id); g_object_set(ref, "ref-info", info, NULL); company = r_company_card_new(); r_card_add_ref(R_CARD(company), ref); return company; } static RAddress* r_vcard_company_address_new(RVCard *vcard) { g_return_val_if_fail(IS_R_VCARD(vcard), NULL); vcard->priv->have_company_address = TRUE; return r_address_new(); } gchar* r_vcard_validate_data(gchar* str, int n) { gchar* tmp, *ret; tmp = str; for (; *tmp; tmp++) if (tmp && *tmp == ';') n--; if (n > 0) { gchar* buf; buf = g_strnfill(n-1, ';'); ret = g_strdup_printf("%s%s", str, buf); g_free(buf); } else ret = g_strdup(str); return ret; } void r_vcard_build_card(RVCard *vcard, RAbook* abook) { GList* lst = NULL; RDate* date; RGroup* group; gint i=0, day, month, year; g_return_if_fail(IS_R_VCARD(vcard)); switch(vcard->priv->token) { case BEGIN: card = r_personal_card_new(); contact = r_contact_new(); work = r_work_new(); notes = r_notes_new(); break; case END: r_personal_card_set_contact(card, contact); r_personal_card_set_notes(card, notes); r_personal_card_set_work(card, work); r_abook_add_loaded_card(R_ABOOK(abook), R_CARD(card)); g_signal_emit_by_name(R_ABOOK(abook), "card_read", card, G_TYPE_POINTER); if (vcard->priv->have_company) { r_card_add_address(R_CARD(company), company_address); vcard->priv->have_company = FALSE; vcard->priv->have_company_address = FALSE; r_abook_add_loaded_card(R_ABOOK(abook), R_CARD(company)); g_signal_emit_by_name(R_ABOOK(abook), "card_read", company, G_TYPE_POINTER); } break; case FN: /* card name */ g_object_set(R_CARD(card), "card-name", vcard->priv->data->str, NULL); break; case N: /* ord ==> surname (last name), (given) name, (middle) second name, prefix, suffix (title) cognome, nome, secondo nome, prefisso, suffisso (titolo) */ if (vcard->priv->data->str && (g_ascii_strcasecmp(vcard->priv->data->str, "") != 0)) { gchar *data; data = r_vcard_validate_data(vcard->priv->data->str, 5); decoded = g_strsplit(data, ";", 5); g_object_set(contact, "last-name", decoded[0], "first-name", decoded[1], "middle-name", decoded[2], "prefix", decoded[3], "title", decoded[4], NULL); g_strfreev(decoded); g_free(data); } break; case TZ: break; case REV: break; case ADR: /* mail address + mail type */ /* pbox ==> decoded[0], extadd ==> decoded[1] */ for (lst = vcard->priv->values; lst; lst = lst->next) { RParams* rparam = (RParams*) lst->data; RAddressType addtype; if (vcard->priv->data->str && (g_ascii_strcasecmp(vcard->priv->data->str, "") != 0)) { gchar *data; data = r_vcard_validate_data(vcard->priv->data->str, 7); decoded = g_strsplit(data, ";", 7); } else break; address = r_address_new(); g_object_set(address, "street", decoded[2], "city", decoded[3], "state", decoded[4], "province", decoded[4], "zip", decoded[5], "country", decoded[6], NULL); addtype = r_lookup_table_get_pair_right(address_pairs, rparam->value); g_object_set(address, "address-type", addtype, NULL); r_card_add_address(R_CARD(card), address); g_strfreev(decoded); } break; case TEL: for (lst = vcard->priv->values; lst; lst = lst->next) { RParams* rparam = (RParams*) lst->data; RTelephoneType type; tel = r_telephone_new(); type = r_lookup_table_get_pair_right(phone_pairs, rparam->value); g_object_set(tel, "telephone-number", r_vcard_get_data(vcard), "telephone-type", type, NULL); r_card_add_telephone(R_CARD(card), tel); } break; case EMAIL: net = r_net_address_new(); g_object_set(net, "url", r_vcard_get_data(vcard), "url-type", R_NET_ADDRESS_EMAIL, NULL); r_card_add_net_address(R_CARD(card), net); break; case URL: net = r_net_address_new(); g_object_set(net, "url", r_vcard_get_data(vcard), "url-type", R_NET_ADDRESS_WEB, NULL); r_card_add_net_address(R_CARD(card), net); break; case GEO: break; case BDAY: date = r_vcard_decode_date(r_vcard_get_data(vcard)); g_object_get(date, "day",&day, "month", &month, "year", &year, NULL); r_contact_set_birthday(contact, day, month, year); break; case TITLE: case KDE_EXT_Profession: g_object_set(contact, "profession", r_vcard_get_data(vcard), NULL); break; case ORG: g_object_set(work, "organization", r_vcard_get_data(vcard), NULL); break; case CATEGORIES: categories = g_strsplit(r_vcard_get_data(vcard), ",", 0); for (i = 0; categories[i]; i++) { RGroup* group; group = r_group_new(); g_object_set(group, "group-name", categories[i], "group-owner", "user", NULL); r_card_add_group(R_CARD(card), group); } g_strfreev(categories); break; case RUBRICA_EXT_Group: categories = g_strsplit(r_vcard_get_data(vcard), ";", 0); group = r_group_new(); g_object_set(group, "group-name", categories[0], "group-pixmap", categories[1], "group-owner", r_vcard_get_param_value(vcard), NULL); r_card_add_group(R_CARD(card), group); g_strfreev(categories); break; case NOTE: g_object_set(notes, "other-notes", r_vcard_get_data(vcard), NULL); break; case KEY: g_object_set(notes, "pubkey", r_vcard_get_data(vcard), NULL); break; case ROLE: g_object_set(work, "assignment", r_vcard_get_data(vcard), NULL); break; /* TODO -- recuperare campi condivisi */ case UID: break; case LOGO: break; case PHOTO: break; case LABEL: break; case AGENT: break; case PROID: break; case SOUND: break; case CLASS: break; case MAILER: break; case VERSION: break; case NICKNAME: g_object_set(contact, "nick-name", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Card: categories = g_strsplit(r_vcard_get_data(vcard), ";", 0); if (categories) { gboolean locked = TRUE, deleted = FALSE; if (g_ascii_strcasecmp(g_ascii_strdown(categories[0], -1), "true") == 0) locked = TRUE; if (g_ascii_strcasecmp(g_ascii_strdown(categories[1], -1), "true") == 0) deleted = TRUE; g_object_set(card, "card-rate", atoi(r_vcard_get_param_value(vcard)), "card-locked", locked, "card-deleted", deleted, NULL); g_strfreev(categories); } break; case RUBRICA_EXT_Ref: // ref id break; case RUBRICA_EXT_Url: // other url break; case RUBRICA_EXT_Department: case KDE_EXT_Department: g_object_set(work, "department", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_SubDepartment: g_object_set(work, "sub-department", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Collaborator: case KDE_EXT_AssistantsName: case EVOLUTION_EXT_Assistant: g_object_set(work, "collaborator", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_CollaboratorTelephone: g_object_set(work, "collaborator-phone", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_SpouseName: case KDE_EXT_SpousesName: case EVOLUTION_EXT_Spouse: g_object_set(notes, "has-partner", TRUE, "partner-name", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Child: g_object_set(notes, "children", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Anniversary: case KDE_EXT_Anniversary: case EVOLUTION_EXT_Anniversary: date = r_vcard_decode_date(r_vcard_get_data(vcard)); r_notes_set_know_anniversary(notes, TRUE); g_object_get(date, "day",&day, "month", &month, "year", &year, NULL); r_notes_set_anniversary(notes, day, month, year); break; case RUBRICA_EXT_Manager: case KDE_EXT_ManagersName: case EVOLUTION_EXT_Manager: g_object_set(work, "manager-name", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_ManagerTelephone: // todo break; case KDE_EXT_Office: case EVOLUTION_EXT_Office: break; case KDE_EXT_CUSTOM: break; /* Company tokens */ case RUBRICA_EXT_CompanyName: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); g_object_set(company, "company-name", r_vcard_get_data(vcard), NULL); g_object_set(R_CARD(company), "card-name", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Street: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); if (!vcard->priv->have_company_address) company_address = r_vcard_company_address_new(vcard); g_object_set(company_address, "street", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_StreetNumber: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); if (!vcard->priv->have_company_address) company_address = r_vcard_company_address_new(vcard); g_object_set(company_address, "street-number", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_ZipCode: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); if (!vcard->priv->have_company_address) company_address = r_vcard_company_address_new(vcard); g_object_set(company_address, "zip", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_City: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); if (!vcard->priv->have_company_address) company_address = r_vcard_company_address_new(vcard); g_object_set(company_address, "city", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Province: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); if (!vcard->priv->have_company_address) company_address = r_vcard_company_address_new(vcard); g_object_set(company_address, "province", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Country: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); if (!vcard->priv->have_company_address) company_address = r_vcard_company_address_new(vcard); g_object_set(company_address, "country", r_vcard_get_data(vcard), NULL); break; case RUBRICA_EXT_Web: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); company_net = r_net_address_new(); g_object_set(company_net, "url", r_vcard_get_data(vcard), "url-type", R_NET_ADDRESS_WEB, NULL); r_card_add_net_address(R_CARD(company), company_net); break; case RUBRICA_EXT_Email: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); company_net = r_net_address_new(); g_object_set(company_net, "url", r_vcard_get_data(vcard), "url-type", R_NET_ADDRESS_EMAIL, NULL); r_card_add_net_address(R_CARD(company), company_net); break; case RUBRICA_EXT_Operator: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); company_telephone = r_telephone_new(); g_object_set(company_telephone, "telephone-number", r_vcard_get_data(vcard), "telephone-type", R_TELEPHONE_OPERATOR, NULL); r_card_add_telephone(R_CARD(company), company_telephone); break; case RUBRICA_EXT_Fax: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); company_telephone = r_telephone_new(); g_object_set(company_telephone, "telephone-number", r_vcard_get_data(vcard), "telephone-type", R_TELEPHONE_FAX, NULL); r_card_add_telephone(R_CARD(company), company_telephone); break; case RUBRICA_EXT_Green: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); company_telephone = r_telephone_new(); g_object_set(company_telephone, "telephone-number", r_vcard_get_data(vcard), "telephone-type", R_TELEPHONE_GREEN, NULL); r_card_add_telephone(R_CARD(company), company_telephone); break; case RUBRICA_EXT_CustomerCare: if (!vcard->priv->have_company) company = r_vcard_company_new(vcard, R_CARD(card)); company_telephone = r_telephone_new(); g_object_set(company_telephone, "telephone-number", r_vcard_get_data(vcard), "telephone-type", R_TELEPHONE_CUSTOMER_CARE, NULL); r_card_add_telephone(R_CARD(company), company_telephone); break; case EVOLUTION_EXT_File_as: break; case BAD_TOKEN: default: break; } } /* Public functions */ RVCard* r_vcard_new(void) { RVCard *vcard; vcard = g_object_new(r_vcard_get_type(), NULL); return (RVCard*) vcard; } void r_vcard_free (RVCard *vcard) { g_return_if_fail(IS_R_VCARD(vcard)); g_object_unref(vcard); } static gboolean r_vcard_open_file (RAbook* abook, gchar* filename) { RVCard* vcard; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); if (!filename) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", NO_FILENAME, G_TYPE_INT); return FALSE; } if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { g_signal_emit_by_name(R_ABOOK(abook), "open_fail", FILE_NOT_EXIST, G_TYPE_INT); return FALSE; } vcard = (RVCard*) r_abook_get_plugin(abook); if (!r_vcard_read_file(vcard, abook, filename)) return FALSE; else g_signal_emit_by_name(R_ABOOK(abook), "addressbook_read", NULL, G_TYPE_NONE); g_object_set(R_ABOOK(abook), "addressbook-name", g_path_get_basename(filename), "addressbook-path", g_path_get_dirname(filename), NULL); return TRUE; } static void write_card (RCard* card, FILE* fp) { gpointer data; gchar *id, *name, *cardtype, *tmp, *type; gboolean locked, deleted; gint created, changed; RRate rate; gchar *day, *month, *year; gchar *first, *middle, *last, *nick, *prefix, *prof, *title, *photo; fprintf(fp, "\n"); fprintf(fp, "BEGIN:VCARD\n"); fprintf(fp, "VERSION:3.0\n"); g_object_get(card, "card-id", &id, "card-type", &cardtype, "card-name", &name, "card-locked", &locked, "card-deleted", &deleted, "card-rate", &rate, "card-created", &created, "card-changed", &changed, NULL); if (name) fprintf(fp, "FN:%s\n", name); /* Card's data (rubrica's extensions) */ tmp = g_strdup_printf("%d", rate); fprintf(fp, "X-RUBRICA-X-Card;RATE=%s:%s;%s\n", tmp, locked ? "true" : "false", deleted ? "true" : "false"); g_free(tmp); /* Groups (rubrica's extensions) */ data = r_card_get_group(R_CARD(card)); for (; data; data = r_card_get_next_group(R_CARD(card))) { gchar* owner; gchar* pixmap = NULL; g_object_get(R_GROUP(data), "group-name", &name, "group-owner", &owner, "group-pixmap", &pixmap, NULL); fprintf(fp, "X-RUBRICA-X-Group;OWNER=%s:%s;%s\n", owner, name, pixmap); } /* References (rubrica's extensions) */ data = r_card_get_ref(R_CARD(card)); for (; data; data = r_card_get_next_ref(R_CARD(card))) { glong id; gchar *info, *tmp; g_object_get(R_REF(data), "ref-to", &id, "ref-info", &info, NULL); tmp = g_strdup_printf("%ld", id); fprintf(fp, "X-RUBRICA-X-Ref;ID=%s:%s\n", tmp, info); g_free(tmp); } if (g_ascii_strcasecmp(cardtype, "personal") == 0) { /* Personal data */ data = r_personal_card_get_contact(R_PERSONAL_CARD(card)); g_object_get(R_CONTACT(data), "first-name", &first, "middle-name", &middle, "last-name", &last, "nick-name", &nick, "profession", &prof, "prefix", &prefix, "title", &title, "photo", &photo, NULL); if (first || middle || last || prefix || title) fprintf(fp, "N:%s;%s;%s;%s;%s\n", last ? last : "", first ? first : "", middle ? middle : "", prefix ? prefix : "", title ? title : ""); day = r_contact_get_birth_day (R_CONTACT(data)); month = r_contact_get_birth_month (R_CONTACT(data)); year = r_contact_get_birth_year (R_CONTACT(data)); if ((day && (g_ascii_strcasecmp(day, "BadDay") != 0)) && (month && (g_ascii_strcasecmp(day, "BadMonth") != 0)) && (year && (g_ascii_strcasecmp(day, "BadYear") != 0))) fprintf(fp, "BDAY:%s-%s-%s\n", day, month, year); } else { /* TODO ***** Company ****** fprintf(fp, ":%s\n", ); */ } /* Addresses */ data = r_card_get_address(R_CARD(card)); for (; data; data = r_card_get_next_address(R_CARD(card))) { if (IS_R_ADDRESS(data)) { RAddressType adtype = R_ADDRESS_UNKNOWN; gchar *street, *number, *city, *zip; gchar *province, *state, *country; g_object_get(R_ADDRESS(data), "address-type", &adtype, "street", &street, "street-number", &number, "city", &city, "zip", &zip, "province", &province, "state", &state, "country", &country, NULL); type = r_address_lookup_enum2str(adtype); if (street || city || state || zip || country) fprintf(fp, "ADR;TYPE=%s:%s;%s;%s;%s;%s;%s;%s\n", type, "", "", street ? street : "", city ? city : "", state ? state : "", zip ? zip : "", country ? country : ""); } } /* Net (emails, web urls) */ data = r_card_get_net_address(R_CARD(card)); for (; data; data = r_card_get_next_net_address(R_CARD(card))) if (IS_R_NET_ADDRESS(data)) { RNetAddressType nettype; gchar *url; g_object_get(R_NET_ADDRESS(data), "url", &url, "url-type", &nettype, NULL); type = r_net_address_decode_type(nettype); switch (nettype) { case R_NET_ADDRESS_EMAIL: fprintf(fp, "EMAIL;INTERNET:%s\n", url); break; case R_NET_ADDRESS_WEB: fprintf(fp, "URL:%s\n", url); break; case R_NET_ADDRESS_EKIGA: case R_NET_ADDRESS_IRC: case R_NET_ADDRESS_IRC_AIM: case R_NET_ADDRESS_IRC_ICQ: case R_NET_ADDRESS_IRC_JABBER: case R_NET_ADDRESS_IRC_YAHOO: case R_NET_ADDRESS_IRC_MSN: case R_NET_ADDRESS_WORK_WEB: case R_NET_ADDRESS_WORK_EMAIL: case R_NET_ADDRESS_UNKNOWN: fprintf(fp, "X-RUBRICA-X-URL;TYPE=%s:%s\n", type, url); break; default: break; } } /* Telephone */ data = r_card_get_telephone(R_CARD(card)); for (; data; data = r_card_get_next_telephone(R_CARD(card))) if (IS_R_TELEPHONE(data)) { gchar *number, *type; RTelephoneType ttype; g_object_get(R_TELEPHONE(data), "telephone-number", &number, "telephone-type", &ttype, NULL); type = r_telephone_lookup_enum2str(ttype); fprintf(fp, "TEL;TYPE=%s:%s\n", type, number); } /* Work */ if (g_ascii_strcasecmp(cardtype, "personal") == 0) { data = r_personal_card_get_work(R_PERSONAL_CARD(card)); if (IS_R_WORK(data)) { gchar *assignment, *org, *dep, *subdep; gchar *manager, *mphone, *collaborator, *cphone; g_object_get(R_WORK(data), "assignment", &assignment, "organization", &org, "department", &dep, "sub-department", &subdep, "manager-name", &manager, "manager-phone", &mphone, "collaborator", &collaborator, "collaborator-phone", &cphone, NULL); if (assignment) fprintf(fp, "ROLE:%s\n", assignment); if (org) fprintf(fp, "ORG:%s\n", org); if (dep) fprintf(fp, "X-RUBRICA-Department:%s\n", dep); if (subdep) fprintf(fp, "X-RUBRICA-X-SubDepartment:%s\n", subdep); if (manager) fprintf(fp, "X-RUBRICA-X-Manager:%s\n", manager); if (mphone) fprintf(fp, "X-RUBRICA-X-ManagerTelephone:%s\n", mphone); if (collaborator) fprintf(fp, "X-RUBRICA-X-Collaborator:%s\n", collaborator); if (cphone) fprintf(fp, "X-RUBRICA-X-CollaboratorTelephone:%s\n", cphone); } } /* Notes */ if (g_ascii_strcasecmp(cardtype, "personal") == 0) { data = r_personal_card_get_notes(R_PERSONAL_CARD(card)); if (IS_R_NOTES(data)) { gchar *other, *pkey; g_object_get(R_NOTES(data), "other-notes", &other, "pubkey", &pkey, NULL); if (other) fprintf(fp, "NOTE:%s\n", other); if (pkey) fprintf(fp, "KEY:%s\n", pkey); } } fprintf(fp, "END:VCARD\n\n"); } static gboolean r_vcard_write_file (RAbook* abook, gchar* filename, gint crate) { FILE* fp; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(filename != NULL, FALSE); if (!(fp = fopen(filename, "w"))) { g_warning("\nCan't write file: %s", filename); g_signal_emit_by_name(abook, "save_fail", WRITING_FILE, G_TYPE_INT); return FALSE; } r_abook_foreach_card (abook, (RFunc) write_card, fp); fflush(fp); g_signal_emit_by_name(abook, "addressbook_saved", NULL, G_TYPE_NONE); return TRUE; } gboolean r_vcard_read_file (RVCard* vcard, RAbook* abook, gchar* filename) { ParserStatus status; GString *buffer; gunichar ch = EOF; gboolean read = FALSE; g_return_val_if_fail(IS_R_VCARD(vcard), FALSE); g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); vcard->fp = fopen(filename, "r"); if (!vcard->fp) return FALSE; buffer = g_string_new(NULL); status = VCARD_START; do { ch = fgetc(vcard->fp); switch(status) { case VCARD_START: // card_new if ((ch != '\n') && (ch != '\r') && (ch != ' ')) { buffer = g_string_append_unichar(buffer, ch); status = VCARD_BUILD_TOKEN; } break; case VCARD_BUILD_TOKEN: // building token (until ch != :) if (ch == VCARD_TOKEN_DELIM) // : { gint token; token = r_lookup_table_str2enum(tokens, buffer->str); // r_vcard_decode_token(vcard, buffer->str); g_object_set(vcard, "token", token, NULL); g_string_truncate(buffer, 0); status = VCARD_BUILD_DATA; break; } if (ch == VCARD_PARAM_DELIM) // ; { gint token; token = r_lookup_table_str2enum(tokens, buffer->str); g_object_set(vcard, "token", token, NULL); g_string_truncate(buffer, 0); status = VCARD_BUILD_PARAM; break; } if (ch == ' ') break; if (g_unichar_isalpha(ch) || g_unichar_isgraph(ch)) buffer = g_string_append_unichar(buffer, ch); break; case VCARD_BUILD_PARAM: // building parameters (until :) if (ch == VCARD_VALUE_DELIM) // = (TYPE=...;RATE=...; { gint param; param = r_lookup_table_str2enum(params, buffer->str); g_object_set(vcard, "param", param, NULL); g_string_truncate(buffer, 0); status = VCARD_BUILD_PARAM_VALUES; break; } if (ch == VCARD_PARAM_DELIM) // ; (WORK;VOICE;FAX;...) { g_object_set(vcard, "param", TYPE, NULL); r_vcard_set_param_value(vcard, buffer->str); g_string_truncate(buffer, 0); status = VCARD_BUILD_PARAM; break; } if (ch == VCARD_TOKEN_DELIM) // : (EMAIL;INTERNET:) { g_object_set(vcard, "param", TYPE, NULL); r_vcard_set_param_value(vcard, buffer->str); g_string_truncate(buffer, 0); status = VCARD_BUILD_DATA; break; } if (g_unichar_isalpha(ch)) { buffer = g_string_append_unichar(buffer, ch); status = VCARD_BUILD_PARAM; } break; case VCARD_BUILD_PARAM_VALUES: // (RATE=4: TYPE=home:) if (ch == VCARD_TOKEN_DELIM) // : { r_vcard_set_param_value(vcard, buffer->str); g_string_truncate(buffer, 0); status = VCARD_BUILD_DATA; break; } if (ch == VCARD_PARAM_DELIM) // ; (TYPE=...;) { r_vcard_set_param_value(vcard, buffer->str); g_string_truncate(buffer, 0); status = VCARD_BUILD_PARAM; break; } if (g_unichar_isalnum(ch)) { buffer = g_string_append_unichar(buffer, ch); status = VCARD_BUILD_PARAM_VALUES; } break; case VCARD_BUILD_VALUES: g_print("\nVCARD_BUILD_VALUES"); if (ch == VCARD_PARAM_DELIM) // ; { gint value; value = r_lookup_table_str2enum(values, buffer->str); g_object_set(vcard, "value", value, NULL); g_string_truncate(buffer, 0); status = VCARD_BUILD_PARAM; break; } if (ch == VCARD_TOKEN_DELIM) // : { gint value; value = r_lookup_table_str2enum(values, buffer->str); g_object_set(vcard, "value", value, NULL); g_string_truncate(buffer, 0); status = VCARD_BUILD_DATA; break; } buffer = g_string_append_unichar(buffer, ch); break; case VCARD_BUILD_DATA: if (ch == '\t') break; if (ch == '\r') { buffer = g_string_append_unichar(buffer, '\0'); break; } if ((ch == '\n') || (ch == EOF)) { if (g_utf8_validate(buffer->str, -1, NULL)) { if ((vcard->priv->param == ENCODING) && (vcard->priv->value == QUOTED_PRINTABLE)) { gchar *p = NULL; if ((p = g_strrstr(buffer->str, "=0D=0A=")) || (p = g_strrstr(buffer->str, "=0A=0D=")) || (p = g_strrstr(buffer->str, "=0A=0D")) || (p = g_strrstr(buffer->str, "=0A"))) *p = '\0'; } g_string_append(vcard->priv->data, buffer->str); r_vcard_build_card(vcard, abook); g_string_truncate(buffer, 0); g_string_truncate(vcard->priv->data, 0); r_vcard_free_values(vcard); status = VCARD_BUILD_TOKEN; read = TRUE; } break; } buffer = g_string_append_unichar(buffer, ch); break; case VCARD_END: break; default: break; } } while(!feof(vcard->fp)); fclose(vcard->fp); if (read) return TRUE; return FALSE; } static gboolean r_vcard_overwrite_file(RAbook* abook, gint compression_rate) { gchar* file; gchar* path; gchar* filename; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_object_get(abook, "addressbook-path", &path, "addressbook-name", &file, NULL); filename = g_strdup_printf("%s%s%s", path, G_DIR_SEPARATOR_S, file); if (g_file_test(filename, G_FILE_TEST_EXISTS)) g_remove(filename); if (!r_vcard_write_file(abook, filename, compression_rate)) { g_signal_emit_by_name(abook, "save_fail", OVERWRITING, G_TYPE_INT); g_free(filename); return FALSE; } g_free(filename); return TRUE; } G_MODULE_EXPORT void plugin_init (RPlugin* plugin, gchar* file) { RFilter* filter; RPluginAction* action; g_return_if_fail(plugin != NULL); r_plugin_set_obj(plugin, r_vcard_new()); g_object_set(plugin, "plugin-name", "vcard", "plugin-filename", file, "plugin-info", "This plugin manages the vcard file format", "plugin-configurable", FALSE, NULL); filter = r_filter_new(); g_object_set(filter, "filter-name", "vcard", "filter-extension", "vcard", "filter-mime", "text/x-vcard", NULL); r_filter_add_pattern(filter, "vcard"); r_filter_add_pattern(filter, "vcr"); r_filter_add_pattern(filter, "*.vcr"); r_filter_add_pattern(filter, "*.vcard"); r_plugin_add_filter (plugin, filter); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("read"); action->handle = (gpointer) r_vcard_open_file; r_plugin_add_action(plugin, action); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("write"); action->handle = (gpointer) r_vcard_write_file;; r_plugin_add_action(plugin, action); action = g_malloc(sizeof(RPluginAction)); action->name = g_strdup("overwrite"); action->handle = (gpointer) r_vcard_overwrite_file; r_plugin_add_action(plugin, action); } G_MODULE_EXPORT void plugin_fini (void) { // TODO: liberare la memoria e rilasciare l'handler al plugin } rubrica-2.0/libral/work.h0000644000175000017500000000375710620101450014175 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: work.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_WORK_H #define _R_WORK_H #include #include #define R_WORK_TYPE (r_work_get_type()) #define R_WORK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_WORK_TYPE, RWork)) #define R_WORK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_WORK_TYPE, RWorkClass)) #define IS_R_WORK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), R_WORK_TYPE)) #define IS_R_WORK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), R_WORK_TYPE)) #define R_WORK_GET_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS((klass), \ R_WORK_TYPE, RWorkClass)) typedef struct _RWork RWork; typedef struct _RWorkClass RWorkClass; typedef struct _RWorkPrivate RWorkPrivate; struct _RWork { GObject parent; RWorkPrivate* priv; }; struct _RWorkClass { GObjectClass parent_class; }; GType r_work_get_type (void); RWork* r_work_new (void); void r_work_free (RWork* work); gboolean r_work_have_data (RWork* work); gboolean r_work_search (RWork* work, const gchar* str); RWork* r_work_copy (RWork* work); #endif rubrica-2.0/libral/contact.h0000644000175000017500000000517610620101450014643 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: contact.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_CONTACT_H #define _R_CONTACT_H #include #include #include "utils.h" #include "date.h" #define R_CONTACT_TYPE (r_contact_get_type()) #define R_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_CONTACT_TYPE, RContact)) #define R_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_CONTACT_TYPE, RContactClass)) #define IS_R_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_CONTACT_TYPE)) #define IS_R_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_CONTACT_TYPE)) #define R_CONTACT_GET_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS((klass), \ R_CONTACT_TYPE, RContactClass)) typedef struct _RContact RContact; typedef struct _RContactClass RContactClass; typedef struct _RContactPrivate RContactPrivate; /* Contact contact data */ struct _RContact { GObject parent; RContactPrivate* priv; }; struct _RContactClass { GObjectClass parent; }; GType r_contact_get_type (void); RContact* r_contact_new (void); void r_contact_free (RContact* contact); gboolean r_contact_search (RContact* contact, const gchar* str); RContact* r_contact_copy (RContact* contact); RDate* r_contact_get_birthday (RContact* contact); void r_contact_set_birthday (RContact* contact, gint day, gint month, gint year); gchar* r_contact_get_birth_day (RContact* contact); gchar* r_contact_get_birth_month (RContact* contact); gchar* r_contact_get_birth_year (RContact* contact); gchar* r_contact_get_birth_date (RContact* contact); #endif rubrica-2.0/libral/abook.c0000644000175000017500000012770110637703021014307 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: abook.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include "rlib.h" #include "manager.h" #include "plugin.h" #include "abook.h" #include "card.h" #include "personal.h" #include "company.h" #include "group_box.h" #include "utils.h" #include "error.h" /* property enumeration */ enum { ABOOK_NAME = 1, ABOOK_PATH, DELETED_CARDS, SELECTED_ID, FILE_FILTER, }; struct _RAbookPrivate { gchar* name; /* the addressbook (the file) name */ gchar* path; /* the addressbook (the file) path */ gint deleted; /* cards marked deleted in addressbook */ gulong selected_id; /* selected card id */ gchar* filter; RGroupBox* box; GList* cards; GList* trash; GList* iter; RPlugin* r_plugin; // RPlugin gpointer plugin; // ptr to real plugin (a gobject) RPluginManager* manager; gboolean dispose_has_run; }; #define R_ABOOK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ R_ABOOK_TYPE, RAbookPrivate)) /* signals enumeration */ enum { OPEN_FAIL, /* file not opened */ SAVE_FAIL, /* file not saved */ ADDRESSBOOK_CHANGED, /* addressbook changed */ ADDRESSBOOK_READ, /* file read */ ADDRESSBOOK_SAVED, /* file saved */ ADDRESSBOOK_CLOSED, CARD_READ, /* card read */ CARD_ADDED, /* card added to addressbook */ CARD_DELETED, /* card deleted from addressbook and moved to trash */ CARD_DESTROYED, /* card destroyed */ CARD_RECOVERED, /* card recoverd from trash */ CARD_REPLACED, /* card replaced in addressbook */ CARD_CUTTED, CARD_PASTED, NEED_NAME, LAST_SIGNAL }; static guint r_abook_signals[LAST_SIGNAL] = {0}; static void r_abook_class_init (RAbookClass* klass); static void r_abook_init (RAbook* obj); static void r_abook_dispose (RAbook* obj); static void r_abook_finalize (RAbook* obj); static void r_abook_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void r_abook_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static gchar* _r_get_utf8_extension (gchar* string); static gchar* _r_get_extension (gchar* string); static gchar* _r_get_plugin_by_extension (RAbook* abook, gchar* ext); static void _r_abook_add_card (RAbook* abook, RCard* card, gboolean emit_signals); GType r_abook_get_type() { static GType r_abook_type = 0; if (!r_abook_type) { static const GTypeInfo r_abook_info = { sizeof(RAbookClass), NULL, NULL, (GClassInitFunc) r_abook_class_init, NULL, NULL, sizeof(RAbook), 0, (GInstanceInitFunc) r_abook_init }; r_abook_type = g_type_register_static (G_TYPE_OBJECT, "RAbook", &r_abook_info, 0); } return r_abook_type; } static void r_abook_class_init(RAbookClass* klass) { GObjectClass *class; GParamSpec* pspec; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_abook_dispose; class->finalize = (GObjectFinalizeFunc) r_abook_finalize; class->set_property = (gpointer) r_abook_set_property; class->get_property = (gpointer) r_abook_get_property; klass->abook_open_file = NULL; klass->abook_save_file = NULL; klass->abook_overwrite = NULL; g_type_class_add_private (klass, sizeof(RAbookPrivate)); /* class signals */ /** * RAbook::open-fail: * @abook: the #RAbook object that receives the signal * @err: an #RError * * the "open-fail" signal is emitted if the given file can't be read */ r_abook_signals[OPEN_FAIL] = g_signal_new("open_fail", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, open_fail), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_INT); /* params type: error code */ /** * RAbook::save-fail: * @abook: the #RAbook object that receives the signal * @err: an #RError * * the "save-fail" signal is emitted if the given file can't be read */ r_abook_signals[SAVE_FAIL] = g_signal_new("save_fail", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, save_fail), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_INT); /* params type: error code */ /** * RAbook::card-read: * @abook: the #RAbook object that receives the signal * @data: a pointer to the readed card * * The "card-read" signal is emitted after the addressbook has been readed */ r_abook_signals[CARD_READ] = g_signal_new("card_read", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_read), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * RAbook::card-added: * @abook: the #RAbook object that receives the signal * @data: a pointer to the readed card * * The "card-added" signal is emitted after a card is added to addressbook. * A pointer to the card is passed to the callback function */ r_abook_signals[CARD_ADDED] = g_signal_new("card_added", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_added), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * RAbook::card-deleted: * @abook: the #RAbook object that receives the signal * * The "card-removed" signal is emitted when a card is * (deleted) removed from addressbook. The removed cards are * marked as deleted, to really delete (remove) the card * you must destroy it. You can recover (deleted) removed cards. * Destroyed cards are unrecoverable */ r_abook_signals[CARD_DELETED] = g_signal_new("card_deleted", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_deleted), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * RAbook::card-destroyed: * @abook: the #RAbook object that receives the signal * * The "card-destroyed" signal is emitted when a card is * deleted from addressbook. Destroyed cards are unrecoverable. */ r_abook_signals[CARD_DESTROYED] = g_signal_new("card_destroyed", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_destroyed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); /** * RAbook::card-recoverd: * @abook: the #RAbook object that receives the signal * * The "card-recovered" signal is emitted when a previously deleted * marked card is unmarked. */ r_abook_signals[CARD_RECOVERED] = g_signal_new("card_recovered", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_recovered), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * RAbook::card-replaced: * @abook: the #RAbook object that receives the signal * @data: a pointer to the readed card * * The "card-replaced" signal is emitted a card replacement. * A pointer to the new card is passed to the callback function */ r_abook_signals[CARD_REPLACED] = g_signal_new("card_replaced", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_replaced), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * RAbook::card-cutted * * * * */ r_abook_signals[CARD_CUTTED] = g_signal_new("card_cutted", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, card_cutted), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); /** * RAbook::need-filename: * @abook: the #RAbook object that receives the signal * * The "need-filename" signal is emitted if user * tries to save an addressbook without giving a filename to it */ r_abook_signals[NEED_NAME] = g_signal_new("need_name", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, need_name), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * RAbook::addressbook-read: * @abook: the #RAbook object that receives the signal * * The "addressbook-read" signal is emitted when the * addressbook is read */ r_abook_signals[ADDRESSBOOK_READ] = g_signal_new("addressbook_read", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, addressbook_read), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * RAbook::addressbook_saved: * @abook: the #RAbook object that receives the signal * * The "addressbook_saved" signal */ r_abook_signals[ADDRESSBOOK_SAVED] = g_signal_new("addressbook_saved", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, addressbook_saved), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * RAbook::addressbook_changed: * @abook: the #RAbook object that receives the signal * * The "addressbook_changed" signal */ r_abook_signals[ADDRESSBOOK_CHANGED] = g_signal_new("addressbook_changed", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, addressbook_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * RAbook::addressbook_closed: * @abook: the #RAbook object that receives the signal * * The "addressbook_closed" signal */ r_abook_signals[ADDRESSBOOK_CLOSED] = g_signal_new("addressbook_closed", R_ABOOK_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RAbookClass, addressbook_closed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0, G_TYPE_NONE); /** * ABook:addressbook-name * * address book's name */ pspec = g_param_spec_string("addressbook-name", "addressbook's name", "the name (filename) of the addressbook", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ABOOK_NAME, pspec); /** * ABook:addressbook-path * * address book's path */ pspec = g_param_spec_string("addressbook-path", "addressbook's path", "the path of the addressbook", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, ABOOK_PATH, pspec); /** * ABook:deleted-cards * * the number of cards marked as deleted in the addressbook */ pspec = g_param_spec_int("deleted-cards", "deleted cards", "number of cards marked as deleted " "in the addressbook", G_MININT, G_MAXINT, 0, G_PARAM_READABLE); g_object_class_install_property(class, DELETED_CARDS, pspec); /** * ABook:selected-id * * load/save the id of the selected card */ pspec = g_param_spec_long("selected-id", "selected card's id", "load/save the id of the selected card", G_MINLONG, G_MAXLONG, 0, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, SELECTED_ID, pspec); /** * ABook:file-filter * * file filter */ pspec = g_param_spec_string("file-filter", "file filter", "filter used to identify the file's type", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, FILE_FILTER, pspec); } static void r_abook_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RAbook *self = (RAbook*) obj; switch(property_id) { case ABOOK_NAME: if (self->priv->name) g_free(self->priv->name); self->priv->name = g_value_dup_string(value); break; case ABOOK_PATH: g_free(self->priv->path); self->priv->path = g_value_dup_string(value); break; case DELETED_CARDS: break; case SELECTED_ID: self->priv->selected_id = g_value_get_long(value); break; case FILE_FILTER: self->priv->filter = g_value_dup_string(value); break; default: break; } } static void r_abook_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RAbook *self = (RAbook*) obj; switch(property_id) { case ABOOK_NAME: g_value_set_string(value, self->priv->name); break; case ABOOK_PATH: g_value_set_string(value, self->priv->path); break; case DELETED_CARDS: g_value_set_int(value, self->priv->deleted); break; case SELECTED_ID: g_value_set_long(value, self->priv->selected_id); break; default: break; } } static void r_abook_init(RAbook* self) { self->priv = R_ABOOK_GET_PRIVATE(self); self->priv->name = NULL; self->priv->path = NULL; self->priv->filter = NULL; self->priv->selected_id = 0L; self->priv->deleted = 0; self->priv->box = r_lib_get_group_box(); self->priv->cards = NULL; self->priv->trash = NULL; self->priv->iter = NULL; self->priv->r_plugin = NULL; self->priv->plugin = NULL; self->priv->manager = r_lib_get_manager(); r_lib_admit (self); self->priv->dispose_has_run = FALSE; } static void r_abook_dispose (RAbook* self) { RAbookPrivate* priv; g_return_if_fail(IS_R_ABOOK(self)); priv = R_ABOOK_GET_PRIVATE(self); /* free the list's items (PersonalCard or CompanyCard) */ priv->iter = priv->cards; for (; priv->iter; priv->iter = priv->iter->next) { RCard* card = priv->iter->data; if (IS_R_CARD(card)) r_card_free(R_CARD(card)); } g_list_free(priv->cards); g_list_free(priv->trash); priv->cards = NULL; priv->trash = NULL; priv->iter = NULL; r_plugin_free(priv->r_plugin); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; } static void r_abook_finalize (RAbook* self) { RAbookPrivate* priv; g_return_if_fail(IS_R_ABOOK(self)); priv = R_ABOOK_GET_PRIVATE(self); r_utils_free_string(priv->name); r_utils_free_string(priv->path); r_utils_free_string(priv->filter); } gchar* _r_get_utf8_extension (gchar* string) { if (!string) return NULL; if (g_utf8_validate(string, -1, NULL)) { glong byte = 0; gchar* ret = NULL; gchar *tmp, *cpy; gunichar ch; cpy = tmp = g_utf8_strreverse(string, -1); for(; tmp; tmp = g_utf8_next_char(tmp)) { ch = g_utf8_get_char(tmp); if (ch == '\0') return NULL; if (ch == '.') { gchar* tmp2; byte = g_utf8_strlen(cpy, -1) - g_utf8_strlen(tmp, -1); tmp2 = g_malloc0(byte * sizeof(gunichar)); tmp2 = g_utf8_strncpy(tmp2, cpy, byte); ret = g_utf8_strreverse(tmp2, -1); g_free(tmp2); g_free(cpy); return ret; } } } return NULL; } gchar* _r_get_extension (gchar* string) { gint len; if (!string) return NULL; len = strlen(string); for(; len; len --) { if (string[len] == '.') { char* tmp; tmp = g_strdup(&string[len+1]); return tmp; } } return NULL; } static gchar* _r_get_plugin_by_extension(RAbook* abook, gchar* ext) { GList* filters = NULL; filters = r_plugin_manager_get_all_filters(abook->priv->manager); for (; filters; filters = filters->next) { gchar *pattern, *filter_name; RFilter* filter = (RFilter*) filters->data; g_object_get(filter, "filter-name", &filter_name, NULL); r_filter_reset(filter); pattern = r_filter_get_pattern(filter); for (; pattern; pattern = r_filter_get_next_pattern(filter)) { if (g_ascii_strcasecmp(ext, pattern) == 0) return filter_name; } } return NULL; } static void _r_abook_add_card(RAbook* abook, RCard* card, gboolean emit_signals) { GList* user_groups = NULL; RAbookPrivate* priv; gboolean deleted = FALSE; glong id; g_return_if_fail(IS_R_ABOOK(abook)); priv = R_ABOOK_GET_PRIVATE(abook); user_groups = r_card_get_groups_owned_by(R_CARD(card), "user"); for (; user_groups; user_groups = user_groups->next) r_group_box_add_group(abook->priv->box, R_GROUP(user_groups->data)); /* check if the card is marked deleted */ g_object_get(card, "card-id", &id, "card-deleted", &deleted, NULL); if (deleted) { priv->deleted++; priv->trash = g_list_append(priv->trash, (gpointer) id); } priv->cards = g_list_append(priv->cards, card); priv->iter = priv->cards; if (emit_signals) { g_signal_emit_by_name(abook, "card_added", card, G_TYPE_POINTER); g_signal_emit_by_name(abook, "addressbook_changed", NULL, G_TYPE_NONE); } } /* ***************************** Public ***************************** */ /** * r_abook_new * * create a #RAbook * * Returns: a new #RAbook */ RAbook* r_abook_new(void) { RAbook* abook; if (!r_lib_is_running()) g_error("\nLibral is not running"); abook = g_object_new(r_abook_get_type(), NULL); return abook; } /** * r_abook_free * @abook: a #RAbook * * free the #RAbook * The "addressbook_closed" signal is emitted */ void r_abook_free(RAbook* abook) { g_return_if_fail(IS_R_ABOOK(abook)); g_signal_emit_by_name(abook, "addressbook_closed", NULL, G_TYPE_NONE); g_object_unref(abook); } /** * r_abook_open_file * @abook: a #RAbook * @fname: the name of the addressbook * * open the addressbook with given name * * Returns: %TRUE if file is opened successfully, %FALSE otherwise */ gboolean r_abook_open_file (RAbook* abook, gchar* fname) { RAbookClass* class; RAbookPrivate* priv; gboolean ret = FALSE; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); priv = R_ABOOK_GET_PRIVATE(abook); class = R_ABOOK_GET_CLASS(abook); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, ""); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Opening %s ...", fname); /* user hasn't selected any filter */ if (!priv->filter || (g_ascii_strcasecmp(priv->filter, _("All files")) == 0)) { gchar* ext = NULL; gchar* plugin = NULL; ext = _r_get_extension(g_path_get_basename(fname)); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "file extension %s", ext); /* if filename has an extension, open it loadind "extesion" plugin */ if (ext) { plugin = _r_get_plugin_by_extension(abook, ext); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Opening file with %s plugin", plugin); if (r_abook_load_plugin(abook, plugin)) ret = class->abook_open_file(abook, fname); else g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Open file fail. " "Can't get %s plugin", ext); } else /* filename hasn't extension, try to open file using all plugins */ { GList* filters = NULL; g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "File %s hasn't extension. I'll try to open it ...", fname); filters = r_plugin_manager_get_all_filters(abook->priv->manager); for (; filters; filters = filters->next) { gchar *name = NULL; RFilter* filter = (RFilter*) filters->data; g_object_get(filter, "filter-name", &name, NULL); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Trying plugin: %s", name); if (r_abook_load_plugin(abook, name)) if(class->abook_open_file(abook, fname)) break; } } } else /* user has selectet file's type */ { g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Trying plugin: %s", priv->filter); r_abook_load_plugin(abook, priv->filter); ret = class->abook_open_file(abook, fname); } if (ret) // file load successfully { g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "addressbook: %s", abook->priv->name); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "path: %s", abook->priv->path); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "%s opened successfully", fname); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Cards in this addressbook: %d", r_abook_get_items(R_ABOOK(abook))); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Cards marked as deleted: %d", abook->priv->deleted); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, ""); return TRUE; } // error occurred during file loading g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "%s open failed", fname); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, ""); return FALSE; } /** * r_abook_save_file * @abook: a #RAbook * @fname: the name of file * * save the addressbook with given filename * * Returns: %TRUE if file is saved successfully, %FALSE otherwise */ gboolean r_abook_save_file (RAbook* abook, gchar* fname, gint compression_rate) { RAbookClass* class; RAbookPrivate* priv; gboolean result = FALSE; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); if (!fname) { g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "addressbook needs a filename"); g_signal_emit_by_name(abook, "need_name", NULL, G_TYPE_NONE); return FALSE; } class = R_ABOOK_GET_CLASS(abook); priv = R_ABOOK_GET_PRIVATE(abook); /* if user hasn't selected any filter... */ if (!priv->filter || (g_ascii_strcasecmp(priv->filter, _("All files")) == 0)) { gchar* ext = NULL; gchar* plugin = NULL; /* ... and filename hasn't a known extension, then set .rub as the default file's extension... */ if ((!g_str_has_suffix(fname, "rub")) && (!g_str_has_suffix(fname, "vcr")) && (!g_str_has_suffix(fname, "vcard")) && (!g_str_has_suffix(fname, "csv"))) { gchar* tmp; tmp = g_strdup_printf("%s.rub", fname); g_free(fname); fname = tmp; } /* and now I can choose a plugin to save the file */ ext = _r_get_extension(g_path_get_basename(fname)); plugin = _r_get_plugin_by_extension(abook, ext); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Trying plugin %s to save the file", plugin); if (r_abook_load_plugin(abook, plugin)) result = class->abook_save_file(abook, fname, compression_rate); } else { g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Trying plugin %s to save the file", priv->filter); if (r_abook_load_plugin(abook, priv->filter)) result = class->abook_save_file(abook, fname, compression_rate); } if (result) { g_object_set(abook, "addressbook-name", g_path_get_basename(fname), "addressbook-path", g_path_get_dirname(fname), NULL); g_signal_emit_by_name(abook, "addressbook_saved", NULL, G_TYPE_NONE); return TRUE; } else g_signal_emit_by_name(abook, "save_fail", WRITING_FILE, G_TYPE_INT); return FALSE; } /** * r_abook_overwrite_file * @abook: a #RAbook * @backup: boolean * * overwrite an existing addressbook with a new one. * If backup is %TRUE the old addressbook is backuped. * * Returns: a %TRUE if old addressbook was successfully overwited, * %FALSE otherwise **/ gboolean r_abook_overwrite_file(RAbook* abook, gboolean backup, gint compression_rate) { gchar *old, *new; RAbookClass* class; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); class = R_ABOOK_GET_CLASS(abook); if (backup) { old = g_strdup_printf("%s%s%s", abook->priv->path, G_DIR_SEPARATOR_S, abook->priv->name); if (!old || (g_ascii_strcasecmp(old, _("no name")) == 0)) { g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "addressbook needs a filename"); g_signal_emit_by_name(abook, "need_name", NULL, G_TYPE_NONE); return FALSE; } new = g_strdup_printf("%s~", old); g_rename(old, new); g_free(new); g_free(old); } /* write the file */ if (class->abook_overwrite) return class->abook_overwrite(abook, compression_rate); return FALSE; } /** * r_abook_plugin_from_file * @abook: a #RAbook * @filename: gchar* * * Try to load the plugin using the file extension. If the file has a * known extension the rigth plugin is loaded. * * Returns: %TRUE if plugin is loaded, %FALSE otherwise **/ gboolean r_abook_plugin_from_file (RAbook* abook, gchar* filename) { GList* filters = NULL; filters = r_plugin_manager_get_all_filters(abook->priv->manager); for (; filters; filters = filters->next) { gchar *name, *pattern; RFilter* filter = (RFilter*) filters->data; g_object_get(filter, "filter-name", &name, NULL); r_filter_reset(filter); pattern = r_filter_get_pattern(filter); for (; pattern; pattern = r_filter_get_next_pattern(filter)) if (g_str_has_suffix(filename, pattern)) { gchar* name; g_object_get(filter, "filter-name", &name, NULL); return r_abook_load_plugin (abook, name); } } return FALSE; } /** * r_abook_load_plugin * @abook: a #RAbook * @plugin_name: const gchar* * * Load the "plugin_name" plugin. * * Returns: %TRUE if plugin is loaded, %FALSE otherwise **/ gboolean r_abook_load_plugin (RAbook* abook, const gchar* plugin_name) { RPlugin* plugin; RAbookClass* class = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(plugin_name != NULL, FALSE); class = R_ABOOK_GET_CLASS(abook); if (!class) { g_warning("\nR_ABOOK_GET_CLASS"); return FALSE; } plugin = r_plugin_manager_get_plugin(abook->priv->manager, plugin_name); if (plugin) { abook->priv->r_plugin = plugin; abook->priv->plugin = r_plugin_get_obj(plugin); class->abook_open_file = r_plugin_get_handle(plugin, "read"); class->abook_save_file = r_plugin_get_handle(plugin, "write"); class->abook_overwrite = r_plugin_get_handle(plugin, "overwrite"); return TRUE; } return FALSE; } /** * r_abook_get_plugin_extension * @abook: a #RAbook * * Get the extension that is associate to the current active plugin * * Returns: a gchar* or NULL if an error occured **/ gchar* r_abook_get_plugin_extension (RAbook* abook) { GList* filters; RFilter* filter; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); filters = r_plugin_get_filters (abook->priv->r_plugin); filter = (RFilter*) filters->data; r_filter_reset(filter); return r_filter_get_pattern(filter); } /** * r_abook_get_plugin * @abook: a #RAbook * * Get the currently active plugin (the real plugin) * * Returns: a %gpointer to the plugin **/ gpointer r_abook_get_plugin (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); return abook->priv->plugin; } /** * r_abook_get_r_plugin * @abook: a #RAbook * * Get the currently active plugin (ptr to an #RPlugin struct) * * Returns: a %gpointer to the plugin **/ gpointer r_abook_get_r_plugin (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); return abook->priv->r_plugin; } /** * r_abook_copy * @abook: a #RAbook * * copy the addressbook pointed by abook * * Returns: a new #RAbook */ RAbook* r_abook_copy (RAbook* abook) { RAbook* new; RPlugin* plugin; RAbookClass* class = NULL; gpointer card; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); new = r_abook_new(); plugin = r_abook_get_plugin(abook); g_object_ref(plugin); class = R_ABOOK_GET_CLASS(new); if (class) { abook->priv->plugin = plugin; class->abook_open_file = r_plugin_get_handle(plugin, "read"); class->abook_save_file = r_plugin_get_handle(plugin, "write"); class->abook_overwrite = r_plugin_get_handle(plugin, "overwrite"); } card = r_abook_get_card(abook); for (; card; card = r_abook_get_next_card(abook)) { gpointer new_card; new_card = r_card_copy(R_CARD(card)); if (new_card) r_abook_add_card(new, new_card); } r_abook_reset_book(abook); return new; } /** * r_abook_get_items * @abook: a #RAbook * * get the number of cards into addressbok * * Returns: an integer */ gint r_abook_get_items (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), -1); return g_list_length(abook->priv->cards); } gint r_abook_get_deleted (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), 0); return abook->priv->deleted; } /** * r_abook_is_empty * @abook: a #RAbook * * is the addressbook empty? * * Returns: a boolean. %TRUE if addressbook is empty, %FALSE otherwise */ gboolean r_abook_is_empty (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), TRUE); return (r_abook_get_items(abook) == 0); } /** * r_abook_add_card * @abook: a #RAbook * @card: an #RCard object * * append the given card into the addressbook * The "card_added" and "addressbook_changed" signals are emitted */ void r_abook_add_card (RAbook* abook, RCard* card) { _r_abook_add_card(abook, card, TRUE); } /** * r_abook_add_loaded_card * @abook: a #RAbook * @card: an #RCard object * * append the card read from disk into the addressbook */ void r_abook_add_loaded_card (RAbook* abook, RCard* card) { _r_abook_add_card(abook, card, FALSE); } /** * r_abook_paste_card * @abook: a #RAbook * @card: an #RCard object * * peste the given card into the addressbook (append the card) */ void r_abook_paste_card (RAbook* abook, RCard* card) { _r_abook_add_card(abook, card, TRUE); } /** * r_abook_empty_trash * @abook: a #RAbook * * Destroy all cards in the trash. The destroyed cards are unrecoverable * the "addressbook_changed" signal is emitted */ void r_abook_empty_trash(RAbook* abook) { GList* iter; g_return_if_fail(IS_R_ABOOK(abook)); for (iter = abook->priv->trash; iter; iter = iter->next) { RCard* card = NULL; card = r_abook_get_card_by_id(abook, (glong) iter->data); g_object_set(card, "card-destroyed", TRUE, NULL); abook->priv->deleted--; } g_list_free(abook->priv->trash); abook->priv->trash = NULL; g_signal_emit_by_name(abook, "addressbook_changed", NULL, G_TYPE_NONE); } /** * r_abook_destroy_card * @abook: a #RAbook * @card: an #RCard object * * Destroy the given card. The destroyed cards are unrecoverable * The "card_destroyed" and "addressbook_changed" signals are emitted */ void r_abook_destroy_card(RAbook* abook, RCard* card) { gchar* name; g_return_if_fail(IS_R_ABOOK(abook)); g_return_if_fail(IS_R_CARD(card)); g_object_get(card, "card-name", &name, NULL); g_object_set(card, "card-destroyed", TRUE, NULL); abook->priv->cards = g_list_remove(abook->priv->cards, card); abook->priv->deleted--; g_signal_emit_by_name(abook, "card_destroyed", name, G_TYPE_STRING); g_signal_emit_by_name(abook, "addressbook_changed", NULL, G_TYPE_NONE); } /** * r_abook_delete_card * @abook: a #RAbook * @card: an #RCard object * * mark the given card as delete. * The id of the card is appended to the addressbook's trash * The "card_removed" and "addressbook_changed" signals are emitted */ void r_abook_delete_card (RAbook* abook, RCard* card) { gint id; g_return_if_fail(IS_R_ABOOK(abook)); g_return_if_fail(IS_R_CARD(card)); g_object_set(card, "card-deleted", TRUE, NULL); g_object_get(card, "card-id", &id, NULL); abook->priv->deleted++; abook->priv->trash = g_list_append(abook->priv->trash, GINT_TO_POINTER(id)); g_signal_emit_by_name(abook, "card_deleted", card, G_TYPE_POINTER); g_signal_emit_by_name(abook, "addressbook_changed", NULL, G_TYPE_NONE); } /** * r_abook_recovery_card * @abook: a #RAbook * @card: an #RCard object * * unmark the card previously marked as deleted. * The "card_recovered" and "addressbook_changed" signals are emitted * * Returns: %TRUE if card is successfully recovered, %FALSE otherwise */ gboolean r_abook_recovery_card (RAbook* abook, RCard* card) { g_return_val_if_fail(IS_R_ABOOK(abook), FALSE); g_return_val_if_fail(IS_R_CARD(card), FALSE); g_object_set(card, "card-deleted", FALSE, NULL); abook->priv->deleted--; g_signal_emit_by_name(abook, "card_recovered", card, G_TYPE_POINTER); g_signal_emit_by_name(abook, "addressbook_changed", NULL, G_TYPE_NONE); return TRUE; } /** * r_abook_replace_card * @abook: a #RAbook * @old: an #RCard object * @new: an #RCard object * * replace the old card with the new one * The "card_replaced" and "addressbook_changed" signals are emitted */ void r_abook_replace_card (RAbook* abook, RCard* old, RCard* new) { gint pos; GList* node = NULL; gpointer card = NULL; g_return_if_fail(IS_R_ABOOK(abook)); pos = g_list_index(abook->priv->cards, old); node = g_list_nth(abook->priv->cards, pos); if (node) { abook->priv->cards = g_list_remove_link(abook->priv->cards, node); card = node->data; r_card_free(R_CARD(card)); g_list_free_1(node); abook->priv->cards = g_list_insert(abook->priv->cards, new, pos); g_signal_emit_by_name(abook, "addressbook_changed", NULL, G_TYPE_NONE); g_signal_emit_by_name(abook, "card_replaced", new, G_TYPE_POINTER); } } /** * r_abook_get_card * @abook: a #RAbook * * Get the first card in addressbook. * * Returns: a pointer to the card or NULL if addressbook is empty */ gpointer r_abook_get_card (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); if (abook->priv->iter) return abook->priv->iter->data; return NULL; } /** * r_abook_get_selected_card * @abook: a #RAbook * * Get the selected card in the addressbook * * Returns: */ gpointer r_abook_get_selected_card (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); return r_abook_get_card_by_id(abook, abook->priv->selected_id); } /** * r_abook_unselect_cards * @abook: a #RAbook * * unselect card. Clear previpus selections */ void r_abook_unselect_cards (RAbook* abook) { g_return_if_fail(IS_R_ABOOK(abook)); abook->priv->selected_id = 0L; } /** * r_abook_get_card_by_id * @abook: a #RAbook * @id: the card id * * get the card with "id" id * * Returns: a pointer to the card or NULL if addressbook doesn't own that card */ gpointer r_abook_get_card_by_id (RAbook* abook, glong id) { gpointer card = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(id > 0L, NULL); r_abook_reset_book(abook); for (card = r_abook_get_card(abook); card; card = r_abook_get_next_card(abook)) { glong card_id; g_object_get(R_CARD(card), "card-id", &card_id, NULL); if (id == card_id) { abook->priv->selected_id = id; return card; } } return NULL; } /** * r_abook_get_group_box(RAbook* abook) * @abook: a #RAbook * * get the default groups set * * returns: a #gpointer (caller must cast to #RGroupSet*) or NULL */ gpointer r_abook_get_groups_box(RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); return (gpointer) abook->priv->box; } /** * r_abook_reset_book * @abook: a #RAbook * * reset the private addressbook iterator. The iterator * will point the head of cards's list. */ void r_abook_reset_book (RAbook* abook) { g_return_if_fail(IS_R_ABOOK(abook)); abook->priv->iter = abook->priv->cards; } /** * r_abook_get_next_card * @abook: a #RAbook * * get the next card in addressbook * * Returns: a pointer to the card or NULL if the cards's end list is reached. */ gpointer r_abook_get_next_card (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); abook->priv->iter = g_list_next(abook->priv->iter); if (abook->priv->iter) return abook->priv->iter->data; else abook->priv->iter = g_list_last(abook->priv->cards); return NULL; } /** * r_abook_get_prev_card * @abook: a #RAbook * * get the previous card in addressbook * * Returns: a pointer to the card or NULL if the cards's head list is reached. */ gpointer r_abook_get_prev_card (RAbook* abook) { g_return_val_if_fail(IS_R_ABOOK(abook), NULL); abook->priv->iter = g_list_previous(abook->priv->iter); if (abook->priv->iter) return abook->priv->iter->data; else abook->priv->iter = abook->priv->cards; return NULL; } /** * r_abook_foreach_card * @abook: a #RAbook * @func: the #RFunc that will be called for each card in addressbook * @data: user's data to pass to func * * Call the function func() for each card in the #RAbook. */ void r_abook_foreach_card (RAbook* abook, RFunc func, gpointer data) { gpointer card; r_abook_reset_book(abook); card = r_abook_get_card(abook); for (; card; card = r_abook_get_next_card(abook)) func(card, data); } /** * r_abook_find_cards_by_group * @abook: a #RAbook * @group_name: the name of the group * * Find all cards that belongs to the given group. * Found cards's ID has inserted in a GList. Caller must free returned GList * * returns: a GList* or %NULL if no cards belong to group */ GList* r_abook_find_cards_by_group (RAbook* abook, const gchar* group_name) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(group_name != NULL, NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { glong id; if (!r_card_is_deleted(R_CARD(data)) && (r_card_belong_to_group(R_CARD(data), group_name) || (g_ascii_strcasecmp(group_name, "all groups") == 0))) { g_object_get(R_CARD(data), "card-id", &id, NULL); found = g_list_append(found, GINT_TO_POINTER(id)); } } return found; } GList* r_abook_find_cards_by_type (RAbook* abook, const gchar* type) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(type != NULL, NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { gchar* card_type = NULL; gboolean deleted; glong id; g_object_get(R_CARD(data), "card-id", &id, "card-deleted", &deleted, "card-type", &card_type, NULL); if (!card_type) { gchar* name; g_object_get(R_CARD(data), "card-name", &name, NULL); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "This card (%s) has a wrong type.", name); continue; } if (!deleted) { if (g_ascii_strcasecmp(type, "all") == 0) found = g_list_append(found, GINT_TO_POINTER(id)); else if (g_ascii_strcasecmp(type, card_type) == 0) found = g_list_append(found, GINT_TO_POINTER(id)); } } return found; } GList* r_abook_find_cards_by_rate (RAbook* abook, RRate rate) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { glong id, card_rate; gboolean deleted; g_object_get(R_CARD(data), "card-id", &id, "card-deleted", &deleted, "card-rate", &card_rate, NULL); if (!deleted && (card_rate == rate)) found = g_list_append(found, GINT_TO_POINTER(id)); } return found; } GList* r_abook_find_cards_by_genre (RAbook* abook, const gchar* genre) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(genre != NULL, NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { gchar* type = NULL; gboolean deleted; glong id; g_object_get(R_CARD(data), "card-id", &id, "card-deleted", &deleted, "card-type", &type, NULL); if (!deleted && (g_ascii_strcasecmp(type, "personal") == 0)) { if (r_personal_card_belongs_to_genre(R_PERSONAL_CARD(data), genre)) found = g_list_append(found, GINT_TO_POINTER(id)); } } return found; } GList* r_abook_search (RAbook* abook, const gchar* str) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(str != NULL, NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { glong id; g_object_get(R_CARD(data), "card-id", &id, NULL); if (r_card_search(R_CARD(data), str)) found = g_list_append(found, GINT_TO_POINTER(id)); } return found; } GList* r_abook_search_date (RAbook* abook, gint search_date, SearchType type) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(search_date > 0, NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { glong id; gint creation, changed; GDate *date1, *date2; gboolean find = FALSE; g_object_get(R_CARD(data), "card-id", &id, "card-created", &creation, "card-changed", &changed, NULL); switch(type) { case SEARCH_ON_CREATION: date1 = g_date_new(); date2 = g_date_new(); g_date_set_time_t(date1, creation); g_date_set_time_t(date2, search_date); find = ((g_date_get_day(date1) == g_date_get_day(date2)) && (g_date_get_month(date1) == g_date_get_month(date2)) && (g_date_get_year(date1) == g_date_get_year(date2))); g_date_free (date1); g_date_free (date2); break; case SEARCH_ON_CHANGE: date1 = g_date_new(); date2 = g_date_new(); g_date_set_time_t(date1, changed); g_date_set_time_t(date2, search_date); find = ((g_date_get_day(date1) == g_date_get_day(date2)) && (g_date_get_month(date1) == g_date_get_month(date2)) && (g_date_get_year(date1) == g_date_get_year(date2))); g_date_free (date1); g_date_free (date2); break; case SEARCH_CREATION_BEFORE: find = (creation < search_date); break; case SEARCH_CREATION_AFTER: find = (creation > search_date); break; case SEARCH_CHANGE_BEFORE: find = (changed < search_date); break; case SEARCH_CHANGE_AFTER: find = (changed > search_date); break; default: break; } if (find) found = g_list_append(found, GINT_TO_POINTER(id)); } return found; } GList* r_abook_search_between (RAbook* abook, gint first, gint second, SearchType type) { gpointer data; GList* found = NULL; g_return_val_if_fail(IS_R_ABOOK(abook), NULL); g_return_val_if_fail(first > 0, NULL); g_return_val_if_fail(second > 0, NULL); r_abook_reset_book(abook); data = r_abook_get_card(abook); for (; data; data = r_abook_get_next_card(abook)) { glong id; gint creation, changed; gboolean find = FALSE; g_object_get(R_CARD(data), "card-id", &id, "card-created", &creation, "card-changed", &changed, NULL); switch(type) { case SEARCH_CREATION_BETWEEN: find = ((creation >= first) && (creation <= second)); break; case SEARCH_CHANGE_BETWEEN: find = ((changed >= first) && (changed <= second)); break; default: break; } if (find) found = g_list_append(found, GINT_TO_POINTER(id)); } return found; } rubrica-2.0/libral/card.h0000644000175000017500000001444410620101450014117 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: card.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_CARD_H #define _R_CARD_H #include #include #include #include #include "types.h" #include "group_box.h" #include "group.h" #include "address.h" #include "net.h" #include "telephone.h" #include "ref.h" #define R_CARD_TYPE (r_card_get_type()) #define R_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_CARD_TYPE, RCard)) #define R_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_CARD_TYPE, RCardClass)) #define IS_R_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_CARD_TYPE)) #define IS_R_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \ R_CARD_TYPE)) #define R_CARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ R_CARD_TYPE, RCardClass)) typedef enum { R_RATE_NONE = 0, /* no importance */ R_RATE_FEW, /* few importance */ R_RATE_NORMAL, /* normal */ R_RATE_HIGHT, /* hight importance */ R_RATE_VERY_HIGHT /* very hight importance */ } RRate; enum { UNKNOW_CARD, PERSONAL_CARD, COMPANY_CARD }; typedef struct _RCard RCard; typedef struct _RCardClass RCardClass; typedef struct _RCardPrivate RCardPrivate; struct _RCard { GObject parent; RCardPrivate* priv; }; struct _RCardClass { GObjectClass parent; /* methods */ void (*free) (RCard* card); gpointer (*copy) (RCard* card); RInfos* (*get_infos) (RCard* card); gboolean (*search) (RCard* card, const gchar* str); void (*print_card) (RCard* card); /* signals */ }; GType r_card_get_type (void); RCard* r_card_new (void); void r_card_free (RCard* card); RCard* r_card_copy (RCard* card); void r_card_reassign_id (RCard* card, glong id); gboolean r_card_is_personal (RCard* card); gboolean r_card_is_deleted (RCard* card); gboolean r_card_search (RCard* card, const gchar* str); /* card infos */ RInfos* r_card_get_infos (RCard* card); void r_card_free_infos (RInfos *infos); /* group */ void r_card_add_group (RCard* card, RGroup* group); gboolean r_card_delete_group (RCard* card, gchar* name); gboolean r_card_rename_group (RCard* card, gchar* oldname, gchar* newname); gboolean r_card_has_groups (RCard* card); gpointer r_card_find_group (RCard* card, gchar* name); gboolean r_card_belong_to_group (RCard* card, const gchar* group_name); GList* r_card_get_groups_owned_by (RCard* card, const gchar* owner); RGroup* r_card_get_group (RCard* card); RGroup* r_card_get_next_group (RCard* card); RGroup* r_card_get_prev_group (RCard* card); void r_card_reset_group (RCard* card); void r_card_foreach_group (RCard* card, RFunc func, gpointer user_data); /* address */ void r_card_add_address (RCard* card, RAddress* address); gboolean r_card_delete_address (RCard* card, RAddress* address); gboolean r_card_replace_address (RCard* card, RAddress* old, RAddress* new); gpointer r_card_get_address (RCard* card); gpointer r_card_get_next_address (RCard* card); gpointer r_card_get_prev_address (RCard* card); void r_card_reset_address (RCard* card); gpointer r_card_find_address (RCard* card, RAddressType type); void r_card_foreach_address (RCard* card, RFunc func, gpointer user_data); /* net address */ void r_card_add_net_address (RCard* card, RNetAddress* net); gboolean r_card_delete_net_address (RCard* card, RNetAddress* address); gboolean r_card_replace_net_address (RCard* card, RNetAddress* old, RNetAddress* new); gpointer r_card_get_net_address (RCard* card); gpointer r_card_get_next_net_address (RCard* card); gpointer r_card_get_prev_net_address (RCard* card); void r_card_reset_net_address (RCard* card); gpointer r_card_find_net_address (RCard* card, RNetAddressType type); void r_card_foreach_net_address (RCard* card, RFunc func, gpointer user_data); /* telephone */ void r_card_add_telephone (RCard* card, RTelephone* tel); gboolean r_card_delete_telephone (RCard* card, RTelephone* phone); gboolean r_card_replace_telephone (RCard* card, RTelephone* old, RTelephone* new); gpointer r_card_get_telephone (RCard* card); gpointer r_card_get_next_telephone (RCard* card); gpointer r_card_get_prev_telephone (RCard* card); void r_card_reset_telephone (RCard* card); gpointer r_card_find_telephone (RCard* card, RTelephoneType type); void r_card_foreach_telephone (RCard* card, RFunc func, gpointer user_data); /* references */ void r_card_add_ref (RCard* card, RRef* ref); gboolean r_card_del_ref (RCard* card, RRef* ref); gpointer r_card_get_ref (RCard* card); gpointer r_card_get_next_ref (RCard* card); gpointer r_card_get_prev_ref (RCard* card); void r_card_reset_ref (RCard* card); void r_card_foreach_ref (RCard* card, RFunc func, gpointer user_data); gboolean r_card_has_refs (RCard* card); /* utils */ gchar* r_card_get_group_owner (RCard* card, RGroup* group); gchar* r_card_get_home_page (RCard* card); gchar* r_card_get_email (RCard* card); gchar* r_card_get_irc (RCard* card); /* just for tests */ void r_card_print (RCard* card); #endif rubrica-2.0/libral/card.c0000644000175000017500000012532410620101450014112 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: card.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "card.h" #include "group_box.h" #include "group.h" #include "utils.h" #include "ref.h" glong id = 0; /* property enumeration */ enum { CARD_NAME = 1, CARD_ID, CARD_TYPE, CARD_RATE, CARD_LOCKED, CARD_DELETED, CARD_DESTROYED, CARD_MARKED, CARD_CREATED, CARD_CHANGED }; struct _RCardPrivate { glong id; /* card's unique id */ gchar* name; /* card's name */ gchar* type; /* card's type */ RRate rate; /* card's rate */ gboolean locked; /* true if card is locked */ gboolean deleted; /* is card marked as deleted? */ gboolean destroyed; /* is card marked as destroyed? */ gboolean marked; /* true if card is marked */ RGroupBox* box; /* card's groups set */ GList* addresses; GList* nets; /* web, email and irc uries */ GList* phones; GList* refs; /* references to other cards */ GList* linked; /* cards that have a reference to this one */ time_t created; /* card's creation time */ time_t changed; /* card's last change time */ GList* grp_iter; /* groups, addresses, telephones, */ GList* addr_iter; /* nets and refs iterators */ GList* net_iter; GList* phone_iter; GList* refs_iter; gboolean dispose_has_run; }; static void r_card_class_init (RCardClass* klass); static void r_card_init (RCard* self); static void r_card_dispose (RCard* self); static void r_card_finalize (RCard* self); static void r_card_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void r_card_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void r_card_copy_commons (RCard* new, RCard* old); static void r_card_copy_paste_group (RCard* card, gpointer data); static void r_card_copy_paste_ref (RCard* card, gpointer data); static void r_card_copy_paste_address (RCard* card, gpointer data); static void r_card_copy_paste_net_address (RCard* card, gpointer data); static void r_card_copy_paste_telephone (RCard* card, gpointer data); /* Private functions */ GType r_card_get_type() { static GType r_card_type = 0; if (!r_card_type) { static const GTypeInfo r_card_info = { sizeof(RCardClass), NULL, NULL, (GClassInitFunc) r_card_class_init, NULL, NULL, sizeof(RCard), 0, (GInstanceInitFunc) r_card_init }; r_card_type = g_type_register_static (G_TYPE_OBJECT, "RCard", &r_card_info, 0); } return r_card_type; } static void r_card_class_init(RCardClass* klass) { GObjectClass *class; GParamSpec* pspec; klass->free = NULL; /* free method, child will set */ klass->copy = NULL; /* copy a card */ klass->search = NULL; /* search a string into the card */ klass->get_infos = NULL; /* return infos on card record */ klass->print_card = NULL; /* unused */ class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) r_card_dispose; class->finalize = (GObjectFinalizeFunc) r_card_finalize; class->set_property = r_card_set_property; class->get_property = r_card_get_property; /** * RCard:card-id: * * card's id */ pspec = g_param_spec_long("card-id", "card's id", "the id of the card", G_MINLONG, G_MAXLONG, 0, G_PARAM_READWRITE); g_object_class_install_property(class, CARD_ID, pspec); /** * RCard:card-name: * * card's name */ pspec = g_param_spec_string("card-name", "card's name", "the name of the card", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_NAME, pspec); /** * RCard:card-type: * * card's type */ pspec = g_param_spec_string("card-type", "card's type", "card's type, must be \"personal\"" "or \"company\"", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_TYPE, pspec); /** * RCard:rate: * * card's rate */ pspec = g_param_spec_int("card-rate", "card's rate", "the rate user wants for the card", R_RATE_NONE, R_RATE_VERY_HIGHT, R_RATE_NORMAL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_RATE, pspec); /** * RCard:locked: * * is the card locked? */ pspec = g_param_spec_boolean("card-locked", "locked", "is the card locked", TRUE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_LOCKED, pspec); /** * RCard:deleted: * * is the card deleted? */ pspec = g_param_spec_boolean("card-deleted", "deleted", "is the card deleted", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_DELETED, pspec); /** * RCard:destroyed: * * is the card destroyed? */ pspec = g_param_spec_boolean("card-destroyed", "destroyed", "is the card destroyed", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_DESTROYED, pspec); /** * RCard:marked: * * is the card marked? */ pspec = g_param_spec_boolean("card-marked", "marked", "is the card marked", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(class, CARD_MARKED, pspec); /** * RCard:creation: * * card's creation time */ pspec = g_param_spec_int("card-created", "card's creation time", "the card's creation time", G_MININT, G_MAXINT, -1, G_PARAM_READWRITE); g_object_class_install_property(class, CARD_CREATED, pspec); /** * RCard:modification: * * card's modification time */ pspec = g_param_spec_int("card-changed", "card's modification time", "last time that card was modified", G_MININT, G_MAXINT, -1, G_PARAM_READWRITE); g_object_class_install_property(class, CARD_CHANGED, pspec); } static void r_card_init(RCard* self) { self->priv = g_new(RCardPrivate, 1); self->priv->id = ++id; self->priv->name = NULL; self->priv->type = NULL; self->priv->rate = R_RATE_NORMAL; self->priv->box = r_group_box_new(); self->priv->locked = FALSE; self->priv->deleted = FALSE; self->priv->destroyed = FALSE; self->priv->marked = FALSE; self->priv->linked = NULL; self->priv->addresses = NULL; self->priv->nets = NULL; self->priv->phones = NULL; self->priv->refs = NULL; self->priv->created = time(NULL); self->priv->changed = time(NULL); self->priv->grp_iter = NULL; self->priv->addr_iter = NULL; self->priv->net_iter = NULL; self->priv->phone_iter = NULL; self->priv->refs_iter = NULL; self->priv->dispose_has_run = FALSE; } static void r_card_dispose (RCard* self) { GList* del; g_return_if_fail(IS_R_CARD(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; /* free card's children */ R_CARD_CLASS(R_CARD_GET_CLASS(self))->free(self); /* free card's data */ r_utils_free_string(self->priv->name); r_utils_free_string(self->priv->type); self->priv->name = NULL; self->priv->type = NULL; /* groups */ r_group_box_free(R_GROUP_BOX(self->priv->box)); /* addresses */ del = self->priv->addresses; for (; del; del = del->next) { RAddress* address = del->data;; if(address) r_address_free(R_ADDRESS(address)); } self->priv->addresses = NULL; /* net addresses */ del = self->priv->nets; for (; del; del = del->next) { RNetAddress* net = del->data;; if(net) r_net_address_free(R_NET_ADDRESS(net)); } self->priv->nets = NULL; /* telephone numbers */ del = self->priv->phones; for (; del; del = del->next) { RTelephone* tel = del->data;; if(tel) r_telephone_free(R_TELEPHONE(tel)); } self->priv->phones = NULL; /* delete cards's references */ for(; self->priv->refs_iter; self->priv->refs_iter = self->priv->refs_iter->next) if(self->priv->refs_iter->data) { r_ref_free(R_REF(self->priv->refs_iter->data)); // cancellare card del contatto ? } g_list_free(self->priv->refs); g_list_free(self->priv->refs_iter); self->priv->refs = self->priv->refs_iter = NULL; self->priv->grp_iter = NULL; self->priv->addr_iter = NULL; self->priv->net_iter = NULL; self->priv->phone_iter = NULL; } static void r_card_finalize (RCard* self) { g_return_if_fail(IS_R_CARD(self)); g_free(self->priv); self->priv = NULL; } static void r_card_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RCard* self = (RCard*) obj; switch(property_id) { case CARD_ID: self->priv->id = g_value_get_long(value); break; case CARD_TYPE: g_free(self->priv->type); self->priv->type = g_value_dup_string(value); break; case CARD_NAME: g_free(self->priv->name); self->priv->name = g_value_dup_string(value); break; case CARD_RATE: self->priv->rate = g_value_get_int(value); break; case CARD_LOCKED: self->priv->locked = g_value_get_boolean(value); break; case CARD_DELETED: self->priv->deleted = g_value_get_boolean(value); break; case CARD_DESTROYED: self->priv->destroyed = g_value_get_boolean(value); break; case CARD_MARKED: self->priv->marked = g_value_get_boolean(value); break; case CARD_CREATED: self->priv->created = g_value_get_int(value); break; case CARD_CHANGED: self->priv->changed = g_value_get_int(value); break; default: break; } } static void r_card_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RCard* self = (RCard*) obj; switch(property_id) { case CARD_ID: g_value_set_long(value, self->priv->id); break; case CARD_NAME: g_value_set_string(value, self->priv->name); break; case CARD_TYPE: g_value_set_string(value, self->priv->type); break; case CARD_RATE: g_value_set_int(value, self->priv->rate); break; case CARD_LOCKED: g_value_set_boolean(value, self->priv->locked); break; case CARD_DELETED: g_value_set_boolean(value, self->priv->deleted); break; case CARD_DESTROYED: g_value_set_boolean(value, self->priv->destroyed); break; case CARD_MARKED: g_value_set_boolean(value, self->priv->marked); break; case CARD_CREATED: g_value_set_int(value, self->priv->created); break; case CARD_CHANGED: g_value_set_int(value, self->priv->changed); break; default: break; } } static void r_card_copy_paste_group(RCard* card, gpointer data) { RGroup* grp; grp = r_group_copy(R_GROUP(data)); if (grp) r_card_add_group(R_CARD(card), grp); } static void r_card_copy_paste_ref (RCard* card, gpointer data) { RRef* ref; ref = r_ref_copy(R_REF(data)); if (ref) r_card_add_ref(card, ref); } static void r_card_copy_paste_address (RCard* card, gpointer data) { RAddress* add; add = r_address_copy(R_ADDRESS(data)); if (add) r_card_add_address(R_CARD(card), add); } static void r_card_copy_paste_net_address (RCard* card, gpointer data) { RNetAddress* net; net = r_net_address_copy(R_NET_ADDRESS(data)); if (net) r_card_add_net_address(R_CARD(card), net); } static void r_card_copy_paste_telephone (RCard* card, gpointer data) { RTelephone* tel; tel = r_telephone_copy(R_TELEPHONE(data)); if (tel) r_card_add_telephone(R_CARD(card), tel); } /* * r_card_copy_commons * private method. Copy from the old card to the new one the * RPersonalCard and RCompanycard common values, it est: * card infos, groups, addresses, net addresses, telephone numbers */ static void r_card_copy_commons (RCard* new, RCard* old) { gchar *name; gint rate; gboolean locked, deleted, marked; time_t created, changed; g_return_if_fail(IS_R_CARD(new)); g_return_if_fail(IS_R_CARD(old)); g_object_get(G_OBJECT(old), "card-name", &name, "card-rate", &rate, "card-locked", &locked, "card-deleted", &deleted, "card-marked", &marked, "card-created", &created, "card-changed", &changed, NULL); g_object_set(G_OBJECT(new), "card-name", name, "card-rate", rate, "card-locked", locked, "card-deleted", deleted, "card-marked", marked, "card-created", created, "card-changed", changed, NULL); r_card_foreach_group (old, (RFunc) r_card_copy_paste_group, new); r_card_foreach_address (old, (RFunc) r_card_copy_paste_address, new); r_card_foreach_net_address (old, (RFunc) r_card_copy_paste_net_address, new); r_card_foreach_telephone (old, (RFunc) r_card_copy_paste_telephone, new); r_card_foreach_ref (old, (RFunc) r_card_copy_paste_ref, new); } /* ************************************ Public Functions */ /** * r_card_new * * create a new #RCard * * Returns: a new allocated #RCard* */ RCard* r_card_new(void) { RCard* card; card = g_object_new(r_card_get_type(), NULL); return card; } /* Returns: #R_CARD_UNDELETED if an error occurred, #R_CARD_HAS_REFS if the given card has got references to other cards (you must delete the referenced card before), or #R_CARD_DELETED if card was successfully deleted */ /** * r_card_free * @card: a #RCard * * free the #RCard* */ void r_card_free(RCard* card) { g_return_if_fail(IS_R_CARD(card)); g_object_unref(G_OBJECT(card)); } /** * r_card_id_align * @card: * @id: * * align the card's id. User shouldn't use this function. */ void r_card_reassign_id (RCard* self, glong card_id) { g_return_if_fail(IS_R_CARD(self)); g_return_if_fail(card_id > 0L); if (card_id > id) { g_object_set(self, "card-id", card_id, NULL); id = card_id; } } gboolean r_card_is_personal (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), FALSE); if (g_ascii_strcasecmp(card->priv->type, "personal") == 0) return TRUE; return FALSE; } gboolean r_card_is_deleted (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), FALSE); return card->priv->deleted; } /** * r_card_search * @card: a #RCard * @str: the string that user is looking for * * search the given string in the card * * returns: %TRUE if string has been found, %FALSE otherwise. * If str is %NULL, %FALSE is returned */ gboolean r_card_search (RCard* card, const gchar* str) { RCardClass* klass; g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(str != NULL, FALSE); klass = R_CARD_GET_CLASS(card); if (R_CARD_CLASS(klass)->search) return R_CARD_CLASS(klass)->search(card, str); return FALSE; } /** * r_card_copy * @card: a #RCard * * copy the given #RCard* * * Returns: a new allocated copy of the card */ RCard* r_card_copy (RCard* card) { RCardClass* klass; RCard* new; g_return_val_if_fail(IS_R_CARD(card), NULL); klass = R_CARD_GET_CLASS(card); if (R_CARD_CLASS(klass)->copy) { new = R_CARD_CLASS(klass)->copy(R_CARD(card)); r_card_copy_commons(R_CARD(new), R_CARD(card)); return new; } return NULL; } /** * r_card_get_infos * @card: a #RCard * * get infos about card. * * returns: a #RInfos. caller must free the #RInfos, calling * the #r_card_free_infos */ RInfos* r_card_get_infos (RCard* card) { RCardClass* klass; RInfos* infos; gpointer address, tel; g_return_val_if_fail(IS_R_CARD(card), NULL); klass = R_CARD_GET_CLASS(card); if (R_CARD_CLASS(klass)->get_infos) { infos = R_CARD_CLASS(klass)->get_infos(R_CARD(card)); g_object_get(R_CARD(card), "card-id", &infos->id, "card-name", &infos->label, NULL); infos->web = g_strdup(r_card_get_home_page(R_CARD(card))); infos->email = g_strdup(r_card_get_email(R_CARD(card))); infos->irc = g_strdup(r_card_get_irc(R_CARD(card))); address = r_card_get_address(R_CARD(card)); tel = r_card_get_telephone(R_CARD(card)); if (address) g_object_get(R_ADDRESS(address), "city", &infos->city, "country", &infos->country, NULL); else infos->city = infos->country = g_strdup(NULL); if (tel) g_object_get(R_TELEPHONE(tel), "telephone-number", &infos->telephone, NULL); else infos->telephone = g_strdup(NULL); return infos; } return NULL; } /** * r_card_free_infos * @infos: a #RInfos * * free the RInfos object */ void r_card_free_infos (RInfos *infos) { g_return_if_fail(infos != NULL); g_free(infos->label); g_free(infos->first); g_free(infos->last); g_free(infos->prof); g_free(infos->city); g_free(infos->country); g_free(infos->assignment); g_free(infos->web); g_free(infos->email); g_free(infos->irc); g_free(infos->telephone); g_free(infos); infos = NULL; } /** * r_card_add_group * @card: a #RCard * @group: a #RGroup * * add a group to card (card belongs to added group) */ void r_card_add_group (RCard* card, RGroup* group) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(IS_R_GROUP(group)); r_group_box_add_group(card->priv->box, group); } /** * r_card_delete_group * @card: a #RCard * @name: group's name * * delete a group from card's groups list (i.e. remove a card from a group) * * Returns: TRUE if group was successfully deleted, FALSE otherwise */ gboolean r_card_delete_group (RCard* card, gchar* name) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(name != NULL, FALSE); return r_group_box_delete_group_by_name(card->priv->box, name); } /** * r_card_rename_group * @card: a #RCard * @oldname: old group's name * @newname: new group's name * * rename the old name group with the new name group * * Returns: TRUE if replaced, FALSE otherwise */ gboolean r_card_rename_group (RCard* card, gchar* oldname, gchar* newname) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(oldname != NULL, FALSE); g_return_val_if_fail(newname != NULL, FALSE); return r_group_box_rename_group(card->priv->box, oldname, newname); } gboolean r_card_has_groups (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), FALSE); return !r_group_box_is_empty(card->priv->box); } /** * r_card_find_group * @card: a #RCard * @name: group's name * * find a card's group by name. User must cast returned value * to a #RGroup. * * Returns: a gpointer to the group if group has been found, NULL otherwise. */ gpointer r_card_find_group (RCard* card, gchar* name) { g_return_val_if_fail(IS_R_CARD(card), NULL); g_return_val_if_fail(name != NULL, NULL); return r_group_box_find(card->priv->box, name); } /** * r_card_belong_to_group * @card: a #RCard * @group_name: group's name * * check if the card belongs to the group * * Returns: %TRUE if card belongs to the given group, %FALSE otherwise */ gboolean r_card_belong_to_group (RCard* card, const gchar* group_name) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(group_name != NULL, FALSE); return r_group_box_owns_group(card->priv->box, group_name); } /** * r_card_get_groups_owned_by * @card: a #RCard * @owner: the owner of the groups * * look for all groups that belongs to owner * * Returns: A list of #RGroup, or %NULL */ GList* r_card_get_groups_owned_by (RCard* card, const gchar* owner) { g_return_val_if_fail(IS_R_CARD(card), NULL); g_return_val_if_fail(owner != NULL, NULL); return r_group_box_find_groups_owned_by(card->priv->box, owner); } /** * r_card_get_group * @card: a #RCard * * get the first of card's groups. User must cast returned value * to a #RGroup. * * Returns: a gpointer. */ RGroup* r_card_get_group (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); return r_group_box_get_group(card->priv->box); } /** * r_card_get_next_group * @card: a #RCard * * get the next in card's group. User must cast returned value * to a #RGroup. * * Returns: a gpointer */ RGroup* r_card_get_next_group (RCard* card) { g_return_val_if_fail(IS_R_CARD(card),NULL); return r_group_box_get_next_group(card->priv->box); } /** * r_card_get_prev_group * @card: a #RCard * * get the previous in card's group. User must cast returned value * to a #RGroup. * * Returns: a gpointer */ RGroup* r_card_get_prev_group (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); return r_group_box_get_prev_group(card->priv->box); } /** * r_card_reset_group * @card: a #RCard * * set the private group iterartor to the first one */ void r_card_reset_group (RCard* card) { g_return_if_fail(IS_R_CARD(card)); r_group_box_reset(card->priv->box); } /** * r_card_foreach_group * @card: a #RCard * @func: the #RFunc that will be called on each group in the card * @user_data: user's data to pass to func * * User's function func, will be called foreach group in card. * func must have two parameter: the group (automatically passed) and * the user_data */ void r_card_foreach_group (RCard* card, RFunc func, gpointer user_data) { gpointer grp; r_card_reset_group(card); grp = r_card_get_group(card); for(; grp; grp = r_card_get_next_group(card)) func(user_data, grp); } /** * r_card_add_address * @card: a #RCard * @address: a #RAddress * * add an address to card */ void r_card_add_address (RCard* card, RAddress* address) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(IS_R_ADDRESS(address)); card->priv->addresses = g_list_append(card->priv->addresses, address); /* init address iterator */ if (!card->priv->addr_iter) card->priv->addr_iter = card->priv->addresses; } /** * r_card_delete_address * @card: a #RCard * @address: a #RAddress * * delete the address from card * * returns: %TRUE if address has been successfully deleted, %FALSE otherwihe. */ gboolean r_card_delete_address (RCard* card, RAddress* address) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_ADDRESS(address), FALSE); card->priv->addr_iter = card->priv->addresses; for (; card->priv->addr_iter; card->priv->addr_iter = card->priv->addr_iter->next) { if (card->priv->addr_iter && (card->priv->addr_iter->data == address)) card->priv->addresses = g_list_remove_link(card->priv->addresses, card->priv->addr_iter); r_address_free(address); g_list_free_1(card->priv->addr_iter); card->priv->addr_iter = NULL; return TRUE; } return FALSE; } /** * r_card_replace_address * @card: a #RCard * @old: a #RAddress * @new: a #RAddress * * replace the old address with new one. On success, old address is deleted. * * returns: %TRUE if address has been successfully replaced, %FALSE otherwihe. */ gboolean r_card_replace_address (RCard* card, RAddress* old, RAddress* new) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_ADDRESS(old), FALSE); g_return_val_if_fail(IS_R_ADDRESS(new), FALSE); card->priv->addr_iter = card->priv->addresses; for (; card->priv->addr_iter; card->priv->addr_iter = card->priv->addr_iter->next) { if (card->priv->addr_iter && (card->priv->addr_iter->data == old)) { card->priv->addr_iter->data = new; r_address_free(old); card->priv->addr_iter = NULL; return TRUE; } } return FALSE; } /** * r_card_get_address * @card: a #RCard * * get the first item of card's addresses list. User must cast to * a #RAddress. * * Returns: a gpointer */ gpointer r_card_get_address (RCard* card) { RAddress* ret = NULL; g_return_val_if_fail(IS_R_CARD(card), NULL); if (card->priv->addr_iter) ret = card->priv->addr_iter->data; if (IS_R_ADDRESS(ret)) return ret; return NULL; } /** * r_card_get_next_address * @card: a #RCard * * get the next item in card's addresses list. User must cast to * a #RAddress. * * Returns: a gpointer */ gpointer r_card_get_next_address (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->addr_iter = g_list_next(card->priv->addr_iter); if(card->priv->addr_iter) return card->priv->addr_iter->data; else /* iterator is NULL, reset iterator */ card->priv->addr_iter = card->priv->addresses; return NULL; } /** * r_card_get_prev_address * @card: a #RCard * * get the previous item in card's addresses list. User must cast to * a #RAddress. * * Returns: a gpointer */ gpointer r_card_get_prev_address (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->addr_iter = g_list_previous(card->priv->addr_iter); if (card->priv->addr_iter) return card->priv->addr_iter->data; else /* iterator is NULL, reset iterator */ card->priv->addr_iter = card->priv->addresses; return NULL; } /** * r_card_reset_address * @card: a #RCard * * set the private address iterartor to the first one */ void r_card_reset_address (RCard* card) { g_return_if_fail(IS_R_CARD(card)); card->priv->addr_iter = card->priv->addresses; } /** * r_card_foreach_address * @card: a #RCard * @func: the #RFunc that will be called on each group in the card * @user_data: user's data to pass to func * * User's function func, will be called foreach address in card. * func must have two parameter: the address (automatically passed) and * the user_data */ void r_card_foreach_address (RCard* card, RFunc func, gpointer user_data) { gpointer address; r_card_reset_address(card); address = r_card_get_address(card); for(; address; address = r_card_get_next_address(card)) func(user_data, address); } /** * r_card_add_net_address * @card: a #RCard * @net: a #RNetAddress * * add a net address to card */ void r_card_add_net_address (RCard* card, RNetAddress* net) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(IS_R_NET_ADDRESS(net)); card->priv->nets = g_list_append(card->priv->nets, net); /* init card iterator */ if (!card->priv->net_iter) card->priv->net_iter = card->priv->nets; } /** * r_card_delete_net_address * @card: a #RCard * @address: a #RNetAddress * * delete a net address from card * * returns: %TRUE if address has been successfully deleted, %FALSE otherwihe. */ gboolean r_card_delete_net_address (RCard* card, RNetAddress* address) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_NET_ADDRESS(address), FALSE); card->priv->net_iter = card->priv->nets; for (; card->priv->net_iter; card->priv->net_iter = card->priv->net_iter->next) { if (card->priv->net_iter && (card->priv->net_iter->data == address)) card->priv->nets = g_list_remove_link(card->priv->nets, card->priv->net_iter); r_net_address_free(address); g_list_free_1(card->priv->net_iter); card->priv->net_iter = NULL; return TRUE; } return FALSE; } /** * r_card_replace_net_address * @card: a #RCard * @old: the old #RNetAddress * @new: the new #RNetAddress * * replace the old net address with new one. * On success, old address is deleted. * * returns: %TRUE if address has been successfully replaced, %FALSE otherwihe. */ gboolean r_card_replace_net_address (RCard* card, RNetAddress* old, RNetAddress* new) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_NET_ADDRESS(old), FALSE); g_return_val_if_fail(IS_R_NET_ADDRESS(new), FALSE); card->priv->net_iter = card->priv->nets; for (; card->priv->net_iter; card->priv->net_iter = card->priv->net_iter->next) { if (card->priv->net_iter && (card->priv->net_iter->data == old)) { card->priv->net_iter->data = new; r_net_address_free(old); card->priv->net_iter = NULL; return TRUE; } } return FALSE; } /** * r_card_get_net_address * @card: a #RCard * * get the first item of card's net addresses list. User must cast to * a #RNetAddress. * * Returns: a gpointer */ gpointer r_card_get_net_address (RCard* card) { RNetAddress* ret = NULL; g_return_val_if_fail(IS_R_CARD(card), NULL); if (card->priv->net_iter) ret = card->priv->net_iter->data; if (IS_R_NET_ADDRESS(ret)) return ret; return NULL; } /** * r_card_get_next_net_address * @card: a #RCard * * get the next item in card's net addresses list. User must cast to * a #RNetAddress. * * Returns: a gpointer */ gpointer r_card_get_next_net_address (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->net_iter = g_list_next(card->priv->net_iter); if (card->priv->net_iter) return card->priv->net_iter->data; else /* iterator is NULL, reset iterator */ card->priv->net_iter = card->priv->nets; return NULL; } /** * r_card_get_prev_net_address * @card: a #RCard * * get the previous item in card's net addresses list. User must cast to * a #RNetAddress. * * Returns: a gpointer */ gpointer r_card_get_prev_net_address (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->net_iter = g_list_previous(card->priv->net_iter); if (card->priv->net_iter) return card->priv->net_iter->data; else card->priv->net_iter = card->priv->nets; return NULL; } /** * r_card_reset_net_address * @card: a #RCard * * set the private net addresses iterartor to the first one. */ void r_card_reset_net_address (RCard* card) { g_return_if_fail(IS_R_CARD(card)); card->priv->net_iter = card->priv->nets; } /** * r_card_foreach_net_address: * @card: a #RCard * @func: the #RFunc that will be called on each group in the card * @user_data: user's data to pass to func * * User's function func, will be called foreach net address in card. * func must have two parameter: the net address (automatically passed) and * the user_data */ void r_card_foreach_net_address (RCard* card, RFunc func, gpointer user_data) { gpointer net; r_card_reset_net_address(card); net = r_card_get_net_address(card); for(; net; net = r_card_get_next_net_address(card)) func(user_data, net); } /** * r_card_add_telephone * @card: a #RCard * @tel: a #RTelephone * * add a telephone number to card */ void r_card_add_telephone (RCard* card, RTelephone* tel) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(IS_R_TELEPHONE(tel)); card->priv->phones = g_list_append(card->priv->phones, tel); /* init telephone iterator */ if (!card->priv->phone_iter) card->priv->phone_iter = card->priv->phones; } /** * r_card_delete_telephone * @card: a #RCard * @phone: a #RTelephone * * delete a telephone number from card * * returns: %TRUE if telephone has been successfully, %FALSE otherwise. */ gboolean r_card_delete_telephone (RCard* card, RTelephone* phone) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_TELEPHONE(phone), FALSE); card->priv->phone_iter = card->priv->phones; for (; card->priv->phone_iter; card->priv->phone_iter = card->priv->phone_iter->next) { if (card->priv->phone_iter && (card->priv->phone_iter->data == phone)) { card->priv->phones = g_list_remove_link(card->priv->phones, card->priv->phone_iter); r_telephone_free(phone); g_list_free_1(card->priv->phone_iter); card->priv->phone_iter = NULL; return TRUE; } } return FALSE; } /** * r_card_replace_telephone * @card: a #RCard * @old: a #RTelephone * @new: a #RTelephone * * replace the old telephone with new one. * On success, old telephone is deleted. * * returns: %TRUE if telephone has been successfully replaced , * %FALSE otherwihe. */ gboolean r_card_replace_telephone (RCard* card, RTelephone* old, RTelephone* new) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_TELEPHONE(old), FALSE); g_return_val_if_fail(IS_R_TELEPHONE(new), FALSE); card->priv->phone_iter = card->priv->phones; for (; card->priv->phone_iter; card->priv->phone_iter = card->priv->phone_iter->next) { if (card->priv->phone_iter && (card->priv->phone_iter->data == old)) { card->priv->phone_iter->data = new; r_telephone_free(old); card->priv->phone_iter = NULL; return TRUE; } } return FALSE; } /** * r_card_get_telephone * @card: a #RCard * * get the first item of card's telephones list. User must cast to * a #RTelephone. * * Returns: a gpointer */ gpointer r_card_get_telephone (RCard* card) { RTelephone* ret = NULL; g_return_val_if_fail(IS_R_CARD(card), NULL); if (card->priv->phone_iter) ret = card->priv->phone_iter->data; if (IS_R_TELEPHONE(ret)) return ret; return NULL; } /** * r_card_get_next_telephone * @card: a #RCard * * get the next item in card's telephones list. User must cast to * a #RTelephone. * * Returns: a gpointer */ gpointer r_card_get_next_telephone (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->phone_iter = g_list_next(card->priv->phone_iter); if (card->priv->phone_iter) return card->priv->phone_iter->data; else /* iterator is NULL, reset iterator */ card->priv->phone_iter = card->priv->phones; return NULL; } /** * r_card_get_prev_telephone * @card: a #RCard * * get the previous item in card's telephones list. User must cast to * a #RTelephone. * * Returns: a gpointer */ gpointer r_card_get_prev_telephone (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->phone_iter= g_list_previous(card->priv->phone_iter); if (card->priv->phone_iter) return card->priv->phone_iter->data; else card->priv->phone_iter = card->priv->phones; return NULL; } /** * r_card_reset_telephone * @card: a #RCard * * set the private telephones iterartor to the first one */ void r_card_reset_telephone (RCard* card) { g_return_if_fail(IS_R_CARD(card)); card->priv->phone_iter = card->priv->phones; } /** * r_card_foreach_telephone * @card: a #RCard * @func: the #RFunc that will be called on each group in the card * @user_data: user's data to pass to func * * User's function func, will be called foreach telephone in card. * func must have two parameter: the telephone (automatically passed) and * the user_data */ void r_card_foreach_telephone (RCard* card, RFunc func, gpointer user_data) { gpointer phone; r_card_reset_telephone(card); phone = r_card_get_telephone(card); for(; phone; phone = r_card_get_next_telephone(card)) func(user_data, phone); } /** * r_card_add_ref * @card: a #RCard * @ref: a #RRef * * add a #RRef to the given #RCard card */ void r_card_add_ref (RCard* card, RRef* ref) { g_return_if_fail(IS_R_CARD(card)); g_return_if_fail(IS_R_REF(ref)); card->priv->refs = g_list_append(card->priv->refs, ref); if (!card->priv->refs_iter) card->priv->refs_iter = card->priv->refs; } /** * r_card_del_ref * @card: a #RCard * @ref: a #RRef * * remove a #RRef from card * returns: %TRUE if reference is successfully deleted, %FALSE otherwise */ gboolean r_card_del_ref (RCard* card, RRef* ref) { g_return_val_if_fail(IS_R_CARD(card), FALSE); g_return_val_if_fail(IS_R_REF(ref), FALSE); card->priv->refs_iter = card->priv->refs; for (; card->priv->refs_iter; card->priv->refs_iter = card->priv->refs_iter->next) { if (card->priv->refs_iter->data == ref) { card->priv->refs = g_list_remove_link(card->priv->refs, card->priv->refs_iter); r_ref_free(ref); g_list_free_1(card->priv->refs_iter); card->priv->refs_iter = NULL; return TRUE; } } return FALSE; } /** * r_card_has_refs * @card: a #RCard * * Check if card has references to other cards * * returns: %TRUE if has references, %FALSE otherwise */ gboolean r_card_has_refs (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), FALSE); return (card->priv->refs != NULL); } /** * r_card_get_ref * @card: a #RCard * * get the first #RRef * * returns: a gpointer or NULL if card hasn't refs */ gpointer r_card_get_ref (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); if (card->priv->refs_iter) return card->priv->refs_iter->data; return NULL; } /** * r_card_get_next_ref * @card: a #RCard * * get the next ref * * returns: a gpointer or NULL */ gpointer r_card_get_next_ref (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->refs_iter = g_list_next(card->priv->refs_iter); if (card->priv->refs_iter) return card->priv->refs_iter->data; else card->priv->refs_iter = card->priv->refs; return NULL; } /** * r_card_get_prev_ref * @card: a #RCard * * get the previous ref * * returns: a gpointer or NULL */ gpointer r_card_get_prev_ref (RCard* card) { g_return_val_if_fail(IS_R_CARD(card), NULL); card->priv->refs_iter = g_list_previous(card->priv->refs_iter); if (card->priv->refs_iter) return card->priv->refs_iter->data; else card->priv->refs_iter = card->priv->refs; return NULL; } /** * r_card_reset_ref * @card: a #RCard * * reset the private refs's iterator to ref head's list */ void r_card_reset_ref (RCard* card) { g_return_if_fail(IS_R_CARD(card)); card->priv->refs_iter = card->priv->refs; } /** * r_card_foreach_ref * @card: a #RCard * @func: the #RFunc that will be called on each group in the card * @user_data: user's data to pass to func * * User's function func, will be called foreach ref in card. * func must have two parameter: the ref (automatically passed) and * the user_data */ void r_card_foreach_ref (RCard* card, RFunc func, gpointer user_data) { gpointer ref; r_card_reset_ref(card); ref = r_card_get_ref(card); for(; ref; ref = r_card_get_next_ref(card)) func(user_data, ref); } /** * r_card_get_group_owner * @card: a #RCard * @group: a #RGroup * * get the owner of the given group. Caller does not free the returned value * * Returns: a gchar*, "r" if given group if a default group, * "user" if given group was build by user */ gchar* r_card_get_group_owner (RCard* card, RGroup* group) { gchar* owner; g_return_val_if_fail(IS_R_CARD(card), NULL); g_return_val_if_fail(IS_R_GROUP(card), NULL); g_object_get(G_OBJECT(group), "group-owner", &owner, NULL); return owner; } /** * r_card_get_home_page * @card: a #RCard * * get the first web url in net addresses list. * Caller does not free the returned value * * Returns: a gchar* */ gchar* r_card_get_home_page (RCard* card) { gpointer net; g_return_val_if_fail(IS_R_CARD(card), ""); net = r_card_get_net_address(card); for (; net; net = r_card_get_next_net_address(card)) { RNetAddressType type = R_NET_ADDRESS_UNKNOWN; gchar* url; g_object_get(R_NET_ADDRESS(net), "url", &url, "url-type", &type, NULL); if (type == R_NET_ADDRESS_WEB) { r_card_reset_net_address(card); return url; } } return ""; } /** * r_card_get_email * @card: a #RCard * * get the first email in net addresses list. * Caller does not free the returned value * * Returns: a gchar* */ gchar* r_card_get_email (RCard* card) { gpointer net; g_return_val_if_fail(IS_R_CARD(card), ""); net = r_card_get_net_address(card); for (; net; net = r_card_get_next_net_address(card)) { RNetAddressType type = R_NET_ADDRESS_UNKNOWN; gchar* url; g_object_get(R_NET_ADDRESS(net), "url", &url, "url-type", &type, NULL); if (type == R_NET_ADDRESS_EMAIL) { r_card_reset_net_address(card); return url; } } return ""; } /** * r_card_get_irc * @card: a #RCard * * get the first irc in net addresses list. * Caller does not free the returned value * * Returns: a gchar* */ gchar* r_card_get_irc (RCard* card) { gpointer net; g_return_val_if_fail(IS_R_CARD(card), ""); net = r_card_get_net_address(card); for (; net; net = r_card_get_next_net_address(card)) { RNetAddressType type = R_NET_ADDRESS_UNKNOWN; gchar* url; g_object_get(net, "url", &url, "url-type", &type, NULL); if ((type >= R_NET_ADDRESS_IRC) && (type <= R_NET_ADDRESS_IRC_MSN)) { r_card_reset_net_address(card); return url; } } return ""; } gpointer r_card_find_address (RCard* card, RAddressType type) { gpointer address; g_return_val_if_fail(IS_R_CARD(card), NULL); address = r_card_get_address(card); for (; address; address = r_card_get_next_address(card)) { RAddressType adstype; g_object_get(R_ADDRESS(address), "address-type", &adstype, NULL); if (adstype == type) return address; } return NULL; } gpointer r_card_find_net_address (RCard* card, RNetAddressType type) { gpointer net; g_return_val_if_fail(IS_R_CARD(card), NULL); net = r_card_get_net_address(card); for (; net; net = r_card_get_next_net_address(card)) { RNetAddressType nettype; g_object_get(R_NET_ADDRESS(net), "url-type", &nettype, NULL); if (nettype == type) return net; } return NULL; } gpointer r_card_find_telephone (RCard* card, RTelephoneType type) { gpointer telephone; g_return_val_if_fail(IS_R_CARD(card), NULL); telephone = r_card_get_telephone(card); for (; telephone; telephone = r_card_get_next_telephone(card)) { RTelephoneType teltype; g_object_get(R_TELEPHONE(telephone), "telephone-type", &teltype, NULL); if (teltype == type) return telephone; } return NULL; } /* eof */ rubrica-2.0/libral/company.h0000644000175000017500000000440210620101450014645 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: company.h * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _R_COMPANY_H #define _R_COMPANY_H #include #include #include "card.h" #define R_COMPANY_CARD_TYPE (r_company_card_get_type()) #define R_COMPANY_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ R_COMPANY_CARD_TYPE, \ RCompanyCard)) #define R_COMPANY_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ R_COMPANY_CARD_TYPE, \ RCompanyCardClass)) #define IS_R_COMPANY_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ R_COMPANY_CARD_TYPE)) #define IS_R_COMPANY_CARD_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ R_COMPANY_CARD_TYPE)) #define R_COMPANY_CARD_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ R_COMPANY_CARD_TYPE, \ RCompanyCardClass)) typedef struct _RCompanyCard RCompanyCard; typedef struct _RCompanyCardClass RCompanyCardClass; typedef struct _RCompanyCardPrivate RCompanyCardPrivate; struct _RCompanyCard { RCard parent; RCompanyCardPrivate* priv; }; struct _RCompanyCardClass { RCardClass parent; }; GType r_company_card_get_type (void); RCompanyCard* r_company_card_new (void); #endif rubrica-2.0/rubrica2.mime0000644000175000017500000000004410554703327014162 0ustar seb128seb128application/x-rubrica ext: rub RUB rubrica-2.0/COPYING0000644000175000017500000004311010554703327012634 0ustar seb128seb128 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. rubrica-2.0/ChangeLog0000644000175000017500000000052510554703422013352 0ustar seb128seb12821 01 07 gestione progetto tramite subversion 11 23 06 moved navigations buttons (next/prevoius) and open/close buttons to toolbar enabled treeview search enable/disable previous,first/next,last buttons 11 16 06 releases package 08 22 06 fixed bugs in preferences setup finished preference setup added autosave and backup features rubrica-2.0/AUTHORS0000644000175000017500000000000010554703327012640 0ustar seb128seb128rubrica-2.0/intltool-merge.in0000644000175000017500000010462310554703327015101 0ustar seb128seb128#!@INTLTOOL_PERL@ -w # -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- # # The Intltool Message Merger # # Copyright (C) 2000, 2003 Free Software Foundation. # Copyright (C) 2000, 2001 Eazel, Inc # # Intltool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 published by the Free Software Foundation. # # Intltool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # # Authors: Maciej Stachowiak # Kenneth Christiansen # Darin Adler # # Proper XML UTF-8'ification written by Cyrille Chepelov # ## Release information my $PROGRAM = "intltool-merge"; my $PACKAGE = "intltool"; my $VERSION = "0.35.0"; ## Loaded modules use strict; use Getopt::Long; use Text::Wrap; use File::Basename; my $must_end_tag = -1; my $last_depth = -1; my $translation_depth = -1; my @tag_stack = (); my @entered_tag = (); my @translation_strings = (); my $leading_space = ""; ## Scalars used by the option stuff my $HELP_ARG = 0; my $VERSION_ARG = 0; my $BA_STYLE_ARG = 0; my $XML_STYLE_ARG = 0; my $KEYS_STYLE_ARG = 0; my $DESKTOP_STYLE_ARG = 0; my $SCHEMAS_STYLE_ARG = 0; my $RFC822DEB_STYLE_ARG = 0; my $QUIET_ARG = 0; my $PASS_THROUGH_ARG = 0; my $UTF8_ARG = 0; my $MULTIPLE_OUTPUT = 0; my $cache_file; ## Handle options GetOptions ( "help" => \$HELP_ARG, "version" => \$VERSION_ARG, "quiet|q" => \$QUIET_ARG, "oaf-style|o" => \$BA_STYLE_ARG, ## for compatibility "ba-style|b" => \$BA_STYLE_ARG, "xml-style|x" => \$XML_STYLE_ARG, "keys-style|k" => \$KEYS_STYLE_ARG, "desktop-style|d" => \$DESKTOP_STYLE_ARG, "schemas-style|s" => \$SCHEMAS_STYLE_ARG, "rfc822deb-style|r" => \$RFC822DEB_STYLE_ARG, "pass-through|p" => \$PASS_THROUGH_ARG, "utf8|u" => \$UTF8_ARG, "multiple-output|m" => \$MULTIPLE_OUTPUT, "cache|c=s" => \$cache_file ) or &error; my $PO_DIR; my $FILE; my $OUTFILE; my %po_files_by_lang = (); my %translations = (); my $iconv = $ENV{"ICONV"} || $ENV{"INTLTOOL_ICONV"} || "@INTLTOOL_ICONV@"; my $devnull = ($^O eq 'MSWin32' ? 'NUL:' : '/dev/null'); # Use this instead of \w for XML files to handle more possible characters. my $w = "[-A-Za-z0-9._:]"; # XML quoted string contents my $q = "[^\\\"]*"; ## Check for options. if ($VERSION_ARG) { &print_version; } elsif ($HELP_ARG) { &print_help; } elsif ($BA_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &ba_merge_translations; &finalize; } elsif ($XML_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &xml_merge_output; &finalize; } elsif ($KEYS_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &keys_merge_translations; &finalize; } elsif ($DESKTOP_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &desktop_merge_translations; &finalize; } elsif ($SCHEMAS_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &schemas_merge_translations; &finalize; } elsif ($RFC822DEB_STYLE_ARG && @ARGV > 2) { &preparation; &print_message; &rfc822deb_merge_translations; &finalize; } else { &print_help; } exit; ## Sub for printing release information sub print_version { print <<_EOF_; ${PROGRAM} (${PACKAGE}) ${VERSION} Written by Maciej Stachowiak, Darin Adler and Kenneth Christiansen. Copyright (C) 2000-2003 Free Software Foundation, Inc. Copyright (C) 2000-2001 Eazel, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _EOF_ exit; } ## Sub for printing usage information sub print_help { print <<_EOF_; Usage: ${PROGRAM} [OPTION]... PO_DIRECTORY FILENAME OUTPUT_FILE Generates an output file that includes some localized attributes from an untranslated source file. Mandatory options: (exactly one must be specified) -b, --ba-style includes translations in the bonobo-activation style -d, --desktop-style includes translations in the desktop style -k, --keys-style includes translations in the keys style -s, --schemas-style includes translations in the schemas style -r, --rfc822deb-style includes translations in the RFC822 style -x, --xml-style includes translations in the standard xml style Other options: -u, --utf8 convert all strings to UTF-8 before merging (default for everything except RFC822 style) -p, --pass-through deprecated, does nothing and issues a warning -m, --multiple-output output one localized file per locale, instead of a single file containing all localized elements -c, --cache=FILE specify cache file name (usually \$top_builddir/po/.intltool-merge-cache) -q, --quiet suppress most messages --help display this help and exit --version output version information and exit Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") or send email to . _EOF_ exit; } ## Sub for printing error messages sub print_error { print STDERR "Try `${PROGRAM} --help' for more information.\n"; exit; } sub print_message { print "Merging translations into $OUTFILE.\n" unless $QUIET_ARG; } sub preparation { $PO_DIR = $ARGV[0]; $FILE = $ARGV[1]; $OUTFILE = $ARGV[2]; &gather_po_files; &get_translation_database; } # General-purpose code for looking up translations in .po files sub po_file2lang { my ($tmp) = @_; $tmp =~ s/^.*\/(.*)\.po$/$1/; return $tmp; } sub gather_po_files { for my $po_file (glob "$PO_DIR/*.po") { $po_files_by_lang{po_file2lang($po_file)} = $po_file; } } sub get_local_charset { my ($encoding) = @_; my $alias_file = $ENV{"G_CHARSET_ALIAS"} || "@INTLTOOL_LIBDIR@/charset.alias"; # seek character encoding aliases in charset.alias (glib) if (open CHARSET_ALIAS, $alias_file) { while () { next if /^\#/; return $1 if (/^\s*([-._a-zA-Z0-9]+)\s+$encoding\b/i) } close CHARSET_ALIAS; } # if not found, return input string return $encoding; } sub get_po_encoding { my ($in_po_file) = @_; my $encoding = ""; open IN_PO_FILE, $in_po_file or die; while () { ## example: "Content-Type: text/plain; charset=ISO-8859-1\n" if (/Content-Type\:.*charset=([-a-zA-Z0-9]+)\\n/) { $encoding = $1; last; } } close IN_PO_FILE; if (!$encoding) { print STDERR "Warning: no encoding found in $in_po_file. Assuming ISO-8859-1\n" unless $QUIET_ARG; $encoding = "ISO-8859-1"; } system ("$iconv -f $encoding -t UTF-8 <$devnull 2>$devnull"); if ($?) { $encoding = get_local_charset($encoding); } return $encoding } sub utf8_sanity_check { print STDERR "Warning: option --pass-through has been removed.\n" if $PASS_THROUGH_ARG; $UTF8_ARG = 1; } sub get_translation_database { if ($cache_file) { &get_cached_translation_database; } else { &create_translation_database; } } sub get_newest_po_age { my $newest_age; foreach my $file (values %po_files_by_lang) { my $file_age = -M $file; $newest_age = $file_age if !$newest_age || $file_age < $newest_age; } $newest_age = 0 if !$newest_age; return $newest_age; } sub create_cache { print "Generating and caching the translation database\n" unless $QUIET_ARG; &create_translation_database; open CACHE, ">$cache_file" || die; print CACHE join "\x01", %translations; close CACHE; } sub load_cache { print "Found cached translation database\n" unless $QUIET_ARG; my $contents; open CACHE, "<$cache_file" || die; { local $/; $contents = ; } close CACHE; %translations = split "\x01", $contents; } sub get_cached_translation_database { my $cache_file_age = -M $cache_file; if (defined $cache_file_age) { if ($cache_file_age <= &get_newest_po_age) { &load_cache; return; } print "Found too-old cached translation database\n" unless $QUIET_ARG; } &create_cache; } sub create_translation_database { for my $lang (keys %po_files_by_lang) { my $po_file = $po_files_by_lang{$lang}; if ($UTF8_ARG) { my $encoding = get_po_encoding ($po_file); if (lc $encoding eq "utf-8") { open PO_FILE, "<$po_file"; } else { print "NOTICE: $po_file is not in UTF-8 but $encoding, converting...\n" unless $QUIET_ARG;; open PO_FILE, "$iconv -f $encoding -t UTF-8 $po_file|"; } } else { open PO_FILE, "<$po_file"; } my $nextfuzzy = 0; my $inmsgid = 0; my $inmsgstr = 0; my $msgid = ""; my $msgstr = ""; while () { $nextfuzzy = 1 if /^#, fuzzy/; if (/^msgid "((\\.|[^\\])*)"/ ) { $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr; $msgid = ""; $msgstr = ""; if ($nextfuzzy) { $inmsgid = 0; } else { $msgid = unescape_po_string($1); $inmsgid = 1; } $inmsgstr = 0; $nextfuzzy = 0; } if (/^msgstr "((\\.|[^\\])*)"/) { $msgstr = unescape_po_string($1); $inmsgstr = 1; $inmsgid = 0; } if (/^"((\\.|[^\\])*)"/) { $msgid .= unescape_po_string($1) if $inmsgid; $msgstr .= unescape_po_string($1) if $inmsgstr; } } $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr; } } sub finalize { } sub unescape_one_sequence { my ($sequence) = @_; return "\\" if $sequence eq "\\\\"; return "\"" if $sequence eq "\\\""; return "\n" if $sequence eq "\\n"; return "\r" if $sequence eq "\\r"; return "\t" if $sequence eq "\\t"; return "\b" if $sequence eq "\\b"; return "\f" if $sequence eq "\\f"; return "\a" if $sequence eq "\\a"; return chr(11) if $sequence eq "\\v"; # vertical tab, see ascii(7) return chr(hex($1)) if ($sequence =~ /\\x([0-9a-fA-F]{2})/); return chr(oct($1)) if ($sequence =~ /\\([0-7]{3})/); # FIXME: Is \0 supported as well? Kenneth and Rodney don't want it, see bug #48489 return $sequence; } sub unescape_po_string { my ($string) = @_; $string =~ s/(\\x[0-9a-fA-F]{2}|\\[0-7]{3}|\\.)/unescape_one_sequence($1)/eg; return $string; } ## NOTE: deal with < - < but not > - > because it seems its ok to have ## > in the entity. For further info please look at #84738. sub entity_decode { local ($_) = @_; s/'/'/g; # ' s/"/"/g; # " s/&/&/g; s/</; close INPUT; } open OUTPUT, ">$OUTFILE" or die "can't open $OUTFILE: $!"; # Binmode so that selftest works ok if using a native Win32 Perl... binmode (OUTPUT) if $^O eq 'MSWin32'; while ($source =~ s|^(.*?)([ \t]*<\s*$w+\s+($w+\s*=\s*"$q"\s*)+/?>)([ \t]*\n)?||s) { print OUTPUT $1; my $node = $2 . "\n"; my @strings = (); $_ = $node; while (s/(\s)_($w+\s*=\s*"($q)")/$1$2/s) { push @strings, entity_decode($3); } print OUTPUT; my %langs; for my $string (@strings) { for my $lang (keys %po_files_by_lang) { $langs{$lang} = 1 if $translations{$lang, $string}; } } for my $lang (sort keys %langs) { $_ = $node; s/(\sname\s*=\s*)"($q)"/$1"$2-$lang"/s; s/(\s)_($w+\s*=\s*")($q)"/$1 . $2 . entity_encoded_translation($lang, $3) . '"'/seg; print OUTPUT; } } print OUTPUT $source; close OUTPUT; } ## XML (non-bonobo-activation) merge code # Process tag attributes # Only parameter is a HASH containing attributes -> values mapping sub getAttributeString { my $sub = shift; my $do_translate = shift || 0; my $language = shift || ""; my $result = ""; my $translate = shift; foreach my $e (reverse(sort(keys %{ $sub }))) { my $key = $e; my $string = $sub->{$e}; my $quote = '"'; $string =~ s/^[\s]+//; $string =~ s/[\s]+$//; if ($string =~ /^'.*'$/) { $quote = "'"; } $string =~ s/^['"]//g; $string =~ s/['"]$//g; if ($do_translate && $key =~ /^_/) { $key =~ s|^_||g; if ($language) { # Handle translation my $decode_string = entity_decode($string); my $translation = $translations{$language, $decode_string}; if ($translation) { $translation = entity_encode($translation); $string = $translation; } $$translate = 2; } else { $$translate = 2 if ($translate && (!$$translate)); # watch not to "overwrite" $translate } } $result .= " $key=$quote$string$quote"; } return $result; } # Returns a translatable string from XML node, it works on contents of every node in XML::Parser tree sub getXMLstring { my $ref = shift; my $spacepreserve = shift || 0; my @list = @{ $ref }; my $result = ""; my $count = scalar(@list); my $attrs = $list[0]; my $index = 1; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); while ($index < $count) { my $type = $list[$index]; my $content = $list[$index+1]; if (! $type ) { # We've got CDATA if ($content) { # lets strip the whitespace here, and *ONLY* here $content =~ s/\s+/ /gs if (!$spacepreserve); $result .= $content; } } elsif ( "$type" ne "1" ) { # We've got another element $result .= "<$type"; $result .= getAttributeString(@{$content}[0], 0); # no nested translatable elements if ($content) { my $subresult = getXMLstring($content, $spacepreserve); if ($subresult) { $result .= ">".$subresult . ""; } else { $result .= "/>"; } } else { $result .= "/>"; } } $index += 2; } return $result; } # Translate list of nodes if necessary sub translate_subnodes { my $fh = shift; my $content = shift; my $language = shift || ""; my $singlelang = shift || 0; my $spacepreserve = shift || 0; my @nodes = @{ $content }; my $count = scalar(@nodes); my $index = 0; while ($index < $count) { my $type = $nodes[$index]; my $rest = $nodes[$index+1]; if ($singlelang) { my $oldMO = $MULTIPLE_OUTPUT; $MULTIPLE_OUTPUT = 1; traverse($fh, $type, $rest, $language, $spacepreserve); $MULTIPLE_OUTPUT = $oldMO; } else { traverse($fh, $type, $rest, $language, $spacepreserve); } $index += 2; } } sub isWellFormedXmlFragment { my $ret = eval 'require XML::Parser'; if(!$ret) { die "You must have XML::Parser installed to run $0\n\n"; } my $fragment = shift; return 0 if (!$fragment); $fragment = "$fragment"; my $xp = new XML::Parser(Style => 'Tree'); my $tree = 0; eval { $tree = $xp->parse($fragment); }; return $tree; } sub traverse { my $fh = shift; my $nodename = shift; my $content = shift; my $language = shift || ""; my $spacepreserve = shift || 0; if (!$nodename) { if ($content =~ /^[\s]*$/) { $leading_space .= $content; } print $fh $content; } else { # element my @all = @{ $content }; my $attrs = shift @all; my $translate = 0; my $outattr = getAttributeString($attrs, 1, $language, \$translate); if ($nodename =~ /^_/) { $translate = 1; $nodename =~ s/^_//; } my $lookup = ''; $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); print $fh "<$nodename", $outattr; if ($translate) { $lookup = getXMLstring($content, $spacepreserve); if (!$spacepreserve) { $lookup =~ s/^\s+//s; $lookup =~ s/\s+$//s; } if ($lookup || $translate == 2) { my $translation = $translations{$language, $lookup} if isWellFormedXmlFragment($translations{$language, $lookup}); if ($MULTIPLE_OUTPUT && ($translation || $translate == 2)) { $translation = $lookup if (!$translation); print $fh " xml:lang=\"", $language, "\"" if $language; print $fh ">"; if ($translate == 2) { translate_subnodes($fh, \@all, $language, 1, $spacepreserve); } else { print $fh $translation; } print $fh ""; return; # this means there will be no same translation with xml:lang="$language"... # if we want them both, just remove this "return" } else { print $fh ">"; if ($translate == 2) { translate_subnodes($fh, \@all, $language, 1, $spacepreserve); } else { print $fh $lookup; } print $fh ""; } } else { print $fh "/>"; } for my $lang (sort keys %po_files_by_lang) { if ($MULTIPLE_OUTPUT && $lang ne "$language") { next; } if ($lang) { # Handle translation # my $translate = 0; my $localattrs = getAttributeString($attrs, 1, $lang, \$translate); my $translation = $translations{$lang, $lookup} if isWellFormedXmlFragment($translations{$lang, $lookup}); if ($translate && !$translation) { $translation = $lookup; } if ($translation || $translate) { print $fh "\n"; $leading_space =~ s/.*\n//g; print $fh $leading_space; print $fh "<", $nodename, " xml:lang=\"", $lang, "\"", $localattrs, ">"; if ($translate == 2) { translate_subnodes($fh, \@all, $lang, 1, $spacepreserve); } else { print $fh $translation; } print $fh ""; } } } } else { my $count = scalar(@all); if ($count > 0) { print $fh ">"; my $index = 0; while ($index < $count) { my $type = $all[$index]; my $rest = $all[$index+1]; traverse($fh, $type, $rest, $language, $spacepreserve); $index += 2; } print $fh ""; } else { print $fh "/>"; } } } } sub intltool_tree_comment { my $expat = shift; my $data = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; push @$clist, 1 => $data; } sub intltool_tree_cdatastart { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; push @$clist, 0 => $expat->original_string(); } sub intltool_tree_cdataend { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; $clist->[$pos] .= $expat->original_string(); } sub intltool_tree_char { my $expat = shift; my $text = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; # Use original_string so that we retain escaped entities # in CDATA sections. # if ($pos > 0 and $clist->[$pos - 1] eq '0') { $clist->[$pos] .= $expat->original_string(); } else { push @$clist, 0 => $expat->original_string(); } } sub intltool_tree_start { my $expat = shift; my $tag = shift; my @origlist = (); # Use original_string so that we retain escaped entities # in attribute values. We must convert the string to an # @origlist array to conform to the structure of the Tree # Style. # my @original_array = split /\x/, $expat->original_string(); my $source = $expat->original_string(); # Remove leading tag. # $source =~ s|^\s*<\s*(\S+)||s; # Grab attribute key/value pairs and push onto @origlist array. # while ($source) { if ($source =~ /^\s*([\w:-]+)\s*[=]\s*["]/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*["]([^"]*)["]||s; push @origlist, $1; push @origlist, '"' . $2 . '"'; } elsif ($source =~ /^\s*([\w:-]+)\s*[=]\s*[']/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*[']([^']*)[']||s; push @origlist, $1; push @origlist, "'" . $2 . "'"; } else { last; } } my $ol = [ { @origlist } ]; push @{ $expat->{Lists} }, $expat->{Curlist}; push @{ $expat->{Curlist} }, $tag => $ol; $expat->{Curlist} = $ol; } sub readXml { my $filename = shift || return; if(!-f $filename) { die "ERROR Cannot find filename: $filename\n"; } my $ret = eval 'require XML::Parser'; if(!$ret) { die "You must have XML::Parser installed to run $0\n\n"; } my $xp = new XML::Parser(Style => 'Tree'); $xp->setHandlers(Char => \&intltool_tree_char); $xp->setHandlers(Start => \&intltool_tree_start); $xp->setHandlers(CdataStart => \&intltool_tree_cdatastart); $xp->setHandlers(CdataEnd => \&intltool_tree_cdataend); my $tree = $xp->parsefile($filename); # Hello thereHowdydo # would be: # [foo, [{}, head, [{id => "a"}, 0, "Hello ", em, [{}, 0, "there"]], bar, [{}, # 0, "Howdy", ref, [{}]], 0, "do" ] ] return $tree; } sub print_header { my $infile = shift; my $fh = shift; my $source; if(!-f $infile) { die "ERROR Cannot find filename: $infile\n"; } print $fh qq{\n}; { local $/; open DOCINPUT, "<${FILE}" or die; $source = ; close DOCINPUT; } if ($source =~ /()/s) { print $fh "$1\n"; } elsif ($source =~ /(]*>)/s) { print $fh "$1\n"; } } sub parseTree { my $fh = shift; my $ref = shift; my $language = shift || ""; my $name = shift @{ $ref }; my $cont = shift @{ $ref }; while (!$name || "$name" eq "1") { $name = shift @{ $ref }; $cont = shift @{ $ref }; } my $spacepreserve = 0; my $attrs = @{$cont}[0]; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); traverse($fh, $name, $cont, $language, $spacepreserve); } sub xml_merge_output { my $source; if ($MULTIPLE_OUTPUT) { for my $lang (sort keys %po_files_by_lang) { if ( ! -e $lang ) { mkdir $lang or die "Cannot create subdirectory $lang: $!\n"; } open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; my $tree = readXml($FILE); print_header($FILE, \*OUTPUT); parseTree(\*OUTPUT, $tree, $lang); close OUTPUT; print "CREATED $lang/$OUTFILE\n" unless $QUIET_ARG; } } open OUTPUT, ">$OUTFILE" or die "Cannot open $OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; my $tree = readXml($FILE); print_header($FILE, \*OUTPUT); parseTree(\*OUTPUT, $tree); close OUTPUT; print "CREATED $OUTFILE\n" unless $QUIET_ARG; } sub keys_merge_translations { open INPUT, "<${FILE}" or die; open OUTPUT, ">${OUTFILE}" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; while () { if (s/^(\s*)_(\w+=(.*))/$1$2/) { my $string = $3; print OUTPUT; my $non_translated_line = $_; for my $lang (sort keys %po_files_by_lang) { my $translation = $translations{$lang, $string}; next if !$translation; $_ = $non_translated_line; s/(\w+)=.*/[$lang]$1=$translation/; print OUTPUT; } } else { print OUTPUT; } } close OUTPUT; close INPUT; } sub desktop_merge_translations { open INPUT, "<${FILE}" or die; open OUTPUT, ">${OUTFILE}" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; while () { if (s/^(\s*)_(\w+=(.*))/$1$2/) { my $string = $3; print OUTPUT; my $non_translated_line = $_; for my $lang (sort keys %po_files_by_lang) { my $translation = $translations{$lang, $string}; next if !$translation; $_ = $non_translated_line; s/(\w+)=.*/${1}[$lang]=$translation/; print OUTPUT; } } else { print OUTPUT; } } close OUTPUT; close INPUT; } sub schemas_merge_translations { my $source; { local $/; # slurp mode open INPUT, "<$FILE" or die "can't open $FILE: $!"; $source = ; close INPUT; } open OUTPUT, ">$OUTFILE" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; # FIXME: support attribute translations # Empty nodes never need translation, so unmark all of them. # For example, <_foo/> is just replaced by . $source =~ s|<\s*_($w+)\s*/>|<$1/>|g; while ($source =~ s/ (.*?) (\s+)((\s*) (\s*(?:\s*)?(.*?)\s*<\/default>)?(\s*) (\s*(?:\s*)?(.*?)\s*<\/short>)?(\s*) (\s*(?:\s*)?(.*?)\s*<\/long>)?(\s*) <\/locale>) //sx) { print OUTPUT $1; my $locale_start_spaces = $2 ? $2 : ''; my $default_spaces = $4 ? $4 : ''; my $short_spaces = $7 ? $7 : ''; my $long_spaces = $10 ? $10 : ''; my $locale_end_spaces = $13 ? $13 : ''; my $c_default_block = $3 ? $3 : ''; my $default_string = $6 ? $6 : ''; my $short_string = $9 ? $9 : ''; my $long_string = $12 ? $12 : ''; print OUTPUT "$locale_start_spaces$c_default_block"; $default_string =~ s/\s+/ /g; $default_string = entity_decode($default_string); $short_string =~ s/\s+/ /g; $short_string = entity_decode($short_string); $long_string =~ s/\s+/ /g; $long_string = entity_decode($long_string); for my $lang (sort keys %po_files_by_lang) { my $default_translation = $translations{$lang, $default_string}; my $short_translation = $translations{$lang, $short_string}; my $long_translation = $translations{$lang, $long_string}; next if (!$default_translation && !$short_translation && !$long_translation); print OUTPUT "\n$locale_start_spaces"; print OUTPUT "$default_spaces"; if ($default_translation) { $default_translation = entity_encode($default_translation); print OUTPUT "$default_translation"; } print OUTPUT "$short_spaces"; if ($short_translation) { $short_translation = entity_encode($short_translation); print OUTPUT "$short_translation"; } print OUTPUT "$long_spaces"; if ($long_translation) { $long_translation = entity_encode($long_translation); print OUTPUT "$long_translation"; } print OUTPUT "$locale_end_spaces"; } } print OUTPUT $source; close OUTPUT; } sub rfc822deb_merge_translations { my %encodings = (); for my $lang (keys %po_files_by_lang) { $encodings{$lang} = ($UTF8_ARG ? 'UTF-8' : get_po_encoding($po_files_by_lang{$lang})); } my $source; $Text::Wrap::huge = 'overflow'; $Text::Wrap::break = qr/\n|\s(?=\S)/; { local $/; # slurp mode open INPUT, "<$FILE" or die "can't open $FILE: $!"; $source = ; close INPUT; } open OUTPUT, ">${OUTFILE}" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; while ($source =~ /(^|\n+)(_*)([^:\s]+)(:[ \t]*)(.*?)(?=\n[\S\n]|$)/sg) { my $sep = $1; my $non_translated_line = $3.$4; my $string = $5; my $underscore = length($2); next if $underscore eq 0 && $non_translated_line =~ /^#/; # Remove [] dummy strings my $stripped = $string; $stripped =~ s/\[\s[^\[\]]*\],/,/g if $underscore eq 2; $stripped =~ s/\[\s[^\[\]]*\]$//; $non_translated_line .= $stripped; print OUTPUT $sep.$non_translated_line; if ($underscore) { my @str_list = rfc822deb_split($underscore, $string); for my $lang (sort keys %po_files_by_lang) { my $is_translated = 1; my $str_translated = ''; my $first = 1; for my $str (@str_list) { my $translation = $translations{$lang, $str}; if (!$translation) { $is_translated = 0; last; } # $translation may also contain [] dummy # strings, mostly to indicate an empty string $translation =~ s/\[\s[^\[\]]*\]$//; if ($first) { if ($underscore eq 2) { $str_translated .= $translation; } else { $str_translated .= Text::Tabs::expand($translation) . "\n"; } } else { if ($underscore eq 2) { $str_translated .= ', ' . $translation; } else { $str_translated .= Text::Tabs::expand( Text::Wrap::wrap(' ', ' ', $translation)) . "\n .\n"; } } $first = 0; # To fix some problems with Text::Wrap::wrap $str_translated =~ s/(\n )+\n/\n .\n/g; } next unless $is_translated; $str_translated =~ s/\n \.\n$//; $str_translated =~ s/\s+$//; $_ = $non_translated_line; s/^(\w+):\s*.*/$sep${1}-$lang.$encodings{$lang}: $str_translated/s; print OUTPUT; } } } print OUTPUT "\n"; close OUTPUT; close INPUT; } sub rfc822deb_split { # Debian defines a special way to deal with rfc822-style files: # when a value contain newlines, it consists of # 1. a short form (first line) # 2. a long description, all lines begin with a space, # and paragraphs are separated by a single dot on a line # This routine returns an array of all paragraphs, and reformat # them. # When first argument is 2, the string is a comma separated list of # values. my $type = shift; my $text = shift; $text =~ s/^[ \t]//mg; return (split(/, */, $text, 0)) if $type ne 1; return ($text) if $text !~ /\n/; $text =~ s/([^\n]*)\n//; my @list = ($1); my $str = ''; for my $line (split (/\n/, $text)) { chomp $line; if ($line =~ /^\.\s*$/) { # New paragraph $str =~ s/\s*$//; push(@list, $str); $str = ''; } elsif ($line =~ /^\s/) { # Line which must not be reformatted $str .= "\n" if length ($str) && $str !~ /\n$/; $line =~ s/\s+$//; $str .= $line."\n"; } else { # Continuation line, remove newline $str .= " " if length ($str) && $str !~ /\n$/; $str .= $line; } } $str =~ s/\s*$//; push(@list, $str) if length ($str); return @list; } rubrica-2.0/INSTALL0000644000175000017500000002203010554703327012630 0ustar seb128seb128Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the `--target=TYPE' option to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc will cause the specified gcc to be used as the C compiler (unless it is overridden in the site shell script). `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. rubrica-2.0/Makefile.in0000644000175000017500000006467710637712671013677 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/rubrica2.desktop.in $(srcdir)/rubrica2.keys.in \ $(srcdir)/rubrica2.schemas.in $(srcdir)/rubrica2.spec.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ TODO compile config.guess config.sub depcomp install-sh \ ltmain.sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = rubrica2.spec rubrica2.desktop rubrica2.schemas \ rubrica2.keys SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(mimedir)" \ "$(DESTDIR)$(schemadir)" desktopDATA_INSTALL = $(INSTALL_DATA) mimeDATA_INSTALL = $(INSTALL_DATA) schemaDATA_INSTALL = $(INSTALL_DATA) DATA = $(desktop_DATA) $(mime_DATA) $(schema_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } GZIP_ENV = --best DIST_ARCHIVES = $(distdir).tar.bz2 distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = libral src doc pixmaps interface po desktopdir = $(datadir)/applications desktop_in_files = rubrica2.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) mimedir = $(datadir)/mime-info mime_file = rubrica2.mime key_file = rubrica2.keys mime_DATA = $(mime_file) $(key_file) schemadir = @GCONF_SCHEMA_FILE_DIR@ schema_DATA = rubrica2.schemas GCONF_CONFIG_SOURCE = $(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA) EXTRA_DIST = \ intltool-merge.in \ intltool-update.in \ intltool-extract.in \ AUTHORS \ COPYING \ ChangeLog \ INSTALL \ NEWS \ README \ TODO \ CREDITS \ rubrica2.spec \ $(desktop_DATA) \ $(mime_DATA) \ $(key_file) DISTCLEANFILES = \ gnome-doc-utils.make \ intltool-extract \ intltool-merge \ intltool-update CLEANFILES = ./po/.intltool-merge-cache all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 rubrica2.spec: $(top_builddir)/config.status $(srcdir)/rubrica2.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ rubrica2.desktop: $(top_builddir)/config.status $(srcdir)/rubrica2.desktop.in cd $(top_builddir) && $(SHELL) ./config.status $@ rubrica2.schemas: $(top_builddir)/config.status $(srcdir)/rubrica2.schemas.in cd $(top_builddir) && $(SHELL) ./config.status $@ rubrica2.keys: $(top_builddir)/config.status $(srcdir)/rubrica2.keys.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool install-desktopDATA: $(desktop_DATA) @$(NORMAL_INSTALL) test -z "$(desktopdir)" || $(MKDIR_P) "$(DESTDIR)$(desktopdir)" @list='$(desktop_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \ $(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \ done uninstall-desktopDATA: @$(NORMAL_UNINSTALL) @list='$(desktop_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \ rm -f "$(DESTDIR)$(desktopdir)/$$f"; \ done install-mimeDATA: $(mime_DATA) @$(NORMAL_INSTALL) test -z "$(mimedir)" || $(MKDIR_P) "$(DESTDIR)$(mimedir)" @list='$(mime_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(mimeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(mimedir)/$$f'"; \ $(mimeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(mimedir)/$$f"; \ done uninstall-mimeDATA: @$(NORMAL_UNINSTALL) @list='$(mime_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(mimedir)/$$f'"; \ rm -f "$(DESTDIR)$(mimedir)/$$f"; \ done install-schemaDATA: $(schema_DATA) @$(NORMAL_INSTALL) test -z "$(schemadir)" || $(MKDIR_P) "$(DESTDIR)$(schemadir)" @list='$(schema_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(schemaDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(schemadir)/$$f'"; \ $(schemaDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(schemadir)/$$f"; \ done uninstall-schemaDATA: @$(NORMAL_UNINSTALL) @list='$(schema_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(schemadir)/$$f'"; \ rm -f "$(DESTDIR)$(schemadir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d $(distdir) || mkdir $(distdir) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(mimedir)" "$(DESTDIR)$(schemadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-desktopDATA \ install-mimeDATA install-schemaDATA install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-desktopDATA uninstall-mimeDATA \ uninstall-schemaDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local \ install-desktopDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-mimeDATA install-pdf \ install-pdf-am install-ps install-ps-am install-schemaDATA \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-desktopDATA uninstall-mimeDATA uninstall-schemaDATA @INTLTOOL_DESKTOP_RULE@ install-data-local: # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/src/0000755000175000017500000000000010637712737012400 5ustar seb128seb128rubrica-2.0/src/Makefile.am0000644000175000017500000000351710617665305014436 0ustar seb128seb128SUBDIRS = INCLUDES = \ $(RUBRICA_CFLAGS) \ $(LIBRAL_CFLAGS) \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ -DRUBRICA_LOCALE_DIR=\""$(datadir)/locale"\" \ -DRUBRICA_PIXMAPS_DIR=\""$(rubrica_pixmaps_dir)"\" \ -DRUBRICA_ICONS_DIR=\""$(rubrica_icons_dir)"\" \ -DRUBRICA_PLUGINS_DIR=\""$(rubrica_plugins_dir)"\" \ -DRUBRICA_GUI_DIR=\""$(rubrica_gui_dir)"\" \ -DRUBRICA_DOC_DIR=\""$(datadir)/doc/"\" \ -DRUBRICA_HANDBOOK=\""$(datadir)/doc/rubrica2/html"\" \ -DRUBRICA_VERSION=\""@RUBRICA_VERSION@"\" \ -DRUBRICA_CODE_NAME=\""@RUBRICA_CODE_NAME@"\" \ -DRUBRICA_INFO_CODE_NAME=\""@RUBRICA_INFO_CODE_NAME@"\" \ -I$(top_srcdir) \ -I$(top_builddir) \ -I$(top_srcdir)/libral \ -I$(top_builddir)/libral # -DG_LOG_DOMAIN=\"Rubrica\" AM_CFLAGS = -DHAVE_CONFIG_H -Wall -g bin_PROGRAMS = rubrica2 rubrica2_SOURCES = \ app.c app.h \ browse.c browse.h \ calendar.c calendar.h \ callbacks.c callbacks.h \ cards.c cards.h \ cards_view.c cards_view.h \ company_gui.c company_gui.h \ data_view.c data_view.h \ form.c form.h \ form_address.c form_address.h \ form_card.c form_card.h \ form_contact.c form_contact.h \ form_info.c form_info.h \ form_net.c form_net.h \ form_notes.c form_notes.h \ form_phone.c form_phone.h \ form_work.c form_work.h \ groups_view.c groups_view.h \ groups_cb.c groups_cb.h \ main.c \ models.c models.h \ personal_gui.c personal_gui.h \ preferences.h preferences.c \ popmenu.c popmenu.h \ search_dialog.c search_dialog.h \ search_view.c search_view.h \ statusbar.c statusbar.h \ tab.c tab.h \ themes.c themes.h \ trash_view.c trash_view.h \ utils.c utils.h \ view.c view.h \ types.h rubrica2_LDADD = $(RUBRICA_LIBS) $(LIBRAL_LIBS) ../libral/libral.la rubrica-2.0/src/form_net.h0000644000175000017500000000504210617433023014345 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_NET_H #define _RUBRICA_FORM_NET_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_NET_TYPE (rubrica_form_net_get_type()) #define RUBRICA_FORM_NET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_NET_TYPE, \ RubricaFormNet)) #define RUBRICA_FORM_NET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_NET_TYPE, \ RubricaFormNetClass)) #define IS_RUBRICA_FORM_NET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_NET_TYPE)) #define IS_RUBRICA_FORM_NET_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_NET_TYPE)) #define RUBRICA_FORM_NET_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_NET_TYPE, \ RubricaFormNetClass)) typedef struct _RubricaFormNet RubricaFormNet; typedef struct _RubricaFormNetClass RubricaFormNetClass; typedef struct _RubricaFormNetPrivate RubricaFormNetPrivate; struct _RubricaFormNet { RubricaForm parent; RubricaFormNetPrivate* priv; }; struct _RubricaFormNetClass { RubricaFormClass parent; }; typedef enum { FORM_NET_PERSONAL, FORM_NET_COMPANY } FormNetType; GType rubrica_form_net_get_type (void); RubricaFormNet* rubrica_form_net_new (RubricaApp* app, GladeXML *gui, FormNetType type); void rubrica_form_net_free (RubricaFormNet* form); #endif rubrica-2.0/src/form_work.c0000644000175000017500000002123310617433024014535 0ustar seb128seb128/* * file: form_work.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_work.h" #include "app.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" struct _RubricaFormWorkPrivate { GtkWidget* role; GtkWidget* org; GtkWidget* dep; GtkWidget* subdep; GtkWidget* manager; GtkWidget* mphone; GtkWidget* helper; GtkWidget* cphone; gboolean dispose_has_run; }; static void rubrica_form_work_class_init (RubricaFormWorkClass* klass); static void rubrica_form_work_init (RubricaFormWork* obj); static void rubrica_form_work_dispose (RubricaFormWork* obj); static void rubrica_form_work_finalize (RubricaFormWork* obj); static void form_work_extract_data (RubricaFormWork* form, RCard *card); static void form_work_display_data (RubricaFormWork* form, RCard *card); static void form_work_clean_form (RubricaFormWork* form); static RubricaFormClass* parent_class; GType rubrica_form_work_get_type() { static GType form_work_type = 0; if (!form_work_type) { static const GTypeInfo form_work_info = { sizeof(RubricaFormWorkClass), NULL, NULL, (GClassInitFunc) rubrica_form_work_class_init, NULL, NULL, sizeof(RubricaFormWork), 0, (GInstanceInitFunc) rubrica_form_work_init }; form_work_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormWork", &form_work_info, 0); } return form_work_type; } static void rubrica_form_work_class_init(RubricaFormWorkClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_work_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_work_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_work_extract_data; parent_class->display_data = (gpointer) form_work_display_data; parent_class->clean_form = (gpointer) form_work_clean_form; } static void rubrica_form_work_init(RubricaFormWork* self) { self->priv = g_new(RubricaFormWorkPrivate, 1); self->priv->role = NULL; self->priv->org = NULL; self->priv->dep = NULL; self->priv->subdep = NULL; self->priv->manager = NULL; self->priv->mphone = NULL; self->priv->helper = NULL; self->priv->cphone = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_work_dispose (RubricaFormWork* self) { g_return_if_fail(IS_RUBRICA_FORM_WORK(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->role); g_object_unref(self->priv->org); g_object_unref(self->priv->dep); g_object_unref(self->priv->subdep); g_object_unref(self->priv->manager); g_object_unref(self->priv->mphone); g_object_unref(self->priv->helper); g_object_unref(self->priv->cphone); self->priv->dispose_has_run = TRUE; } static void rubrica_form_work_finalize (RubricaFormWork* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } static void form_work_extract_data (RubricaFormWork* form, RCard *card) { RWork* work; const gchar *role = NULL, *org = NULL, *dep = NULL; const gchar *subdep = NULL, *manager = NULL, *mphone = NULL; const gchar *helper = NULL, *cphone = NULL; gboolean write_card = FALSE; g_return_if_fail(IS_R_CARD(card)); role = gtk_entry_get_text(GTK_ENTRY(form->priv->role)); org = gtk_entry_get_text(GTK_ENTRY(form->priv->org)); dep = gtk_entry_get_text(GTK_ENTRY(form->priv->dep)); subdep = gtk_entry_get_text(GTK_ENTRY(form->priv->subdep)); manager = gtk_entry_get_text(GTK_ENTRY(form->priv->manager)); mphone = gtk_entry_get_text(GTK_ENTRY(form->priv->mphone)); helper = gtk_entry_get_text(GTK_ENTRY(form->priv->helper)); cphone = gtk_entry_get_text(GTK_ENTRY(form->priv->cphone)); work = r_work_new(); if (role && (g_ascii_strcasecmp(role, "") != 0)) { g_object_set(work, "assignment", role, NULL); write_card = TRUE; } if (org && (g_ascii_strcasecmp(org, "") != 0)) { g_object_set(work, "organization", org, NULL); write_card = TRUE; } if (dep && (g_ascii_strcasecmp(dep, "") != 0)) { g_object_set(work, "department", dep, NULL); write_card = TRUE; } if (subdep && (g_ascii_strcasecmp(subdep, "") != 0)) { g_object_set(work, "sub-department", subdep, NULL); write_card = TRUE; } if (manager && (g_ascii_strcasecmp(manager, "") != 0)) { g_object_set(work, "manager-name", manager, NULL); write_card = TRUE; } if (mphone && (g_ascii_strcasecmp(mphone, "") != 0)) { g_object_set(work, "manager-phone", mphone, NULL); write_card = TRUE; } if (helper && (g_ascii_strcasecmp(helper, "") != 0)) { g_object_set(work, "collaborator", helper, NULL); write_card = TRUE; } if (cphone && (g_ascii_strcasecmp(cphone, "") != 0)) { g_object_set(work, "collaborator-phone", cphone, NULL); write_card = TRUE; } if (write_card) r_personal_card_set_work(R_PERSONAL_CARD(card), work); else r_work_free(work); } static void form_work_display_data (RubricaFormWork* form, RCard *card) { RWork* work = NULL; gchar *role, *org, *dep, *subdep, *manager, *mphone, *helper, *cphone; work = r_personal_card_get_work (R_PERSONAL_CARD(card)); if (!IS_R_WORK(work)) return; g_object_get(work, "assignment", &role, "organization", &org, "department", &dep, "sub-department", &subdep, "manager-name", &manager, "manager-phone", &mphone, "collaborator", &helper, "collaborator-phone", &cphone, NULL); if (role) gtk_entry_set_text(GTK_ENTRY(form->priv->role), role); if (org) gtk_entry_set_text(GTK_ENTRY(form->priv->org), org); if (dep) gtk_entry_set_text(GTK_ENTRY(form->priv->dep), dep); if (subdep) gtk_entry_set_text(GTK_ENTRY(form->priv->subdep), subdep); if (manager) gtk_entry_set_text(GTK_ENTRY(form->priv->manager), manager); if (mphone) gtk_entry_set_text(GTK_ENTRY(form->priv->mphone), mphone); if (helper) gtk_entry_set_text(GTK_ENTRY(form->priv->helper), helper); if (cphone) gtk_entry_set_text(GTK_ENTRY(form->priv->cphone), cphone); } static void form_work_clean_form (RubricaFormWork* form) { gtk_entry_set_text(GTK_ENTRY(form->priv->role), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->org), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->dep), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->subdep), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->manager), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->mphone), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->helper), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->cphone), ""); } /* ***************************** Public ***************************** */ /** * rubrica_form_work_new * * create a #RubricaFormWork * * Returns: a new #RubricaFormWork */ RubricaFormWork* rubrica_form_work_new(RubricaApp* app, GladeXML *gui) { RubricaFormWork* form; form = g_object_new(rubrica_form_work_get_type(), NULL); form->priv->role = glade_xml_get_widget(gui, "role"); form->priv->org = glade_xml_get_widget(gui, "org"); form->priv->dep = glade_xml_get_widget(gui, "dep"); form->priv->subdep = glade_xml_get_widget(gui, "subdep"); form->priv->manager = glade_xml_get_widget(gui, "manager"); form->priv->mphone = glade_xml_get_widget(gui, "mphone"); form->priv->helper = glade_xml_get_widget(gui, "helper"); form->priv->cphone = glade_xml_get_widget(gui, "cphone"); return form; } /** * rubrica_form_work_free * @form: a #RubricaFormWork * * free the #RubricaFormWork */ void rubrica_form_work_free(RubricaFormWork* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/tab.h0000644000175000017500000000465610617433024013315 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #ifndef _RUBRICA_TAB_H #define _RUBRICA_TAB_H G_BEGIN_DECLS #define RUBRICA_TAB_TYPE (rubrica_tab_get_type()) #define RUBRICA_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_TAB_TYPE, RubricaTab)) #define RUBRICA_TAB_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ RUBRICA_TAB_TYPE, RubricaTabClass)) #define IS_RUBRICA_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_TAB_TYPE)) #define IS_RUBRICA_TAB_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_TAB_TYPE)) #define RUBRICA_TAB_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_TAB_TYPE, RubricaTabClass) typedef struct _RubricaTab RubricaTab; typedef struct _RubricaTabClass RubricaTabClass; typedef struct _RubricaTabPrivate RubricaTabPrivate; struct _RubricaTab { GtkHBox parent; RubricaTabPrivate* priv; }; struct _RubricaTabClass { GtkHBoxClass parent_class; }; GType rubrica_tab_get_type (void); GtkWidget* rubrica_tab_new (GtkWidget* brother); GtkWidget* rubrica_tab_new_with_label (GtkWidget* brother, gchar* label); void rubrica_tab_free (RubricaTab* tab); GtkWidget* rubrica_tab_get_label (RubricaTab* tab); GtkWidget* rubrica_tab_get_button (RubricaTab* tab); void rubrica_tab_set_brother (RubricaTab* tab, GtkWidget* brother); GtkWidget* rubrica_tab_get_brother (RubricaTab* tab); G_END_DECLS #endif rubrica-2.0/src/form_contact.c0000644000175000017500000002705410617654203015221 0ustar seb128seb128/* * file: form_contact.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_contact.h" #include "app.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" #include "themes.h" #include "calendar.h" enum { MALE = 0, FEMALE }; struct _RubricaFormContactPrivate { GtkWidget* fn; GtkWidget* sn; GtkWidget* ln; GtkWidget* nick; GtkWidget* prof; GtkWidget* title; GtkWidget* prefix; GtkWidget* genre; GtkWidget* birth; GtkWidget* birth_box; GtkWidget* photo_bt; GtkWidget* photo; gchar* photo_uri; gboolean dispose_has_run; }; static void rubrica_form_contact_class_init (RubricaFormContactClass* klass); static void rubrica_form_contact_init (RubricaFormContact* obj); static void rubrica_form_contact_dispose (RubricaFormContact* obj); static void rubrica_form_contact_finalize (RubricaFormContact* obj); static void form_contact_extract_data (RubricaFormContact* form, RCard *card); static void form_contact_display_data (RubricaFormContact* form, RCard *card); static void form_contact_clean_form (RubricaFormContact* form, RCard *card); static RubricaFormClass* parent_class; GType rubrica_form_contact_get_type() { static GType form_contact_type = 0; if (!form_contact_type) { static const GTypeInfo form_contact_info = { sizeof(RubricaFormContactClass), NULL, NULL, (GClassInitFunc) rubrica_form_contact_class_init, NULL, NULL, sizeof(RubricaFormContact), 0, (GInstanceInitFunc) rubrica_form_contact_init }; form_contact_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormContact", &form_contact_info, 0); } return form_contact_type; } static void rubrica_form_contact_class_init(RubricaFormContactClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_contact_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_contact_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_contact_extract_data; parent_class->display_data = (gpointer) form_contact_display_data; parent_class->clean_form = (gpointer) form_contact_clean_form; } static void rubrica_form_contact_init(RubricaFormContact* self) { self->priv = g_new(RubricaFormContactPrivate, 1); self->priv->fn = NULL; self->priv->sn = NULL; self->priv->ln = NULL; self->priv->nick = NULL; self->priv->prof = NULL; self->priv->title = NULL; self->priv->prefix = NULL; self->priv->genre = NULL; self->priv->birth = NULL; self->priv->photo_bt = NULL; self->priv->photo = NULL; self->priv->photo_uri = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_contact_dispose (RubricaFormContact* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->fn); g_object_unref(self->priv->sn); g_object_unref(self->priv->ln); g_object_unref(self->priv->nick); g_object_unref(self->priv->prof); g_object_unref(self->priv->prefix); g_object_unref(self->priv->title); g_object_unref(self->priv->genre); g_object_unref(self->priv->birth); g_object_unref(self->priv->photo); g_object_unref(self->priv->photo_bt); if (self->priv->photo_uri) g_free(self->priv->photo_uri); self->priv->dispose_has_run = TRUE; } static void rubrica_form_contact_finalize (RubricaFormContact* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } static void form_contact_extract_data (RubricaFormContact* form, RCard *card) { RContact* contact; gint day = 0, month = 0, year = 0, genre; g_return_if_fail(IS_R_CARD(card)); contact = r_contact_new(); g_object_set(contact, "first-name", gtk_entry_get_text(GTK_ENTRY(form->priv->fn)), "middle-name",gtk_entry_get_text(GTK_ENTRY(form->priv->sn)), "last-name", gtk_entry_get_text(GTK_ENTRY(form->priv->ln)), "nick-name", gtk_entry_get_text(GTK_ENTRY(form->priv->nick)), "profession", gtk_entry_get_text(GTK_ENTRY(form->priv->prof)), "title", gtk_entry_get_text(GTK_ENTRY(form->priv->title)), "prefix", gtk_entry_get_text(GTK_ENTRY(form->priv->prefix)), "photo", form->priv->photo_uri, NULL); g_object_get(form->priv->birth, "calendar-day", &day, "calendar-month", &month, "calendar-year", &year, NULL); r_contact_set_birthday(contact, day, month, year); genre = gtk_combo_box_get_active (GTK_COMBO_BOX(form->priv->genre)); genre == MALE ? g_object_set(contact, "genre", "male", NULL) : g_object_set(contact, "genre", "female", NULL); r_personal_card_set_contact(R_PERSONAL_CARD(card), contact); } static void form_contact_display_data (RubricaFormContact* form, RCard *card) { RContact* contact; RDate* birth; GtkImage *image; GdkPixbuf *pixbuf; gchar *first, *middle, *last, *nick, *prof, *pref, *genre; gchar *title, *photo; gint day, month, year; contact = r_personal_card_get_contact (R_PERSONAL_CARD(card)); birth = r_contact_get_birthday(contact); g_object_get(contact, "first-name", &first, "middle-name", &middle, "last-name", &last, "nick-name", &nick, "profession", &prof, "prefix", &pref, "genre", &genre, "title", &title, "photo", &photo, NULL); g_object_get(birth, "day", &day, "month", &month, "year", &year, NULL); g_object_set(form->priv->birth, "calendar-day", day, "calendar-month", month, "calendar-year", year, NULL); if (first) gtk_entry_set_text(GTK_ENTRY(form->priv->fn), first); if (middle) gtk_entry_set_text(GTK_ENTRY(form->priv->sn), middle); if (last) gtk_entry_set_text(GTK_ENTRY(form->priv->ln), last); if (nick) gtk_entry_set_text(GTK_ENTRY(form->priv->nick), nick); if (prof) gtk_entry_set_text(GTK_ENTRY(form->priv->prof), prof); if (title) gtk_entry_set_text(GTK_ENTRY(form->priv->title), title); if (pref) gtk_entry_set_text(GTK_ENTRY(form->priv->prefix), pref); if (photo) form->priv->photo_uri = g_strdup(photo); if (!genre || (g_ascii_strcasecmp(genre, "male") == 0)) gtk_combo_box_set_active (GTK_COMBO_BOX(form->priv->genre), MALE); else gtk_combo_box_set_active (GTK_COMBO_BOX(form->priv->genre), FEMALE); if (photo) { image = (GtkImage*) form->priv->photo; pixbuf = gdk_pixbuf_new_from_file_at_size (photo, 124, 124, NULL); gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); } } static void form_contact_clean_form (RubricaFormContact* form, RCard *card) { GtkIconTheme* theme; GtkImage *image; GdkPixbuf *pixbuf; gtk_entry_set_text(GTK_ENTRY(form->priv->fn), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->sn), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->ln), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->nick), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prof), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->title), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prefix), ""); rubrica_calendar_clean(RUBRICA_CALENDAR(form->priv->birth)); gtk_combo_box_set_active (GTK_COMBO_BOX(form->priv->genre), MALE); theme = gtk_icon_theme_get_default(); image = (GtkImage*) form->priv->photo; pixbuf = gtk_icon_theme_load_icon (theme, "photo", 48, 0, NULL); gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); g_free(form->priv->photo_uri); form->priv->photo_uri = NULL; } /* Callbacks */ void form_add_photo(GtkWidget* button, gpointer data) { RubricaFormContact* form = (RubricaFormContact*) data; GtkImage* image; GdkPixbuf *pixbuf; GtkIconTheme* theme; gchar* uri = NULL; theme = gtk_icon_theme_get_default(); image = (GtkImage*) form->priv->photo; uri = rubrica_themes_load_pixmap(button, image); if (uri) { pixbuf = gdk_pixbuf_new_from_file_at_size (uri, 124, 124, NULL); form->priv->photo_uri = g_strdup(uri); } else if (form->priv->photo_uri) pixbuf = gdk_pixbuf_new_from_file_at_size (form->priv->photo_uri, 124, 124, NULL); else { pixbuf = gtk_icon_theme_load_icon (theme, "photo", 48, 0, NULL); g_free(form->priv->photo_uri); form->priv->photo_uri = NULL; } gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); } /* ***************************** Public ***************************** */ /** * rubrica_form_contact_new * * create a #RubricaFormContact * * Returns: a new #RubricaFormContact */ RubricaFormContact* rubrica_form_contact_new(RubricaApp* app, GladeXML *gui) { RubricaFormContact* form; GtkWidget* birth_box; GtkWidget* genre_box; GtkWidget* genre_label; GtkWidget* birth_label; GtkWidget* button; form = g_object_new(rubrica_form_contact_get_type(), NULL); form->priv->fn = glade_xml_get_widget(gui, "fn"); form->priv->nick = glade_xml_get_widget(gui, "nick"); form->priv->sn = glade_xml_get_widget(gui, "sn"); form->priv->ln = glade_xml_get_widget(gui, "ln"); form->priv->prof = glade_xml_get_widget(gui, "prof"); form->priv->title = glade_xml_get_widget(gui, "title"); form->priv->prefix = glade_xml_get_widget(gui, "prefix"); form->priv->photo_bt = glade_xml_get_widget(gui, "photo_bt"); form->priv->photo = glade_xml_get_widget(gui, "img"); genre_box = glade_xml_get_widget(gui, "genre_box"); genre_label = glade_xml_get_widget(gui, "genre_label"); birth_label = glade_xml_get_widget(gui, "birth_label"); birth_box = glade_xml_get_widget(gui, "birthday_box"); form->priv->birth = rubrica_calendar_new(); button = rubrica_calendar_get_button(RUBRICA_CALENDAR(form->priv->birth)); gtk_box_pack_start(GTK_BOX(birth_box), form->priv->birth, TRUE, TRUE, 0); gtk_label_set_mnemonic_widget(GTK_LABEL(birth_label), button); gtk_widget_show(form->priv->birth); form->priv->genre = gtk_combo_box_new_text(); gtk_box_pack_start(GTK_BOX(genre_box), form->priv->genre, TRUE, TRUE, 0); gtk_label_set_mnemonic_widget(GTK_LABEL(genre_label), form->priv->genre); gtk_widget_show(form->priv->genre); gtk_combo_box_append_text(GTK_COMBO_BOX(form->priv->genre), _("male")); gtk_combo_box_append_text(GTK_COMBO_BOX(form->priv->genre), _("female")); gtk_combo_box_set_active (GTK_COMBO_BOX(form->priv->genre), MALE); g_signal_connect (G_OBJECT (form->priv->photo_bt), "clicked", G_CALLBACK(form_add_photo), form); return form; } /** * rubrica_form_contact_free * @form: a #RubricaFormContact * * free the #RubricaFormContact */ void rubrica_form_contact_free(RubricaFormContact* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/browse.c0000644000175000017500000001617610617433024014043 0ustar seb128seb128/* * Rubrica * file: browse.c * * * Copyright (C) 2000-2001 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* routine per la nagivazione delle schede inserite */ #include #include "libral.h" #include "browse.h" #include "app.h" #include "view.h" #include "cards_view.h" #include "data_view.h" #include "types.h" void rubrica_browse_first_card(RubricaApp* app) { RAbook* book; GtkWidget* card_view; GtkTreeView *view; GtkTreeModel *model; GtkTreeIter iter; GtkTreePath *path; GtkTreeSelection *select; gpointer card; glong id; book = rubrica_app_get_active_addressbook(app); card_view = rubrica_app_get_current_view(app); view = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(card_view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(model), &iter)) { path = gtk_tree_model_get_path(model, &iter); gtk_tree_selection_select_iter(select, &iter); gtk_tree_view_scroll_to_cell(view, path, NULL, FALSE, 0.5, 0.0); gtk_tree_model_get(model, &iter, ID_COLUMN, &id, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data(RUBRICA_APP(app), card); gtk_tree_path_free(path); /* enable/disable navigation buttons */ rubrica_app_enable_previouses(app, FALSE); rubrica_app_enable_nexts(app, TRUE); } } void rubrica_browse_last_card(RubricaApp* app) { RAbook* book; GtkTreeModel *model; GtkTreeIter iter; GtkTreePath *path; GtkWidget* card_view; GtkTreeView *view; GtkTreeSelection *select; gpointer card; glong id; gint n; book = rubrica_app_get_active_addressbook(app); card_view = rubrica_app_get_current_view(app); view = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(card_view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); n = gtk_tree_model_iter_n_children(model, NULL); if (gtk_tree_model_iter_nth_child(model, &iter, NULL, n-1)) { path = gtk_tree_model_get_path(model, &iter); gtk_tree_selection_select_iter(select, &iter); gtk_tree_view_scroll_to_cell(view, path, NULL, FALSE, 0.5, 0.0); gtk_tree_model_get(model, &iter, ID_COLUMN, &id, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data (RUBRICA_APP(app), card); gtk_tree_path_free(path); /* enable/disable navigation buttons */ rubrica_app_enable_nexts(app, FALSE); rubrica_app_enable_previouses(app, TRUE); } } void rubrica_browse_next_card(RubricaApp* app) { RAbook* book; GtkTreeModel *model; GtkTreeIter iter; GtkWidget* card_view; GtkTreeView *view; GtkTreePath *path; GtkTreeSelection *select; gpointer card; glong id; book = rubrica_app_get_active_addressbook(app); card_view = rubrica_app_get_current_view(app); view = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(card_view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); if (gtk_tree_selection_get_selected(select, NULL, &iter)) { path = gtk_tree_model_get_path(model, &iter); gtk_tree_path_next(path); gtk_tree_selection_select_path(select, path); gtk_tree_view_scroll_to_cell(view, path, NULL, FALSE, 0.5, 0.0); if (gtk_tree_model_get_iter(model, &iter, path)) { gtk_tree_model_get(model, &iter, ID_COLUMN, &id, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data(RUBRICA_APP(app), card); /* check next/previous cards */ rubrica_app_enable_previouses(app, TRUE); if (gtk_tree_model_iter_next(model, &iter)) rubrica_app_enable_nexts(app, TRUE); else rubrica_app_enable_nexts(app, FALSE); } gtk_tree_path_free(path); } } void rubrica_browse_previous_card(RubricaApp* app) { RAbook* book; GtkTreeModel *model; GtkTreeIter iter; GtkWidget* card_view; GtkTreeView *view; GtkTreePath *path; GtkTreeSelection *select; gpointer card; glong id; book = rubrica_app_get_active_addressbook(app); card_view = rubrica_app_get_current_view(app); view = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(card_view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); if (gtk_tree_selection_get_selected(select, NULL, &iter)) { path = gtk_tree_model_get_path(model, &iter); gtk_tree_path_prev(path); gtk_tree_selection_select_path(select, path); gtk_tree_view_scroll_to_cell(view, path, NULL, TRUE, 0.5, 0.0); if (gtk_tree_model_get_iter(model, &iter, path)) { rubrica_app_enable_nexts(app, TRUE); rubrica_app_enable_previouses(app, TRUE); gtk_tree_model_get(model, &iter, ID_COLUMN, &id, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data(RUBRICA_APP(app), card); /* check next/previous cards */ rubrica_app_enable_nexts(app, TRUE); if (gtk_tree_path_prev(path)) rubrica_app_enable_previouses(app, TRUE); else rubrica_app_enable_previouses(app, FALSE); } gtk_tree_path_free(path); } } void rubrica_browse_nth_card(RubricaApp* app, gchar *path_str) { RAbook* book; GtkWidget* card_view; GtkTreeModel *model; GtkTreeIter iter; GtkTreeView *view; GtkTreeSelection *select; GtkTreePath *path; gpointer card; glong id; book = rubrica_app_get_active_addressbook(app); card_view = rubrica_app_get_current_view(app); view = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(card_view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); select = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); path = gtk_tree_path_new_from_string(path_str); gtk_tree_selection_unselect_all(select); gtk_tree_selection_select_path(select, path); gtk_tree_view_scroll_to_cell(view, path, NULL, TRUE, 0.5, 0.0); if (gtk_tree_model_get_iter(model, &iter, path)) { gtk_tree_model_get(model, &iter, ID_COLUMN, &id, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data(RUBRICA_APP(app), card); } gtk_tree_path_free(path); } rubrica-2.0/src/form_card.c0000644000175000017500000002161610617433024014471 0ustar seb128seb128/* * file: form_card.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_card.h" #include "app.h" #include "view.h" #include "groups_view.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "themes.h" struct _RubricaFormCardPrivate { RGroupBox* groups; GtkWidget* card; GtkWidget* groups_view; GtkWidget* lock; GtkWidget* rate; gboolean dispose_has_run; }; RubricaThemedItem faces[] = { {N_("None"), "rate1"}, // R_RATE_NONE {N_("Few"), "rate2"}, // R_RATE_FEW {N_("Normal"), "rate3"}, // R_RATE_NORMAL {N_("Hight"), "rate4"}, // R_RATE_HIGHT {N_("Very hight"), "rate5"}, // R_RATE_VERY_HIGHT {NULL} }; static void rubrica_form_card_class_init (RubricaFormCardClass* klass); static void rubrica_form_card_init (RubricaFormCard* obj); static void rubrica_form_card_dispose (RubricaFormCard* obj); static void rubrica_form_card_finalize (RubricaFormCard* obj); static gboolean extract_groups (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); static void form_card_extract_data (RubricaFormCard* form, RCard *card); static void form_card_display_data (RubricaFormCard* form, RCard *card); static void form_card_clean_form (RubricaFormCard* form); static RubricaFormClass* parent_class; GType rubrica_form_card_get_type() { static GType form_card_type = 0; if (!form_card_type) { static const GTypeInfo form_card_info = { sizeof(RubricaFormCardClass), NULL, NULL, (GClassInitFunc) rubrica_form_card_class_init, NULL, NULL, sizeof(RubricaFormCard), 0, (GInstanceInitFunc) rubrica_form_card_init }; form_card_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormCard", &form_card_info, 0); } return form_card_type; } static void rubrica_form_card_class_init(RubricaFormCardClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_card_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_card_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_card_extract_data; parent_class->display_data = (gpointer) form_card_display_data; parent_class->clean_form = (gpointer) form_card_clean_form; } static void rubrica_form_card_init(RubricaFormCard* self) { self->priv = g_new(RubricaFormCardPrivate, 1); self->priv->groups = NULL; self->priv->card = NULL; self->priv->lock = NULL; self->priv->rate = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_card_dispose (RubricaFormCard* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->card); g_object_unref(self->priv->lock); g_object_unref(self->priv->rate); self->priv->dispose_has_run = TRUE; } static void rubrica_form_card_finalize (RubricaFormCard* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } static gboolean extract_groups (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { RCard* card = (RCard*) data; gchar* name = NULL; gchar* label = NULL; gchar* owner = NULL; gchar* uri = NULL; gboolean belong = FALSE; gtk_tree_model_get(model, iter, GROUP_BELONG_COLUMN, &belong, GROUP_NAME_COLUMN, &name, GROUP_LABEL_COLUMN, &label, GROUP_OWNER_COLUMN, &owner, GROUP_PIXMAP_PATH, &uri, -1); if (belong) { RGroup* group; group = r_group_new(); g_object_set(group, "group-name", name, "group-label", label, "group-owner", owner, "group-pixmap", uri, "enabled", TRUE, NULL); r_card_add_group(R_CARD(card), group); belong = FALSE; } return FALSE; } static void form_card_extract_data (RubricaFormCard* form, RCard *card) { GtkWidget *tree; GtkTreeModel *model = NULL; const gchar *name; gboolean lock; gint rate; name = gtk_entry_get_text(GTK_ENTRY(form->priv->card)); lock = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->lock)); rate = gtk_combo_box_get_active(GTK_COMBO_BOX(form->priv->rate)); g_object_set(R_CARD(card), "card-locked", lock, "card-deleted", FALSE, "card-marked", FALSE, "card-name", name, "card-rate", rate, NULL); /* extract groups's data */ tree = rubrica_view_get_tree(RUBRICA_VIEW(form->priv->groups_view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); if (model) { gtk_tree_model_foreach(GTK_TREE_MODEL(model), extract_groups, card); g_object_unref(model); } } static void form_card_display_data (RubricaFormCard* form, RCard *card) { GtkWidget* tree; gpointer data; gchar* name; gboolean locked; RRate rate; tree = rubrica_view_get_tree(RUBRICA_VIEW(form->priv->groups_view)); g_object_get(R_CARD(card), "card-name", &name, "card-locked", &locked, "card-rate", &rate, NULL); gtk_entry_set_text(GTK_ENTRY(form->priv->card), name); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->lock), locked); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->rate), rate); r_group_box_disable_all (form->priv->groups); data = r_card_get_group(R_CARD(card)); for (; data; data = r_card_get_next_group(R_CARD(card))) r_group_box_enable_group(form->priv->groups, data); rubrica_model_redisplay_groups_view(GTK_TREE_VIEW(tree), form->priv->groups); } static void form_card_clean_form (RubricaFormCard* form) { GtkWidget* tree; tree = rubrica_view_get_tree(RUBRICA_VIEW(form->priv->groups_view)); gtk_entry_set_text(GTK_ENTRY(form->priv->card), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->lock), FALSE); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->rate), R_RATE_NORMAL); r_group_box_disable_all (form->priv->groups); rubrica_model_redisplay_groups_view(GTK_TREE_VIEW(tree), form->priv->groups); } /* ***************************** Public ***************************** */ /** * rubrica_form_card_new * * create a #RubricaFormCard * * Returns: a new #RubricaFormCard */ RubricaFormCard* rubrica_form_card_new(RubricaApp* app, GladeXML *gui) { RubricaFormCard *form; GtkWidget* tree; GtkWidget* rate_box; GtkWidget* group_box; GtkWidget* rate_label; GtkTreeModel* model; model = rubrica_model_combo_new(); form = g_object_new(rubrica_form_card_get_type(), NULL); form->priv->card = glade_xml_get_widget(gui, "card"); form->priv->lock = glade_xml_get_widget(gui, "lock"); form->priv->rate = gtk_combo_box_new_with_model(model); form->priv->groups = rubrica_app_get_groups(app); form->priv->groups_view = rubrica_groups_view_new(form->priv->groups, FORM_GROUPS); group_box = glade_xml_get_widget(gui, "group_box"); rate_box = glade_xml_get_widget(gui, "rate_box"); rate_label = glade_xml_get_widget(gui, "rate_label"); gtk_box_pack_start(GTK_BOX(group_box), form->priv->groups_view, TRUE, TRUE, 6); gtk_box_pack_start(GTK_BOX(rate_box), form->priv->rate, TRUE, TRUE, 6); gtk_label_set_mnemonic_widget(GTK_LABEL(rate_label), form->priv->rate); rubrica_themes_create_themed_list(GTK_COMBO_BOX(form->priv->rate), faces); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->rate), R_RATE_NORMAL); gtk_widget_show(form->priv->rate); tree = rubrica_view_get_tree(RUBRICA_VIEW(form->priv->groups_view)); g_signal_connect(GTK_OBJECT (tree), "button_press_event", G_CALLBACK (on_form_group_view_event_occurred), form->priv->groups_view); gtk_widget_show(group_box); gtk_widget_show(form->priv->groups_view); return form; } /** * rubrica_form_card_free * @form: a #RubricaFormCard * * free the #RubricaFormCard */ void rubrica_form_card_free(RubricaFormCard* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/utils.c0000644000175000017500000000444310637705400013676 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "utils.h" #include "types.h" void rubrica_utils_add_filters(GtkWidget* chooser) { RPluginManager* manager; GList* filters = NULL; GtkFileFilter* filefilter; manager = r_lib_get_manager(); filters = r_plugin_manager_get_all_filters(manager); for (; filters; filters = filters->next) { gchar *name, *mime, *pattern; RFilter* filter = (RFilter*) filters->data; filefilter = gtk_file_filter_new(); g_object_get(filter, "filter-name", &name, "filter-mime", &mime, NULL); gtk_file_filter_set_name (filefilter, name); gtk_file_filter_add_mime_type (filefilter, mime); r_filter_reset(filter); pattern = r_filter_get_pattern(filter); for (; pattern; pattern = r_filter_get_next_pattern(filter)) gtk_file_filter_add_pattern(filefilter, pattern); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(chooser), filefilter); } } void rubrica_utils_enable_filter(GtkFileChooser* chooser, const gchar* filter_name) { GSList* filters = NULL; const gchar* filter; filter = g_ascii_strdown(filter_name, -1); filters = gtk_file_chooser_list_filters (chooser); for (; filters; filters = filters->next) { const gchar *name = NULL; name = gtk_file_filter_get_name(GTK_FILE_FILTER(filters->data)); if (g_ascii_strcasecmp(name, filter) == 0) gtk_file_chooser_set_filter(chooser, GTK_FILE_FILTER(filters->data)); } } rubrica-2.0/src/app.c0000644000175000017500000014305710637710112013317 0ustar seb128seb128/* * Rubrica * file: app.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "types.h" #include "app.h" #include "models.h" #include "cards.h" #include "callbacks.h" #include "preferences.h" #include "groups_cb.h" #include "popmenu.h" #include "cards_view.h" #include "trash_view.h" #include "search_view.h" #include "data_view.h" #include "groups_view.h" #include "search_dialog.h" #include "statusbar.h" #include "tab.h" #include "utils.h" /* pixmap, name, label */ static RubricaDefaultCategories defcats[] = { {"all", "all groups", N_("all groups") }, {"emblem-special", "favorites", N_("favorites") }, {"flame", "hot contacts", N_("hot contacts") }, {"system-users", "friends", N_("friends") }, {"emblem-favorite", "heart", N_("heart") }, {"go-home", "relatives", N_("relatives") }, {"emblem-photos", "holidays", N_("holidays") }, {"applications-multimedia", "hobbies", N_("hobbies") }, {"sport", "sport", N_("sport") }, {"bussines", "bussines", N_("bussines") }, {"system-file-manager", "company", N_("company") }, {"application-certificate", "legal", N_("legal") }, {"applications-office", "office", N_("office") }, {"applications-development", "work", N_("work") }, {"customer", "customers", N_("customers") }, {"strategies", "strategies", N_("strategies") }, {"gnu", "free software", N_("free software")}, {"tux", "programmers", N_("programmers") }, {"freebsd", "BSD friends", N_("BSD friends") }, {"university", "university", N_("university") }, {NULL, NULL} }; typedef struct _RubricaMenu { GtkWidget* menubar; GtkWidget* new; GtkWidget* open; GtkWidget* save; GtkWidget* saveas; GtkWidget* quit; GtkWidget* cut; GtkWidget* copy; GtkWidget* paste; GtkWidget* personal; GtkWidget* company; GtkWidget* modify; GtkWidget* delete; GtkWidget* prefer; GtkWidget* about; } RubricaMenu; typedef struct _RubricaToolbar { GtkWidget* handle; GtkWidget* toolbar; GtkWidget* new; GtkWidget* open; GtkWidget* save; GtkWidget* print; GtkWidget* close; GtkWidget* add; GtkWidget* choose; GtkWidget* delete; GtkWidget* modify; GtkWidget* next; GtkWidget* previous; GtkWidget* first; GtkWidget* last; GtkWidget* trash; GtkWidget* search; GtkWidget* quit; } RubricaToolbar; struct _RubricaAppPrivate { RGroupBox *groups; // rubrica's groups RubricaMenu *menu; RubricaToolbar *toolbar; GtkWidget *statusbar; GtkWidget *notebook; // contains addressbooks (CardsView) GtkWidget *groups_view; GtkWidget *trash_view; // trash notebook's page (TrashView) GtkWidget *search_view; // search notebook's page (SearchView) GtkWidget *data_view; // dispay card's data (DataView) GList *cutted; // stack of cutted cards gboolean dispose_has_run; }; /* signals enumeration */ static void rubrica_app_class_init (RubricaAppClass* klass); static void rubrica_app_init (RubricaApp* obj); static void rubrica_app_dispose (RubricaApp* obj); static void rubrica_app_finalize (RubricaApp* obj); /* Private */ static void init_group_box (RGroupBox* box); static void add_card_groups2set (RubricaApp* app, RCard* card); static RubricaMenu* build_menu (GladeXML* gui, RubricaApp* app); static RubricaToolbar* build_toolbar (GladeXML* gui, RubricaApp* app); static GtkWidget* find_addressbook (RubricaApp* app, RAbook* book); static void load_addressbooks (RubricaApp* app); static void save_addressbook (RubricaApp* app, RAbook* book); static void display_cards_list (RubricaApp* app, GList *ids); static GtkWidget* get_current_tab (RubricaApp* app); static GtkWidget* get_current_tab_label (RubricaApp* app); static gchar* get_current_tab_label_text (RubricaApp* app); /* Private callbacks */ static void on_trash_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data); static void on_search_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data); static void hide_trash_on_click (GtkWidget* button, gpointer data); static void hide_search_on_click (GtkWidget* button, gpointer data); static void on_card_added (RAbook* book, gpointer card, gpointer data); static void on_card_destroyed (RAbook* book, gchar* arg, gpointer data); static void on_card_deleted (RAbook* book, gpointer id, gpointer data); static void on_card_recovered (RAbook* book, gpointer card, gpointer data); static void on_card_modified (RAbook* book, gpointer card, gpointer data); static void on_show_menu_cb (GtkMenuToolButton *mtbutton, gpointer data); static void on_trash_toggled_cb (GtkToggleToolButton *toggle, gpointer data); static void on_addressbook_changed (RAbook* book, gpointer data); static void on_addressbook_saved (RAbook* book, gpointer data); static void on_addressbook_save_fail (RAbook* book, gint err, gpointer data); static void on_autosave_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data); static void on_launch_cb (GtkWidget* data_view, gpointer link, gpointer data); static void on_cards_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data); static void on_app_view_changed (GtkWidget* view, gchar* message, gpointer data); static void on_cards_view_changed (GtkWidget* view, gchar* message, gpointer data); /* Private */ static void init_group_box(RGroupBox* box) { RGroup* group; RubricaDefaultCategories* cat = defcats; for(; cat->label; cat++) { group = r_group_new(); g_object_set(group, "group-name", cat->label, "group-label", _(cat->label), "group-owner", "rubrica", "group-pixmap", cat->pixmap, "enabled", FALSE, NULL); r_group_box_add_group(box, group); } } static void add_card_groups2set(RubricaApp* app, RCard* card) { RGroup* group; r_card_reset_group(card); group = r_card_get_group(card); for(; group; group = r_card_get_next_group(card)) r_group_box_add_group(app->priv->groups, group); } static void load_addressbooks (RubricaApp* app) { GConfClient* client; GSList* files; client = gconf_client_get_default(); files = gconf_client_get_list(client, RUBRICA_GCONF_FILES, GCONF_VALUE_STRING, NULL); for (; files; files = files->next) rubrica_app_load_file(app, (gchar*) files->data, NULL); g_object_unref(client); } static void save_addressbook(RubricaApp* app, RAbook* book) { GConfClient* client; gboolean backup; gint rate; gchar* filename = NULL; if (!book) book = rubrica_app_get_active_addressbook(app); client = gconf_client_get_default(); backup = gconf_client_get_bool(client, RUBRICA_GCONF_BACKUP, NULL); rate = gconf_client_get_int (client, RUBRICA_GCONF_RATE, NULL); g_object_get(book, "addressbook-name", &filename, NULL); if (!filename || (g_ascii_strcasecmp(_("no name"), filename) == 0)) on_saveas_cb(NULL, app); else r_abook_overwrite_file(book, backup, rate); g_object_unref(client); } static GtkWidget* get_current_tab(RubricaApp* app) { GtkWidget* child; GtkWidget* tab; gint page; page = gtk_notebook_get_current_page(GTK_NOTEBOOK(app->priv->notebook)); child = gtk_notebook_get_nth_page (GTK_NOTEBOOK(app->priv->notebook), page); g_object_get(child, "view-brother", &tab, NULL); return tab; } static GtkWidget* get_current_tab_label(RubricaApp* app) { GtkWidget* tab; GtkWidget* label = NULL; tab = get_current_tab(app); label = rubrica_tab_get_label(RUBRICA_TAB(tab)); return label; } static gchar* get_current_tab_label_text(RubricaApp* app) { GtkWidget* tab; gchar* text; tab = get_current_tab(app); g_object_get(tab, "tab-label", &text, NULL); return text; } static GtkWidget* find_addressbook (RubricaApp* app, RAbook* book) { gint n; g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); g_return_val_if_fail(IS_R_ABOOK(book), NULL); n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->priv->notebook)); for (; n; n--) { GtkWidget* view; RAbook* adb; view = gtk_notebook_get_nth_page(GTK_NOTEBOOK(app->priv->notebook), n); adb = rubrica_cards_view_get_addressbook(RUBRICA_CARDS_VIEW(view)); if (adb == book) return view; } return NULL; } static void display_cards_list(RubricaApp* app, GList *ids) { GtkWidget* view; gint cards; gchar* message; view = rubrica_app_get_current_view(app); cards = g_list_length(ids); rubrica_cards_view_display_results(RUBRICA_CARDS_VIEW(view), ids); if (cards > 1) message = g_strdup_printf(_("%d cards found"), cards); else message = g_strdup_printf(_("%d card found"), cards); rubrica_app_notify(app, message); g_free(message); } /* Callbacks */ static void on_app_view_changed(GtkWidget* view, gchar* message, gpointer data) { RubricaStatusbar* statusbar = RUBRICA_STATUSBAR(data); rubrica_statusbar_enable_extra (statusbar, FALSE); rubrica_statusbar_enable_images(statusbar, FALSE); rubrica_statusbar_push_message(statusbar, message); } static void on_cards_view_changed(GtkWidget* view, gchar* message, gpointer data) { RubricaStatusbar* statusbar = RUBRICA_STATUSBAR(data); rubrica_statusbar_enable_extra (statusbar, TRUE); rubrica_statusbar_enable_images(statusbar, TRUE); rubrica_statusbar_extra_set_text(statusbar, message); } static void on_card_added (RAbook* book, gpointer the_card, gpointer data) { RubricaApp* app = (RubricaApp*) data; RCard* card = (RCard*) the_card; rubrica_app_add_card(app, card); } static void on_card_destroyed (RAbook* book, gchar* arg, gpointer data) { gchar* message; GtkWidget* view; view = find_addressbook(RUBRICA_APP(data), book); message = g_strdup_printf(_("Card %s successfully destroyed"), arg); rubrica_app_show_message(RUBRICA_APP(data), message); rubrica_cards_view_update_infos (RUBRICA_CARDS_VIEW(view)); g_free(message); } static void on_card_deleted (RAbook* book, gpointer card, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* view; GtkWidget* trash; view = rubrica_app_get_current_view(app); trash = rubrica_app_get_trash(app); rubrica_trash_view_add_card(RUBRICA_TRASH_VIEW(trash), book, card); rubrica_cards_view_delete_card(RUBRICA_CARDS_VIEW(view), card); } static void on_card_recovered (RAbook* book, gpointer card, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* view = NULL; view = find_addressbook(app, book); if (view) rubrica_cards_view_add_card(RUBRICA_CARDS_VIEW(view), R_CARD(card)); } static void on_card_modified (RAbook* book, gpointer newcard, gpointer data) { RubricaApp *app = (RubricaApp*) data; GtkWidget *view = NULL; view = rubrica_app_get_current_view(app); rubrica_cards_view_modify_card(RUBRICA_CARDS_VIEW(view), newcard); } static void on_show_menu_cb (GtkMenuToolButton *menutoolbutton, gpointer data) { GtkMenu* menu = data; gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 1, gtk_get_current_event_time()); gtk_widget_show_all(GTK_WIDGET(menu)); } static void on_trash_toggled_cb (GtkToggleToolButton *toggle, gpointer data) { RubricaApp* app = (RubricaApp*) data; if (gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(toggle))) gtk_widget_show(app->priv->trash_view); else gtk_widget_hide(app->priv->trash_view); } static void hide_trash_on_click (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* toggle; gtk_widget_hide(GTK_WIDGET(app->priv->trash_view)); toggle = app->priv->toolbar->trash; if (gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(toggle))) gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON(toggle), FALSE); } static void hide_search_on_click (GtkWidget* button, gpointer data) { gtk_widget_hide(GTK_WIDGET(data)); } static void on_addressbook_changed(RAbook* book, gpointer data) { RubricaApp* app = (RubricaApp*) data; GConfClient* client; GtkWidget* view = NULL; GtkWidget* label; const gchar *text = NULL; gchar *markup; client = gconf_client_get_default(); view = find_addressbook(app, book); if (gconf_client_get_bool(client, RUBRICA_GCONF_AUTOSAVE, NULL)) save_addressbook(app, book); else { label = get_current_tab_label(app); // text = gtk_label_get_text(GTK_LABEL(text)); text = get_current_tab_label_text(app); markup = g_markup_printf_escaped ("%s", text); g_object_set(view, "has-changed", TRUE, NULL); gtk_label_set_markup (GTK_LABEL (label), markup); g_free (markup); } rubrica_cards_view_update_infos(RUBRICA_CARDS_VIEW(view)); g_object_unref(client); } static void on_addressbook_saved (RAbook* book, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* view = NULL; GtkWidget* tab; gchar *file, *report, *markup, *type = NULL; view = rubrica_app_get_current_view(app); g_object_get(view, "child-type", &type, NULL); if (!type || (g_ascii_strcasecmp(type, "Addressbook") != 0)) view = find_addressbook(app, book); file = rubrica_cards_view_get_addressbook_name(RUBRICA_CARDS_VIEW(view)); rubrica_cards_view_update_infos(RUBRICA_CARDS_VIEW(view)); g_object_get(view, "view-brother", &tab, "view-message", &report, NULL); rubrica_statusbar_extra_set_text(RUBRICA_STATUSBAR(app->priv->statusbar), report); markup = g_markup_printf_escaped ("%s", file); g_object_set(tab, "tab-label", markup, NULL); g_free (markup); } static void on_addressbook_save_fail (RAbook* book, gint err, gpointer data) { RubricaApp* app = (RubricaApp*) data; gchar* file; gchar* message = NULL; g_object_get(book, "addressbook-name", &file, NULL); switch (err) { case WRITING_FILE: case WRITING_XML: message = g_strdup_printf(_("Can't save the file %s"), file); break; break; case OVERWRITING: message = g_strdup_printf(_("Can't overwrite the file %s"), file); break; default: break; } rubrica_app_show_message(app, message); g_free(message); } static void on_autosave_changed(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data) { GtkWidget* button = (GtkWidget* ) data; gboolean autosave; autosave = gconf_client_get_bool(client, RUBRICA_GCONF_AUTOSAVE, NULL); gtk_widget_set_sensitive(button, !autosave); } static void on_launch_cb(GtkWidget* data_view, gpointer arg1, gpointer data) { RubricaApp* app = (RubricaApp*) data; RubricaLink* link = (RubricaLink*) arg1; GConfClient* client; GPid pid; GError *error = NULL; gchar* argv[4]; gchar* manager = NULL; if (link && link->uri) { gchar* arg = NULL; gchar* notify; gchar* message; client = gconf_client_get_default(); switch ((RubricaLinkType) link->type) { case WEB_LINK: manager = gconf_client_get_string(client, RUBRICA_GCONF_BROWSER, NULL); if (g_ascii_strcasecmp(manager, "other") == 0) manager = gconf_client_get_string(client, RUBRICA_GCONF_BROWSER_UD, NULL); arg = g_strdup_printf("%s", link->uri); break; case EMAIL_LINK: manager = gconf_client_get_string(client, RUBRICA_GCONF_EMAILS, NULL); if (g_ascii_strcasecmp(manager, "other") == 0) manager = gconf_client_get_string(client, RUBRICA_GCONF_EMAILS_UD, NULL); if (g_ascii_strcasecmp(manager, "balsa") == 0) { arg = g_strdup_printf("--compose=%s", link->uri); break; } if (g_ascii_strcasecmp(manager, "seamonkey") == 0) { arg = g_strdup_printf("mailto:%s", link->uri); break; } arg = g_strdup_printf("mailto:%s", link->uri); break; case IRC_LINK: manager = gconf_client_get_string(client, RUBRICA_GCONF_IRC, NULL); if (g_ascii_strcasecmp(manager, "other") == 0) manager = gconf_client_get_string(client, RUBRICA_GCONF_IRC_UD, NULL); arg = g_strdup_printf("-l %s", link->uri); break; case TELEPHONE_LINK: manager = g_strdup("ekiga"); arg = g_strdup_printf("-c %s", link->uri); break; default: break; } if(!g_find_program_in_path(manager)) { message = g_strdup_printf(_("\nCan't find %s in your path"), manager); rubrica_app_show_message (app, message); return; } argv[0] = manager; argv[1] = arg; argv[2] = NULL; notify = g_strdup_printf(_("Launching %s %s. Please wait..."), manager, arg); message = g_strdup_printf(_("\nLaunching %s %s.\nPlease wait..."), manager, arg); rubrica_app_notify (app, notify); rubrica_app_show_message (app, message); if (g_spawn_async ("/usr/bin", argv, NULL, // inherit parent's environment G_SPAWN_CHILD_INHERITS_STDIN, NULL, // function to run in the child before exec NULL, // user data for child_setup &pid, &error)); g_free(notify); g_free(message); } } static void on_cards_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data) { RubricaApp *app = (RubricaApp*) data; GdkEventButton *ev = (GdkEventButton *)event; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreePath *path = NULL; GtkTreeIter iter; RAbook *book; glong id; book = rubrica_app_get_active_addressbook (app); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); gtk_tree_selection_unselect_all(selection); /* if a card is selected then get card from database */ if (gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gpointer card; /* Get the selected card */ gtk_tree_selection_select_path(selection, path); gtk_tree_model_get_iter(model, &iter, path); gtk_tree_model_get(model, &iter, ID_COLUMN, &id, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); /* Do something with the card */ /* if rigth button was pressed ==> show popup menu */ if ((ev->button == 3) && (ev->type == GDK_BUTTON_PRESS)) { GtkMenu* menu; menu = (GtkMenu*) rubrica_menu_do_card_popup(RUBRICA_APP(app), tree, event); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); } /* else if the left button was pressed */ else { /* update application's window */ /* check if next/previous cards are available */ rubrica_app_enable_previouses(app, TRUE); rubrica_app_enable_nexts(app, TRUE); if (!gtk_tree_path_prev(path)) rubrica_app_enable_previouses(app, FALSE); if (!gtk_tree_model_iter_next(model, &iter)) rubrica_app_enable_nexts(app, FALSE); gtk_tree_path_free(path); if (ev->button == 1) { switch(ev->type) { case GDK_BUTTON_PRESS: /* left button clicked once ==> card selected, show it */ rubrica_app_display_card_data(RUBRICA_APP(app), card); break; case GDK_2BUTTON_PRESS: /* left button clicked twice ==> modify the selected card */ cards_modify_card(RUBRICA_APP(app), book, card); break; default: break; } } } } // end: if a card is selected else /* rigth button pressed and no cards selected ==> show popup menu */ if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) { GtkMenu* menu; menu = (GtkMenu*) rubrica_menu_do_card_popup(RUBRICA_APP(app), tree, event); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); } } static void on_trash_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkTreeIter iter; GtkTreeModel* model; GtkTreePath* path = NULL; GtkTreeSelection* selection; GdkEventButton* ev = (GdkEventButton *)event; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); /* if a card has been selected */ if (gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gtk_tree_selection_select_path(selection, path); /* left button pressed ==> show card */ if(ev->button == 1) { RAbook* book = NULL; gpointer card = NULL; glong id = 0; gtk_tree_model_get_iter(model, &iter, path); gtk_tree_path_free(path); gtk_tree_model_get(model, &iter, TRASH_ID, &id, TRASH_ADDRESSBOOK, &book, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data(RUBRICA_APP(app), card); } /* rigth button pressed ==> show popup menu */ if (ev->button == 3) { GtkMenu* menu; menu = (GtkMenu*) rubrica_menu_do_trash_popup(RUBRICA_APP(app), tree, event); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); } } } static void on_search_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkTreeIter iter; GtkTreeModel* model; GtkTreePath* path = NULL; GtkTreeSelection* selection; GdkEventButton* ev = (GdkEventButton *)event; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); /* if a card has been selected */ if (gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gtk_tree_selection_select_path(selection, path); /* left button pressed ==> show card */ if(ev->button == 1) { RAbook* book = NULL; gpointer card = NULL; glong id = 0; gtk_tree_model_get_iter(model, &iter, path); gtk_tree_path_free(path); gtk_tree_model_get(model, &iter, SEARCH_ID_COLUMN, &id, SEARCH_BOOK_COLUMN, &book, -1); card = r_abook_get_card_by_id(R_ABOOK(book), id); rubrica_app_display_card_data(RUBRICA_APP(app), card); } /* rigth button pressed ==> show popup menu */ if (ev->button == 3) { /* GtkMenu* menu; menu = (GtkMenu*) rubrica_menu_do_trash_popup(RUBRICA_APP(app), tree, event); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); */ } } } RubricaMenu* build_menu(GladeXML* gui, RubricaApp* app) { RubricaMenu* menu = NULL; GConfClient* client; gboolean autosave; client = gconf_client_get_default(); menu = g_malloc0(sizeof(RubricaMenu)); if (!menu) g_error("\nCan't allocate memory"); menu->menubar = glade_xml_get_widget(gui, "menubar"); menu->new = glade_xml_get_widget(gui, "new"); menu->open = glade_xml_get_widget(gui, "open"); menu->save = glade_xml_get_widget(gui, "save"); menu->saveas = glade_xml_get_widget(gui, "saveas"); menu->quit = glade_xml_get_widget(gui, "quit"); menu->cut = glade_xml_get_widget(gui, "cut"); menu->copy = glade_xml_get_widget(gui, "copy"); menu->paste = glade_xml_get_widget(gui, "paste"); menu->personal = glade_xml_get_widget(gui, "personal"); menu->company = glade_xml_get_widget(gui, "company"); menu->delete = glade_xml_get_widget(gui, "delete"); menu->modify = glade_xml_get_widget(gui, "modify"); menu->prefer = glade_xml_get_widget(gui, "prefer"); menu->about = glade_xml_get_widget(gui, "about"); /* menu handler */ g_signal_connect(G_OBJECT(menu->new), "activate", G_CALLBACK(on_new_cb), app); g_signal_connect(G_OBJECT(menu->open), "activate", G_CALLBACK(on_open_cb), app); g_signal_connect(G_OBJECT(menu->save), "activate", G_CALLBACK(on_save_cb), app); g_signal_connect(G_OBJECT(menu->saveas), "activate", G_CALLBACK(on_saveas_cb), app); g_signal_connect(G_OBJECT(menu->cut), "activate", G_CALLBACK(on_cut_cb), NULL); g_signal_connect(G_OBJECT(menu->copy), "activate", G_CALLBACK(on_copy_cb), NULL); g_signal_connect(G_OBJECT(menu->paste), "activate", G_CALLBACK(on_paste_cb), NULL); g_signal_connect(G_OBJECT(menu->personal), "activate", G_CALLBACK(on_add_personal_cb), app); g_signal_connect(G_OBJECT(menu->company), "activate", G_CALLBACK(on_add_company_cb), app); g_signal_connect(G_OBJECT(menu->delete), "activate", G_CALLBACK(on_delete_card_cb), app); g_signal_connect(G_OBJECT(menu->modify), "activate", G_CALLBACK(on_modify_card_cb), app); g_signal_connect(G_OBJECT(menu->prefer), "activate", G_CALLBACK(on_prefenences_cb), app); g_signal_connect(G_OBJECT(menu->about), "activate", G_CALLBACK(on_info_cb), NULL); g_signal_connect(G_OBJECT(menu->quit), "activate", G_CALLBACK(on_quit_cb), app->window); autosave = gconf_client_get_bool(client, RUBRICA_GCONF_AUTOSAVE, NULL); if (autosave) gtk_widget_set_sensitive(menu->save, FALSE); gconf_client_notify_add(client, RUBRICA_GCONF_AUTOSAVE, on_autosave_changed, menu->save, NULL, NULL); g_object_unref(client); return menu; } RubricaToolbar* build_toolbar(GladeXML* gui, RubricaApp* app) { GConfClient* client; RubricaToolbar* toolbar = NULL; GtkMenu* menu = NULL; GtkWidget *personal; GtkWidget *company; gboolean autosave; client = gconf_client_get_default(); toolbar = g_malloc0(sizeof(RubricaToolbar)); if (!toolbar) g_error("\nCan't allocate memory"); toolbar->handle = glade_xml_get_widget(gui, "handle"); toolbar->toolbar = glade_xml_get_widget(gui, "toolbar"); toolbar->new = glade_xml_get_widget(gui, "new_bt"); toolbar->open = glade_xml_get_widget(gui, "open_bt"); toolbar->save = glade_xml_get_widget(gui, "save_bt"); toolbar->print = glade_xml_get_widget(gui, "print_bt"); toolbar->add = glade_xml_get_widget(gui, "add_bt"); toolbar->delete = glade_xml_get_widget(gui, "delete_bt"); toolbar->modify = glade_xml_get_widget(gui, "modify_bt"); toolbar->previous = glade_xml_get_widget(gui, "previous"); toolbar->next = glade_xml_get_widget(gui, "next"); toolbar->trash = glade_xml_get_widget(gui, "trash"); toolbar->first = glade_xml_get_widget(gui, "first_bt"); toolbar->last = glade_xml_get_widget(gui, "last_bt"); toolbar->search = glade_xml_get_widget(gui, "search_bt"); toolbar->quit = glade_xml_get_widget(gui, "quit_bt"); menu = (GtkMenu*) gtk_menu_new(); personal = gtk_menu_item_new_with_mnemonic (_("_Personal card")); gtk_widget_show (personal); gtk_container_add (GTK_CONTAINER (menu), personal); company = gtk_menu_item_new_with_mnemonic (_("_Company card")); gtk_widget_show (company); gtk_container_add (GTK_CONTAINER (menu), company); gtk_menu_tool_button_set_menu(GTK_MENU_TOOL_BUTTON(toolbar->add), (GtkWidget*) menu); g_signal_connect (G_OBJECT(personal), "activate", G_CALLBACK (on_add_personal_cb), app); g_signal_connect (G_OBJECT(company), "activate", G_CALLBACK (on_add_company_cb), app); g_signal_connect(G_OBJECT(toolbar->new), "clicked", G_CALLBACK(on_new_cb), app); g_signal_connect(G_OBJECT(toolbar->open), "clicked", G_CALLBACK(on_open_cb), app); g_signal_connect(G_OBJECT(toolbar->save), "clicked", G_CALLBACK(on_save_cb), app); g_signal_connect(G_OBJECT(toolbar->print), "clicked", G_CALLBACK(on_print_cb), app); g_signal_connect(G_OBJECT(toolbar->add), "clicked", G_CALLBACK(on_add_personal_cb), app); g_signal_connect(G_OBJECT(toolbar->add), "show-menu", G_CALLBACK(on_show_menu_cb), menu); g_signal_connect(G_OBJECT(toolbar->delete), "clicked", G_CALLBACK(on_delete_card_cb), app); g_signal_connect(G_OBJECT(toolbar->modify), "clicked", G_CALLBACK(on_modify_card_cb), app); g_signal_connect(G_OBJECT(toolbar->previous), "clicked", G_CALLBACK(on_prev_cb), app); g_signal_connect(G_OBJECT(toolbar->next), "clicked", G_CALLBACK(on_next_cb), app); g_signal_connect(G_OBJECT(toolbar->first), "clicked", G_CALLBACK(on_first_cb), app); g_signal_connect(G_OBJECT(toolbar->last), "clicked", G_CALLBACK(on_last_cb), app); g_signal_connect(G_OBJECT(toolbar->trash), "toggled", G_CALLBACK(on_trash_toggled_cb), app); g_signal_connect(G_OBJECT(toolbar->quit), "clicked", G_CALLBACK(on_quit_cb), app); // TODO: // REMOVE when printig will be added gtk_widget_set_sensitive(toolbar->print, FALSE); autosave = gconf_client_get_bool(client, RUBRICA_GCONF_AUTOSAVE, NULL); if (autosave) gtk_widget_set_sensitive(toolbar->save, FALSE); gconf_client_notify_add(client, RUBRICA_GCONF_AUTOSAVE, on_autosave_changed, toolbar->save, NULL, NULL); g_object_unref(client); return toolbar; } GType rubrica_app_get_type() { static GType app_type = 0; if (!app_type) { static const GTypeInfo app_info = { sizeof(RubricaAppClass), NULL, NULL, (GClassInitFunc) rubrica_app_class_init, NULL, NULL, sizeof(RubricaApp), 0, (GInstanceInitFunc) rubrica_app_init }; app_type = g_type_register_static (G_TYPE_OBJECT, "RubricaApp", &app_info, 0); } return app_type; } static void rubrica_app_class_init(RubricaAppClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_app_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_app_finalize; g_type_class_add_private (klass, sizeof(RubricaAppPrivate)); } static void rubrica_app_init(RubricaApp* self) { GladeXML* gui; GtkWidget* groups_box; GtkWidget* notebook_box; GtkWidget* data_box; GtkWidget* statusbar_box; GtkWidget* paned; GtkWidget* tab; GtkWidget* button; GtkWidget* tree; gui = glade_xml_new (RUBRICA_GUI_DIR"/MainWindow.glade", NULL, NULL); if (!gui) g_error("Can't load gui"); self->priv = g_new0(RubricaAppPrivate, 1); self->priv->groups = r_group_box_new(); init_group_box(self->priv->groups); self->window = glade_xml_get_widget(gui, "RubricaMainWindow"); groups_box = glade_xml_get_widget(gui, "groups_box"); notebook_box = glade_xml_get_widget(gui, "notebook_box"); data_box = glade_xml_get_widget(gui, "data_box"); statusbar_box = glade_xml_get_widget(gui, "statusbar_box"); paned = glade_xml_get_widget(gui, "data_paned"); self->priv->menu = build_menu(gui, self); self->priv->toolbar = build_toolbar(gui, self); self->priv->notebook = gtk_notebook_new(); self->priv->groups_view = rubrica_groups_view_new(self->priv->groups, APP_GROUPS); self->priv->trash_view = rubrica_trash_view_new(); self->priv->search_view = rubrica_search_view_new(); self->priv->data_view = rubrica_data_view_new(); self->priv->statusbar = rubrica_statusbar_new(); self->priv->cutted = NULL; g_object_set(self->priv->notebook, "homogeneous", FALSE, NULL); gtk_box_pack_start(GTK_BOX(groups_box), self->priv->groups_view, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(notebook_box), self->priv->notebook, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(data_box), self->priv->data_view, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(statusbar_box), self->priv->statusbar, TRUE, TRUE, 0); g_object_set_data(G_OBJECT(self->window), "paned", paned); gtk_notebook_set_scrollable(GTK_NOTEBOOK(self->priv->notebook), TRUE); /* Append Trash page in notebook and initialize */ tab = rubrica_tab_new_with_label(self->priv->trash_view, _("Trash")); gtk_notebook_append_page(GTK_NOTEBOOK(self->priv->notebook), self->priv->trash_view, tab); tree = rubrica_view_get_tree(RUBRICA_VIEW(self->priv->trash_view)); button = rubrica_tab_get_button(RUBRICA_TAB(tab)); g_signal_connect(GTK_OBJECT (tree), "button_press_event", G_CALLBACK (on_trash_event_occurred), self); g_signal_connect(button, "clicked", G_CALLBACK(hide_trash_on_click), self); g_signal_connect(self->priv->trash_view, "view-changed", G_CALLBACK (on_app_view_changed), self->priv->statusbar); /* Append Search page in notebook */ tab = rubrica_tab_new_with_label(self->priv->search_view, _("Search results")); gtk_notebook_append_page(GTK_NOTEBOOK(self->priv->notebook), self->priv->search_view, tab); tree = rubrica_view_get_tree(RUBRICA_VIEW(self->priv->search_view)); button = rubrica_tab_get_button(RUBRICA_TAB(tab)); g_signal_connect(GTK_OBJECT (tree), "button_press_event", G_CALLBACK (on_search_event_occurred), self); g_signal_connect(button, "clicked", G_CALLBACK(hide_search_on_click), self->priv->search_view); g_signal_connect(self->priv->search_view, "view-changed", G_CALLBACK (on_app_view_changed), self->priv->statusbar); /* Groups view */ tree = rubrica_view_get_tree(RUBRICA_VIEW(self->priv->groups_view)); g_signal_connect(GTK_OBJECT (tree), "button_press_event", G_CALLBACK (on_app_group_view_event_occurred), self); /* g_signal_connect (GTK_OBJECT (tree), "key_press_event", G_CALLBACK (on_key_press_event), self); */ /* Other Handle callbacks */ g_signal_connect(G_OBJECT(self->window), "delete_event", G_CALLBACK(on_delete_event_cb), self); g_signal_connect(G_OBJECT(self->priv->data_view), "launch", G_CALLBACK(on_launch_cb), self); gtk_widget_show(groups_box); gtk_widget_show(notebook_box); gtk_widget_show(data_box); gtk_widget_show(statusbar_box); self->priv->dispose_has_run = FALSE; } static void rubrica_app_dispose (RubricaApp* self) { g_return_if_fail(IS_RUBRICA_APP(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->window); g_free(self->priv->menu); g_free(self->priv->toolbar); self->priv->dispose_has_run = TRUE; } static void rubrica_app_finalize (RubricaApp* self) { g_return_if_fail(IS_RUBRICA_APP(self)); g_free(self->priv); self->priv = NULL; } /* Public */ /** * rubrica_app_new * * create a new #RubricaApp * * returns: a new allocated #RubricaApp */ RubricaApp* rubrica_app_new (void) { RubricaApp* app; GConfClient* client; gboolean have_files; app = g_object_new(rubrica_app_get_type(), NULL); client = gconf_client_get_default(); have_files = gconf_client_get_bool(client, RUBRICA_GCONF_LOAD_FILES, NULL); if (have_files) load_addressbooks(app); else rubrica_app_append_addressbook(app); // rubrica_app_append_empty_addressbook(app); g_object_unref(client); return app; } /** * rubrica_app_free * @set: a #RubricaApp * * free memory owned by a #RubricaApp */ void rubrica_app_free(RubricaApp* app) { g_return_if_fail(IS_RUBRICA_APP(app)); g_object_unref(app); } /* Get */ GtkWidget* rubrica_app_get_search (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return(GtkWidget*) app->priv->search_view; } GtkWidget* rubrica_app_get_trash (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return (GtkWidget*) app->priv->trash_view; } GtkWidget* rubrica_app_get_notebook (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return (GtkWidget*) app->priv->notebook; } GtkWidget* rubrica_app_get_current_view (RubricaApp* app) { GtkWidget* child; gint page; g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); page = gtk_notebook_get_current_page(GTK_NOTEBOOK(app->priv->notebook)); child = gtk_notebook_get_nth_page (GTK_NOTEBOOK(app->priv->notebook), page); return child; } RAbook* rubrica_app_get_active_addressbook (RubricaApp* app) { GtkWidget* child; g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); child = rubrica_app_get_current_view(app); return rubrica_cards_view_get_addressbook(RUBRICA_CARDS_VIEW(child)); } RGroupBox* rubrica_app_get_groups (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return app->priv->groups; } GtkWidget* rubrica_app_get_dataview (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return app->priv->data_view; } GtkWidget* rubrica_app_get_groups_view(RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return app->priv->groups_view; } GtkWidget* rubrica_app_get_statusbar (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); return app->priv->statusbar; } gchar* rubrica_app_get_view_report (RubricaApp* app) { GtkWidget* view; gchar* report; g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); view = rubrica_app_get_current_view(app); g_object_get(view, "report", &report, NULL); return report; } void rubrica_app_run(RubricaApp* app) { GConfClient* client; GtkWidget* paned; gint width, height, position; g_return_if_fail(IS_RUBRICA_APP(app)); client = gconf_client_get_default(); gconf_client_add_dir(client, KEY_MISC, GCONF_CLIENT_PRELOAD_NONE, NULL); gconf_client_add_dir(client, KEY_FILE, GCONF_CLIENT_PRELOAD_NONE, NULL); gconf_client_add_dir(client, KEY_DISPLAY, GCONF_CLIENT_PRELOAD_NONE, NULL); gconf_client_add_dir(client, KEY_SEARCH, GCONF_CLIENT_PRELOAD_NONE, NULL); gconf_client_add_dir(client, KEY_URLS, GCONF_CLIENT_PRELOAD_NONE, NULL); gconf_client_add_dir(client, KEY_APPEARANCE, GCONF_CLIENT_PRELOAD_NONE, NULL); width = gconf_client_get_int(client, RUBRICA_GCONF_WIDTH, NULL); height = gconf_client_get_int(client, RUBRICA_GCONF_HEIGHT, NULL); position = gconf_client_get_int(client, RUBRICA_GCONF_PANED_POSITION, NULL); paned = g_object_get_data(G_OBJECT(app->window), "paned"); gtk_window_resize(GTK_WINDOW(app->window), width, height); gtk_paned_set_position(GTK_PANED(paned), position); gtk_widget_show_all(app->window); gtk_widget_hide(app->priv->search_view); gtk_widget_hide(app->priv->trash_view); rubrica_app_enable_previouses(app, FALSE); rubrica_app_enable_nexts(app, FALSE); g_object_unref(client); } /* void rubrica_app_append_empty_addressbook(RubricaApp* app) { rubrica_app_append_addressbook(app, NULL); } */ GtkWidget* rubrica_app_append_addressbook(RubricaApp* app) { GtkWidget *view = NULL; RAbook *book; GtkWidget *tab; GtkWidget *button; GtkWidget *tree; gint page; view = rubrica_cards_view_new(NULL); tab = rubrica_tab_new_with_label(view, _("no name")); button = rubrica_tab_get_button(RUBRICA_TAB(tab)); book = rubrica_cards_view_get_addressbook(RUBRICA_CARDS_VIEW(view)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); g_object_set(view, "view-brother", tab, NULL); gtk_widget_show(view); // mostra sempre il widget prima di inserirlo // nel notebook, se non vuoi diventare pazzo // a capire perchè non switcha // set the new addressbook as active and switch notebook to display it page = gtk_notebook_append_page(GTK_NOTEBOOK(app->priv->notebook), view, tab); gtk_notebook_set_current_page(GTK_NOTEBOOK(app->priv->notebook), page); g_signal_connect(GTK_OBJECT (button), "clicked", G_CALLBACK (on_close_cb), app); g_signal_connect(app->priv->notebook, "switch-page", G_CALLBACK (on_notebook_switch_page), app); g_signal_connect(view, "view-changed", G_CALLBACK (on_cards_view_changed), app->priv->statusbar); g_signal_connect(GTK_OBJECT (tree), "button_press_event", G_CALLBACK (on_cards_event_occurred), app); g_signal_connect(G_OBJECT(book), "card_added", G_CALLBACK(on_card_added), app); g_signal_connect(G_OBJECT(book), "card_deleted", G_CALLBACK(on_card_deleted), app); g_signal_connect(G_OBJECT(book), "card_recovered", G_CALLBACK(on_card_recovered), app); g_signal_connect(G_OBJECT(book), "card_replaced", G_CALLBACK(on_card_modified), app); g_signal_connect(G_OBJECT(book), "card_destroyed", G_CALLBACK(on_card_destroyed), app); g_signal_connect(G_OBJECT(book), "addressbook_changed", G_CALLBACK(on_addressbook_changed), app); g_signal_connect(G_OBJECT(book), "addressbook_saved", G_CALLBACK(on_addressbook_saved), app); g_signal_connect(G_OBJECT(book), "save_fail", G_CALLBACK(on_addressbook_save_fail), app); return view; } gboolean rubrica_app_load_file(RubricaApp* app, gchar* file, gchar* filter) { GtkWidget *view = NULL; GtkWidget *tab; RAbook *book; gchar *message; g_return_val_if_fail(IS_RUBRICA_APP(app), FALSE); g_return_val_if_fail(file != NULL, FALSE); view = rubrica_app_append_addressbook(app); book = rubrica_app_get_active_addressbook(app); g_object_set(book, "file-filter", filter, NULL); if (r_abook_open_file(book, file)) { RCard* card; RubricaStatusbar* bar = RUBRICA_STATUSBAR(app->priv->statusbar); r_abook_reset_book(book); card = r_abook_get_card(book); for (; card; card = r_abook_get_next_card(book)) rubrica_app_add_card(app, card); g_object_get(view, "view-brother", &tab, "view-message", &message, NULL); g_object_set(tab, "tab-label",g_path_get_basename(file), NULL); rubrica_statusbar_enable_extra(bar, TRUE); rubrica_statusbar_enable_images(bar, TRUE); rubrica_statusbar_extra_set_text(bar, message); } else { GtkWidget* notebook; gint page; notebook = rubrica_app_get_notebook(app); page = gtk_notebook_page_num(GTK_NOTEBOOK(notebook), view); gtk_notebook_remove_page(GTK_NOTEBOOK(notebook), page); return FALSE; } return TRUE; } void rubrica_app_add_card(RubricaApp* app, RCard* card) { GtkWidget *view = NULL; gboolean deleted; g_return_if_fail(IS_RUBRICA_APP(app)); g_return_if_fail(IS_R_CARD(card)); view = rubrica_app_get_current_view(app); g_object_get(card, "card-deleted", &deleted, NULL); add_card_groups2set(app, card); if (deleted) rubrica_app_move_card_to_trash(app, card); else rubrica_cards_view_add_card(RUBRICA_CARDS_VIEW(view), card); } /* if a loaded card is marked deleted, it is moved to trash TRASH_ADDRESSBOK - pointer to the original addressbook (card came from) TRASH_ADB - pointer to the adb (card came from) */ void rubrica_app_move_card_to_trash (RubricaApp* app, RCard* card) { RAbook* book; GtkWidget* trash; g_return_if_fail(IS_R_CARD(card)); trash = rubrica_app_get_trash(app); book = rubrica_app_get_active_addressbook(app); rubrica_trash_view_add_card(RUBRICA_TRASH_VIEW(trash), book, card); } void rubrica_app_display_card_data (RubricaApp* app, RCard* card) { RRate rate; gboolean locked; GtkWidget* view; RubricaPixmap lock; RubricaStatusbar* bar = RUBRICA_STATUSBAR(app->priv->statusbar); view = rubrica_app_get_current_view(app); g_object_set(view, "view-selected", TRUE, NULL); g_object_get(card, "card-locked", &locked, "card-rate", &rate, NULL); lock = PIXMAP_UNLOCK + (gint) locked; rubrica_statusbar_enable_extra(bar, TRUE); rubrica_statusbar_enable_images(bar, TRUE); rubrica_statusbar_extra_set_rate(bar, rate); rubrica_statusbar_extra_set_lock(bar, lock); rubrica_data_view_show_card(RUBRICA_DATA_VIEW(app->priv->data_view), card); } void rubrica_app_set_toolbar_style (RubricaApp* app, gint style) { g_return_if_fail(IS_RUBRICA_APP(app)); switch(style) { case RUB_ICONS: gtk_toolbar_set_style(GTK_TOOLBAR(app->priv->toolbar->toolbar), GTK_TOOLBAR_ICONS); break; case RUB_TEXT: gtk_toolbar_set_style(GTK_TOOLBAR(app->priv->toolbar->toolbar), GTK_TOOLBAR_TEXT); break; case RUB_BOTH: gtk_toolbar_set_style(GTK_TOOLBAR(app->priv->toolbar->toolbar), GTK_TOOLBAR_BOTH); break; case RUB_GNOME: gtk_toolbar_set_style(GTK_TOOLBAR(app->priv->toolbar->toolbar), GTK_TOOLBAR_ICONS); break; default: break; } } void rubrica_app_set_font (RubricaApp* app, gchar* font) { g_return_if_fail(IS_RUBRICA_APP(app)); g_object_set(app->priv->data_view, "data-font", font, NULL); } void rubrica_app_show_page (RubricaApp* app, gint page) { GtkWidget* notebook; g_return_if_fail(IS_RUBRICA_APP(app)); notebook = app->priv->notebook; gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), page); } gint rubrica_app_get_stack_len (RubricaApp* app) { g_return_val_if_fail(IS_RUBRICA_APP(app), 0); return g_list_length(app->priv->cutted); } void rubrica_app_push_card (RubricaApp* app, gpointer data) { g_return_if_fail(IS_RUBRICA_APP(app)); app->priv->cutted = g_list_append(app->priv->cutted, data); } gpointer rubrica_app_pop_card (RubricaApp* app) { GList* link = NULL; gpointer data = NULL; g_return_val_if_fail(IS_RUBRICA_APP(app), NULL); link = g_list_last(app->priv->cutted); if (link) { data = link->data; app->priv->cutted = g_list_remove_link(app->priv->cutted, link); g_list_free_1(link); } return data; } void rubrica_app_notify (RubricaApp* app, gchar* msg) { g_return_if_fail(IS_RUBRICA_APP(app)); rubrica_statusbar_push_message(RUBRICA_STATUSBAR(app->priv->statusbar), msg); } void rubrica_app_show_message(RubricaApp* app, gchar* msg) { GtkWidget* dialog; g_return_if_fail(IS_RUBRICA_APP(app)); g_return_if_fail(msg != NULL); dialog = gtk_message_dialog_new (GTK_WINDOW(app->window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, msg); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } void rubrica_app_update_view (RubricaApp* app) { GtkWidget* view; GtkTreeView *tree; GtkTreeSelection *selection; view = rubrica_app_get_current_view(app); tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(view))); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); gtk_tree_selection_unselect_all(selection); } void rubrica_app_display_search_results (RubricaApp* app, GList* results) { RAbook* book; RubricaSearchView* search; gtk_widget_show(app->priv->search_view); book = rubrica_app_get_active_addressbook(app); search = RUBRICA_SEARCH_VIEW(app->priv->search_view); gtk_notebook_set_current_page (GTK_NOTEBOOK(app->priv->notebook), 1); rubrica_search_view_set_addressbook(search, book); rubrica_search_view_display_results(search, results); } void rubrica_app_display_cards_by_group(RubricaApp* app, gchar* group) { RAbook* book; GList *ids; // id list of cards that belongs to the given group book = rubrica_app_get_active_addressbook(app); ids = r_abook_find_cards_by_group(book, group); display_cards_list(app, ids); g_list_free(ids); } void rubrica_app_display_cards_by_type(RubricaApp* app, gchar* type) { RAbook* book; GList *ids; // id list of cards that belongs to the given type book = rubrica_app_get_active_addressbook(app); ids = r_abook_find_cards_by_type (book, type); display_cards_list(app, ids); g_list_free(ids); } void rubrica_app_display_cards_by_genre(RubricaApp* app, gchar* genre) { RAbook* book; GList *ids; // id list of cards that belongs to the given genre book = rubrica_app_get_active_addressbook(app); ids = r_abook_find_cards_by_genre(book, genre); display_cards_list(app, ids); g_list_free(ids); } void rubrica_app_display_cards_by_rate(RubricaApp* app, RRate rate) { RAbook* book; GList *ids; // id list of cards that belongs to the given rate book = rubrica_app_get_active_addressbook(app); ids = r_abook_find_cards_by_rate(book, rate); display_cards_list(app, ids); g_list_free(ids); } void rubrica_app_enable_previouses (RubricaApp* app, gboolean bool) { g_return_if_fail(IS_RUBRICA_APP(app)); gtk_widget_set_sensitive(app->priv->toolbar->previous, bool); gtk_widget_set_sensitive(app->priv->toolbar->first, bool); } void rubrica_app_enable_nexts (RubricaApp* app, gboolean bool) { g_return_if_fail(IS_RUBRICA_APP(app)); gtk_widget_set_sensitive(app->priv->toolbar->next, bool); gtk_widget_set_sensitive(app->priv->toolbar->last, bool); } rubrica-2.0/src/models.c0000644000175000017500000002150110617433024014011 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "models.h" #include "preferences.h" #include "themes.h" #include "types.h" GtkTreeModel* rubrica_model_new(RubricaModelType type) { GtkListStore *model = NULL; switch (type) { /* Address model */ case ADDRESS_MODEL: model = gtk_list_store_new(LAST_ADDRESS_COLUMN, G_TYPE_STRING, /* street */ G_TYPE_STRING, /* street number */ G_TYPE_STRING, /* city */ G_TYPE_STRING, /* type label */ G_TYPE_STRING, /* address type */ G_TYPE_STRING, /* zip */ G_TYPE_STRING, /* province */ G_TYPE_STRING, /* state */ G_TYPE_STRING); /* country */ break; /* net model */ case NET_MODEL: model = gtk_list_store_new(LAST_NET_COLUMN, G_TYPE_STRING, /* url */ G_TYPE_STRING); /* url type */ break; /* telephone model */ case TELEPHONE_MODEL: model = gtk_list_store_new(LAST_TEL_COLUMN, G_TYPE_STRING, /* telephone number */ G_TYPE_STRING); /* telephone type */ break; case INFO_MODEL: model = gtk_list_store_new(LAST_INFO_COLUMN, G_TYPE_STRING, // card label G_TYPE_STRING, // first name G_TYPE_STRING, // last name G_TYPE_STRING, // assignment G_TYPE_STRING, // telephone G_TYPE_STRING, // email G_TYPE_INT); // card id break; default: break; } return GTK_TREE_MODEL(model); } GtkTreeModel* rubrica_model_combo_new () { return (GtkTreeModel *) gtk_list_store_new(COMBO_LAST_COLUMN, GDK_TYPE_PIXBUF, G_TYPE_STRING); } void rubrica_model_redisplay_groups_view(GtkTreeView* view, RGroupBox* box) { GtkTreeModel* model; GtkTreeIter iter; GtkIconTheme* theme; RGroup* group; theme = gtk_icon_theme_get_default(); model = gtk_tree_view_get_model(view); gtk_list_store_clear (GTK_LIST_STORE(model)); r_group_box_reset(box); group = r_group_box_get_group(box); for(; group; group = r_group_box_get_next_group(box)) { gboolean enabled = FALSE; gchar* name = NULL; gchar* label = NULL; gchar* owner = NULL; gchar* pixmap = NULL; GdkPixbuf* pixbuf; g_object_get(group, "group-name", &name, "group-label", &label, "group-owner", &owner, "group-pixmap", &pixmap, "enabled", &enabled, NULL); pixbuf = gtk_icon_theme_load_icon (theme, pixmap, 20, 0, NULL); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_BELONG_COLUMN, enabled, GROUP_PIXMAP_COLUMN, pixbuf, GROUP_NAME_COLUMN, name, GROUP_LABEL_COLUMN, label, GROUP_OWNER_COLUMN, owner, GROUP_PIXMAP_PATH, pixmap, -1); } } void rubrica_model_add_columns(GtkTreeView *view, RubricaColumnsType type) { GtkCellRenderer *renderer; GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(view)); switch(type) { case ADDRESS_COLUMNS: renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, /* tree view */ -1, _("Street"), renderer, "text", ADDRESS_STREET_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Number"), renderer, "text", ADDRESS_NUMBER_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("City"), renderer, "text", ADDRESS_CITY_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Address type"), renderer, "text", ADDRESS_LABEL_COLUMN, NULL); break; case URI_COLUMNS: renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Net URL"), renderer, "text", URI_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Type"), renderer, "text", URI_TYPE_COLUMN, NULL); break; case TELEPHONE_COLUMNS: renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Number"), renderer, "text", TELEPHONE_NUMBER_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Type"), renderer, "text", TELEPHONE_TYPE_COLUMN, NULL); break; case INFO_COLUMNS: renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Card"), renderer, "text", INFO_CARD_LABEL_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("First name"), renderer, "text", INFO_FIRST_NAME_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Last name"), renderer, "text", INFO_LAST_NAME_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Assignment"), renderer, "text", INFO_ASSIGNMENT_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Telephone"), renderer, "text", INFO_TELEPHONE_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (view, -1, _("Email"), renderer, "text", INFO_EMAIL_COLUMN, NULL); break; default: break; } } /* void rubrica_model_set_column_attributes(GConfClient *client, GtkTreeView *view, gchar *key, gint col) { GtkTreeViewColumn *column; column = gtk_tree_view_get_column(view, col); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_clickable(column, TRUE); gtk_tree_view_column_set_reorderable(column, TRUE); rubrica_preferences_column_config(client, column, key); } */ void rubrica_model_toggle_group(GtkCellRendererToggle *cell, gchar *path_str, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreePath *path; gboolean status; model = (GtkTreeModel *) data; path = gtk_tree_path_new_from_string(path_str); gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get (model, &iter, GROUP_BELONG_COLUMN, &status, -1); status ^= 1; gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_BELONG_COLUMN, status, -1); } /* void rubrica_model_populate_combo(GtkComboBox* combo, RubricaCombo* array) { RubricaCombo* lst = array; GtkWidget *cellview; GError *error = NULL; GtkIconTheme *theme; GtkListStore *store; GtkTreeIter iter; theme = gtk_icon_theme_get_default(); cellview = gtk_cell_view_new (); store = (GtkListStore*) gtk_combo_box_get_model(GTK_COMBO_BOX(combo)); for (; lst->icon; lst++) { GdkPixbuf *pixbuf = NULL; pixbuf = gtk_icon_theme_load_icon (theme, lst->icon, 40, 0, &error); gtk_list_store_append (store, &iter); if (pixbuf) gtk_list_store_set (store, &iter, COMBO_PIXMAP, pixbuf, COMBO_LABEL, lst->label, -1); else gtk_list_store_set (store, &iter, COMBO_PIXMAP, NULL, COMBO_LABEL, lst->label, -1); } gtk_widget_destroy (cellview); } */ rubrica-2.0/src/form_net.c0000644000175000017500000003746110617433024014353 0ustar seb128seb128/* * file: form_net.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_net.h" #include "app.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" struct _RubricaFormNetPrivate { FormNetType type; GtkWidget* net; GtkWidget* tree; GtkWidget* add; GtkWidget* del; GtkWidget* mod; GtkWidget* web; GtkWidget* email; GtkWidget* vconf; GtkWidget* irc; GtkWidget* aim; GtkWidget* msn; GtkWidget* icq; GtkWidget* yahoo; GtkWidget* jabber; gboolean dispose_has_run; }; static void rubrica_form_net_class_init (RubricaFormNetClass* klass); static void rubrica_form_net_init (RubricaFormNet* obj); static void rubrica_form_net_dispose (RubricaFormNet* obj); static void rubrica_form_net_finalize (RubricaFormNet* obj); static gboolean extract_net (GtkTreeModel *model,GtkTreePath *path, GtkTreeIter *iter, gpointer data); static void form_net_extract_data (RubricaFormNet* form, RCard *card); static void form_net_display_data (RubricaFormNet* form, RCard *card); static void form_net_clean_form (RubricaFormNet* form, RCard *card); static RubricaFormClass* parent_class; GType rubrica_form_net_get_type() { static GType form_net_type = 0; if (!form_net_type) { static const GTypeInfo form_net_info = { sizeof(RubricaFormNetClass), NULL, NULL, (GClassInitFunc) rubrica_form_net_class_init, NULL, NULL, sizeof(RubricaFormNet), 0, (GInstanceInitFunc) rubrica_form_net_init }; form_net_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormNet", &form_net_info, 0); } return form_net_type; } static void rubrica_form_net_class_init(RubricaFormNetClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_net_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_net_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_net_extract_data; parent_class->display_data = (gpointer) form_net_display_data; parent_class->clean_form = (gpointer) form_net_clean_form; } static void rubrica_form_net_init(RubricaFormNet* self) { self->priv = g_new(RubricaFormNetPrivate, 1); self->priv->type = FORM_NET_PERSONAL; self->priv->net = NULL; self->priv->tree = NULL; self->priv->add = NULL; self->priv->mod = NULL; self->priv->del = NULL; self->priv->web = NULL; self->priv->email = NULL; self->priv->vconf = NULL; self->priv->irc = NULL; self->priv->aim = NULL; self->priv->msn = NULL; self->priv->icq = NULL; self->priv->yahoo = NULL; self->priv->jabber = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_net_dispose (RubricaFormNet* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->net); g_object_unref(self->priv->tree); g_object_unref(self->priv->add); g_object_unref(self->priv->del); g_object_unref(self->priv->mod); g_object_unref(self->priv->web); g_object_unref(self->priv->email); if (self->priv->type == FORM_NET_PERSONAL) { g_object_unref(self->priv->vconf); g_object_unref(self->priv->irc); g_object_unref(self->priv->aim); g_object_unref(self->priv->msn); g_object_unref(self->priv->icq); g_object_unref(self->priv->yahoo); g_object_unref(self->priv->jabber); } self->priv->dispose_has_run = TRUE; } static void rubrica_form_net_finalize (RubricaFormNet* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } static gboolean extract_net (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { RCard* card = (RCard*) data; RNetAddress* net = NULL; RNetAddressType nettype; gchar *url, *type; gtk_tree_model_get(model, iter, URI_COLUMN, &url, URI_TYPE_COLUMN, &type, -1); nettype = r_net_address_encode_type(type); net = r_net_address_new(); g_object_set(net, "url", url, "url-type", nettype, NULL); r_card_add_net_address(R_CARD(card), net); return FALSE; } static void form_net_extract_data (RubricaFormNet* form, RCard *card) { GtkTreeModel* model = NULL; g_return_if_fail(IS_R_CARD(card)); /* extract net's data */ model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->tree)); if (model) { gtk_tree_model_foreach(GTK_TREE_MODEL(model), extract_net, card); g_object_unref(model); } } static void form_net_display_data (RubricaFormNet* form, RCard *card) { GtkTreeView* tree; GtkTreeModel *model; GtkTreeIter iter; gpointer data; tree = (GtkTreeView*) form->priv->tree; model = gtk_tree_view_get_model(tree); data = r_card_get_net_address(R_CARD(card)); for (; data; data = r_card_get_next_net_address(R_CARD(card))) { RNetAddressType nettype; gchar *url, *type; g_object_get(R_NET_ADDRESS(data), "url", &url, "url-type", &nettype, NULL); type = r_net_address_decode_type(nettype); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, URI_COLUMN, url, URI_TYPE_COLUMN, type, -1); } } static void form_net_clean_form (RubricaFormNet* form, RCard *card) { GtkTreeModel *model; gtk_entry_set_text(GTK_ENTRY(form->priv->net), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->web), TRUE); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->tree)); gtk_list_store_clear(GTK_LIST_STORE(model)); } /* Callbacks */ void form_net_list_activated(GtkTreeSelection *selection, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; RubricaFormNet *form = (RubricaFormNet *) data; gchar *str, *type_str; RNetAddressType type; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->tree)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gtk_tree_model_get(model, &iter, URI_COLUMN, &str, URI_TYPE_COLUMN, &type_str, -1); gtk_entry_set_text(GTK_ENTRY(form->priv->net), str); type = r_net_address_encode_type(type_str); switch(type) { case R_NET_ADDRESS_WEB: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->web), TRUE); break; case R_NET_ADDRESS_EMAIL: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->email), TRUE); break; case R_NET_ADDRESS_EKIGA: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->vconf), TRUE); break; case R_NET_ADDRESS_IRC: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->irc), TRUE); break; case R_NET_ADDRESS_IRC_AIM: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->aim), TRUE); break; case R_NET_ADDRESS_IRC_MSN: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->msn), TRUE); break; case R_NET_ADDRESS_IRC_ICQ: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->icq), TRUE); break; case R_NET_ADDRESS_IRC_YAHOO: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->yahoo), TRUE); break; case R_NET_ADDRESS_IRC_JABBER: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->jabber), TRUE); break; default: break; } gtk_widget_set_sensitive(form->priv->mod, TRUE); gtk_widget_set_sensitive(form->priv->del, TRUE); g_free(str); g_free(type_str); } } void form_net_add_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; RNetAddress* net; RNetAddressType type; RubricaFormNet *form = (RubricaFormNet *) data; gchar *url, *str; gtk_widget_set_sensitive(GTK_WIDGET(form->priv->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->del), FALSE); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->tree)); net = r_net_address_new(); url = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->net))); if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->web))) type = R_NET_ADDRESS_WEB; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->email))) type = R_NET_ADDRESS_EMAIL; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->vconf))) type = R_NET_ADDRESS_EKIGA; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->irc))) type = R_NET_ADDRESS_IRC; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->aim))) type = R_NET_ADDRESS_IRC_AIM; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->msn))) type = R_NET_ADDRESS_IRC_MSN; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->icq))) type = R_NET_ADDRESS_IRC_ICQ; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->yahoo))) type = R_NET_ADDRESS_IRC_YAHOO; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->jabber))) type = R_NET_ADDRESS_IRC_JABBER; str = r_net_address_decode_type(type); g_object_set(net, "url", url, "url-type", type, NULL); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, URI_COLUMN, url, URI_TYPE_COLUMN, str, -1); gtk_entry_set_text(GTK_ENTRY(form->priv->net), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->web), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->del), FALSE); } void form_net_mod_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *selection; RNetAddress* net; RubricaFormNet* form = (RubricaFormNet *) data; RNetAddressType type; gchar* url; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->priv->tree)); net = r_net_address_new(); url = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->net))); if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->web))) type = R_NET_ADDRESS_WEB; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->email))) type = R_NET_ADDRESS_EMAIL; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->vconf))) type = R_NET_ADDRESS_EKIGA; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->irc))) type = R_NET_ADDRESS_IRC; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->aim))) type = R_NET_ADDRESS_IRC_AIM; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->msn))) type = R_NET_ADDRESS_IRC_MSN; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->icq))) type = R_NET_ADDRESS_IRC_ICQ; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->yahoo))) type = R_NET_ADDRESS_IRC_YAHOO; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->priv->jabber))) type = R_NET_ADDRESS_IRC_JABBER; g_object_set(net, "url", url, "url-type", type, NULL); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { gint i; gchar *url_type; GtkTreePath *path; url_type = r_net_address_decode_type(type); path = gtk_tree_model_get_path(model, &iter); i = gtk_tree_path_get_indices(path)[0]; gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_tree_path_free(path); gtk_list_store_insert(GTK_LIST_STORE(model), &iter, i); gtk_list_store_set(GTK_LIST_STORE(model), &iter, URI_COLUMN, url, URI_TYPE_COLUMN, url_type, -1); gtk_entry_set_text(GTK_ENTRY(form->priv->net), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->web), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->del), FALSE); } } void form_net_del_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *selection; RubricaFormNet* form = (RubricaFormNet *) data; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->priv->tree)); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_entry_set_text(GTK_ENTRY(form->priv->net), ""); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->del), FALSE); } } /* ***************************** Public ***************************** */ /** * rubrica_form_net_new * * create a #RubricaFormNet * * Returns: a new #RubricaFormNet */ RubricaFormNet* rubrica_form_net_new(RubricaApp* app, GladeXML *gui, FormNetType type) { RubricaFormNet *form; GtkTreeView *tree; GtkTreeModel *model; GtkTreeSelection *selection; form = g_object_new(rubrica_form_net_get_type(), NULL); form->priv->type = type; form->priv->net = glade_xml_get_widget(gui, "net"); form->priv->tree = glade_xml_get_widget(gui, "net_tree"); form->priv->add = glade_xml_get_widget(gui, "net_add"); form->priv->del = glade_xml_get_widget(gui, "net_del"); form->priv->mod = glade_xml_get_widget(gui, "net_mod"); form->priv->web = glade_xml_get_widget(gui, "web"); form->priv->email = glade_xml_get_widget(gui, "email"); if (type == FORM_NET_PERSONAL) { form->priv->vconf = glade_xml_get_widget(gui, "vconf"); form->priv->irc = glade_xml_get_widget(gui, "irc"); form->priv->aim = glade_xml_get_widget(gui, "aim"); form->priv->msn = glade_xml_get_widget(gui, "msn"); form->priv->icq = glade_xml_get_widget(gui, "icq"); form->priv->yahoo = glade_xml_get_widget(gui, "yahoo"); form->priv->jabber = glade_xml_get_widget(gui, "jabber"); } gtk_widget_set_sensitive(GTK_WIDGET(form->priv->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->del), FALSE); /* net urls model/view */ model = rubrica_model_new(NET_MODEL); tree = GTK_TREE_VIEW(form->priv->tree); gtk_tree_view_set_model(tree, GTK_TREE_MODEL(model)); selection = gtk_tree_view_get_selection(tree); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); rubrica_model_add_columns(tree, URI_COLUMNS); g_signal_connect(G_OBJECT(selection), "changed", G_CALLBACK(form_net_list_activated), form); g_object_unref(model); /* net buttons */ g_signal_connect (G_OBJECT (form->priv->add), "clicked", G_CALLBACK (form_net_add_clicked), form); g_signal_connect (G_OBJECT (form->priv->mod), "clicked", G_CALLBACK(form_net_mod_clicked), form); g_signal_connect (G_OBJECT (form->priv->del), "clicked", G_CALLBACK (form_net_del_clicked), form); return form; } /** * rubrica_form_net_free * @form: a #RubricaFormNet * * free the #RubricaFormNet */ void rubrica_form_net_free(RubricaFormNet* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/form_info.c0000644000175000017500000003070210617433024014507 0ustar seb128seb128/* * file: form_net.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "personal_gui.h" #include "form.h" #include "form_info.h" #include "app.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "themes.h" struct _RubricaFormInfoPrivate { RubricaApp *app; GtkWidget *name; GtkWidget *vat; GtkWidget *logo_bt; GtkWidget *logo; GtkWidget *contacts_tree; GtkWidget *info_add; GtkWidget *info_del; GtkWidget *info_mod; gchar *logo_uri; /* logo's path */ GList* cards; /* cards referenced */ gboolean dispose_has_run; }; static void rubrica_form_info_class_init (RubricaFormInfoClass* klass); static void rubrica_form_info_init (RubricaFormInfo* obj); static void rubrica_form_info_dispose (RubricaFormInfo* obj); static void rubrica_form_info_finalize (RubricaFormInfo* obj); static gboolean extract_info (GtkTreeModel *model,GtkTreePath *path, GtkTreeIter *iter, gpointer data); static void form_info_extract_data (RubricaFormInfo* form, RCard *card); static void form_info_display_data (RubricaFormInfo* form, RCard *card); static void form_info_clean_form (RubricaFormInfo* form, RCard *card); void form_info_logo_clicked (GtkWidget *button, gpointer data); static RubricaFormClass* parent_class; GType rubrica_form_info_get_type() { static GType form_info_type = 0; if (!form_info_type) { static const GTypeInfo form_info_info = { sizeof(RubricaFormInfoClass), NULL, NULL, (GClassInitFunc) rubrica_form_info_class_init, NULL, NULL, sizeof(RubricaFormInfo), 0, (GInstanceInitFunc) rubrica_form_info_init }; form_info_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormInfo", &form_info_info, 0); } return form_info_type; } static void rubrica_form_info_class_init(RubricaFormInfoClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_info_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_info_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_info_extract_data; parent_class->display_data = (gpointer) form_info_display_data; parent_class->clean_form = (gpointer) form_info_clean_form; } static void rubrica_form_info_init(RubricaFormInfo* self) { self->priv = g_new(RubricaFormInfoPrivate, 1); self->priv->name = NULL; self->priv->vat = NULL; self->priv->logo_bt = NULL; self->priv->logo = NULL; self->priv->contacts_tree = NULL; self->priv->info_add = NULL; self->priv->info_del = NULL; self->priv->info_mod = NULL; self->priv->logo_uri = NULL; self->priv->cards = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_info_dispose (RubricaFormInfo* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->name); g_object_unref(self->priv->vat); g_object_unref(self->priv->logo_bt); g_object_unref(self->priv->logo); g_object_unref(self->priv->contacts_tree); g_object_unref(self->priv->info_add); g_object_unref(self->priv->info_del); g_object_unref(self->priv->info_mod); if (self->priv->logo_uri) g_free(self->priv->logo_uri); if (self->priv->cards) { // TODO // foreach card in list do delete card } self->priv->dispose_has_run = TRUE; } static void rubrica_form_info_finalize (RubricaFormInfo* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } static gboolean extract_info (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { RCard* company = (RCard*) data; RRef* ref; gchar *card_info; glong card_id; gtk_tree_model_get(model, iter, INFO_CARD_LABEL_COLUMN, &card_info, INFO_ID_COLUMN, &card_id, NULL); ref = r_ref_new(card_id); g_object_set(G_OBJECT(ref), "ref-info", card_info, NULL); r_card_add_ref(R_CARD(company), ref); return FALSE; } static void form_info_extract_data (RubricaFormInfo* form, RCard *card) { RAbook* abook; GtkTreeModel* model = NULL; RRef* ref; glong company_id; const gchar *name; const gchar *vat; const gchar* logo; g_return_if_fail(IS_R_CARD(card)); g_object_get(R_CARD(card), "card-id", &company_id, NULL); abook = rubrica_app_get_active_addressbook(RUBRICA_APP(form->priv->app)); name = gtk_entry_get_text(GTK_ENTRY(form->priv->name)); vat = gtk_entry_get_text(GTK_ENTRY(form->priv->vat)); form->priv->logo_uri ? logo = form->priv->logo_uri : NULL; g_object_set(G_OBJECT(card), "company-name", name, "company-logo", logo, "company-vat", vat, NULL); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->contacts_tree)); if (model) { gtk_tree_model_foreach(GTK_TREE_MODEL(model), extract_info, card); g_object_unref(model); } r_card_reset_ref(card); for (; (ref = r_card_get_ref(card)); ref = r_card_get_next_ref(card)) { RCard* card; glong id; g_object_get(G_OBJECT(ref), "ref-to", &id, NULL); if (id) { card = r_abook_get_card_by_id(abook, id); r_card_add_ref(card, ref); } } g_print("\n ********* company name: %s" "\n ********* logo: %s" "\n ********* pi: %s", name, logo, vat); } static void form_info_display_data (RubricaFormInfo* form, RCard *company) { RAbook* abook; RRef* ref; GtkTreeModel* model = NULL; GtkTreeIter iter; gchar *name, *vat; abook = rubrica_app_get_active_addressbook(RUBRICA_APP(form->priv->app)); g_object_get(G_OBJECT(company), "company-name", &name, "company-vat", &vat, NULL); gtk_entry_set_text(GTK_ENTRY(form->priv->name), name); gtk_entry_set_text(GTK_ENTRY(form->priv->vat), vat); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->contacts_tree)); r_card_reset_ref(R_CARD(company)); for (; (ref = r_card_get_ref(R_CARD(company))); ref = r_card_get_next_ref(R_CARD(company))); { RCard* card = NULL; RInfos *infos; glong id; g_object_get(G_OBJECT(ref), "ref-to", &id, NULL); if (!id) return; card = r_abook_get_card_by_id(abook, id); if (card) { infos = r_card_get_infos(R_CARD(card)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, INFO_CARD_LABEL_COLUMN, r_infos_get_label(infos), INFO_FIRST_NAME_COLUMN, r_infos_get_last(infos), INFO_LAST_NAME_COLUMN, r_infos_get_first(infos), INFO_ASSIGNMENT_COLUMN, r_infos_get_assignment(infos), INFO_EMAIL_COLUMN, r_infos_get_email(infos), INFO_TELEPHONE_COLUMN, r_infos_get_telephone(infos), INFO_ID_COLUMN, r_infos_get_id(infos), -1); } } } static void form_info_clean_form (RubricaFormInfo* form, RCard *card) { gtk_entry_set_text(GTK_ENTRY(form->priv->name), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->vat), ""); } /* Callbacks */ void form_info_list_activated(GtkTreeSelection *selection, gpointer data) { // TODO form_info_list_activated } void form_info_add_clicked (GtkButton *button, gpointer data) { RubricaFormInfo *form = (RubricaFormInfo *) data; PersonalDialog* personal; RPersonalCard* card = NULL; RInfos *infos; GtkTreeModel *model; GtkTreeIter iter; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->contacts_tree)); personal = rubrica_personal_dialog_new(RUBRICA_APP(form->priv->app)); card = rubrica_personal_run_add_dialog(personal); if (card) { infos = r_card_get_infos(R_CARD(card)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, INFO_CARD_LABEL_COLUMN, r_infos_get_label(infos), INFO_FIRST_NAME_COLUMN, r_infos_get_last(infos), INFO_LAST_NAME_COLUMN, r_infos_get_first(infos), INFO_ASSIGNMENT_COLUMN, r_infos_get_assignment(infos), INFO_EMAIL_COLUMN, r_infos_get_email(infos), INFO_TELEPHONE_COLUMN, r_infos_get_telephone(infos), INFO_ID_COLUMN, r_infos_get_id(infos), -1); form->priv->cards = g_list_append(form->priv->cards, card); } } void form_info_mod_clicked (GtkButton *button, gpointer data) { // TODO form_info_mod_clicked } void form_info_del_clicked (GtkButton *button, gpointer data) { // TODO form_info_del_clicked } void form_info_logo_clicked (GtkWidget *button, gpointer data) { RubricaFormInfo* form = (RubricaFormInfo*) data; GtkWidget* image = NULL; GdkPixbuf *pixbuf; GtkIconTheme* theme; gchar* uri = NULL; theme = gtk_icon_theme_get_default(); image = (GtkImage*) form->priv->logo; uri = rubrica_themes_load_pixmap(button, image); if (uri) { pixbuf = gdk_pixbuf_new_from_file_at_size (uri, 124, 124, NULL); form->priv->logo_uri = g_strdup(uri); } else if (form->priv->logo_uri) pixbuf = gdk_pixbuf_new_from_file_at_size (form->priv->logo_uri, 124, 124, NULL); else { pixbuf = gtk_icon_theme_load_icon (theme, "puzzle", 48, 0, NULL); g_free(form->priv->logo_uri); form->priv->logo_uri = NULL; } gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); } /* ***************************** Public ***************************** */ /** * rubrica_form_info_new * * create a #RubricaFormInfo * * Returns: a new #RubricaFormInfo */ RubricaFormInfo* rubrica_form_info_new(RubricaApp* app, GladeXML *gui) { RubricaFormInfo* form; GtkTreeView *tree; GtkTreeModel *model; GtkTreeSelection *selection; form = g_object_new(rubrica_form_info_get_type(), NULL); form->priv->app = app; form->priv->name = glade_xml_get_widget(gui, "company_name"); form->priv->vat = glade_xml_get_widget(gui, "iva"); form->priv->logo_bt = glade_xml_get_widget(gui, "logo_bt"); form->priv->logo = glade_xml_get_widget(gui, "image"); form->priv->contacts_tree = glade_xml_get_widget(gui, "contacts_tree"); form->priv->info_add = glade_xml_get_widget(gui, "contact_add"); form->priv->info_del = glade_xml_get_widget(gui, "contact_del"); form->priv->info_mod = glade_xml_get_widget(gui, "contact_mod"); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->info_mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->info_del), FALSE); /* info urls model/view */ model = rubrica_model_new(INFO_MODEL); tree = GTK_TREE_VIEW(form->priv->contacts_tree); gtk_tree_view_set_model(tree, GTK_TREE_MODEL(model)); selection = gtk_tree_view_get_selection(tree); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); rubrica_model_add_columns(tree, INFO_COLUMNS); g_signal_connect(G_OBJECT(selection), "changed", G_CALLBACK(form_info_list_activated), form); g_object_unref(model); /* info buttons */ g_signal_connect (G_OBJECT (form->priv->info_add), "clicked", G_CALLBACK (form_info_add_clicked), form); g_signal_connect (G_OBJECT (form->priv->info_mod), "clicked", G_CALLBACK(form_info_mod_clicked), form); g_signal_connect (G_OBJECT (form->priv->info_del), "clicked", G_CALLBACK (form_info_del_clicked), form); /* logo button */ g_signal_connect (G_OBJECT (form->priv->logo_bt), "clicked", G_CALLBACK (form_info_logo_clicked), form); return form; } /** * rubrica_form_info_free * @form: a #RubricaFormInfo * * free the #RubricaFormInfo */ void rubrica_form_info_free(RubricaFormInfo* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/search_dialog.c0000644000175000017500000002105710637705370015330 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "search_dialog.h" #include "calendar.h" #include "types.h" #include "utils.h" #include "libral.h" typedef struct { gchar* str; } ComboLabel; static ComboLabel combo_labels[] = { {N_("is") }, {N_("is before of")}, {N_("is after of") }, {N_("is between") }, {NULL} }; typedef enum { SEARCH_DATE = 0, SEARCH_BEFORE, SEARCH_AFTER, SEARCH_BETWEEN, } SearchOn; typedef struct { GtkWidget* window; GtkWidget* search; // entry for string to search for GtkWidget* date_check; // check button (checked if search on date) GtkWidget* str_box; // enabled if search is performed on string GtkWidget* date_box; // enabled if search is performed on date GtkWidget* date2_box; // enabled if search is between dates GtkWidget* creation; // radio button GtkWidget* last_change; // radio button GtkWidget* combo; // date search type GtkWidget* combo_box; // date search type GtkWidget* date1; // entry for (first) date GtkWidget* date2; // entry for second date GtkWidget* calendar1_box; // calendar button GtkWidget* calendar2_box; // calendar button } RubricaSearchDialog; RubricaSearch* search; static void on_date_check (GtkWidget* check, gpointer data); static void on_radio_cb (GtkWidget* radio, gpointer data); static void on_combo_changed (GtkWidget* combo, gpointer data); static void on_get_first_date_cb (GtkWidget* calendar, GDate* date, gpointer data); static void on_get_second_date_cb (GtkWidget* calendar, GDate* date, gpointer data); static void on_date_check(GtkWidget* button, gpointer data) { RubricaSearchDialog* dialog = (RubricaSearchDialog*) data; SearchType active; if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->date_check))) { gtk_widget_set_sensitive(dialog->date_box, TRUE); gtk_widget_set_sensitive(dialog->str_box, FALSE); if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->creation))) search->type = SEARCH_ON_CREATION; else search->type = SEARCH_ON_CHANGE; } else { gtk_widget_set_sensitive(dialog->date_box, FALSE); gtk_widget_set_sensitive(dialog->str_box, TRUE); search->type = SEARCH_ON_STRING; } active = gtk_combo_box_get_active(GTK_COMBO_BOX(dialog->combo)); if (active == SEARCH_BETWEEN) gtk_widget_show_all(dialog->date2_box); else gtk_widget_hide_all(dialog->date2_box); } static void on_radio_cb (GtkWidget* radio, gpointer data) { RubricaSearchDialog* dialog = (RubricaSearchDialog*) data; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->creation))) search->type = SEARCH_ON_CREATION; else search->type = SEARCH_ON_CHANGE; } static void on_combo_changed (GtkWidget *combo, gpointer data) { RubricaSearchDialog* dialog = (RubricaSearchDialog*) data; SearchOn active; gtk_widget_hide_all(dialog->date2_box); active = (SearchOn) gtk_combo_box_get_active(GTK_COMBO_BOX(combo)); switch (active) { case SEARCH_BEFORE: search->second = 0; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->creation))) search->type = SEARCH_CREATION_BEFORE; else search->type = SEARCH_CHANGE_BEFORE; break; case SEARCH_AFTER: search->second = 0; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialog->creation))) search->type = SEARCH_CREATION_AFTER; else search->type = SEARCH_CHANGE_AFTER; break; case SEARCH_BETWEEN: gtk_widget_show_all(dialog->date2_box); if (search->type == SEARCH_ON_CREATION) search->type = SEARCH_CREATION_BETWEEN; else search->type = SEARCH_CHANGE_BETWEEN; break; default: break; } } static void on_get_first_date_cb(GtkWidget* calendar, GDate* date, gpointer data) { struct tm tm; g_date_to_struct_tm(date, &tm); search->first = mktime(&tm); } static void on_get_second_date_cb(GtkWidget* calendar, GDate* date, gpointer data) { struct tm tm; g_date_to_struct_tm(date, &tm); search->second = mktime(&tm); } /* Public */ void rubrica_search_dialog(RubricaApp* app) { GladeXML* gui; RubricaSearchDialog* dialog; RAbook* book; GList* result = NULL; gchar* string = NULL; gint response, i; gui = glade_xml_new (RUBRICA_GUI_DIR"/Search.glade", NULL, NULL); if (!gui) g_error("Can't load gui"); search = g_new0(RubricaSearch, 1); dialog = g_new0(RubricaSearchDialog, 1); dialog->window = glade_xml_get_widget(gui, "RubricaSearch"); dialog->search = glade_xml_get_widget(gui, "search"); dialog->date_check = glade_xml_get_widget(gui, "date_check"); dialog->date_box = glade_xml_get_widget(gui, "date_box"); dialog->str_box = glade_xml_get_widget(gui, "str_box"); dialog->creation = glade_xml_get_widget(gui, "creation"); dialog->last_change = glade_xml_get_widget(gui, "change"); dialog->combo_box = glade_xml_get_widget(gui, "combo_box"); dialog->date2_box = glade_xml_get_widget(gui, "date2_box"); dialog->calendar1_box = glade_xml_get_widget(gui, "calendar1_box"); dialog->calendar2_box = glade_xml_get_widget(gui, "calendar2_box"); dialog->combo = gtk_combo_box_new_text(); gtk_box_pack_start(GTK_BOX(dialog->combo_box), dialog->combo, TRUE, TRUE, 6); for (i = 0; combo_labels[i].str; i++) gtk_combo_box_append_text(GTK_COMBO_BOX(dialog->combo), _(combo_labels[i].str)); gtk_widget_show(dialog->combo); dialog->date1 = rubrica_calendar_new(); gtk_box_pack_start(GTK_BOX(dialog->calendar1_box), dialog->date1, TRUE, TRUE, 6); gtk_widget_show(dialog->date1); dialog->date2 = rubrica_calendar_new(); gtk_box_pack_start(GTK_BOX(dialog->calendar2_box), dialog->date2, TRUE, TRUE, 6); gtk_widget_hide_all(dialog->date2_box); g_object_unref(gui); search->type = SEARCH_ON_STRING; search->first = 0; search->second = 0; gtk_combo_box_set_active(GTK_COMBO_BOX(dialog->combo), SEARCH_DATE); gtk_widget_set_sensitive(dialog->date_box, FALSE); g_signal_connect(G_OBJECT(dialog->date_check), "toggled", G_CALLBACK(on_date_check), dialog); g_signal_connect(G_OBJECT(dialog->creation), "clicked", G_CALLBACK(on_radio_cb), dialog); g_signal_connect(G_OBJECT(dialog->last_change), "clicked", G_CALLBACK(on_radio_cb), dialog); g_signal_connect(G_OBJECT(dialog->combo), "changed", G_CALLBACK(on_combo_changed), dialog); g_signal_connect(G_OBJECT(dialog->date1), "calendar-change", G_CALLBACK(on_get_first_date_cb), dialog->date1); g_signal_connect(G_OBJECT(dialog->date2), "calendar-change", G_CALLBACK(on_get_second_date_cb), dialog->date2); response = gtk_dialog_run (GTK_DIALOG(dialog->window)); switch(response) { case GTK_RESPONSE_ACCEPT: book = rubrica_app_get_active_addressbook(app); switch(search->type) { case SEARCH_ON_STRING: string = g_strdup(gtk_entry_get_text(GTK_ENTRY(dialog->search))); result = r_abook_search(book, string); break; case SEARCH_ON_CREATION: case SEARCH_CREATION_BEFORE: case SEARCH_CREATION_AFTER: case SEARCH_ON_CHANGE: case SEARCH_CHANGE_AFTER: case SEARCH_CHANGE_BEFORE: result = r_abook_search_date(book, search->first, search->type); break; case SEARCH_CREATION_BETWEEN: case SEARCH_CHANGE_BETWEEN: result = r_abook_search_between(book, search->first, search->second, search->type); break; default: break; } rubrica_app_display_search_results(app, result); break; case GTK_RESPONSE_CLOSE: break; } gtk_widget_destroy(dialog->window); g_free(string); g_free(dialog); g_free(search); } rubrica-2.0/src/statusbar.c0000644000175000017500000003102010617654412014541 0ustar seb128seb128/* * Rubrica * file: statusbar.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "statusbar.h" #include "types.h" enum { PROP_0, STATUSBAR_MESSAGE, STATUSBAR_EXTRA, STATUSBAR_IMAGES, STATUSBAR_RATE, STATUSBAR_LOCK }; struct _RubricaStatusbarPrivate { gint ctxid; gchar* message; gboolean enable_extra; gboolean enable_images; RubricaPixmap rate; RubricaPixmap lock; GtkWidget* extra; // extra box GtkWidget* images; // images's box GtkWidget* label; // GtkWidget* sep; GtkWidget* rate_img; // rate image GtkWidget* lock_img; // lock image gboolean dispose_has_run; }; #define RUBRICA_STATUSBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_STATUSBAR_TYPE, \ RubricaStatusbarPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_statusbar_class_init (RubricaStatusbarClass* klass); static void rubrica_statusbar_init (RubricaStatusbar* obj); static void rubrica_statusbar_finalize (RubricaStatusbar* self); static void rubrica_statusbar_dispose (RubricaStatusbar* self); static void rubrica_statusbar_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void rubrica_statusbar_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static GdkPixbuf* load_pixbuf(gint pixmap); static GdkPixbuf* load_pixbuf(gint pixmap) { GtkIconTheme* theme; GdkPixbuf* pixbuf = NULL; theme = gtk_icon_theme_get_default(); switch(pixmap) { case PIXMAP_RATE_NONE: pixbuf = gtk_icon_theme_load_icon (theme, "rate1", 20, 0, NULL); break; case PIXMAP_RATE_FEW: pixbuf = gtk_icon_theme_load_icon (theme, "rate2", 20, 0, NULL); break; case PIXMAP_RATE_NORMAL: pixbuf = gtk_icon_theme_load_icon (theme, "rate3", 20, 0, NULL); break; case PIXMAP_RATE_HIGHT: pixbuf = gtk_icon_theme_load_icon (theme, "rate4", 20, 0, NULL); break; case PIXMAP_RATE_VERY_HIGHT: pixbuf = gtk_icon_theme_load_icon (theme, "rate5", 20, 0, NULL); break; case PIXMAP_LOCK: pixbuf = gtk_icon_theme_load_icon (theme, "stock_lock-ok", 18, 0, NULL); break; case PIXMAP_UNLOCK: pixbuf = gtk_icon_theme_load_icon (theme, "stock_lock-open", 18, 0, NULL); break; default: break; } return pixbuf; } GType rubrica_statusbar_get_type() { static GType rubrica_bar_type = 0; if (!rubrica_bar_type) { static const GTypeInfo rubrica_bar_info = { sizeof(RubricaStatusbarClass), NULL, NULL, (GClassInitFunc) rubrica_statusbar_class_init, NULL, NULL, sizeof(RubricaStatusbar), 0, (GInstanceInitFunc) rubrica_statusbar_init }; rubrica_bar_type = g_type_register_static (GTK_TYPE_STATUSBAR, "RubricaStatusbar", &rubrica_bar_info, 0); } return rubrica_bar_type; } static void rubrica_statusbar_dispose (RubricaStatusbar* self) { g_return_if_fail(IS_RUBRICA_STATUSBAR(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_statusbar_finalize (RubricaStatusbar* self) { g_return_if_fail(IS_RUBRICA_STATUSBAR(self)); } static void rubrica_statusbar_class_init(RubricaStatusbarClass* klass) { GObjectClass *object_class; GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class = G_OBJECT_CLASS (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_statusbar_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_statusbar_dispose; object_class->set_property = (gpointer) rubrica_statusbar_set_property; object_class->get_property = (gpointer) rubrica_statusbar_get_property; g_type_class_add_private (klass, sizeof(RubricaStatusbarPrivate)); /** * RubricaStatusbar:enable-extra * * */ pspec = g_param_spec_boolean("enable-extra", "eneble extra", "enable extra box", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, STATUSBAR_EXTRA, pspec); /** * RubricaStatusbar:enable-images * * */ pspec = g_param_spec_boolean("enable-images", "eneble images", "enable images box", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, STATUSBAR_IMAGES, pspec); /** * RubricaCardsView:msg * * the name of the addressbook displayed */ pspec = g_param_spec_string("message", "message", "a message", "", G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, STATUSBAR_MESSAGE, pspec); /** * RubricaStatusbar:enable-rate * * */ pspec = g_param_spec_int("rate", "rate pixmap", "set rate pixmap", PIXMAP_RATE_NONE, // min PIXMAP_RATE_VERY_HIGHT, // manx PIXMAP_RATE_NORMAL, // default G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, STATUSBAR_RATE, pspec); /** * RubricaStatusbar:enable-lock * * */ pspec = g_param_spec_int("lock", "lock pixmap", "set lock pixmap", PIXMAP_UNLOCK, // min PIXMAP_LOCK, // max PIXMAP_UNLOCK, // default G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, STATUSBAR_LOCK, pspec); } static void rubrica_statusbar_init(RubricaStatusbar* self) { GtkWidget* sep; GtkWidget* label; g_return_if_fail(IS_RUBRICA_STATUSBAR(self)); self->priv = RUBRICA_STATUSBAR_GET_PRIVATE(self); self->priv->extra = gtk_hbox_new(FALSE, 0); self->priv->images = gtk_hbox_new(FALSE, 0); self->priv->ctxid = 0; self->priv->message = NULL; self->priv->enable_extra = FALSE; self->priv->label = gtk_label_new(""); self->priv->rate_img = gtk_image_new(); self->priv->lock_img = gtk_image_new(); /* Build the statusbar */ gtk_statusbar_set_has_resize_grip(GTK_STATUSBAR(self), TRUE); self->priv->ctxid = gtk_statusbar_get_context_id(GTK_STATUSBAR(self), "RubricaContext"); /* Build extra box */ gtk_box_pack_start(GTK_BOX(self), self->priv->extra, FALSE, FALSE, 2); gtk_box_pack_start(GTK_BOX(self), self->priv->images, FALSE, FALSE, 2); gtk_widget_show(self->priv->extra); gtk_widget_show(self->priv->images); sep = gtk_vseparator_new(); gtk_box_pack_start(GTK_BOX(self->priv->extra), sep, FALSE, FALSE, 2); gtk_widget_show(sep); gtk_box_pack_start(GTK_BOX(self->priv->extra), self->priv->label, TRUE, TRUE, 2); gtk_widget_show(self->priv->label); self->priv->sep = gtk_vseparator_new(); gtk_box_pack_start(GTK_BOX(self->priv->extra), self->priv->sep, FALSE, FALSE, 2); gtk_widget_hide(self->priv->sep); label = gtk_label_new(_("rate:")); gtk_box_pack_start(GTK_BOX(self->priv->images), label, FALSE, FALSE, 2); gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(self->priv->images), self->priv->rate_img, FALSE, FALSE, 2); gtk_widget_show(self->priv->rate_img); sep = gtk_vseparator_new(); gtk_box_pack_start(GTK_BOX(self->priv->images), sep, FALSE, FALSE, 2); gtk_widget_show(sep); label = gtk_label_new(_("status:")); gtk_box_pack_start(GTK_BOX(self->priv->images), label, FALSE, FALSE, 2); gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(self->priv->images), self->priv->lock_img, FALSE, FALSE, 2); gtk_widget_show(self->priv->lock_img); gtk_widget_set_sensitive(self->priv->extra, FALSE); gtk_widget_set_sensitive(self->priv->images, FALSE); gtk_widget_show(GTK_WIDGET(self)); self->priv->dispose_has_run = FALSE; } static void rubrica_statusbar_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaStatusbar* self = (RubricaStatusbar*) obj; RubricaStatusbarPrivate* priv = RUBRICA_STATUSBAR_GET_PRIVATE(self); GdkPixbuf* pixbuf = NULL; switch (property_id) { case STATUSBAR_MESSAGE: if (priv->message) g_free(priv->message); priv->message = g_value_dup_string(value); gtk_label_set_text(GTK_LABEL(priv->label), priv->message); if (g_ascii_strcasecmp(priv->message, "") == 0) gtk_widget_hide(self->priv->sep); else gtk_widget_show(self->priv->sep); break; case STATUSBAR_EXTRA: priv->enable_extra = g_value_get_boolean(value); gtk_widget_set_sensitive(priv->extra, priv->enable_extra); break; case STATUSBAR_IMAGES: priv->enable_images = g_value_get_boolean(value); gtk_widget_set_sensitive(priv->images, priv->enable_images); break; case STATUSBAR_RATE: priv->rate = g_value_get_int(value); pixbuf = load_pixbuf(priv->rate); if (pixbuf) { gtk_image_set_from_pixbuf (GTK_IMAGE (priv->rate_img), pixbuf); gdk_pixbuf_unref (pixbuf); } break; case STATUSBAR_LOCK: priv->lock = g_value_get_int(value); pixbuf = load_pixbuf(priv->lock); if (pixbuf) { gtk_image_set_from_pixbuf (GTK_IMAGE (priv->lock_img), pixbuf); gdk_pixbuf_unref (pixbuf); } break; default: break; } } static void rubrica_statusbar_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaStatusbar* self = (RubricaStatusbar*) obj; RubricaStatusbarPrivate* priv = RUBRICA_STATUSBAR_GET_PRIVATE(self); switch (property_id) { case STATUSBAR_MESSAGE: g_value_set_string(value, priv->message); break; case STATUSBAR_EXTRA: g_value_set_boolean(value, priv->enable_extra); break; case STATUSBAR_IMAGES: g_value_set_boolean(value, priv->enable_images); break; case STATUSBAR_RATE: g_value_set_int(value, priv->rate); break; case STATUSBAR_LOCK: g_value_set_int(value, priv->lock); break; default: break; } } /* Public */ /** * rubrica_statusbar_new * * create a #RubricaStatusbar * * returns: a new #RubricaStatusbar */ GtkWidget* rubrica_statusbar_new() { GtkWidget* bar; bar = GTK_WIDGET(g_object_new(RUBRICA_STATUSBAR_TYPE, NULL)); return bar; } void rubrica_statusbar_free (RubricaStatusbar* bar) { g_object_unref(bar); } void rubrica_statusbar_push_message (RubricaStatusbar* bar, gchar* msg) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); if (!msg) return; gtk_statusbar_push(GTK_STATUSBAR(bar), bar->priv->ctxid, msg); } void rubrica_statusbar_clean_messages (RubricaStatusbar* bar) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); gtk_statusbar_pop(GTK_STATUSBAR(bar), bar->priv->ctxid); } void rubrica_statusbar_enable_extra (RubricaStatusbar* bar, gboolean bool) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); g_object_set(bar, "enable-extra", bool, NULL); } void rubrica_statusbar_enable_images (RubricaStatusbar* bar, gboolean bool) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); g_object_set(bar, "enable-images", bool, NULL); } void rubrica_statusbar_extra_set_text (RubricaStatusbar* bar, gchar* text) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); if(!text) return; g_object_set(bar, "message", text, NULL); } void rubrica_statusbar_extra_set_rate (RubricaStatusbar* bar, RubricaPixmap rate) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); g_object_set(bar, "rate", rate, NULL); } void rubrica_statusbar_extra_set_lock (RubricaStatusbar* bar, RubricaPixmap lock) { g_return_if_fail(IS_RUBRICA_STATUSBAR(bar)); g_object_set(bar, "lock", lock, NULL); } rubrica-2.0/src/cards.c0000644000175000017500000000472310617433024013631 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral/libral.h" #include "app.h" #include "personal_gui.h" #include "company_gui.h" void cards_modify_personal_card (RubricaApp* app, RAbook* book, RCard* old); void cards_modify_company_card (RubricaApp* app, RAbook* book, RCard* old); void cards_modify_personal_card (RubricaApp* app, RAbook* book, RCard* old) { RPersonalCard* newcard = NULL; PersonalDialog* form = NULL; form = rubrica_personal_dialog_new(app); rubrica_personal_display_card_data(form, old); newcard = rubrica_personal_run_modify_dialog(form); if (newcard) r_abook_replace_card(R_ABOOK(book), old, R_CARD(newcard)); } void cards_modify_company_card (RubricaApp* app, RAbook* book, RCard* old) { RCompanyCard* newcard = NULL; CompanyDialog* form = NULL; form = rubrica_company_dialog_new(app); rubrica_company_display_card_data(form, old); newcard = rubrica_company_run_modify_dialog(form); if (newcard) r_abook_replace_card(R_ABOOK(book), old, R_CARD(newcard)); } void cards_append_personal_card (RubricaApp* app) { PersonalDialog* form; form = rubrica_personal_dialog_new(app); rubrica_personal_run_add_dialog(form); } void cards_append_company_card (RubricaApp* app) { CompanyDialog* form; form = rubrica_company_dialog_new(app); rubrica_company_run_add_dialog(form); } void cards_modify_card (RubricaApp* app, RAbook* book, RCard* card) { gchar* type; g_object_get(card, "card-type", &type, NULL); if (g_ascii_strcasecmp(type, "personal") == 0) cards_modify_personal_card (app, book, card); else cards_modify_company_card (app, book, card); } rubrica-2.0/src/cards.h0000644000175000017500000000211610617433024013630 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_CARDS_H #define _RUBRICA_CARDS_H #include "libral/libral.h" #include "app.h" void cards_append_personal_card (RubricaApp* app); void cards_append_company_card (RubricaApp* app); void cards_modify_card (RubricaApp* app, RAbook* book, RCard* card); #endif rubrica-2.0/src/personal_gui.c0000644000175000017500000001066710617433024015230 0ustar seb128seb128/* * Rubrica * file: personal-form.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "personal_gui.h" #include "form.h" #include "form_card.h" #include "form_address.h" #include "form_contact.h" #include "form_net.h" #include "form_notes.h" #include "form_phone.h" #include "form_work.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" /* Public */ PersonalDialog* rubrica_personal_dialog_new (RubricaApp* app) { PersonalDialog *form = NULL; GladeXML *gui; gui = glade_xml_new (RUBRICA_GUI_DIR"/PersonalCard.glade", NULL, NULL); if (!gui) g_error("Can't load gui"); form = (PersonalDialog*) g_malloc0(sizeof(PersonalDialog)); if (!form) g_error("out of memory"); form->app = app; form->dialog = glade_xml_get_widget(gui, "PersonalForm"); form->card = rubrica_form_card_new(app, gui); form->contact = rubrica_form_contact_new(app, gui); form->work = rubrica_form_work_new(app, gui); form->address = rubrica_form_address_new(app, gui); form->net = rubrica_form_net_new(app, gui, FORM_NET_PERSONAL); form->tel = rubrica_form_phone_new(app, gui, FORM_PHONE_PERSONAL); form->note = rubrica_form_notes_new(app, gui); g_object_unref(gui); return form; } RPersonalCard* rubrica_personal_run_add_dialog (PersonalDialog* form) { RubricaApp *app; RAbook *book; RPersonalCard *card = NULL; gint response; app = form->app; book = rubrica_app_get_active_addressbook(app); response = gtk_dialog_run(GTK_DIALOG(form->dialog)); switch (response) { case GTK_RESPONSE_OK: card = rubrica_personal_extract_card_data(form); if (card) { r_abook_add_card(R_ABOOK(book), R_CARD(card)); } break; case GTK_RESPONSE_CANCEL: break; default: break; } gtk_widget_hide(form->dialog); g_free(form); return card; } RPersonalCard* rubrica_personal_run_modify_dialog(PersonalDialog* form) { RPersonalCard* card = NULL; gint response; response = gtk_dialog_run(GTK_DIALOG(form->dialog)); switch (response) { case GTK_RESPONSE_OK: card = rubrica_personal_extract_card_data(form); break; case GTK_RESPONSE_CANCEL: break; default: break; } gtk_widget_hide(form->dialog); g_free(form); return (RPersonalCard*) card; } RPersonalCard* rubrica_personal_extract_card_data(PersonalDialog* form) { RPersonalCard *card; card = r_personal_card_new(); rubrica_form_extract_data(RUBRICA_FORM(form->card), R_CARD(card)); rubrica_form_extract_data(RUBRICA_FORM(form->contact), R_CARD(card)); rubrica_form_extract_data(RUBRICA_FORM(form->work), R_CARD(card)); rubrica_form_extract_data(RUBRICA_FORM(form->address), R_CARD(card)); rubrica_form_extract_data(RUBRICA_FORM(form->net), R_CARD(card)); rubrica_form_extract_data(RUBRICA_FORM(form->tel), R_CARD(card)); rubrica_form_extract_data(RUBRICA_FORM(form->note), R_CARD(card)); return card; } void rubrica_personal_display_card_data(PersonalDialog* form, RCard* card) { RGroupBox *box; g_return_if_fail(IS_R_CARD(card)); box = rubrica_app_get_groups(form->app); rubrica_form_display_data (RUBRICA_FORM(form->card), card); rubrica_form_display_data (RUBRICA_FORM(form->contact), card); rubrica_form_display_data (RUBRICA_FORM(form->work), card); rubrica_form_display_data (RUBRICA_FORM(form->address), card); rubrica_form_display_data (RUBRICA_FORM(form->net), card); rubrica_form_display_data (RUBRICA_FORM(form->tel), card); rubrica_form_display_data (RUBRICA_FORM(form->note), card); } rubrica-2.0/src/browse.h0000644000175000017500000000236510617433024014043 0ustar seb128seb128/* * Rubrica * file: browse.h * * Copyright (C) 2000-2001 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_BROWSE_H #define _RUBRICA_BROWSE_H #include #include "app.h" /* funzioni per la navigazione tra le schede inserite */ void rubrica_browse_first_card (RubricaApp* app); void rubrica_browse_last_card (RubricaApp* app); void rubrica_browse_next_card (RubricaApp* app); void rubrica_browse_previous_card (RubricaApp* app); void rubrica_browse_nth_card (RubricaApp* app, gchar *path_str); #endif rubrica-2.0/src/groups_cb.h0000644000175000017500000000211610617433024014517 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #ifndef _GROUP_TREE_H #define _GROUP_TREE_H gboolean on_app_group_view_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data); gboolean on_form_group_view_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data); #endif rubrica-2.0/src/preferences.c0000644000175000017500000007350510637705356015056 0ustar seb128seb128/* * Rubrica * file: preferences.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "libral.h" #include "app.h" #include "search.h" #include "models.h" #include "preferences.h" #include "themes.h" #include "types.h" enum { FILES_COLUMN, TYPE_COLUMN, FILES_LAST_COLUMN }; static GConfEnumStringPair toolbar_pairs[] = { {RUB_ICONS, "only icons" }, {RUB_TEXT, "only text" }, {RUB_BOTH, "both icons and text"}, {RUB_GNOME, "gnome default" }, {0, NULL} }; static GConfEnumStringPair search_pairs[] = { {CARD_COLUMN, "card" }, {FIRST_NAME_COLUMN, "first name"}, {LAST_NAME_COLUMN, "last name" }, {PROFESSION_COLUMN, "profession"}, {CITY_COLUMN, "city" }, {COUNTRY_COLUMN, "country" }, {WEB_CARD_COLUMN, "web" }, {EMAIL_CARD_COLUMN, "emails" }, {TELEPHONE_COLUMN, "telephone" }, {ASSIGNMENT_COLUMN, "assignment"}, {COMPANY_COLUMN, "company" }, {0, NULL} }; static GConfEnumStringPair browser_pairs[] = { {RUB_EPIPHANY, "epiphany" }, {RUB_FIREFOX, "firefox" }, {RUB_GALEON, "galeon" }, {RUB_KONQUEROR, "konqueror" }, {RUB_MOZILLA, "mozilla" }, {RUB_SEAMONKEY, "seamonkey" }, {RUB_OPERA, "opera" }, {RUB_OTHER_BROWSER, "other" }, {0, NULL} }; static GConfEnumStringPair emailer_pairs[] = { {RUB_BALSA, "balsa" }, {RUB_EVOLUTION, "evolution" }, {RUB_MOZILLA_MAIL, "mozilla" }, {RUB_SEAMONKEY_MAIL, "seamonkey" }, // seamonkey -mail {RUB_THUNDERBIRD, "thunderbird"}, {RUB_OTHER_EMAILER, "other" }, {0, NULL} }; static GConfEnumStringPair irc_pairs[] = { {RUB_PIDGIN, "pidgin" }, {RUB_GAIM, "gaim" }, {RUB_GABBER, "gabber" }, {RUB_GAJIM, "gajim" }, {RUB_GADU, "GNU gadu"}, {RUB_GOSSIP, "gossip" }, {RUB_OTHER_IRC, "other" }, {0, NULL} }; static RubricaThemedItem toolbar[] = { {N_("Only icons"), "", NULL}, {N_("Only text"), "", NULL}, {N_("Both icons and text"), "", NULL}, {N_("Use Gnome settings"), "", NULL}, {NULL} }; static RubricaThemedItem browser[] = { {"Epiphany", "epiphany", "epiphany" }, {"Firefox", "firefox", "firefox" }, {"Galeon", "galeon", "galeon" }, {"Konqueror", "konqueror", "konqueror" }, {"Mozilla", "mozilla-icon", "mozilla" }, {"Seamonkey", "seamonkey-icon", "seamonkey" }, {"Opera", "opera", "opera" }, {N_("Other"), "application-x-executable", NULL}, {NULL} }; static RubricaThemedItem emailer[] = { {"Balsa", "balsa_icon", "balsa" }, {"Evolution", "evolution", "evolution" }, {"Mozilla mail", "mozilla_mail", "mozilla" }, {"Seamonkey mail", "seamonkey-mail-icon", "seamonkey" }, {"Thunderbird", "thunderbird", "thunderbird"}, {N_("Other"), "application-x-executable", NULL}, {NULL} }; static RubricaThemedItem ircs[] = { {"Pidgin", "pidgin", "pidgin"}, {"Gaim", "gaim", "gaim" }, {"Gabber", "gabber", "gabber"}, {"Gajim", "application-x-executable", ""}, {"GNU Gadu", "application-x-executable", ""}, {"Gossip", "application-x-executable", ""}, {N_("Other"), "application-x-executable", NULL}, {NULL} }; typedef struct _prefer { GtkWidget* dialog; GtkWidget* folder_chooser; GtkWidget* file_chooser; GtkWidget* load_check; GtkWidget* load_vbox; GtkWidget* load_view; GtkWidget* add; GtkWidget* compress; GtkWidget* autosave; GtkWidget* backup; GtkWidget* toolbar_combo; GtkWidget* font_button; GtkWidget* exit; GtkWidget* web_combo; GtkWidget* email_combo; GtkWidget* irc_combo; GtkWidget* ekiga; GtkWidget* web_box; GtkWidget* email_box; GtkWidget* irc_box; GtkWidget* web_entry; GtkWidget* email_entry; GtkWidget* irc_entry; } RubricaPrefer; void on_load_check_cb (GtkWidget* check, gpointer data); void on_load_view_event (GtkTreeView* tree, GdkEvent *event, gpointer data); void on_folder_chooser_cb (GtkFileChooser *chooser, gpointer data); void on_remove_addressbook (GtkWidget* button, gpointer data); void on_add_cb (GtkWidget* button, gpointer data); void on_compress_cb (GtkWidget* spin, gpointer data); void on_autosave_cb (GtkWidget* check, gpointer data); void on_backup_cb (GtkWidget* check, gpointer data); void on_exit_cb (GtkWidget* check, gpointer data); void on_toolbar_style_cb (GtkWidget* combo, gpointer data); void on_font_set_cb (GtkFontButton *widget, gpointer data); // void on_search_changed_cb (GtkWidget* combo, gpointer data); void on_browser_changed_cb (GtkWidget* combo, gpointer data); void on_emailer_changed_cb (GtkWidget* combo, gpointer data); void on_irc_changed_cb (GtkWidget* combo, gpointer data); void on_web_entry_activate_cb (GtkWidget* combo, gpointer data); void on_email_entry_activate_cb (GtkWidget* combo, gpointer data); void on_irc_entry_activate_cb (GtkWidget* combo, gpointer data); void on_ekiga_cb (GtkWidget* check, gpointer data); void rubrica_preferences_change_toolbar (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data); void rubrica_preferences_show_column (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data); void rubrica_preferences_font_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data); void rubrica_preferences_gui_setup (RubricaPrefer* prefer, gpointer data); void rubrica_preferences_set_status (RubricaPrefer* prefer, const gchar* key); void on_load_check_cb(GtkWidget* check, gpointer data) { GConfClient* client; RubricaPrefer* prefer = (RubricaPrefer*) data; gboolean bool; client = gconf_client_get_default(); bool = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(check)); gtk_widget_set_sensitive(prefer->load_vbox, bool); gconf_client_set_bool(client, RUBRICA_GCONF_LOAD_FILES, bool, NULL); g_object_unref(client); } void on_load_view_event(GtkTreeView* tree, GdkEvent *event, gpointer data) { GdkEventButton *ev = (GdkEventButton *) event; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreePath *path = NULL; GtkTreeIter iter; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); if (gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gtk_tree_selection_select_path(selection, path); gtk_tree_model_get_iter(model, &iter, path); gtk_tree_path_free(path); if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) { GtkMenu* menu; GtkWidget *remove; menu = (GtkMenu*) gtk_menu_new(); remove = gtk_menu_item_new_with_mnemonic (_("_remove addressbook")); gtk_widget_show (remove); gtk_container_add (GTK_CONTAINER (menu), remove); g_signal_connect (G_OBJECT(remove), "activate", G_CALLBACK (on_remove_addressbook), tree); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); } } } void on_remove_addressbook(GtkWidget* button, gpointer data) { GtkTreeView* tree = (GtkTreeView*) data; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreeIter iter; GConfClient *client; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); client = gconf_client_get_default(); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gchar* file = NULL; GSList* files = NULL; GSList* l = NULL; gtk_tree_model_get(model, &iter, FILES_COLUMN, &file, -1); gtk_list_store_remove(GTK_LIST_STORE(model), &iter); files = gconf_client_get_list(client, RUBRICA_GCONF_FILES, GCONF_VALUE_STRING, NULL); for(l = files; l; l = l->next) { if (g_ascii_strcasecmp(file, (gchar*) l->data) == 0) { files = g_slist_remove_link(files, l); g_free(file); g_slist_free_1(l); break; } } gconf_client_set_list(client, RUBRICA_GCONF_FILES, GCONF_VALUE_STRING, files, NULL); } } void on_folder_chooser_cb (GtkFileChooser *chooser, gpointer data) { gchar* folder = NULL; GConfClient* client; client = gconf_client_get_default(); folder = gtk_file_chooser_get_current_folder (chooser); if (folder) gconf_client_set_string(client, RUBRICA_GCONF_FOLDER, folder, NULL); g_object_unref(client); } void on_add_cb (GtkWidget* button, gpointer data) { gchar* file = NULL; GConfClient* client; GtkTreeModel* model; GtkTreeIter iter; RubricaPrefer* prefer = (RubricaPrefer*) data; client = gconf_client_get_default(); file = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(prefer->file_chooser)); if (file) { GSList* files = NULL; files = gconf_client_get_list(client, RUBRICA_GCONF_FILES, GCONF_VALUE_STRING, NULL); files = g_slist_append(files, file); model = gtk_tree_view_get_model(GTK_TREE_VIEW(prefer->load_view)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, FILES_COLUMN, file, -1); gconf_client_set_list(client, RUBRICA_GCONF_FILES, GCONF_VALUE_STRING, files, NULL); } g_object_unref(client); } void on_compress_cb (GtkWidget* spin, gpointer data) { GConfClient* client; gint val; client = gconf_client_get_default(); val = (gint) gtk_spin_button_get_value(GTK_SPIN_BUTTON(spin)); gconf_client_set_int(client, RUBRICA_GCONF_RATE, val, NULL); g_object_unref(client); } void on_autosave_cb (GtkWidget* check, gpointer data) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(check)); gconf_client_set_bool(client, RUBRICA_GCONF_AUTOSAVE, bool, NULL); g_object_unref(client); } void on_backup_cb (GtkWidget* check, gpointer data) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(check)); gconf_client_set_bool(client, RUBRICA_GCONF_BACKUP, bool, NULL); g_object_unref(client); } /* notificare void on_tooltips_cb (GtkWidget* check, gpointer data) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(check)); gconf_client_set_bool(client, RUBRICA_GCONF_TOOLTIPS, bool, NULL); g_object_unref(client); } */ void on_exit_cb (GtkWidget* check, gpointer data) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(check)); gconf_client_set_bool(client, RUBRICA_GCONF_CONFIRM_EXIT, bool, NULL); g_object_unref(client); } void on_ekiga_cb (GtkWidget* check, gpointer data) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(check)); gconf_client_set_bool(client, RUBRICA_GCONF_EKIGA, bool, NULL); g_object_unref(client); } void on_font_set_cb (GtkFontButton *button, gpointer data) { const gchar* font = NULL; GConfClient* client; client = gconf_client_get_default(); font = gtk_font_button_get_font_name(GTK_FONT_BUTTON(button)); if (font) gconf_client_set_string(client, RUBRICA_GCONF_FONT, font, NULL); g_object_unref(client); } void on_toolbar_style_cb (GtkWidget* combo, gpointer data) { GConfClient* client; gint active; const gchar* val; client = gconf_client_get_default(); active = gtk_combo_box_get_active(GTK_COMBO_BOX(combo)); val = gconf_enum_to_string (toolbar_pairs, active); gconf_client_set_string(client, RUBRICA_GCONF_TOOLBAR, val, NULL); g_object_unref(client); } void on_browser_changed_cb (GtkWidget* combo, gpointer data) { RubricaPrefer* prefer = (RubricaPrefer*) data; GConfClient* client; gint active; const gchar* val; client = gconf_client_get_default(); active = gtk_combo_box_get_active(GTK_COMBO_BOX(combo)); val = gconf_enum_to_string (browser_pairs, active); gconf_client_set_string(client, RUBRICA_GCONF_BROWSER, val, NULL); if (active == RUB_OTHER_BROWSER) gtk_widget_set_sensitive(prefer->web_box, TRUE); else gtk_widget_set_sensitive(prefer->web_box, FALSE); g_object_unref(client); } void on_emailer_changed_cb (GtkWidget* combo, gpointer data) { RubricaPrefer* prefer = (RubricaPrefer*) data; GConfClient* client; gint active; const gchar* val; client = gconf_client_get_default(); active = gtk_combo_box_get_active(GTK_COMBO_BOX(combo)); val = gconf_enum_to_string (emailer_pairs, active); gconf_client_set_string(client, RUBRICA_GCONF_EMAILS, val, NULL); if (active == RUB_OTHER_EMAILER) gtk_widget_set_sensitive(prefer->email_box, TRUE); else gtk_widget_set_sensitive(prefer->email_box, FALSE); g_object_unref(client); } void on_irc_changed_cb (GtkWidget* combo, gpointer data) { RubricaPrefer* prefer = (RubricaPrefer*) data; GConfClient* client; gint active; const gchar* val; client = gconf_client_get_default(); active = gtk_combo_box_get_active(GTK_COMBO_BOX(combo)); val = gconf_enum_to_string (irc_pairs, active); gconf_client_set_string(client, RUBRICA_GCONF_IRC, val, NULL); if (active == RUB_OTHER_IRC) gtk_widget_set_sensitive(prefer->irc_box, TRUE); else gtk_widget_set_sensitive(prefer->irc_box, FALSE); g_object_unref(client); } void on_web_entry_activate_cb (GtkWidget* combo, gpointer data) { RubricaPrefer* prefer = (RubricaPrefer*) data; GConfClient* client; const gchar* str; client = gconf_client_get_default(); str = gtk_entry_get_text(GTK_ENTRY(prefer->web_entry)); gconf_client_set_string(client, RUBRICA_GCONF_BROWSER_UD, str, NULL); g_object_unref(client); } void on_email_entry_activate_cb (GtkWidget* combo, gpointer data) { RubricaPrefer* prefer = (RubricaPrefer*) data; GConfClient* client; const gchar* str; client = gconf_client_get_default(); str = gtk_entry_get_text(GTK_ENTRY(prefer->email_entry)); gconf_client_set_string(client, RUBRICA_GCONF_EMAILS_UD, str, NULL); g_object_unref(client); } void on_irc_entry_activate_cb (GtkWidget* combo, gpointer data) { RubricaPrefer* prefer = (RubricaPrefer*) data; GConfClient* client; const gchar* str; client = gconf_client_get_default(); str = gtk_entry_get_text(GTK_ENTRY(prefer->irc_entry)); gconf_client_set_string(client, RUBRICA_GCONF_IRC_UD, str, NULL); g_object_unref(client); } void rubrica_preferences_set_status(RubricaPrefer* prefer, const gchar* key) { GConfClient* client; gchar* str; gint value; client = gconf_client_get_default(); if (g_ascii_strcasecmp(key, RUBRICA_GCONF_TOOLBAR) == 0) { str = gconf_client_get_string(client, RUBRICA_GCONF_TOOLBAR, NULL); gconf_string_to_enum(toolbar_pairs, str, &value); gtk_combo_box_set_active(GTK_COMBO_BOX(prefer->toolbar_combo), value); } if (g_ascii_strcasecmp(key, RUBRICA_GCONF_BROWSER) == 0) { str = gconf_client_get_string(client, RUBRICA_GCONF_BROWSER, NULL); gconf_string_to_enum(browser_pairs, str, &value); gtk_combo_box_set_active(GTK_COMBO_BOX(prefer->web_combo), value); if (value == RUB_OTHER_BROWSER) { str = gconf_client_get_string(client, RUBRICA_GCONF_BROWSER_UD, NULL); gtk_entry_set_text(GTK_ENTRY(prefer->web_entry), str); gtk_widget_set_sensitive(prefer->web_box, TRUE); } else gtk_widget_set_sensitive(prefer->web_box, FALSE); } if (g_ascii_strcasecmp(key, RUBRICA_GCONF_EMAILS) == 0) { str = gconf_client_get_string(client, RUBRICA_GCONF_EMAILS, NULL); gconf_string_to_enum(emailer_pairs, str, &value); gtk_combo_box_set_active(GTK_COMBO_BOX(prefer->email_combo), value); if (value == RUB_OTHER_EMAILER) { str = gconf_client_get_string(client, RUBRICA_GCONF_EMAILS_UD, NULL); gtk_entry_set_text(GTK_ENTRY(prefer->email_entry), str); gtk_widget_set_sensitive(prefer->email_box, TRUE); } else gtk_widget_set_sensitive(prefer->email_box, FALSE); } if (g_ascii_strcasecmp(key, RUBRICA_GCONF_IRC) == 0) { str = gconf_client_get_string(client, RUBRICA_GCONF_IRC, NULL); gconf_string_to_enum(irc_pairs, str, &value); gtk_combo_box_set_active(GTK_COMBO_BOX(prefer->irc_combo), value); if (value == RUB_OTHER_IRC) { str = gconf_client_get_string(client, RUBRICA_GCONF_IRC_UD, NULL); gtk_entry_set_text(GTK_ENTRY(prefer->irc_entry), str); gtk_widget_set_sensitive(prefer->irc_box, TRUE); } else gtk_widget_set_sensitive(prefer->irc_box, FALSE); } g_object_unref(client); } void rubrica_preferences_change_toolbar(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data) { RubricaApp* app = (RubricaApp*) data; gchar* str; gint style; str = gconf_client_get_string(client, RUBRICA_GCONF_TOOLBAR, NULL); gconf_string_to_enum(toolbar_pairs, str, &style); rubrica_app_set_toolbar_style(app, style); } void rubrica_preferences_show_column(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data) { gboolean bool; GtkTreeViewColumn* column = (GtkTreeViewColumn*) data; bool = gconf_value_get_bool (entry->value); gtk_tree_view_column_set_visible(column, bool); } void rubrica_preferences_font_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data) { RubricaApp* app = (RubricaApp*) data; gchar* str; str = gconf_client_get_string(client, RUBRICA_GCONF_FONT, NULL); rubrica_app_set_font(app, str); } void rubrica_preferences_gui_setup(RubricaPrefer* prefer, gpointer data) { RubricaApp* app = (RubricaApp*) data; GConfClient* client; GtkTreeModel* model; GtkTreeIter iter; GtkTreeSelection* selection; GtkCellRenderer *renderer; GSList* files = NULL; gboolean bool; gint rate; gchar* folder; gchar* font = NULL; client = gconf_client_get_default(); /* Addressbook page */ /* addressbooks files list view */ model = (GtkTreeModel*) gtk_list_store_new(FILES_LAST_COLUMN, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), FILES_COLUMN, GTK_SORT_ASCENDING); gtk_tree_view_set_model(GTK_TREE_VIEW(prefer->load_view), model); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(prefer->load_view)); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(prefer->load_view), -1, _("Addressbook"), renderer, "text", FILES_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(prefer->load_view), -1, _("Type"), renderer, "text", TYPE_COLUMN, NULL); /* default addressbooks's folder */ folder = gconf_client_get_string(client, RUBRICA_GCONF_FOLDER, NULL); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(prefer->folder_chooser), folder); /* addressbooks to load at startup */ bool = gconf_client_get_bool(client, RUBRICA_GCONF_LOAD_FILES, NULL); gtk_widget_set_sensitive(prefer->load_vbox, bool); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefer->load_check), bool); /* addressbooks list */ files = gconf_client_get_list(client, RUBRICA_GCONF_FILES, GCONF_VALUE_STRING, NULL); for (; files; files = files->next) { gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, FILES_COLUMN, (gchar*) files->data, -1); } /* combo buttons */ rubrica_themes_create_themed_list(GTK_COMBO_BOX(prefer->toolbar_combo), toolbar); rubrica_themes_create_themed_list(GTK_COMBO_BOX(prefer->web_combo), browser); rubrica_themes_create_themed_list(GTK_COMBO_BOX(prefer->email_combo), emailer); rubrica_themes_create_themed_list(GTK_COMBO_BOX(prefer->irc_combo), ircs); rubrica_preferences_set_status (prefer, RUBRICA_GCONF_TOOLBAR); rubrica_preferences_set_status (prefer, RUBRICA_GCONF_BROWSER); rubrica_preferences_set_status (prefer, RUBRICA_GCONF_EMAILS); rubrica_preferences_set_status (prefer, RUBRICA_GCONF_IRC); rubrica_preferences_set_status (prefer, RUBRICA_GCONF_SEARCH_ON); /* toolbar settings change */ gconf_client_notify_add(client, RUBRICA_GCONF_TOOLBAR, rubrica_preferences_change_toolbar, app, NULL, NULL); /* font button */ font = gconf_client_get_string(client, RUBRICA_GCONF_FONT, NULL); gtk_font_button_set_font_name (GTK_FONT_BUTTON(prefer->font_button), font); gconf_client_notify_add(client, RUBRICA_GCONF_FONT, rubrica_preferences_font_changed, app, NULL, NULL); /* compression rate*/ rate = gconf_client_get_int(client, RUBRICA_GCONF_RATE, NULL); gtk_spin_button_set_value(GTK_SPIN_BUTTON(prefer->compress), rate); /* autosave */ bool = gconf_client_get_bool (client, RUBRICA_GCONF_AUTOSAVE, NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(prefer->autosave), bool); /* bakcup */ bool = gconf_client_get_bool (client, RUBRICA_GCONF_BACKUP, NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(prefer->backup), bool); /* tooltips bool = gconf_client_get_bool (client, RUBRICA_GCONF_TOOLTIPS, NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(prefer->tooltips), bool); */ /* confirm exit */ bool = gconf_client_get_bool (client, RUBRICA_GCONF_CONFIRM_EXIT, NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(prefer->exit), bool); /* ekiga */ bool = gconf_client_get_bool (client, RUBRICA_GCONF_EKIGA, NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(prefer->ekiga), bool); } /* ************ Public */ void rubrica_preferences_set_search_on (GtkWidget* button, gpointer data) { GConfClient* client; const gchar* val; gint column = GPOINTER_TO_INT(data); client = gconf_client_get_default(); val = gconf_enum_to_string (search_pairs, column); gconf_client_set_string(client, RUBRICA_GCONF_SEARCH_ON, val, NULL); g_object_unref(client); } void on_preferences_search_notify (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data) { gint column; const gchar* value; GtkTreeView* view = (GtkTreeView*) data; GtkTreeViewColumn* col; value = gconf_value_get_string (entry->value); gconf_string_to_enum (search_pairs, value, &column); gtk_tree_view_set_search_column (view, column); col = gtk_tree_view_get_column(view, column); gtk_tree_view_scroll_to_cell(view, NULL, col, TRUE, .5, .5); } void rubrica_preferences_setup_search_on(GtkTreeView* view) { GConfClient* client; const gchar* val = NULL; gint column; client = gconf_client_get_default(); val = gconf_client_get_string(client, RUBRICA_GCONF_SEARCH_ON, NULL); if (!val) { val = gconf_enum_to_string (search_pairs, CARD_COLUMN); gconf_client_set_string(client, RUBRICA_GCONF_SEARCH_ON, val, NULL); gtk_tree_view_set_search_column (view, CARD_COLUMN); } gconf_string_to_enum (search_pairs, val, &column); gtk_tree_view_set_search_column (view, column); gconf_client_notify_add(client, RUBRICA_GCONF_SEARCH_ON, on_preferences_search_notify, view, NULL, NULL); g_object_unref(client); } void rubrica_preferences_setup_radio_group (GSList* group) { GConfClient* client; GtkWidget* radio; gchar* value; client = gconf_client_get_default(); value = gconf_client_get_string(client, RUBRICA_GCONF_SEARCH_ON, NULL); for (; group; group = g_slist_next(group)) { gchar* name; radio = (GtkWidget*) group->data; name = g_object_get_data(G_OBJECT(radio), "name"); if (g_ascii_strcasecmp(name, value) == 0) { gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(radio), TRUE); break; } } g_object_unref(client); } void rubrica_preferences_setup_colum (GtkTreeViewColumn* column, gchar* key) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gconf_client_get_bool(client, key, NULL); gtk_tree_view_column_set_visible(column, bool); gconf_client_notify_add(client, key, rubrica_preferences_show_column, column, NULL, NULL); g_object_unref(client); } void rubrica_preferences_setup_menu_check(GtkWidget* item, gchar* key) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gconf_client_get_bool(client, key, NULL); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(item), bool); g_object_unref(client); } void rubrica_preferences_run_gui(GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GladeXML* gui; GConfClient* client; RubricaPrefer* prefer; GtkWidget* chooser; gchar* folder = NULL; gui = glade_xml_new (RUBRICA_GUI_DIR"/Preferences.glade", NULL, NULL); if (!gui) g_error("\nCan't load %s gui", RUBRICA_GUI_DIR"/Preferences.glade"); prefer = g_malloc0(sizeof(RubricaPrefer)); prefer->dialog = glade_xml_get_widget(gui, "preferences"); prefer->folder_chooser = glade_xml_get_widget(gui, "folder_chooser"); prefer->file_chooser = glade_xml_get_widget(gui, "file_chooser"); prefer->load_check = glade_xml_get_widget(gui, "load_check"); prefer->load_vbox = glade_xml_get_widget(gui, "load_vbox"); prefer->load_view = glade_xml_get_widget(gui, "load_view"); prefer->add = glade_xml_get_widget(gui, "add"); prefer->compress = glade_xml_get_widget(gui, "compress"); prefer->autosave = glade_xml_get_widget(gui, "autosave"); prefer->backup = glade_xml_get_widget(gui, "backup"); prefer->toolbar_combo = glade_xml_get_widget(gui, "toolbar_combo"); prefer->font_button = glade_xml_get_widget(gui, "fontbutton"); prefer->exit = glade_xml_get_widget(gui, "exit"); prefer->web_combo = glade_xml_get_widget(gui, "web_combo"); prefer->email_combo = glade_xml_get_widget(gui, "email_combo"); prefer->irc_combo = glade_xml_get_widget(gui, "irc_combo"); prefer->ekiga = glade_xml_get_widget(gui, "ekiga"); prefer->web_box = glade_xml_get_widget(gui, "web_box"); prefer->email_box = glade_xml_get_widget(gui, "email_box"); prefer->irc_box = glade_xml_get_widget(gui, "irc_box"); prefer->web_entry = glade_xml_get_widget(gui, "web_entry"); prefer->email_entry = glade_xml_get_widget(gui, "email_entry"); prefer->irc_entry = glade_xml_get_widget(gui, "irc_entry"); g_object_unref(gui); g_signal_connect(G_OBJECT (prefer->load_check) , "toggled", G_CALLBACK(on_load_check_cb), prefer); g_signal_connect(G_OBJECT (prefer->add) , "clicked", G_CALLBACK(on_add_cb), prefer); g_signal_connect(G_OBJECT (prefer->compress) , "value-changed", G_CALLBACK(on_compress_cb), prefer); g_signal_connect(G_OBJECT (prefer->autosave) , "toggled", G_CALLBACK(on_autosave_cb), prefer); g_signal_connect(G_OBJECT (prefer->backup) , "toggled", G_CALLBACK(on_backup_cb), prefer); g_signal_connect(G_OBJECT (prefer->toolbar_combo) , "changed", G_CALLBACK(on_toolbar_style_cb), prefer); g_signal_connect(G_OBJECT (prefer->font_button), "font-set", G_CALLBACK(on_font_set_cb), prefer); g_signal_connect(G_OBJECT (prefer->web_combo) , "changed", G_CALLBACK(on_browser_changed_cb), prefer); g_signal_connect(G_OBJECT (prefer->email_combo) , "changed", G_CALLBACK(on_emailer_changed_cb), prefer); g_signal_connect(G_OBJECT (prefer->irc_combo) , "changed", G_CALLBACK(on_irc_changed_cb), prefer); g_signal_connect(G_OBJECT (prefer->web_entry) , "changed", G_CALLBACK(on_web_entry_activate_cb), prefer); g_signal_connect(G_OBJECT (prefer->email_entry) , "changed", G_CALLBACK(on_email_entry_activate_cb), prefer); g_signal_connect(G_OBJECT (prefer->irc_entry) , "changed", G_CALLBACK(on_irc_entry_activate_cb), prefer); g_signal_connect(G_OBJECT (prefer->exit) , "toggled", G_CALLBACK(on_exit_cb), prefer); g_signal_connect(G_OBJECT (prefer->ekiga), "toggled", G_CALLBACK(on_ekiga_cb), prefer); g_signal_connect(G_OBJECT (prefer->load_view) , "button_press_event", G_CALLBACK(on_load_view_event), prefer); chooser = gtk_file_chooser_dialog_new("Open", GTK_WINDOW(app->window), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); rubrica_preferences_gui_setup(prefer, app); gtk_dialog_run(GTK_DIALOG(prefer->dialog)); client = gconf_client_get_default(); chooser = prefer->folder_chooser; folder = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER(chooser)); if (folder) gconf_client_set_string(client, RUBRICA_GCONF_FOLDER, folder, NULL); g_object_unref(client); gtk_widget_destroy(prefer->dialog); } rubrica-2.0/src/data_view.h0000644000175000017500000000473010617433024014503 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _DATA_VIEW_H__ #define _DATA_VIEW_H__ #include #include "libral.h" G_BEGIN_DECLS #define RUBRICA_DATA_VIEW_TYPE (rubrica_data_view_get_type()) #define RUBRICA_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_DATA_VIEW_TYPE, \ RubricaDataView)) #define RUBRICA_DATA_VIEW_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ RUBRICA_DATA_VIEW_TYPE, \ RubricaDataViewClass)) #define IS_RUBRICA_DATA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_DATA_VIEW_TYPE)) #define IS_RUBRICA_DATA_VIEW_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_DATA_VIEW_TYPE)) #define RUBRICA_DATA_VIEW_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_DATA_VIEW_TYPE, \ RubricaDataViewClass) typedef struct _RubricaDataView RubricaDataView; typedef struct _RubricaDataViewClass RubricaDataViewClass; typedef struct _RubricaDataViewPrivate RubricaDataViewPrivate; struct _RubricaDataView { GtkVBox parent; RubricaDataViewPrivate* priv; }; struct _RubricaDataViewClass { GtkVBoxClass parent_class; /* signals */ void (*launch) (RubricaDataView*, gpointer); }; GType rubrica_data_view_get_type (void); GtkWidget* rubrica_data_view_new (void); void rubrica_data_view_show_card (RubricaDataView* view, RCard* card); G_END_DECLS #endif rubrica-2.0/src/callbacks.h0000644000175000017500000000647610617433024014470 0ustar seb128seb128/* * Rubrica * file: form_cb.h * * * Copyright (C) 2000-2003 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_CB_H #define _RUBRICA_FORM_CB_H #include #include "libral.h" #include "types.h" void on_new_cb (GtkWidget* button, gpointer data); void on_open_cb (GtkWidget* button, gpointer data); void on_save_cb (GtkWidget* button, gpointer data); void on_saveas_cb (GtkWidget* button, gpointer data); void on_cut_cb (GtkWidget* button, gpointer data); void on_copy_cb (GtkWidget* button, gpointer data); void on_paste_cb (GtkWidget* button, gpointer data); void on_add_personal_cb (GtkWidget* button, gpointer data); void on_add_company_cb (GtkWidget* button, gpointer data); void on_delete_card_cb (GtkWidget* button, gpointer data); void on_modify_card_cb (GtkWidget* button, gpointer data); void on_prefenences_cb (GtkWidget* button, gpointer data); void on_info_cb (GtkWidget* button, gpointer data); void on_print_cb (GtkWidget* button, gpointer data); void on_close_cb (GtkWidget* button, gpointer data); void on_first_cb (GtkWidget* button, gpointer data); void on_last_cb (GtkWidget* button, gpointer data); void on_prev_cb (GtkWidget* button, gpointer data); void on_next_cb (GtkWidget* button, gpointer data); void on_quit_cb (GtkWidget* button, gpointer data); gboolean on_delete_event_cb (GtkWidget* widget, GdkEvent *event, gpointer data); void on_notebook_switch_page (GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, gpointer user_data); /* void on_alphabetically_cb (GtkWidget* button, gpointer data); void on_creation_cb (GtkWidget* button, gpointer data); void on_modification_cb (GtkWidget* button, gpointer data); void on_ascending_cb (GtkWidget* button, gpointer data); void on_descending_cb (GtkWidget* button, gpointer data); void on_home_cb (GtkWidget* button, gpointer data); void on_bugs_cb (GtkWidget* button, gpointer data); void rubrica_form_card_married_check_toggled (GtkToggleButton *togglebutton, gpointer data); void on_remove_group_activate (GtkWidget* button, gpointer data); void on_add_group_activate (GtkWidget* button, gpointer data); void rubrica_form_group_list_activated (GtkTreeSelection *selection, gpointer data); void rubrica_form_group_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data); void user_group_added (GtkTreeModel *treemodel, GtkTreePath *arg1, GtkTreeIter *arg2, gpointer user_data); */ #endif rubrica-2.0/src/Makefile.in0000644000175000017500000006253110637712671014451 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = rubrica2$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_rubrica2_OBJECTS = app.$(OBJEXT) browse.$(OBJEXT) \ calendar.$(OBJEXT) callbacks.$(OBJEXT) cards.$(OBJEXT) \ cards_view.$(OBJEXT) company_gui.$(OBJEXT) data_view.$(OBJEXT) \ form.$(OBJEXT) form_address.$(OBJEXT) form_card.$(OBJEXT) \ form_contact.$(OBJEXT) form_info.$(OBJEXT) form_net.$(OBJEXT) \ form_notes.$(OBJEXT) form_phone.$(OBJEXT) form_work.$(OBJEXT) \ groups_view.$(OBJEXT) groups_cb.$(OBJEXT) main.$(OBJEXT) \ models.$(OBJEXT) personal_gui.$(OBJEXT) preferences.$(OBJEXT) \ popmenu.$(OBJEXT) search_dialog.$(OBJEXT) \ search_view.$(OBJEXT) statusbar.$(OBJEXT) tab.$(OBJEXT) \ themes.$(OBJEXT) trash_view.$(OBJEXT) utils.$(OBJEXT) \ view.$(OBJEXT) rubrica2_OBJECTS = $(am_rubrica2_OBJECTS) am__DEPENDENCIES_1 = rubrica2_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../libral/libral.la DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(rubrica2_SOURCES) DIST_SOURCES = $(rubrica2_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = INCLUDES = \ $(RUBRICA_CFLAGS) \ $(LIBRAL_CFLAGS) \ -DGETTEXT_PACKAGE=\""@GETTEXT_PACKAGE@"\" \ -DRUBRICA_LOCALE_DIR=\""$(datadir)/locale"\" \ -DRUBRICA_PIXMAPS_DIR=\""$(rubrica_pixmaps_dir)"\" \ -DRUBRICA_ICONS_DIR=\""$(rubrica_icons_dir)"\" \ -DRUBRICA_PLUGINS_DIR=\""$(rubrica_plugins_dir)"\" \ -DRUBRICA_GUI_DIR=\""$(rubrica_gui_dir)"\" \ -DRUBRICA_DOC_DIR=\""$(datadir)/doc/"\" \ -DRUBRICA_HANDBOOK=\""$(datadir)/doc/rubrica2/html"\" \ -DRUBRICA_VERSION=\""@RUBRICA_VERSION@"\" \ -DRUBRICA_CODE_NAME=\""@RUBRICA_CODE_NAME@"\" \ -DRUBRICA_INFO_CODE_NAME=\""@RUBRICA_INFO_CODE_NAME@"\" \ -I$(top_srcdir) \ -I$(top_builddir) \ -I$(top_srcdir)/libral \ -I$(top_builddir)/libral # -DG_LOG_DOMAIN=\"Rubrica\" AM_CFLAGS = -DHAVE_CONFIG_H -Wall -g rubrica2_SOURCES = \ app.c app.h \ browse.c browse.h \ calendar.c calendar.h \ callbacks.c callbacks.h \ cards.c cards.h \ cards_view.c cards_view.h \ company_gui.c company_gui.h \ data_view.c data_view.h \ form.c form.h \ form_address.c form_address.h \ form_card.c form_card.h \ form_contact.c form_contact.h \ form_info.c form_info.h \ form_net.c form_net.h \ form_notes.c form_notes.h \ form_phone.c form_phone.h \ form_work.c form_work.h \ groups_view.c groups_view.h \ groups_cb.c groups_cb.h \ main.c \ models.c models.h \ personal_gui.c personal_gui.h \ preferences.h preferences.c \ popmenu.c popmenu.h \ search_dialog.c search_dialog.h \ search_view.c search_view.h \ statusbar.c statusbar.h \ tab.c tab.h \ themes.c themes.h \ trash_view.c trash_view.h \ utils.c utils.h \ view.c view.h \ types.h rubrica2_LDADD = $(RUBRICA_LIBS) $(LIBRAL_LIBS) ../libral/libral.la all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done rubrica2$(EXEEXT): $(rubrica2_OBJECTS) $(rubrica2_DEPENDENCIES) @rm -f rubrica2$(EXEEXT) $(LINK) $(rubrica2_OBJECTS) $(rubrica2_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/app.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calendar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cards.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cards_view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/company_gui.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/data_view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_address.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_card.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_contact.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_info.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_net.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_notes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_phone.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/form_work.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/groups_cb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/groups_view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/models.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/personal_gui.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/popmenu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/preferences.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/search_dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/search_view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statusbar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tab.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/themes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trash_view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/view.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-exec-am: install-binPROGRAMS install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/src/cards_view.h0000644000175000017500000000566510617433024014676 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CARDS_VIEW_H__ #define _CARDS_VIEW_H__ #include #include "libral.h" #include "view.h" G_BEGIN_DECLS #define RUBRICA_CARDS_VIEW_TYPE (rubrica_cards_view_get_type()) #define RUBRICA_CARDS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ RUBRICA_CARDS_VIEW_TYPE, \ RubricaCardsView)) #define RUBRICA_CARDS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_CARDS_VIEW_TYPE, \ RubricaCardsViewClass)) #define IS_RUBRICA_CARDS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\ RUBRICA_CARDS_VIEW_TYPE)) #define IS_RUBRICA_CARDS_VIEW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_CARDS_VIEW_TYPE)) #define RUBRICA_CARDS_VIEW_GET_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS(klass),\ RUBRICA_CARDS_VIEW_TYPE, \ RubricaCardsViewClass) typedef struct _RubricaCardsView RubricaCardsView; typedef struct _RubricaCardsViewClass RubricaCardsViewClass; typedef struct _RubricaCardsViewPrivate RubricaCardsViewPrivate; struct _RubricaCardsView { RubricaView parent; RubricaCardsViewPrivate* priv; }; struct _RubricaCardsViewClass { RubricaViewClass parent_class; }; GType rubrica_cards_view_get_type (void); GtkWidget* rubrica_cards_view_new (gchar* file); RAbook* rubrica_cards_view_get_addressbook (RubricaCardsView* view); gchar* rubrica_cards_view_get_addressbook_name (RubricaCardsView* view); void rubrica_cards_view_add_card (RubricaCardsView* view, RCard* card); void rubrica_cards_view_delete_card (RubricaCardsView* view, RCard* card); void rubrica_cards_view_modify_card (RubricaCardsView* view, RCard* card); void rubrica_cards_view_display_results (RubricaCardsView* view, GList* list); void rubrica_cards_view_update_infos (RubricaCardsView* view); G_END_DECLS #endif rubrica-2.0/src/personal_gui.h0000644000175000017500000000346710617433024015235 0ustar seb128seb128/* * Rubrica * file: personal-form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_PERSONAL_FORM_H #define _RUBRICA_PERSONAL_FORM_H #include #include "libral.h" #include "app.h" #include "form.h" #include "form_card.h" #include "form_address.h" #include "form_contact.h" #include "form_net.h" #include "form_notes.h" #include "form_phone.h" #include "form_work.h" typedef struct _PersonalForm { RubricaApp *app; GtkWidget *dialog; RubricaFormCard *card; RubricaFormContact *contact; RubricaFormWork *work; RubricaFormAddress *address; RubricaFormNet *net; RubricaFormPhone *tel; RubricaFormNotes *note; } PersonalDialog; PersonalDialog* rubrica_personal_dialog_new (RubricaApp* app); RPersonalCard* rubrica_personal_run_add_dialog (PersonalDialog* form); RPersonalCard* rubrica_personal_run_modify_dialog (PersonalDialog* form); RPersonalCard* rubrica_personal_extract_card_data (PersonalDialog* form); void rubrica_personal_display_card_data (PersonalDialog* form, RCard* card); #endif rubrica-2.0/src/preferences.h0000644000175000017500000001070710637705362015053 0ustar seb128seb128/* * Rubrica * file: prefererences.h * * * Copyright (C) 2000-2003 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __RUBRICA_PREFERENCES_H #define __RUBRICA_PREFERENCES_H #include #include "types.h" void rubrica_preferences_setup_search_on (GtkTreeView* view); void rubrica_preferences_set_search_on (GtkWidget* button, gpointer col); void rubrica_preferences_setup_radio_group (GSList* group); enum { RUB_ICONS = 0, RUB_TEXT, RUB_BOTH, RUB_GNOME }; enum { RUB_EPIPHANY = 0, RUB_FIREFOX, RUB_GALEON, RUB_KONQUEROR, RUB_MOZILLA, RUB_SEAMONKEY, RUB_OPERA, RUB_OTHER_BROWSER }; enum { RUB_BALSA = 0, RUB_EVOLUTION, RUB_MOZILLA_MAIL, RUB_SEAMONKEY_MAIL, RUB_THUNDERBIRD, RUB_OTHER_EMAILER }; enum { RUB_PIDGIN = 0, RUB_GAIM, RUB_GABBER, RUB_GAJIM, RUB_GADU, RUB_GOSSIP, RUB_OTHER_IRC }; #define KEY_MISC "/apps/rubrica2" #define RUBRICA_GCONF_FILE_FORMAT KEY_MISC"/file_format" #define RUBRICA_GCONF_WIDTH KEY_MISC"/width" #define RUBRICA_GCONF_HEIGHT KEY_MISC"/heigth" #define RUBRICA_GCONF_PANED_POSITION KEY_MISC"/paned" #define RUBRICA_GCONF_CRYPT KEY_MISC"/crypt" #define RUBRICA_GCONF_COPYRIGHT KEY_MISC"/copyright" /* file managment */ #define KEY_FILE "/apps/rubrica2/file" #define RUBRICA_GCONF_FOLDER KEY_FILE"/folder" #define RUBRICA_GCONF_LOAD_FILES KEY_FILE"/load_files" #define RUBRICA_GCONF_FILES KEY_FILE"/files" #define RUBRICA_GCONF_RATE KEY_FILE"/compression_rate" #define RUBRICA_GCONF_AUTOSAVE KEY_FILE"/autosave" #define RUBRICA_GCONF_BACKUP KEY_FILE"/make_backup" /* columns to display */ #define KEY_DISPLAY "/apps/rubrica2/display" #define RUBRICA_GCONF_CARD KEY_DISPLAY"/card" #define RUBRICA_GCONF_FIRST_NAME KEY_DISPLAY"/first_name" #define RUBRICA_GCONF_LAST_NAME KEY_DISPLAY"/last_name" #define RUBRICA_GCONF_PROFESSION KEY_DISPLAY"/profession" #define RUBRICA_GCONF_CITY KEY_DISPLAY"/city" #define RUBRICA_GCONF_COUNTRY KEY_DISPLAY"/country" #define RUBRICA_GCONF_WEB KEY_DISPLAY"/web" #define RUBRICA_GCONF_EMAIL KEY_DISPLAY"/email" #define RUBRICA_GCONF_TELEPHONE KEY_DISPLAY"/telephone" #define RUBRICA_GCONF_COMPANY KEY_DISPLAY"/company" #define RUBRICA_GCONF_ASSIGNMENT KEY_DISPLAY"/assignment" /* search rules */ #define KEY_SEARCH "/apps/rubrica2/search" #define RUBRICA_GCONF_SEARCH_ON KEY_SEARCH"/performed_on" /* appearance rules */ #define KEY_APPEARANCE "/apps/rubrica2/appearance" #define RUBRICA_GCONF_TOOLBAR KEY_APPEARANCE"/toolbar_style" #define RUBRICA_GCONF_FONT KEY_APPEARANCE"/font" #define RUBRICA_GCONF_CONFIRM_EXIT KEY_APPEARANCE"/confirm_exit" /* urls management */ #define KEY_URLS "/apps/rubrica2/urls_manager" #define RUBRICA_GCONF_BROWSER KEY_URLS"/browser" #define RUBRICA_GCONF_EMAILS KEY_URLS"/emailer" #define RUBRICA_GCONF_IRC KEY_URLS"/irc" #define RUBRICA_GCONF_BROWSER_UD KEY_URLS"/browser_user_defined" #define RUBRICA_GCONF_EMAILS_UD KEY_URLS"/emailer_user_defined" #define RUBRICA_GCONF_IRC_UD KEY_URLS"/irc_user_defined" #define RUBRICA_GCONF_EKIGA KEY_URLS"/ekiga" void rubrica_preferences_setup_colum (GtkTreeViewColumn* column, gchar* key); void rubrica_preferences_setup_menu_check (GtkWidget* item, gchar* key); void rubrica_preferences_run_gui (GtkWidget* button, gpointer data); #endif rubrica-2.0/src/search_dialog.h0000644000175000017500000000205510617433024015322 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #ifndef _RUBRICA_SEARCH_DIALOG_H #define _RUBRICA_SEARCH_DIALOG_H G_BEGIN_DECLS void rubrica_search_dialog (RubricaApp* app); G_END_DECLS #endif rubrica-2.0/src/app.h0000644000175000017500000001116210637705215013323 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "libral.h" #include "types.h" #ifndef RUBRICA_APP_H #define RUBRICA_APP_H #define RUBRICA_APP_TYPE (rubrica_app_get_type()) #define RUBRICA_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_APP_TYPE, RubricaApp)) #define RUBRICA_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_APP_TYPE, RubricaAppClass)) #define IS_RUBRICA_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_APP_TYPE)) #define IS_RUBRICA_APP_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_APP_TYPE)) #define RUBRICA_APP_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_APP_TYPE, RubricaAppClass)) typedef struct _RubricaApp RubricaApp; typedef struct _RubricaAppClass RubricaAppClass; typedef struct _RubricaAppPrivate RubricaAppPrivate; struct _RubricaApp { GObject parent; GtkWidget *window; RubricaAppPrivate* priv; }; struct _RubricaAppClass { GObjectClass parent; }; GType rubrica_app_get_type (void); RubricaApp* rubrica_app_new (void); void rubrica_app_free (RubricaApp* app); /* get */ GtkWidget* rubrica_app_get_search (RubricaApp* app); GtkWidget* rubrica_app_get_trash (RubricaApp* app); GtkWidget* rubrica_app_get_dataview (RubricaApp* app); GtkWidget* rubrica_app_get_notebook (RubricaApp* app); GtkWidget* rubrica_app_get_current_view (RubricaApp* app); RAbook* rubrica_app_get_active_addressbook (RubricaApp* app); RGroupBox* rubrica_app_get_groups (RubricaApp* app); GtkWidget* rubrica_app_get_groups_view (RubricaApp* app); GtkWidget* rubrica_app_get_statusbar (RubricaApp* app); gchar* rubrica_app_get_view_report (RubricaApp* app); void rubrica_app_run (RubricaApp* app); GtkWidget* rubrica_app_append_addressbook (RubricaApp* app); //void rubrica_app_append_empty_addressbook (RubricaApp* app); void rubrica_app_remove_addressbbok (RubricaApp* app, GtkWidget* child); gboolean rubrica_app_load_file (RubricaApp* app, gchar* file, gchar* filter); void rubrica_app_add_card (RubricaApp* app, RCard* card); void rubrica_app_move_card_to_trash (RubricaApp* app, RCard* card); void rubrica_app_display_card_data (RubricaApp* app, RCard* card); void rubrica_app_show_message (RubricaApp* app, gchar* msg); void rubrica_app_notify (RubricaApp* app, gchar* msg); void rubrica_app_update_view (RubricaApp* app); gint rubrica_app_get_stack_len (RubricaApp* app); void rubrica_app_push_card (RubricaApp* app, gpointer crd); gpointer rubrica_app_pop_card (RubricaApp* app); void rubrica_app_display_search_results (RubricaApp* app, GList* results); void rubrica_app_display_cards_by_group (RubricaApp* app, gchar* group); void rubrica_app_display_cards_by_type (RubricaApp* app, gchar* type); void rubrica_app_display_cards_by_genre (RubricaApp* app, gchar* genre); void rubrica_app_display_cards_by_rate (RubricaApp* app, RRate rate); void rubrica_app_set_toolbar_style (RubricaApp* app, gint style); void rubrica_app_set_font (RubricaApp* app, gchar* font); void rubrica_app_enable_previouses (RubricaApp* app, gboolean bool); void rubrica_app_enable_nexts (RubricaApp* app, gboolean bool); /* void rubrica_app_disable_previouses (RubricaApp* app); void rubrica_app_disable_nexts (RubricaApp* app); */ #endif rubrica-2.0/src/search_view.c0000644000175000017500000001422510617433024015032 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "search_view.h" #include "preferences.h" /* properties enumeration */ enum { PROP_0, }; struct _RubricaSearchViewPrivate { RAbook* book; gboolean dispose_has_run; }; #define RUBRICA_SEARCH_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_SEARCH_VIEW_TYPE, \ RubricaSearchViewPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_search_view_class_init (RubricaSearchViewClass* klass); static void rubrica_search_view_init (RubricaSearchView* obj); static void rubrica_search_view_finalize (RubricaSearchView* self); static void rubrica_search_view_dispose (RubricaSearchView* self); /* Private */ static void search_view_add_columns (GtkTreeView *tree); static void search_view_add_card (GtkTreeView* tree, RAbook* book, RCard* card); static void search_view_add_columns (GtkTreeView *tree) { GtkCellRenderer *renderer; GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes(tree, -1, _("Card"), renderer, "text", SEARCH_CARD_COLUMN, NULL); } static void search_view_add_card (GtkTreeView* tree, RAbook* book , RCard* card) { GtkTreeIter iter; GtkTreeModel *model; gchar* label; gint id; g_return_if_fail(IS_R_CARD(card)); g_object_get(card, "card-id", &id, "card-name", &label, NULL); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, SEARCH_ID_COLUMN, id, SEARCH_CARD_COLUMN, label, SEARCH_BOOK_COLUMN, book, -1); } GType rubrica_search_view_get_type() { static GType search_view_type = 0; if (!search_view_type) { static const GTypeInfo search_view_info = { sizeof(RubricaSearchViewClass), NULL, NULL, (GClassInitFunc) rubrica_search_view_class_init, NULL, NULL, sizeof(RubricaSearchView), 0, (GInstanceInitFunc) rubrica_search_view_init }; search_view_type = g_type_register_static (RUBRICA_VIEW_TYPE, "RubricaSearchView", &search_view_info, 0); } return search_view_type; } static void rubrica_search_view_dispose (RubricaSearchView* self) { g_return_if_fail(IS_RUBRICA_SEARCH_VIEW(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_search_view_finalize (RubricaSearchView* self) { g_return_if_fail(IS_RUBRICA_SEARCH_VIEW(self)); } static void rubrica_search_view_class_init(RubricaSearchViewClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_search_view_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_search_view_dispose; g_type_class_add_private (klass, sizeof(RubricaSearchViewPrivate)); } static void rubrica_search_view_init(RubricaSearchView* self) { GtkWidget* tree; GtkTreeModel* model; self->priv = RUBRICA_SEARCH_VIEW_GET_PRIVATE(self); self->priv->book = NULL; model = GTK_TREE_MODEL(gtk_list_store_new(LAST_SEARCH_COLUMN, G_TYPE_INT, /* card's id */ G_TYPE_STRING, /* card's label */ G_TYPE_POINTER)); rubrica_view_set_model(RUBRICA_VIEW(self), model); tree = rubrica_view_get_tree(RUBRICA_VIEW(self)); search_view_add_columns (GTK_TREE_VIEW(tree)); gtk_widget_show(GTK_WIDGET(self)); self->priv->dispose_has_run = FALSE; } /* Public */ /** * rubrica_search_view_new * * create a #RubricaSearchView * * returns: a new #RubricaSearchView */ GtkWidget* rubrica_search_view_new() { GtkWidget* view; view = GTK_WIDGET(g_object_new(RUBRICA_SEARCH_VIEW_TYPE, NULL)); return view; } void rubrica_search_view_set_addressbook(RubricaSearchView* view, RAbook *book) { g_return_if_fail(IS_RUBRICA_SEARCH_VIEW(view)); g_return_if_fail(IS_R_ABOOK(book)); view->priv->book = book; } void rubrica_search_view_display_results (RubricaSearchView* view, GList* results) { RCard* card; GtkWidget* tree; GtkTreeModel *model; RubricaSearchViewPrivate* priv; gint items; GList* iter; gchar* message; g_return_if_fail(IS_RUBRICA_SEARCH_VIEW(view)); priv = RUBRICA_SEARCH_VIEW_GET_PRIVATE(view); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); gtk_list_store_clear(GTK_LIST_STORE(model)); items = g_list_length(results); iter = results; for (; iter; iter = iter->next) { glong id = (glong) iter->data; card = r_abook_get_card_by_id(priv->book, id); search_view_add_card(GTK_TREE_VIEW(tree), priv->book, card); } g_list_free(results); if (items == 0) message = g_strdup_printf(_("No items found")); else { if (items == 1) message = g_strdup_printf(_("One item found")); else message = g_strdup_printf(_("Items found: %-5d "), items); } g_object_set(view, "view-message", message, NULL); g_signal_emit_by_name(view, "view-changed", message, G_TYPE_STRING); } rubrica-2.0/src/statusbar.h0000644000175000017500000000605610617654276014571 0ustar seb128seb128/* * Rubrica * file: statusbar.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_STATUSBAR_H__ #define _RUBRICA_STATUSBAR_H__ #include #include #include "types.h" G_BEGIN_DECLS #define RUBRICA_STATUSBAR_TYPE (rubrica_statusbar_get_type()) #define RUBRICA_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_STATUSBAR_TYPE, \ RubricaStatusbar)) #define RUBRICA_STATUSBAR_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ RUBRICA_STATUSBAR_TYPE, \ RubricaStatusbarClass)) #define IS_RUBRICA_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_STATUSBAR_TYPE)) #define IS_RUBRICA_STATUSBAR_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_STATUSBAR_TYPE)) #define RUBRICA_STATUSBAR_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_STATUSBAR_TYPE, \ RubricaStatusbarClass) typedef struct _RubricaStatusbar RubricaStatusbar; typedef struct _RubricaStatusbarClass RubricaStatusbarClass; typedef struct _RubricaStatusbarPrivate RubricaStatusbarPrivate; struct _RubricaStatusbar { GtkStatusbar parent; RubricaStatusbarPrivate* priv; }; struct _RubricaStatusbarClass { GtkStatusbarClass parent_class; }; GType rubrica_statusbar_get_type (void); GtkWidget* rubrica_statusbar_new (void); void rubrica_statusbar_free (RubricaStatusbar* bar); void rubrica_statusbar_push_message (RubricaStatusbar* bar, gchar* message); void rubrica_statusbar_clean_messages (RubricaStatusbar* bar); void rubrica_statusbar_enable_extra (RubricaStatusbar* bar, gboolean bool); void rubrica_statusbar_enable_images (RubricaStatusbar* bar, gboolean bool); void rubrica_statusbar_extra_set_text (RubricaStatusbar* bar, gchar* text); void rubrica_statusbar_extra_set_rate (RubricaStatusbar* bar, RubricaPixmap rate); void rubrica_statusbar_extra_set_lock (RubricaStatusbar* bar, RubricaPixmap lock); G_END_DECLS #endif rubrica-2.0/src/cards_view.c0000644000175000017500000005151010637705334014667 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include "libral.h" #include "cards_view.h" #include "preferences.h" enum { PROP_0, VIEW_HAS_CHANGED, VIEW_BROTHER, }; static GObjectClass* parent_class = NULL; static gint order[COLUMNS] = {0}; struct _RubricaCardsViewPrivate { RAbook* abook; GtkWidget* brother; gboolean change; gboolean dispose_has_run; }; #define RUBRICA_CARDS_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_CARDS_VIEW_TYPE, \ RubricaCardsViewPrivate)) static void rubrica_cards_view_class_init (RubricaCardsViewClass* klass); static void rubrica_cards_view_init (RubricaCardsView* obj); static void rubrica_cards_view_finalize (RubricaCardsView* self); static void rubrica_cards_view_dispose (RubricaCardsView* self); static void rubrica_cards_view_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void rubrica_cards_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); /* Private */ static void cards_view_load_file (RubricaCardsView* view, gchar* file); static void cards_update_infos (RubricaCardsView* view); static void cards_view_add_card (RubricaCardsView* view, RCard* card); static gboolean cards_view_delete_card (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); static void cards_view_show_column (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data); static void cards_view_setup_column (GtkTreeViewColumn* column, gchar* key); static void cards_view_add_columns (GtkTreeView *tree); // Callbacks static void on_open_file_failed_cb (RAbook* book, gint error, gpointer data); static void cards_view_load_file(RubricaCardsView* view, gchar* filename) { RubricaCardsViewPrivate* priv = RUBRICA_CARDS_VIEW_GET_PRIVATE(view); if (r_abook_open_file(R_ABOOK(priv->abook), filename)) { RCard* card; r_abook_reset_book(priv->abook); card = r_abook_get_card(priv->abook); for (; card; card = r_abook_get_next_card(priv->abook)) cards_view_add_card(view, card); cards_update_infos(view); } } static void cards_update_infos(RubricaCardsView* view) { gint items, deleted; gchar* message; items = r_abook_get_items(view->priv->abook); deleted = r_abook_get_deleted(view->priv->abook); message = g_strdup_printf(_("Cards in this addressbook: %-5d " "Deleted cards: %-5d"), items, deleted); g_object_set(view, "view-message", message, NULL); g_signal_emit_by_name(view, "view-changed", message, G_TYPE_STRING); } static void cards_view_add_card(RubricaCardsView* view, RCard* card) { GtkWidget *tree; GtkTreeModel *model; GtkTreeIter iter; RInfos *infos; g_return_if_fail(IS_RUBRICA_CARDS_VIEW(view)); g_return_if_fail(IS_R_CARD(card)); infos = r_card_get_infos(R_CARD(card)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); if (r_card_is_personal(card)) { gtk_list_store_set(GTK_LIST_STORE(model), &iter, CARD_COLUMN, r_infos_get_label(infos), FIRST_NAME_COLUMN, r_infos_get_first(infos), LAST_NAME_COLUMN, r_infos_get_last(infos), PROFESSION_COLUMN, r_infos_get_profession(infos), CITY_COLUMN, r_infos_get_city(infos), COUNTRY_COLUMN, r_infos_get_country(infos), WEB_CARD_COLUMN, r_infos_get_web(infos), EMAIL_CARD_COLUMN, r_infos_get_email(infos), TELEPHONE_COLUMN, r_infos_get_telephone(infos), ASSIGNMENT_COLUMN, r_infos_get_assignment(infos), ID_COLUMN, r_infos_get_id(infos), -1); } else { gtk_list_store_set(GTK_LIST_STORE(model), &iter, CARD_COLUMN, r_infos_get_label(infos), CITY_COLUMN, r_infos_get_city(infos), COUNTRY_COLUMN, r_infos_get_country(infos), WEB_CARD_COLUMN, r_infos_get_web(infos), EMAIL_CARD_COLUMN, r_infos_get_email(infos), TELEPHONE_COLUMN, r_infos_get_telephone(infos), ID_COLUMN, r_infos_get_id(infos), -1); } r_card_free_infos(infos); } static gboolean cards_view_delete_card (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { gulong card_id = (gulong) data; gulong id; gtk_tree_model_get(model, iter, ID_COLUMN, &id, -1); if (id == card_id) { gtk_list_store_remove(GTK_LIST_STORE(model), iter); return TRUE; } return FALSE; } static void cards_view_show_column(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer data) { gboolean bool; GtkTreeViewColumn* column = (GtkTreeViewColumn*) data; bool = gconf_value_get_bool (entry->value); gtk_tree_view_column_set_visible(column, bool); } static void cards_view_setup_column (GtkTreeViewColumn* column, gchar* key) { GConfClient* client; gboolean bool; client = gconf_client_get_default(); bool = gconf_client_get_bool(client, key, NULL); gtk_tree_view_column_set_visible(column, bool); gconf_client_notify_add(client, key, cards_view_show_column, column, NULL, NULL); g_object_unref(client); } static void cards_view_add_columns (GtkTreeView *tree) { GtkTreeViewColumn* column; GtkCellRenderer *renderer; GtkTreeModel *model; gint col; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes(tree, -1, _("Card"), renderer, "text", CARD_COLUMN, NULL); order[CARD_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), CARD_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_CARD); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes(tree, -1, _("First Name"), renderer, "text", FIRST_NAME_COLUMN, NULL); order[FIRST_NAME_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), FIRST_NAME_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_FIRST_NAME); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Last Name"), renderer, "text", LAST_NAME_COLUMN, NULL); order[LAST_NAME_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), LAST_NAME_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_LAST_NAME); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Profession"), renderer, "text", PROFESSION_COLUMN, NULL); order[PROFESSION_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), PROFESSION_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_PROFESSION); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("City"), renderer, "text", CITY_COLUMN, NULL); order[CITY_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), CITY_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_CITY); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Country"), renderer, "text", COUNTRY_COLUMN, NULL); order[COUNTRY_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), COUNTRY_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_COUNTRY); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Web"), renderer, "text", WEB_CARD_COLUMN, NULL); order[WEB_CARD_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), WEB_CARD_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_WEB); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Email"), renderer, "text", EMAIL_CARD_COLUMN, NULL); order[EMAIL_CARD_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), EMAIL_CARD_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_EMAIL); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Telephone"), renderer, "text", TELEPHONE_COLUMN, NULL); order[TELEPHONE_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), TELEPHONE_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_TELEPHONE); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Company"), renderer, "text", COMPANY_COLUMN, NULL); order[COMPANY_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), COMPANY_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_COMPANY); renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_insert_column_with_attributes (tree, -1, _("Assignment"), renderer, "text", ASSIGNMENT_COLUMN, NULL); order[ASSIGNMENT_COLUMN] = col; column = gtk_tree_view_get_column(tree, col-1); gtk_tree_view_column_set_reorderable(GTK_TREE_VIEW_COLUMN(column), TRUE); gtk_tree_view_column_set_sort_column_id(GTK_TREE_VIEW_COLUMN(column), ASSIGNMENT_COLUMN); cards_view_setup_column(column, RUBRICA_GCONF_ASSIGNMENT); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), CARD_COLUMN, GTK_SORT_ASCENDING); } /* Callbacks */ static void on_open_file_failed_cb(RAbook* book, gint error, gpointer data) { GtkWidget* dialog; gchar* file; g_object_get(book, "addressbook-name", &file, NULL); dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Error loading file '%s': %s"), file, g_strerror (errno)); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } /* Public */ GType rubrica_cards_view_get_type() { static GType cards_view_type = 0; if (!cards_view_type) { static const GTypeInfo cards_view_info = { sizeof(RubricaCardsViewClass), NULL, NULL, (GClassInitFunc) rubrica_cards_view_class_init, NULL, NULL, sizeof(RubricaCardsView), 0, (GInstanceInitFunc) rubrica_cards_view_init }; cards_view_type = g_type_register_static (RUBRICA_VIEW_TYPE, "RubricaCardsView", &cards_view_info, 0); } return cards_view_type; } static void rubrica_cards_view_dispose (RubricaCardsView* self) { g_return_if_fail(IS_RUBRICA_CARDS_VIEW(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_cards_view_finalize (RubricaCardsView* self) { g_return_if_fail(IS_RUBRICA_CARDS_VIEW(self)); } static void rubrica_cards_view_class_init(RubricaCardsViewClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_cards_view_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_cards_view_dispose; object_class->set_property = (gpointer) rubrica_cards_view_set_property; object_class->get_property = (gpointer) rubrica_cards_view_get_property; g_type_class_add_private (klass, sizeof(RubricaCardsViewPrivate)); /** * RubricaCardsView:change * * does the addressbook change? */ pspec = g_param_spec_boolean("has-changed", "has changed", "does view changed?", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, VIEW_HAS_CHANGED, pspec); /** * RubricaCardsView:brother * * the object that replace the notebook's tab */ pspec = g_param_spec_object("view-brother", "view brother", "the object that replace the notebook's tab", GTK_TYPE_WIDGET, G_PARAM_READWRITE); g_object_class_install_property(object_class, VIEW_BROTHER, pspec); } static void rubrica_cards_view_init(RubricaCardsView* self) { GtkWidget* tree; GtkTreeModel* model; gchar* message; g_return_if_fail(IS_RUBRICA_CARDS_VIEW(self)); self->priv = RUBRICA_CARDS_VIEW_GET_PRIVATE(self); self->priv->abook = r_abook_new(); self->priv->brother = NULL; self->priv->change = FALSE; model = (GtkTreeModel*) gtk_list_store_new(COLUMNS, G_TYPE_STRING, /* card label */ G_TYPE_STRING, /* first name */ G_TYPE_STRING, /* last name */ G_TYPE_STRING, /* profession */ G_TYPE_STRING, /* city */ G_TYPE_STRING, /* country */ G_TYPE_STRING, /* web */ G_TYPE_STRING, /* email */ G_TYPE_STRING, /* telephone */ G_TYPE_STRING, /* company */ G_TYPE_STRING, /* assigment */ G_TYPE_INT); /* card's id */ rubrica_view_set_model(RUBRICA_VIEW(self), model); tree = rubrica_view_get_tree(RUBRICA_VIEW(self)); cards_view_add_columns (GTK_TREE_VIEW(tree)); message = g_strdup_printf(_("Cards in this addressbook: %-5d " "Deleted cards: %-5d"), 0, 0); g_object_set(self, "view-message", message, NULL); g_signal_connect(self->priv->abook, "open_fail", G_CALLBACK (on_open_file_failed_cb), self); g_object_set(self->priv->abook, "addressbook-name", _("no name"), NULL); self->priv->dispose_has_run = FALSE; } static void rubrica_cards_view_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaCardsView* self = (RubricaCardsView*) obj; RubricaCardsViewPrivate* priv = RUBRICA_CARDS_VIEW_GET_PRIVATE(self); switch (property_id) { case VIEW_HAS_CHANGED: priv->change = g_value_get_boolean(value); break; case VIEW_BROTHER: priv->brother = g_value_get_object(value); break; default: break; } } static void rubrica_cards_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaCardsView* self = (RubricaCardsView*) obj; RubricaCardsViewPrivate* priv = RUBRICA_CARDS_VIEW_GET_PRIVATE(self); switch (property_id) { case VIEW_HAS_CHANGED: g_value_set_boolean(value, priv->change); break; case VIEW_BROTHER: g_value_set_object(value, priv->brother); break; default: break; } } /* Public */ /** * rubrica_cards_view_new * * create a #RubricaCardsView * * returns: a new #RubricaCardsView* */ GtkWidget* rubrica_cards_view_new(gchar* file) { GtkWidget* view; view = GTK_WIDGET(g_object_new(RUBRICA_CARDS_VIEW_TYPE, "child-type", "Addressbook", NULL)); if (file) cards_view_load_file(RUBRICA_CARDS_VIEW(view), file); return view; } gchar* rubrica_cards_view_get_addressbook_name(RubricaCardsView* view) { gchar* name = NULL; g_return_val_if_fail(IS_RUBRICA_CARDS_VIEW(view), NULL); g_object_get(view->priv->abook, "addressbook-name", &name, NULL); return name; } RAbook* rubrica_cards_view_get_addressbook(RubricaCardsView* view) { if (!view) return NULL; g_return_val_if_fail(IS_RUBRICA_CARDS_VIEW(view), NULL); return (RAbook*) view->priv->abook; } void rubrica_cards_view_add_card (RubricaCardsView* view, RCard* card) { g_return_if_fail(IS_RUBRICA_CARDS_VIEW(view)); cards_view_add_card(view, card); cards_update_infos(view); } void rubrica_cards_view_delete_card(RubricaCardsView* view, RCard* card) { GtkWidget *tree; GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *selection; g_return_if_fail(IS_RUBRICA_CARDS_VIEW(view)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) gtk_list_store_remove(GTK_LIST_STORE(model), &iter); else { gulong id; g_object_get(card, "card-id", &id, NULL); gtk_tree_model_foreach(GTK_TREE_MODEL(model), cards_view_delete_card, GINT_TO_POINTER(id)); } cards_update_infos(view); } void rubrica_cards_view_modify_card(RubricaCardsView* view, RCard* card) { GtkWidget *tree; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreeIter iter; g_return_if_fail(IS_RUBRICA_CARDS_VIEW(view)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { RInfos* infos; infos = r_card_get_infos(R_CARD(card)); gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, CARD_COLUMN, r_infos_get_label(infos), FIRST_NAME_COLUMN, r_infos_get_first(infos), LAST_NAME_COLUMN, r_infos_get_last(infos), PROFESSION_COLUMN, r_infos_get_profession(infos), CITY_COLUMN, r_infos_get_city(infos), COUNTRY_COLUMN, r_infos_get_country(infos), WEB_CARD_COLUMN, r_infos_get_web(infos), EMAIL_CARD_COLUMN, r_infos_get_email(infos), TELEPHONE_COLUMN, r_infos_get_telephone(infos), ASSIGNMENT_COLUMN, r_infos_get_assignment(infos), ID_COLUMN, r_infos_get_id(infos), -1); r_card_free_infos(infos); } cards_update_infos(view); } void rubrica_cards_view_display_results (RubricaCardsView* view, GList* list) { GtkWidget *tree; GtkTreeModel *model; g_return_if_fail(IS_RUBRICA_CARDS_VIEW(view)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); gtk_list_store_clear(GTK_LIST_STORE(model)); for (; list; list = list->next) { RCard* card; glong id = (glong) list->data; card = r_abook_get_card_by_id(view->priv->abook, id); cards_view_add_card(view, card); } cards_update_infos(view); } void rubrica_cards_view_update_infos (RubricaCardsView* view) { g_return_if_fail(IS_RUBRICA_CARDS_VIEW(view)); cards_update_infos(view); } rubrica-2.0/src/popmenu.c0000644000175000017500000004031710617433024014217 0ustar seb128seb128/* * Rubrica * file: popmenu.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #include "trash_view.h" #include "callbacks.h" #include "search_dialog.h" #include "preferences.h" #include "search.h" #include "types.h" #include "themes.h" static void popup_item_set_image (GtkWidget* item, const gchar* name); static void on_column_toggled (GtkWidget* button, gpointer data); static void on_advanced_activate (GtkWidget* button, gpointer data); static void on_recovery_card_activate (GtkWidget* button, gpointer data); static void on_destroy_card_activate (GtkWidget* button, gpointer data); static void on_empty_trash_activate (GtkWidget* button, gpointer data); static void on_show_all_activate (GtkWidget* button, gpointer data); static void on_show_men_activate (GtkWidget* button, gpointer data); static void on_show_women_activate (GtkWidget* button, gpointer data); static void on_show_personal_activate (GtkWidget* button, gpointer data); static void on_show_company_activate (GtkWidget* button, gpointer data); static void on_show_by_rate1_ativate (GtkWidget* button, gpointer data); static void on_show_by_rate2_ativate (GtkWidget* button, gpointer data); static void on_show_by_rate3_ativate (GtkWidget* button, gpointer data); static void on_show_by_rate4_ativate (GtkWidget* button, gpointer data); static void on_show_by_rate5_ativate (GtkWidget* button, gpointer data); static void popup_item_set_image (GtkWidget* item, const gchar* name) { GtkIconTheme* theme; GdkPixbuf* pixbuf; GtkWidget* image; g_return_if_fail(name != NULL); theme = gtk_icon_theme_get_default(); pixbuf = gtk_icon_theme_load_icon (theme, name, 24, 0, NULL); image = gtk_image_new_from_pixbuf(pixbuf); gtk_image_menu_item_set_image(GTK_MENU_ITEM(item), image); } /* Trash menu callbacks */ /* recovery the selected card (move to the original addressbook) */ static void on_recovery_card_activate (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* trash; trash = rubrica_app_get_trash(app); rubrica_trash_view_recovery_card(RUBRICA_TRASH_VIEW(trash)); } /* destroy the selected card */ static void on_destroy_card_activate (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* trash; trash = rubrica_app_get_trash(app); rubrica_trash_view_destroy_card(RUBRICA_TRASH_VIEW(trash)); } /* empty trash, destroy all cards in the trash list */ static void on_empty_trash_activate (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* trash; trash = rubrica_app_get_trash(app); rubrica_trash_view_empty_trash(RUBRICA_TRASH_VIEW(trash)); } /* Trash menu callbacks */ /* Show/hide columns in the cards list */ static void on_column_toggled (GtkWidget* button, gpointer data) { GConfClient* client; gchar* key = (gchar*) data; gboolean bool; client = gconf_client_get_default(); bool = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM(button)); gconf_client_set_bool(client, key, bool, NULL); g_object_unref(client); } /* run search gui */ static void on_advanced_activate (GtkWidget* button, gpointer data) { rubrica_search_dialog((RubricaApp*) data); } static void on_show_all_activate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_type((RubricaApp*) data, "all"); } static void on_show_personal_activate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_type((RubricaApp*) data, "personal"); } static void on_show_company_activate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_type((RubricaApp*) data, "company"); } static void on_show_men_activate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_genre((RubricaApp*) data, "male"); } static void on_show_women_activate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_genre((RubricaApp*) data, "female"); } static void on_show_by_rate1_ativate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_rate((RubricaApp*) data, R_RATE_NONE); } static void on_show_by_rate2_ativate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_rate((RubricaApp*) data, R_RATE_FEW); } static void on_show_by_rate3_ativate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_rate((RubricaApp*) data, R_RATE_NORMAL); } static void on_show_by_rate4_ativate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_rate((RubricaApp*) data, R_RATE_HIGHT); } static void on_show_by_rate5_ativate (GtkWidget* button, gpointer data) { rubrica_app_display_cards_by_rate((RubricaApp*) data, R_RATE_VERY_HIGHT); } /* Public */ GtkMenu* rubrica_menu_do_card_popup(RubricaApp* app, GtkTreeView* tree, GdkEvent *event) { GladeXML* gui; GdkEventButton *ev = (GdkEventButton *)event; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreePath *path = NULL; GSList* radio_group = NULL; GtkMenu* menu; GtkWidget* cut; GtkWidget* copy; GtkWidget* paste; GtkWidget* modify; GtkWidget* delete; GtkWidget* item; gui = glade_xml_new (RUBRICA_GUI_DIR"/Menu.glade", NULL, NULL); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); menu = (GtkMenu*) glade_xml_get_widget(gui, "menu1"); /* callbacks functions are in callbacks.c */ cut = glade_xml_get_widget(gui, "cut"); g_signal_connect(G_OBJECT(cut), "activate", G_CALLBACK(on_cut_cb), app); copy = glade_xml_get_widget(gui, "copy"); g_signal_connect(G_OBJECT(copy), "activate", G_CALLBACK(on_copy_cb), app); paste = glade_xml_get_widget(gui, "paste"); g_signal_connect(G_OBJECT(paste), "activate", G_CALLBACK(on_paste_cb), app); item = glade_xml_get_widget(gui, "add_personal"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_add_personal_cb), app); item = glade_xml_get_widget(gui, "add_company"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_add_company_cb), app); modify = glade_xml_get_widget(gui, "modify_card"); g_signal_connect(G_OBJECT(modify), "activate", G_CALLBACK(on_modify_card_cb), app); delete = glade_xml_get_widget(gui, "delete_card"); g_signal_connect(G_OBJECT(delete), "activate", G_CALLBACK(on_delete_card_cb), app); /* submenu Show Columns (callbacks functions are in this file) */ item = glade_xml_get_widget(gui, "card"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_CARD); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_CARD); item = glade_xml_get_widget(gui, "fn"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_FIRST_NAME); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_FIRST_NAME); item = glade_xml_get_widget(gui, "ln"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_LAST_NAME); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_LAST_NAME); item = glade_xml_get_widget(gui, "prof"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_PROFESSION); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_PROFESSION); item = glade_xml_get_widget(gui, "city"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_CITY); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_CITY); item = glade_xml_get_widget(gui, "count"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_COUNTRY); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_COUNTRY); item = glade_xml_get_widget(gui, "web"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_WEB); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_WEB); item = glade_xml_get_widget(gui, "email"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_EMAIL); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_EMAIL); item = glade_xml_get_widget(gui, "phone"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_TELEPHONE); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_TELEPHONE); item = glade_xml_get_widget(gui, "company"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_COMPANY); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_COMPANY); item = glade_xml_get_widget(gui, "role"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(on_column_toggled), RUBRICA_GCONF_ASSIGNMENT); rubrica_preferences_setup_menu_check(item, RUBRICA_GCONF_ASSIGNMENT); /* submenu Search on */ item = glade_xml_get_widget(gui, "rm_card"); g_object_set_data(G_OBJECT(item), "name", "card"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(CARD_COLUMN)); /* get the radio group of the "search on" buttons's */ radio_group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(item)); item = glade_xml_get_widget(gui, "rm_first"); g_object_set_data(G_OBJECT(item), "name", "first name"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(FIRST_NAME_COLUMN)); item = glade_xml_get_widget(gui, "rm_last"); g_object_set_data(G_OBJECT(item), "name", "last name"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(LAST_NAME_COLUMN)); item = glade_xml_get_widget(gui, "rm_prof"); g_object_set_data(G_OBJECT(item), "name", "profession"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(PROFESSION_COLUMN)); item = glade_xml_get_widget(gui, "rm_city"); g_object_set_data(G_OBJECT(item), "name", "city"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(CITY_COLUMN)); item = glade_xml_get_widget(gui, "rm_country"); g_object_set_data(G_OBJECT(item), "name", "country"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(COUNTRY_COLUMN)); item = glade_xml_get_widget(gui, "rm_web"); g_object_set_data(G_OBJECT(item), "name", "web"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(WEB_CARD_COLUMN)); item = glade_xml_get_widget(gui, "rm_email"); g_object_set_data(G_OBJECT(item), "name", "emails"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(EMAIL_CARD_COLUMN)); item = glade_xml_get_widget(gui, "rm_tel"); g_object_set_data(G_OBJECT(item), "name", "telephone"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(TELEPHONE_COLUMN)); item = glade_xml_get_widget(gui, "rm_role"); g_object_set_data(G_OBJECT(item), "name", "assignment"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(ASSIGNMENT_COLUMN)); item = glade_xml_get_widget(gui, "rm_company"); g_object_set_data(G_OBJECT(item), "name", "company"); g_signal_connect(G_OBJECT(item), "toggled", G_CALLBACK(rubrica_preferences_set_search_on), GINT_TO_POINTER(COMPANY_COLUMN)); /* setup radio group with preferences */ rubrica_preferences_setup_radio_group(radio_group); /* Advanced search (call search gui) */ item = glade_xml_get_widget(gui, "advanced"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_advanced_activate), app); /* Submenu Show cards */ item = glade_xml_get_widget(gui, "show_all"); popup_item_set_image(item, "all"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_all_activate), app); item = glade_xml_get_widget(gui, "show_men"); // popup_item_set_image(item, "man"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_men_activate), app); item = glade_xml_get_widget(gui, "show_women"); // popup_item_set_image(item, "woman"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_women_activate), app); item = glade_xml_get_widget(gui, "show_personal"); popup_item_set_image(item, "contacts"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_personal_activate), app); item = glade_xml_get_widget(gui, "show_company"); popup_item_set_image(item, "puzzle"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_company_activate), app); /* Submenu Show by rate */ item = glade_xml_get_widget(gui, "rate1"); popup_item_set_image(item, "rate1"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_by_rate1_ativate), app); item = glade_xml_get_widget(gui, "rate2"); popup_item_set_image(item, "rate2"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_by_rate2_ativate), app); item = glade_xml_get_widget(gui, "rate3"); popup_item_set_image(item, "rate3"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_by_rate3_ativate), app); item = glade_xml_get_widget(gui, "rate4"); popup_item_set_image(item, "rate4"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_by_rate4_ativate), app); item = glade_xml_get_widget(gui, "rate5"); popup_item_set_image(item, "rate5"); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_show_by_rate5_ativate), app); /* item = glade_xml_get_widget(gui, ""); popup_item_set_image(item, ""); g_signal_connect(G_OBJECT(), "", G_CALLBACK(), ); */ if (!rubrica_app_get_stack_len(app)) gtk_widget_set_sensitive(paste, FALSE); if (!gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gtk_widget_set_sensitive(cut, FALSE); gtk_widget_set_sensitive(copy, FALSE); gtk_widget_set_sensitive(modify, FALSE); gtk_widget_set_sensitive(delete, FALSE); } return menu; } GtkMenu* rubrica_menu_do_trash_popup(RubricaApp* app, GtkTreeView* tree, GdkEvent *event) { GladeXML* gui; GtkTreeModel *model; GtkTreeSelection *selection; GtkMenu* menu; GtkWidget* recovery; GtkWidget* destroy; GtkWidget* empty; gui = glade_xml_new (RUBRICA_GUI_DIR"/MenuTrash.glade", NULL, NULL); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); menu = (GtkMenu*) glade_xml_get_widget(gui, "menu"); recovery = glade_xml_get_widget(gui, "recovery_card"); g_signal_connect(G_OBJECT(recovery), "activate", G_CALLBACK(on_recovery_card_activate), app); destroy = glade_xml_get_widget(gui, "destroy_card"); g_signal_connect(G_OBJECT(destroy), "activate", G_CALLBACK(on_destroy_card_activate), app); empty = glade_xml_get_widget(gui, "empty_trash"); g_signal_connect(G_OBJECT(empty), "activate", G_CALLBACK(on_empty_trash_activate), app); return menu; } rubrica-2.0/src/models.h0000644000175000017500000000331010617433024014014 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #ifndef _RUBRICA_MODELS_H #define _RUBRICA_MODELS_H #include "types.h" GtkTreeModel* rubrica_model_new (RubricaModelType type); void rubrica_model_init_tree (GtkTreeView* view, RubricaModelType type); void rubrica_model_add_columns (GtkTreeView* view, RubricaColumnsType type); void rubrica_model_toggle_group (GtkCellRendererToggle *cell, gchar *path, gpointer data); void rubrica_model_clean_groups_view (GtkTreeView* view); void rubrica_model_populate_groups_view (GtkTreeView* view, RGroupBox* box); void rubrica_model_update_groups_view (GtkTreeView* view, RGroupBox* box); void rubrica_model_redisplay_groups_view (GtkTreeView* view, RGroupBox* box); GtkTreeModel* rubrica_model_combo_new (void); void rubrica_model_add_combo_columns (GtkComboBox *combo_box); void rubrica_model_populate_combo (GtkComboBox *combo_box, RubricaCombo* array); #endif rubrica-2.0/src/form_contact.h0000644000175000017500000000515310617433024015216 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_CONTACT_H #define _RUBRICA_FORM_CONTACT_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_CONTACT_TYPE (rubrica_form_contact_get_type()) #define RUBRICA_FORM_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ RUBRICA_FORM_CONTACT_TYPE, \ RubricaFormContact)) #define RUBRICA_FORM_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_CONTACT_TYPE, \ RubricaFormContactClass)) #define IS_RUBRICA_FORM_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\ RUBRICA_FORM_CONTACT_TYPE)) #define IS_RUBRICA_FORM_CONTACT_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_CONTACT_TYPE)) #define RUBRICA_FORM_CONTACT_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_CONTACT_TYPE, \ RubricaFormContactClass)) typedef struct _RubricaFormContact RubricaFormContact; typedef struct _RubricaFormContactClass RubricaFormContactClass; typedef struct _RubricaFormContactPrivate RubricaFormContactPrivate; struct _RubricaFormContact { RubricaForm parent; RubricaFormContactPrivate* priv; }; struct _RubricaFormContactClass { RubricaFormClass parent; }; GType rubrica_form_contact_get_type (void); RubricaFormContact* rubrica_form_contact_new (RubricaApp* app, GladeXML *gui); void rubrica_form_contact_free (RubricaFormContact* form); #endif rubrica-2.0/src/form_address.c0000644000175000017500000004564610617654161015225 0ustar seb128seb128/* * file: form_address.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_address.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" struct _RubricaFormAddressPrivate { GtkWidget* st; GtkWidget* num; GtkWidget* zip; GtkWidget* city; GtkWidget* prov; GtkWidget* state; GtkWidget* country; GtkWidget* add_type; GtkWidget* add_tree; GtkWidget* add_add; GtkWidget* add_del; GtkWidget* add_mod; gboolean dispose_has_run; }; static void rubrica_form_address_class_init (RubricaFormAddressClass* klass); static void rubrica_form_address_init (RubricaFormAddress* obj); static void rubrica_form_address_dispose (RubricaFormAddress* obj); static void rubrica_form_address_finalize (RubricaFormAddress* obj); static gboolean extract_addresses (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); static void form_address_extract_data (RubricaFormAddress* form, RCard *card); static void form_address_display_data (RubricaFormAddress* form, RCard *card); static void form_address_clean_form (RubricaFormAddress* form); static RubricaFormClass* parent_class; GType rubrica_form_address_get_type() { static GType form_address_type = 0; if (!form_address_type) { static const GTypeInfo form_address_info = { sizeof(RubricaFormAddressClass), NULL, NULL, (GClassInitFunc) rubrica_form_address_class_init, NULL, NULL, sizeof(RubricaFormAddress), 0, (GInstanceInitFunc) rubrica_form_address_init }; form_address_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormAddress", &form_address_info, 0); } return form_address_type; } static void rubrica_form_address_class_init(RubricaFormAddressClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_address_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_address_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_address_extract_data; parent_class->display_data = (gpointer) form_address_display_data; parent_class->clean_form = (gpointer) form_address_clean_form; } static void rubrica_form_address_init(RubricaFormAddress* self) { self->priv = g_new(RubricaFormAddressPrivate, 1); self->priv->st = NULL; self->priv->num = NULL; self->priv->zip = NULL; self->priv->city = NULL; self->priv->prov = NULL; self->priv->state = NULL; self->priv->country = NULL; self->priv->add_type = NULL; self->priv->add_tree = NULL; self->priv->add_add = NULL; self->priv->add_del = NULL; self->priv->add_mod = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_address_dispose (RubricaFormAddress* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->st); g_object_unref(self->priv->num); g_object_unref(self->priv->zip); g_object_unref(self->priv->city); g_object_unref(self->priv->prov); g_object_unref(self->priv->state); g_object_unref(self->priv->country); g_object_unref(self->priv->add_type); g_object_unref(self->priv->add_tree); g_object_unref(self->priv->add_add); g_object_unref(self->priv->add_del); g_object_unref(self->priv->add_mod); self->priv->dispose_has_run = TRUE; } static void rubrica_form_address_finalize (RubricaFormAddress* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } gboolean extract_addresses (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { RCard* card = (RCard*) data; RAddress* address = NULL; RAddressType adtype; gchar *type, *street, *number, *city; gchar *zip, *province, *state, *country; gtk_tree_model_get(model, iter, ADDRESS_STREET_COLUMN, &street, ADDRESS_NUMBER_COLUMN, &number, ADDRESS_CITY_COLUMN, &city, ADDRESS_TYPE_COLUMN, &type, ADDRESS_ZIP_COLUMN, &zip, ADDRESS_PROVINCE_COLUMN, &province, ADDRESS_STATE_COLUMN, &state, ADDRESS_COUNTRY_COLUMN, &country, -1); adtype = r_address_lookup_str2enum(type); address = r_address_new(); g_object_set(address, "address-type", adtype, "street", street, "street-number", number, "city", city, "zip", zip, "province", province, "state", state, "country", country, NULL); r_card_add_address(R_CARD(card), address); return FALSE; } static void form_address_extract_data (RubricaFormAddress* form, RCard *card) { GtkTreeModel* model = NULL; g_return_if_fail(IS_R_CARD(card)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->add_tree)); if (model) { gtk_tree_model_foreach(GTK_TREE_MODEL(model), extract_addresses, card); g_object_unref(model); } } static void form_address_display_data (RubricaFormAddress* form, RCard *card) { GtkTreeView* tree; GtkTreeModel *model; GtkTreeIter iter; gpointer data; gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), R_ADDRESS_PREF); tree = (GtkTreeView*) form->priv->add_tree; model = gtk_tree_view_get_model(tree); data = r_card_get_address(R_CARD(card)); for (; data; data = r_card_get_next_address(R_CARD(card))) { RAddressType adtype; gchar *street, *number, *city, *label, *type; gchar *zip, *province, *state, *country; g_object_get(R_ADDRESS(data), "address-type", &adtype, "street", &street, "street-number", &number, "city", &city, "zip", &zip, "province", &province, "state", &state, "country", &country, NULL); label = r_address_lookup_enum2lbl(adtype); type = r_address_lookup_enum2str(adtype); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, ADDRESS_STREET_COLUMN, street, ADDRESS_NUMBER_COLUMN, number, ADDRESS_CITY_COLUMN, city, ADDRESS_LABEL_COLUMN, label, ADDRESS_TYPE_COLUMN, type, ADDRESS_ZIP_COLUMN, zip, ADDRESS_PROVINCE_COLUMN, province, ADDRESS_STATE_COLUMN, state, ADDRESS_COUNTRY_COLUMN, country, -1); } } static void form_address_clean_form (RubricaFormAddress* form) { GtkTreeModel *model; gtk_entry_set_text(GTK_ENTRY(form->priv->st), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->num), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->zip), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->city), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prov), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->state), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->country), ""); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), R_ADDRESS_PREF); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->add_tree)); gtk_list_store_clear(GTK_LIST_STORE(model)); } /* Callbacks */ void form_addresses_list_activated(GtkTreeSelection *selection, gpointer data) { RubricaFormAddress* form = (RubricaFormAddress*) data; GtkTreeModel *model; GtkTreeIter iter; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->add_tree)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { RAddressType adtype; gchar *street, *number, *city, *zip; gchar *province, *state, *country, *type; gtk_tree_model_get(model, &iter, ADDRESS_STREET_COLUMN, &street, ADDRESS_NUMBER_COLUMN, &number, ADDRESS_CITY_COLUMN, &city, ADDRESS_TYPE_COLUMN, &type, ADDRESS_ZIP_COLUMN, &zip, ADDRESS_PROVINCE_COLUMN, &province, ADDRESS_STATE_COLUMN, &state, ADDRESS_COUNTRY_COLUMN, &country, -1); adtype = r_address_lookup_str2enum(type); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), adtype); gtk_entry_set_text(GTK_ENTRY(form->priv->st), street ? street : ""); gtk_entry_set_text(GTK_ENTRY(form->priv->num), number ? number : ""); gtk_entry_set_text(GTK_ENTRY(form->priv->zip), zip ? zip : ""); gtk_entry_set_text(GTK_ENTRY(form->priv->city), city ? city : ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prov), province ? province : ""); gtk_entry_set_text(GTK_ENTRY(form->priv->state), state ? state : ""); gtk_entry_set_text(GTK_ENTRY(form->priv->country), country ? country : ""); gtk_widget_set_sensitive(form->priv->add_mod, TRUE); gtk_widget_set_sensitive(form->priv->add_del, TRUE); } } void form_address_add_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; RubricaFormAddress *form = (RubricaFormAddress*) data; RAddress* address; RAddressType addtype; gchar *street, *number, *city, *zip, *type; gchar *label, *prov, *state, *country; gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_del), FALSE); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->add_tree)); g_return_if_fail(GTK_IS_TREE_MODEL(model)); address = r_address_new(); addtype = gtk_combo_box_get_active(GTK_COMBO_BOX(form->priv->add_type)); street = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->st))); number = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->num))); city = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->city))); zip = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->zip))); prov = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->prov))); state = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->state))); country = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->country))); g_object_set(address, "address-type", addtype, "street", street, "street-number", number, "city", city, "zip", zip, "province", prov, "state", state, "country", country, NULL); type = r_address_lookup_enum2str(addtype); label = r_address_lookup_enum2lbl(addtype); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, ADDRESS_STREET_COLUMN, street, ADDRESS_NUMBER_COLUMN, number, ADDRESS_LABEL_COLUMN, label, ADDRESS_TYPE_COLUMN, type, ADDRESS_CITY_COLUMN, city, ADDRESS_ZIP_COLUMN, zip, ADDRESS_PROVINCE_COLUMN, prov, ADDRESS_STATE_COLUMN, state, ADDRESS_COUNTRY_COLUMN, country, -1); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), R_ADDRESS_PREF); gtk_entry_set_text(GTK_ENTRY(form->priv->st), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->num), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->zip), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->city), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prov), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->state), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->country),""); } void form_address_mod_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *sel; RAddress* address; RubricaFormAddress* form = (RubricaFormAddress*) data; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->add_tree)); g_return_if_fail(GTK_IS_TREE_MODEL(model)); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->priv->add_tree)); if (gtk_tree_selection_get_selected(sel, NULL, &iter)) { gint i; GtkTreePath *path; gchar *street, *number, *city, *zip, *type; gchar *prov, *state, *country, *label; RAddressType addtype; /* create a new address and fill with form's data */ address = r_address_new(); addtype = gtk_combo_box_get_active(GTK_COMBO_BOX(form->priv->add_type)); street = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->st))); number = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->num))); city = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->city))); zip = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->zip))); prov = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->prov))); state = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->state))); country = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->priv->country))); g_object_set(address, "address-type", addtype, "street", street, "street-number", number, "city", city, "zip", zip, "province", prov, "state", state, "country", country, NULL); type = r_address_lookup_enum2str(addtype); label = r_address_lookup_enum2lbl(addtype); /* remove old address from tree list */ path = gtk_tree_model_get_path(model, &iter); i = gtk_tree_path_get_indices(path)[0]; gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_tree_path_free(path); /* insert new address into the tree list */ gtk_list_store_insert(GTK_LIST_STORE(model), &iter, i); gtk_list_store_set(GTK_LIST_STORE(model), &iter, ADDRESS_STREET_COLUMN, street, ADDRESS_NUMBER_COLUMN, number, ADDRESS_LABEL_COLUMN, label, ADDRESS_TYPE_COLUMN, type, ADDRESS_CITY_COLUMN, city, ADDRESS_ZIP_COLUMN, zip, ADDRESS_PROVINCE_COLUMN, prov, ADDRESS_STATE_COLUMN, state, ADDRESS_COUNTRY_COLUMN, country, -1); /* clean form */ gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), R_ADDRESS_PREF); gtk_entry_set_text(GTK_ENTRY(form->priv->st), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->num), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->zip), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->city), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prov), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->state), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->country), ""); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_del), FALSE); } } void form_address_del_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *sel; RubricaFormAddress* form = (RubricaFormAddress*) data; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->priv->add_tree)); sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->priv->add_tree)); if (gtk_tree_selection_get_selected(sel, NULL, &iter)) { gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), R_ADDRESS_PREF); gtk_entry_set_text(GTK_ENTRY(form->priv->st), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->num), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->zip), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->city), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->prov), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->state), ""); gtk_entry_set_text(GTK_ENTRY(form->priv->country), ""); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_del), FALSE); } } /* ***************************** Public ***************************** */ /** * rubrica_form_address_new * * create a #RubricaFormAddress * * Returns: a new #RubricaFormAddress */ RubricaFormAddress* rubrica_form_address_new(RubricaApp* app, GladeXML *gui) { RubricaFormAddress* form; GtkTreeView *tree; GtkTreeModel *model; GtkTreeSelection *selection; GtkWidget* combo_box; GtkWidget* add_label; gint i; form = g_object_new(rubrica_form_address_get_type(), NULL); form->priv->st = glade_xml_get_widget(gui, "st"); form->priv->num = glade_xml_get_widget(gui, "num"); form->priv->zip = glade_xml_get_widget(gui, "zip"); form->priv->city = glade_xml_get_widget(gui, "city"); form->priv->prov = glade_xml_get_widget(gui, "prov"); form->priv->state = glade_xml_get_widget(gui, "state"); form->priv->country = glade_xml_get_widget(gui, "country"); form->priv->add_tree = glade_xml_get_widget(gui, "addresses_tree"); form->priv->add_add = glade_xml_get_widget(gui, "add_add"); form->priv->add_del = glade_xml_get_widget(gui, "add_del"); form->priv->add_mod = glade_xml_get_widget(gui, "add_mod"); add_label = glade_xml_get_widget(gui, "add_label"); combo_box = glade_xml_get_widget(gui, "add_combo_box"); form->priv->add_type = gtk_combo_box_new_text (); gtk_box_pack_start(GTK_BOX(combo_box), form->priv->add_type, TRUE, TRUE, 0); gtk_widget_show(form->priv->add_type); for (i = R_ADDRESS_PREF; i <= R_ADDRESS_UNKNOWN; i++) gtk_combo_box_append_text(GTK_COMBO_BOX(form->priv->add_type), _(r_address_lookup_enum2lbl(i))); gtk_label_set_mnemonic_widget(GTK_LABEL(add_label), form->priv->add_type); gtk_combo_box_set_active(GTK_COMBO_BOX(form->priv->add_type), R_ADDRESS_PREF); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->add_del), FALSE); /* address model/view */ tree = (GtkTreeView *) form->priv->add_tree; model = rubrica_model_new(ADDRESS_MODEL); gtk_tree_view_set_model(tree, GTK_TREE_MODEL(model)); selection = gtk_tree_view_get_selection(tree); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); rubrica_model_add_columns(tree, ADDRESS_COLUMNS); g_signal_connect(G_OBJECT(selection), "changed", G_CALLBACK(form_addresses_list_activated), form); g_object_unref(model); /* address buttons */ g_signal_connect (G_OBJECT (form->priv->add_add), "clicked", G_CALLBACK (form_address_add_clicked), form); g_signal_connect (G_OBJECT (form->priv->add_mod), "clicked", G_CALLBACK (form_address_mod_clicked), form); g_signal_connect (G_OBJECT (form->priv->add_del), "clicked", G_CALLBACK (form_address_del_clicked), form); return form; } /** * rubrica_form_address_free * @form: a #RubricaFormAddress * * free the #RubricaFormAddress */ void rubrica_form_address_free(RubricaFormAddress* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/calendar.c0000644000175000017500000003671110617433024014310 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "calendar.h" #define BUFSIZE 64 enum { PROP_0, CALENDAR_DAY, CALENDAR_MONTH, CALENDAR_YEAR }; /* signals enumeration */ enum { CALENDAR_CHANGE, LAST_SIGNAL }; struct _RubricaCalendarPrivate { GtkWidget* entry; GtkWidget* button; GtkWidget* popup; GtkWidget* calendar; GDate* date; gint day; gint month; gint year; gboolean dispose_has_run; }; static guint calendar_signals[LAST_SIGNAL] = {0}; #define RUBRICA_CALENDAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_CALENDAR_TYPE, \ RubricaCalendarPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_calendar_class_init (RubricaCalendarClass* klass); static void rubrica_calendar_init (RubricaCalendar* obj); static void rubrica_calendar_finalize (RubricaCalendar* self); static void rubrica_calendar_dispose (RubricaCalendar* self); static void rubrica_calendar_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void rubrica_calendar_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static gboolean date_is_valid (RubricaCalendar* calendar); static void update_calendar (RubricaCalendar *calendar); static void hide_popup (RubricaCalendar *calendar); static gboolean popup_grab_on_window (GdkWindow *window, guint32 activate_time); static void on_day_selected (GtkCalendar *calendar, gpointer data); static void on_day_selected_double (GtkCalendar *calendar, gpointer data); static gint on_popup_key_press (GtkWidget *widget, GdkEventKey *event, gpointer data); static gint on_popup_button_press (GtkWidget *widget, GdkEventButton *event, gpointer data); static void on_button_toggled_cb (GtkToggleButton *togglebutton, gpointer data); static gboolean date_is_valid(RubricaCalendar* calendar) { RubricaCalendarPrivate *priv; g_return_val_if_fail(IS_RUBRICA_CALENDAR(calendar), FALSE); priv = RUBRICA_CALENDAR_GET_PRIVATE (calendar); if (priv->day && (priv->month+1) && priv->year) return TRUE; return FALSE; } static void update_calendar (RubricaCalendar *calendar) { RubricaCalendarPrivate *priv = RUBRICA_CALENDAR_GET_PRIVATE (calendar); gchar buffer[BUFSIZE]; if (date_is_valid(calendar)) { g_date_set_dmy(priv->date, priv->day, priv->month+1, priv->year); g_date_strftime(buffer, BUFSIZE, "%Ex", priv->date); gtk_entry_set_text(GTK_ENTRY(priv->entry), buffer); g_signal_emit_by_name(calendar, "calendar-change", priv->date, G_TYPE_POINTER); } else { gtk_entry_set_text(GTK_ENTRY(priv->entry), _("unknown")); } } static void hide_popup (RubricaCalendar *calendar) { RubricaCalendarPrivate *priv; priv = RUBRICA_CALENDAR_GET_PRIVATE (calendar); gtk_widget_hide (priv->popup); gtk_grab_remove (priv->popup); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->button), FALSE); } static gboolean popup_grab_on_window (GdkWindow *window, guint32 activate_time) { if ((gdk_pointer_grab(window, TRUE, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK, NULL, NULL, activate_time) == 0)) { if (gdk_keyboard_grab (window, TRUE, activate_time) == 0) return TRUE; else { gdk_pointer_ungrab (activate_time); return FALSE; } } return FALSE; } static void on_day_selected (GtkCalendar *cal, gpointer data) { RubricaCalendar *calendar = (RubricaCalendar *) data; RubricaCalendarPrivate *priv = RUBRICA_CALENDAR_GET_PRIVATE (data); guint day, month, year; gtk_calendar_get_date (cal, &year, &month, &day); priv->day = day; priv->month = month; priv->year = year; update_calendar(RUBRICA_CALENDAR(calendar)); } static void on_day_selected_double (GtkCalendar *calendar, gpointer data) { hide_popup(RUBRICA_CALENDAR(data)); } static gint on_delete_popup (GtkWidget *widget, gpointer data) { hide_popup(RUBRICA_CALENDAR(data)); return TRUE; } static gint on_popup_key_press (GtkWidget *widget, GdkEventKey *event, gpointer data) { /* evaluate event so calendar is navigable with keyboard */ switch (event->keyval) { case GDK_Escape: break; case GDK_Return: case GDK_KP_Enter: break; default: return FALSE; } g_signal_stop_emission_by_name (widget, "key_press_event"); hide_popup (RUBRICA_CALENDAR(data)); return TRUE; } /* This function is yanked from gtkcombo.c */ static gint on_popup_button_press (GtkWidget *widget, GdkEventButton *event, gpointer data) { GtkWidget *child; /* We don't ask for button press events on the grab widget, so * if an event is reported directly to the grab widget, it must * be on a window outside the application (and thus we remove * the popup window). Otherwise, we check if the widget is a child * of the grab widget, and only remove the popup window if it * is not. */ child = gtk_get_event_widget ((GdkEvent *)event); if (child != widget) { while (child) { if (child == widget) return FALSE; child = child->parent; } } hide_popup (RUBRICA_CALENDAR(data)); return TRUE; } static void on_button_toggled_cb (GtkToggleButton *togglebutton, gpointer data) { RubricaCalendar *calendar = (RubricaCalendar *)data; RubricaCalendarPrivate *priv = RUBRICA_CALENDAR_GET_PRIVATE (calendar); gint x, y, width, height; GtkRequisition req; if (gtk_toggle_button_get_active (togglebutton)) { if (date_is_valid(calendar)) { gtk_calendar_select_month (GTK_CALENDAR (priv->calendar), priv->month, priv->year); gtk_calendar_select_day (GTK_CALENDAR (priv->calendar), priv->day); } /* show calendar */ gtk_widget_size_request (priv->popup, &req); gdk_window_get_origin (GDK_WINDOW (priv->button->window), &x, &y); x += priv->button->allocation.x; y += priv->button->allocation.y; width = priv->button->allocation.width; height = priv->button->allocation.height; x += width - req.width; y += height; if (x < 0) x = 0; if (y < 0) y = 0; gtk_grab_add (priv->popup); gtk_window_move (GTK_WINDOW (priv->popup), x, y); gtk_widget_show (priv->popup); gtk_widget_grab_focus (priv->calendar); popup_grab_on_window (priv->popup->window, gtk_get_current_event_time ()); } } GType rubrica_calendar_get_type() { static GType calendar_type = 0; if (!calendar_type) { static const GTypeInfo calendar_info = { sizeof(RubricaCalendarClass), NULL, NULL, (GClassInitFunc) rubrica_calendar_class_init, NULL, NULL, sizeof(RubricaCalendar), 0, (GInstanceInitFunc) rubrica_calendar_init }; calendar_type = g_type_register_static (GTK_TYPE_HBOX, "RubricaCalendar", &calendar_info, 0); } return calendar_type; } static void rubrica_calendar_dispose (RubricaCalendar* self) { RubricaCalendarPrivate* priv; g_return_if_fail(IS_RUBRICA_CALENDAR(self)); priv = RUBRICA_CALENDAR_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; } static void rubrica_calendar_finalize (RubricaCalendar* self) { g_return_if_fail(IS_RUBRICA_CALENDAR(self)); } static void rubrica_calendar_class_init(RubricaCalendarClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_calendar_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_calendar_dispose; object_class->set_property = (gpointer) rubrica_calendar_set_property; object_class->get_property = (gpointer) rubrica_calendar_get_property; g_type_class_add_private (klass, sizeof(RubricaCalendarPrivate)); /** */ calendar_signals[CALENDAR_CHANGE] = g_signal_new("calendar-change", RUBRICA_CALENDAR_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RubricaCalendarClass, calendar_change), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_POINTER); /* params type: error code */ pspec = g_param_spec_int("calendar-day", "day", "day", 0, // min 31, // max 0, // default, invalid day G_PARAM_READWRITE); g_object_class_install_property(object_class, CALENDAR_DAY, pspec); pspec = g_param_spec_int("calendar-month", "month", "month", 0, // min 12, // max 0, // default, invalid month G_PARAM_READWRITE); g_object_class_install_property(object_class, CALENDAR_MONTH, pspec); pspec = g_param_spec_int("calendar-year", "year", "year", 0, // min 10000, // max 0, // default, invalid year G_PARAM_READWRITE); g_object_class_install_property(object_class, CALENDAR_YEAR, pspec); } static void rubrica_calendar_init(RubricaCalendar* self) { GtkWidget* frame; GtkWidget* arrow; GtkIconTheme* theme; GtkWidget* image; GdkPixbuf* pixbuf; RubricaCalendarPrivate* priv; priv = RUBRICA_CALENDAR_GET_PRIVATE(self); gtk_box_set_homogeneous(GTK_BOX(self), FALSE); theme = gtk_icon_theme_get_default(); pixbuf = gtk_icon_theme_load_icon(theme, "stock_calendar", GTK_ICON_SIZE_BUTTON, GTK_ICON_LOOKUP_USE_BUILTIN, NULL); priv->date = g_date_new(); g_date_clear (priv->date, 1); g_date_set_time_t(priv->date, time(NULL)); priv->day = 0; priv->month = 0; priv->year = 0; priv->entry = gtk_entry_new(); priv->button = gtk_toggle_button_new (); priv->popup = gtk_window_new (GTK_WINDOW_POPUP); priv->calendar = gtk_calendar_new (); gtk_entry_set_editable(GTK_ENTRY(priv->entry), FALSE); gtk_entry_set_text(GTK_ENTRY(priv->entry), _("unknown")); gtk_box_pack_start (GTK_BOX (self), priv->entry, TRUE, TRUE, 0); gtk_widget_show (priv->entry); gtk_box_pack_start (GTK_BOX (self), priv->button, FALSE, FALSE, 0); if (pixbuf) { image = gtk_image_new_from_pixbuf(pixbuf); gtk_button_set_image(GTK_BUTTON(priv->button), image); gtk_button_set_relief(GTK_BUTTON(priv->button), GTK_RELIEF_NONE); gtk_widget_show (image); gdk_pixbuf_unref (pixbuf); } else { arrow = (GtkWidget *) gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); gtk_container_add (GTK_CONTAINER (priv->button), arrow); gtk_widget_show (arrow); } gtk_widget_show (priv->button); frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN); gtk_widget_show(frame); gtk_window_set_resizable (GTK_WINDOW (priv->popup), FALSE); gtk_container_add(GTK_CONTAINER(priv->popup), frame); gtk_widget_set_events (priv->popup, gtk_widget_get_events (priv->popup) | GDK_KEY_PRESS_MASK); gtk_container_add (GTK_CONTAINER (frame), priv->calendar); gtk_widget_show (priv->calendar); g_signal_connect (G_OBJECT(priv->button), "toggled", G_CALLBACK (on_button_toggled_cb), self); g_signal_connect (priv->popup, "delete_event", G_CALLBACK (on_delete_popup), self); g_signal_connect (priv->popup, "key_press_event", G_CALLBACK (on_popup_key_press), self); g_signal_connect (priv->popup, "button_press_event", G_CALLBACK (on_popup_button_press), self); g_signal_connect (G_OBJECT (priv->calendar), "day-selected", G_CALLBACK (on_day_selected), self); g_signal_connect (G_OBJECT (priv->calendar), "day-selected-double-click", G_CALLBACK (on_day_selected_double), self); priv->dispose_has_run = FALSE; } static void rubrica_calendar_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaCalendar* self = (RubricaCalendar*) obj; RubricaCalendarPrivate* priv = RUBRICA_CALENDAR_GET_PRIVATE(self); switch (property_id) { case CALENDAR_DAY: priv->day = g_value_get_int(value); break; case CALENDAR_MONTH: priv->month = g_value_get_int(value); break; case CALENDAR_YEAR: priv->year = g_value_get_int(value); break; default: break; } update_calendar(self); } static void rubrica_calendar_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaCalendar* self = (RubricaCalendar*) obj; RubricaCalendarPrivate* priv = RUBRICA_CALENDAR_GET_PRIVATE(self); switch (property_id) { case CALENDAR_DAY: g_value_set_int(value, priv->day); break; case CALENDAR_MONTH: g_value_set_int(value, priv->month); break; case CALENDAR_YEAR: g_value_set_int(value, priv->year); break; default: break; } } /* Public */ /** * rubrica_calendar_new * * create a #RubricaCalendar * * returns: a new #RubricaCalendar* */ GtkWidget* rubrica_calendar_new() { GtkWidget* calendar; calendar = GTK_WIDGET(g_object_new(RUBRICA_CALENDAR_TYPE, NULL)); return calendar; } GtkWidget* rubrica_calendar_get_button (RubricaCalendar *cal) { RubricaCalendarPrivate* priv; g_return_val_if_fail(IS_RUBRICA_CALENDAR(cal), NULL); priv = RUBRICA_CALENDAR_GET_PRIVATE(cal); return priv->button; } gboolean rubrica_calendar_has_date (RubricaCalendar *cal) { g_return_val_if_fail(IS_RUBRICA_CALENDAR(cal), FALSE); return date_is_valid(cal); } GDate* rubrica_calendar_get_gdate (RubricaCalendar *cal) { RubricaCalendarPrivate *priv; g_return_val_if_fail(IS_RUBRICA_CALENDAR(cal), NULL); priv = RUBRICA_CALENDAR_GET_PRIVATE (cal); if (date_is_valid(cal)) return priv->date; return NULL; } gchar* rubrica_calendar_get_date (RubricaCalendar *cal) { RubricaCalendarPrivate *priv; gchar buffer[BUFSIZE]; g_return_val_if_fail(IS_RUBRICA_CALENDAR(cal), NULL); priv = RUBRICA_CALENDAR_GET_PRIVATE (cal); if (date_is_valid(cal)) { g_date_set_dmy(priv->date, priv->day, priv->month, priv->year); g_date_strftime(buffer, BUFSIZE, "%Ex", priv->date); return g_strdup_printf("%s", buffer); } return NULL; } void rubrica_calendar_clean(RubricaCalendar* calendar) { RubricaCalendarPrivate *priv; g_return_if_fail(IS_RUBRICA_CALENDAR(calendar)); priv = RUBRICA_CALENDAR_GET_PRIVATE (calendar); priv->day = 0; priv->month = 0; priv->year = 0; update_calendar (calendar); } rubrica-2.0/src/form_phone.c0000644000175000017500000004064710617433024014676 0ustar seb128seb128/* * file: form_phone.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_phone.h" #include "app.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" struct _RubricaFormPhonePrivate { FormPhoneType type; GtkWidget* tel; GtkWidget* tree; GtkWidget* add; GtkWidget* del; GtkWidget* mod; GtkWidget* tel1; // home or operator GtkWidget* tel2; // work or green GtkWidget* tel3; // fax GtkWidget* tel4; // mobile or customer care GtkWidget* tel5; // other gboolean dispose_has_run; }; static void rubrica_form_phone_class_init (RubricaFormPhoneClass* klass); static void rubrica_form_phone_init (RubricaFormPhone* obj); static void rubrica_form_phone_dispose (RubricaFormPhone* obj); static void rubrica_form_phone_finalize (RubricaFormPhone* obj); static gboolean extract_telephones (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); static void form_phone_extract_data (RubricaFormPhone* form, RCard *card); static void form_phone_display_data (RubricaFormPhone* form, RCard *card); static void form_phone_clean_form (RubricaFormPhone* form); static RubricaFormClass* parent_class; GType rubrica_form_phone_get_type() { static GType form_phone_type = 0; if (!form_phone_type) { static const GTypeInfo form_phone_info = { sizeof(RubricaFormPhoneClass), NULL, NULL, (GClassInitFunc) rubrica_form_phone_class_init, NULL, NULL, sizeof(RubricaFormPhone), 0, (GInstanceInitFunc) rubrica_form_phone_init }; form_phone_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormPhone", &form_phone_info, 0); } return form_phone_type; } static void rubrica_form_phone_class_init(RubricaFormPhoneClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_phone_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_phone_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_phone_extract_data; parent_class->display_data = (gpointer) form_phone_display_data; parent_class->clean_form = (gpointer) form_phone_clean_form; } static void rubrica_form_phone_init(RubricaFormPhone* self) { self->private = g_new(RubricaFormPhonePrivate, 1); self->private->type = FORM_PHONE_PERSONAL; self->private->tel = NULL; self->private->tree = NULL; self->private->add = NULL; self->private->mod = NULL; self->private->del = NULL; self->private->tel1 = NULL; self->private->tel2 = NULL; self->private->tel3 = NULL; self->private->tel4 = NULL; self->private->tel5 = NULL; self->private->dispose_has_run = FALSE; } static void rubrica_form_phone_dispose (RubricaFormPhone* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->private->dispose_has_run) return; g_object_unref(self->private->tel); g_object_unref(self->private->tree); g_object_unref(self->private->add); g_object_unref(self->private->mod); g_object_unref(self->private->del); g_object_unref(self->private->tel1); g_object_unref(self->private->tel2); g_object_unref(self->private->tel3); g_object_unref(self->private->tel4); g_object_unref(self->private->tel5); self->private->dispose_has_run = TRUE; } static void rubrica_form_phone_finalize (RubricaFormPhone* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->private->tel); g_free(self->private->tree); g_free(self->private->add); g_free(self->private->mod); g_free(self->private->del); g_free(self->private->tel1); g_free(self->private->tel2); g_free(self->private->tel3); g_free(self->private->tel4); g_free(self->private->tel5); self->private = NULL; } gboolean extract_telephones (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { RCard* card = (RCard*) data; RTelephone* tel = NULL; RTelephoneType ttype; gchar *number, *type; gtk_tree_model_get(model, iter, TELEPHONE_NUMBER_COLUMN, &number, TELEPHONE_TYPE_COLUMN, &type, -1); ttype = r_telephone_lookup_str2enum(type); tel = r_telephone_new(); g_object_set(tel, "telephone-number", number, "telephone-type", ttype, NULL); r_card_add_telephone(R_CARD(card), tel); return FALSE; } static void form_phone_extract_data (RubricaFormPhone* form, RCard *card) { GtkTreeModel* model = NULL; g_return_if_fail(IS_R_CARD(card)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->private->tree)); if (model) { gtk_tree_model_foreach(GTK_TREE_MODEL(model), extract_telephones, card); g_object_unref(model); } } static void form_phone_display_data (RubricaFormPhone* form, RCard *card) { GtkTreeView* tree; GtkTreeModel *model; GtkTreeIter iter; gpointer data; /* telephone model/view */ tree = (GtkTreeView*) form->private->tree; model = gtk_tree_view_get_model(tree); data = r_card_get_telephone(R_CARD(card)); for (; data; data = r_card_get_next_telephone(R_CARD(card))) { RTelephoneType ttype; gchar *number, *type; g_object_get(R_TELEPHONE(data), "telephone-number", &number, "telephone-type", &ttype, NULL); type = r_telephone_lookup_enum2str(ttype); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, TELEPHONE_NUMBER_COLUMN, number, TELEPHONE_TYPE_COLUMN, type, -1); } } static void form_phone_clean_form (RubricaFormPhone* form) { GtkTreeModel *model; gtk_entry_set_text(GTK_ENTRY(form->private->tel), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel1), TRUE); model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->private->tree)); gtk_list_store_clear(GTK_LIST_STORE(model)); } /* Callbacks */ void form_telephone_list_activated(GtkTreeSelection *selection, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; RubricaFormPhone *form = (RubricaFormPhone *) data; gchar *numb_str; gchar *type_str; gint type; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->private->tree)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gtk_tree_model_get(model, &iter, TELEPHONE_NUMBER_COLUMN, &numb_str, TELEPHONE_TYPE_COLUMN, &type_str, -1); gtk_entry_set_text(GTK_ENTRY(form->private->tel), numb_str); type = r_telephone_lookup_str2enum(type_str); switch (type) { case R_TELEPHONE_HOME: case R_TELEPHONE_OPERATOR: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel1), TRUE); break; case R_TELEPHONE_WORK: case R_TELEPHONE_GREEN: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel2), TRUE); break; case R_TELEPHONE_FAX: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel3), TRUE); break; case R_TELEPHONE_CELLPHONE: case R_TELEPHONE_CUSTOMER_CARE: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel4), TRUE); break; case R_TELEPHONE_OTHER: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel5), TRUE); break; default: break; } gtk_widget_set_sensitive(form->private->mod, TRUE); gtk_widget_set_sensitive(form->private->del, TRUE); g_free(numb_str); g_free(type_str); } } void form_tel_add_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; gchar *type_str = NULL; RubricaFormPhone *form = (RubricaFormPhone *) data; RTelephone* tel; RTelephoneType type = R_TELEPHONE_UNKNOWN; gchar* number; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->private->tree)); tel = r_telephone_new(); number = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->private->tel))); // home or operator telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel1))) { if (form->private->type == FORM_PHONE_PERSONAL) { type_str = "home"; type = R_TELEPHONE_HOME; } else { type_str = "operator"; type = R_TELEPHONE_OPERATOR; } } // work or green telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel2))) { if (form->private->type == FORM_PHONE_PERSONAL) { type_str = "work"; type = R_TELEPHONE_WORK; } else { type_str = "green"; type = R_TELEPHONE_GREEN; } } // fax if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel3))) { type_str = "fax"; type = R_TELEPHONE_FAX; } // mobile or customer care telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel4))) { if (form->private->type == FORM_PHONE_PERSONAL) { type_str = "cellphone"; type = R_TELEPHONE_CELLPHONE; } else { type_str = "customer care"; type = R_TELEPHONE_CUSTOMER_CARE; } } // Other telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel5))) { type = R_TELEPHONE_OTHER; type_str = "other"; } g_object_set(tel, "telephone-number", number, "telephone-type", type, NULL); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, TELEPHONE_NUMBER_COLUMN, number, TELEPHONE_TYPE_COLUMN, type_str, -1); gtk_entry_set_text(GTK_ENTRY(form->private->tel), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel1), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->del), FALSE); } void form_tel_mod_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *selection; RubricaFormPhone *form = (RubricaFormPhone *) data; RTelephone* tel; RTelephoneType type = R_TELEPHONE_UNKNOWN;; gchar* number; gchar *type_str = NULL; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->private->tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->private->tree)); tel = r_telephone_new(); number = g_strdup(gtk_entry_get_text(GTK_ENTRY(form->private->tel))); // home or operator telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel1))) { if (form->private->type == FORM_PHONE_PERSONAL) { type_str = "home"; type = R_TELEPHONE_HOME; } else { type_str = "operator"; type = R_TELEPHONE_OPERATOR; } } // work or green telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel2))) { if (form->private->type == FORM_PHONE_PERSONAL) { type_str = "work"; type = R_TELEPHONE_WORK; } else { type_str = "green"; type = R_TELEPHONE_GREEN; } } // fax if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel3))) { type_str = "fax"; type = R_TELEPHONE_FAX; } // mobile or customer care telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel4))) { if (form->private->type == FORM_PHONE_PERSONAL) { type_str = "cellphone"; type = R_TELEPHONE_CELLPHONE; } else { type_str = "customer care"; type = R_TELEPHONE_CUSTOMER_CARE; } } // Other telephone if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(form->private->tel5))) { type = R_TELEPHONE_OTHER; type_str = "other"; } g_object_set(tel, "telephone-number", number, "telephone-type", type, NULL); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { gint i; GtkTreePath *path; path = gtk_tree_model_get_path(model, &iter); i = gtk_tree_path_get_indices(path)[0]; gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_tree_path_free(path); gtk_list_store_insert(GTK_LIST_STORE(model), &iter, i); gtk_list_store_set(GTK_LIST_STORE(model), &iter, TELEPHONE_NUMBER_COLUMN, number, TELEPHONE_TYPE_COLUMN, type_str, -1); gtk_entry_set_text(GTK_ENTRY(form->private->tel),""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel1), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->del), FALSE); } } void form_tel_del_clicked (GtkButton *button, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeSelection *selection; RubricaFormPhone *form = (RubricaFormPhone *) data; model = gtk_tree_view_get_model(GTK_TREE_VIEW(form->private->tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->private->tree)); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { gtk_list_store_remove(GTK_LIST_STORE(model), &iter); gtk_entry_set_text(GTK_ENTRY(form->private->tel),""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->private->tel1), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->del), FALSE); } } /* ***************************** Public ***************************** */ /** * rubrica_form_phone_new * * create a #RubricaFormPhone * * Returns: a new #RubricaFormPhone */ RubricaFormPhone* rubrica_form_phone_new (RubricaApp* app, GladeXML *gui, FormPhoneType type) { RubricaFormPhone *form; GtkTreeModel *model; GtkTreeSelection *selection; form = g_object_new(rubrica_form_phone_get_type(), NULL); form->private->type = type; form->private->tel = glade_xml_get_widget(gui, "tel"); form->private->tree = glade_xml_get_widget(gui, "tel_tree"); form->private->add = glade_xml_get_widget(gui, "tel_add"); form->private->del = glade_xml_get_widget(gui, "tel_del"); form->private->mod = glade_xml_get_widget(gui, "tel_mod"); form->private->tel3 = glade_xml_get_widget(gui, "fax"); form->private->tel5 = glade_xml_get_widget(gui, "other"); if (type == FORM_PHONE_PERSONAL) { form->private->tel1 = glade_xml_get_widget(gui, "home"); form->private->tel2 = glade_xml_get_widget(gui, "work"); form->private->tel4 = glade_xml_get_widget(gui, "cell"); } else { form->private->tel1 = glade_xml_get_widget(gui, "operator"); form->private->tel2 = glade_xml_get_widget(gui, "green"); form->private->tel4 = glade_xml_get_widget(gui, "ccare"); } gtk_widget_set_sensitive(GTK_WIDGET(form->private->mod), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(form->private->del), FALSE); /* telephone model/view */ model = rubrica_model_new(TELEPHONE_MODEL); gtk_tree_view_set_model(GTK_TREE_VIEW(form->private->tree), GTK_TREE_MODEL(model)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(form->private->tree)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); rubrica_model_add_columns(GTK_TREE_VIEW(form->private->tree), TELEPHONE_COLUMNS); g_signal_connect(G_OBJECT(selection), "changed", G_CALLBACK(form_telephone_list_activated), form); g_object_unref(model); /* telephone buttons */ g_signal_connect (G_OBJECT (form->private->add), "clicked", G_CALLBACK (form_tel_add_clicked), form); g_signal_connect (G_OBJECT (form->private->mod), "clicked", G_CALLBACK (form_tel_mod_clicked), form); g_signal_connect (G_OBJECT (form->private->del), "clicked", G_CALLBACK (form_tel_del_clicked), form); return form; } /** * rubrica_form_phone_free * @form: a #RubricaFormPhone * * free the #RubricaFormPhone */ void rubrica_form_phone_free(RubricaFormPhone* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/data_view.c0000644000175000017500000010626310637705343014512 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include "libral.h" #include "data_view.h" #include "app.h" #include "types.h" #include "themes.h" #include "preferences.h" static GdkCursor* hand_cursor; static GdkCursor* regular_cursor; static GdkCursor* wait_cursor; static gboolean over_link; enum { PROP_0, DATA_FONT, }; struct _RubricaDataViewPrivate { GtkWidget* text1; // header GtkWidget* text2; // body GtkTextBuffer* buf1; // header's buffer GtkTextBuffer* buf2; // body's buffer GtkIconTheme* theme; GtkWidget* image; gchar* font; gboolean dispose_has_run; }; /* signals enumeration */ enum { LAUNCH, LAST_SIGNAL }; static guint data_view_signals[LAST_SIGNAL] = {0}; #define RUBRICA_DATA_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_DATA_VIEW_TYPE, \ RubricaDataViewPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_data_view_class_init (RubricaDataViewClass* klass); static void rubrica_data_view_init (RubricaDataView* obj); static void rubrica_data_view_finalize (RubricaDataView* self); static void rubrica_data_view_dispose (RubricaDataView* self); static void rubrica_data_view_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void rubrica_data_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); /* Private */ static GtkTextTagTable* rubrica_data_view_create_tag_table(void); static void insert_link (GtkTextBuffer *buffer, GtkTextIter *iter, gchar *uri, RubricaLinkType type); static void follow_if_link (GtkWidget *view, GtkTextIter *iter, gpointer data); static void set_cursor (GtkWidget* view, gint x, gint y); static void clean_buffer (GtkTextBuffer* buffer); static void data_view_clear_header (RubricaDataView* view); static void data_view_clear_body (RubricaDataView* view); static void data_view_set_image (RubricaDataView* view, GdkPixbuf* pixbuf); static void data_view_write_card_header (GtkTextBuffer* buffer, gchar* label, gchar* string); static void data_view_write_pixbuf (GtkTextBuffer* buffer, GdkPixbuf* pixbuf, gchar* label); static void data_view_write_bold (GtkTextBuffer* buffer, gchar* label, gchar* string, gboolean bool); static void data_view_write_line (GtkTextBuffer* buffer, gchar* label, gchar* string, gboolean tab); static void data_view_write_link (GtkTextBuffer* buffer, gchar* label, gchar* url, RubricaLinkType link); static void data_view_write (GtkTextBuffer* buffer, gchar* str); static void write_company_info (RubricaDataView* view, RCard* card); static void write_personal_data (RubricaDataView* view, RPersonalCard* card); static void write_groups (RubricaDataView* view, RCard* card); static void write_addresses (RubricaDataView* view, RCard* card); static void write_work (RubricaDataView* view, RPersonalCard* card); static void write_net (RubricaDataView* view, RCard* card); static void write_telephones (RubricaDataView* view, RCard* card); static void write_notes (RubricaDataView* view, RPersonalCard* card); static void write_company_notes (RubricaDataView* view, RCompanyCard* card); static void data_view_show_personal_card (RubricaDataView* view, RCard* card); static void data_view_show_company_card (RubricaDataView* view, RCard* card); /* Callbacks */ static gboolean key_press_event (GtkWidget *text_view, GdkEventKey *event, gpointer data); static gboolean event_after (GtkWidget *text_view, GdkEvent *ev, gpointer data); static gboolean motion_notify_event (GtkWidget* view, GdkEventMotion *event, gpointer data); static gboolean visibility_notify_event (GtkWidget* view, GdkEventVisibility *event, gpointer data); void change_font (GtkTextTag *tag, gpointer data); void change_font (GtkTextTag *tag, gpointer data) { PangoFontDescription* pfd; const gchar* font = (gchar*) data; gchar* name; pfd = pango_font_description_from_string (font); g_object_get(tag, "name", &name, NULL); if (g_strrstr(name, "bold")) g_object_set(tag, "font-desc", pfd, "weight", PANGO_WEIGHT_BOLD, NULL); else g_object_set(tag, "font-desc", pfd, NULL); pango_font_description_free (pfd); } GType rubrica_data_view_get_type() { static GType data_view_type = 0; if (!data_view_type) { static const GTypeInfo data_view_info = { sizeof(RubricaDataViewClass), NULL, NULL, (GClassInitFunc) rubrica_data_view_class_init, NULL, NULL, sizeof(RubricaDataView), 0, (GInstanceInitFunc) rubrica_data_view_init }; data_view_type = g_type_register_static (GTK_TYPE_VBOX, "RubricaDataView", &data_view_info, 0); } return data_view_type; } static void rubrica_data_view_dispose (RubricaDataView* self) { g_return_if_fail(IS_RUBRICA_DATA_VIEW(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_data_view_finalize (RubricaDataView* self) { g_return_if_fail(IS_RUBRICA_DATA_VIEW(self)); } static void rubrica_data_view_class_init(RubricaDataViewClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_data_view_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_data_view_dispose; object_class->set_property = (gpointer) rubrica_data_view_set_property; object_class->get_property = (gpointer) rubrica_data_view_get_property; g_type_class_add_private (klass, sizeof(RubricaDataViewPrivate)); /** * RubricaDataView:data-font * * */ pspec = g_param_spec_string("data-font", "data font", "the font used to display data", NULL, G_PARAM_READWRITE); g_object_class_install_property(object_class, DATA_FONT, pspec); data_view_signals[LAUNCH] = g_signal_new("launch", RUBRICA_DATA_VIEW_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RubricaDataViewClass, launch), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_POINTER); /* params type: error code */ } static void rubrica_data_view_init(RubricaDataView* self) { GtkWidget* scrollwin; GtkTextTagTable* tag_table; GtkWidget* vbox; GtkWidget* hbox; hand_cursor = gdk_cursor_new (GDK_HAND2); regular_cursor = gdk_cursor_new (GDK_XTERM); wait_cursor = gdk_cursor_new (GDK_WATCH); over_link = FALSE; gtk_box_set_homogeneous(GTK_BOX(self), FALSE); gtk_box_set_spacing(GTK_BOX(self), 6); gtk_container_set_border_width(GTK_CONTAINER(self), 12); tag_table = rubrica_data_view_create_tag_table(); self->priv = RUBRICA_DATA_VIEW_GET_PRIVATE(self); self->priv->buf1 = gtk_text_buffer_new(tag_table); self->priv->buf2 = gtk_text_buffer_new(tag_table); self->priv->text1 = gtk_text_view_new_with_buffer(self->priv->buf1); self->priv->text2 = gtk_text_view_new_with_buffer(self->priv->buf2); self->priv->theme = gtk_icon_theme_get_default(); self->priv->image = gtk_image_new(); self->priv->font = NULL; vbox = gtk_vbox_new(FALSE, 0); scrollwin = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollwin), vbox); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), GTK_SHADOW_IN); gtk_box_pack_start(GTK_BOX(self), scrollwin, TRUE, TRUE, 0); hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), self->priv->image, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), self->priv->text1, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), self->priv->text2, TRUE, TRUE, 0); g_object_set(self->priv->text1, "cursor-visible", FALSE, "editable", FALSE, "right-margin", 6, "left-margin", 6, "wrap-mode", GTK_WRAP_WORD, NULL); g_object_set(self->priv->text2, "cursor-visible", FALSE, "editable", FALSE, "right-margin", 6, "left-margin", 6, "wrap-mode", GTK_WRAP_WORD, NULL); g_signal_connect (G_OBJECT (self->priv->text2), "key-press-event", G_CALLBACK (key_press_event), self); g_signal_connect (G_OBJECT (self->priv->text2), "event-after", G_CALLBACK (event_after), self); g_signal_connect (G_OBJECT (self->priv->text2), "motion-notify-event", G_CALLBACK (motion_notify_event), self); g_signal_connect (G_OBJECT (self->priv->text2), "visibility-notify-event", G_CALLBACK (visibility_notify_event), self); gtk_widget_show(GTK_WIDGET(self)); gtk_widget_show(self->priv->image); gtk_widget_show(self->priv->text1); gtk_widget_show(self->priv->text2); gtk_widget_show(vbox); gtk_widget_show(hbox); gtk_widget_show(scrollwin); self->priv->dispose_has_run = FALSE; } static void rubrica_data_view_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaDataView* self = (RubricaDataView*) obj; RubricaDataViewPrivate* priv = RUBRICA_DATA_VIEW_GET_PRIVATE(self); GtkTextTagTable* table; switch (property_id) { case DATA_FONT: if (priv->font) g_free(priv->font); priv->font = g_value_dup_string(value); table = gtk_text_buffer_get_tag_table(priv->buf1); gtk_text_tag_table_foreach(table, change_font, priv->font); break; default: break; } } static void rubrica_data_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaDataView* self = (RubricaDataView*) obj; RubricaDataViewPrivate* priv = RUBRICA_DATA_VIEW_GET_PRIVATE(self); switch (property_id) { case DATA_FONT: g_value_set_string(value, priv->font); break; default: break; } } /* Private */ static GtkTextTagTable* rubrica_data_view_create_tag_table(void) { GtkTextTag* tag; GtkTextTagTable* tag_table; PangoFontDescription* pfd; GConfClient* client; const gchar* font = NULL; client = gconf_client_get_default(); font = gconf_client_get_string(client, RUBRICA_GCONF_FONT, NULL); tag_table = gtk_text_tag_table_new(); tag = gtk_text_tag_new("tabulato"); g_object_set(tag, "left-margin", 25, "right-margin", 25, NULL); gtk_text_tag_table_add(tag_table, tag); if (font) pfd = pango_font_description_from_string (font); else pfd = pango_font_description_from_string ("Serif 10"); tag = gtk_text_tag_new("header"); g_object_set(tag, "font-desc", pfd, NULL); gtk_text_tag_table_add(tag_table, tag); tag = gtk_text_tag_new("header-bold"); g_object_set(tag, "font-desc", pfd, "weight", PANGO_WEIGHT_BOLD, NULL); gtk_text_tag_table_add(tag_table, tag); tag = gtk_text_tag_new("body"); g_object_set(tag, "font-desc", pfd, NULL); gtk_text_tag_table_add(tag_table, tag); tag = gtk_text_tag_new("body-bold"); g_object_set(tag, "font-desc", pfd, "weight", PANGO_WEIGHT_BOLD, NULL); gtk_text_tag_table_add(tag_table, tag); pango_font_description_free (pfd); g_object_unref(client); return tag_table; } /* Looks at all tags covering the position (x, y) in the text view, * and if one of them is a link, change the cursor to the "hands" cursor * typically used by web browsers. */ static void set_cursor (GtkWidget* text_view, gint x, gint y) { GtkTextIter iter; GSList *tags = NULL, *tagp = NULL; gboolean hovering = FALSE; gtk_text_view_get_iter_at_location (GTK_TEXT_VIEW(text_view), &iter, x, y); tags = gtk_text_iter_get_tags (&iter); for (tagp = tags; tagp != NULL; tagp = tagp->next) { GtkTextTag *tag = tagp->data; RubricaLink* link = NULL; link = g_object_get_data (G_OBJECT (tag), "link"); if (link) { hovering = TRUE; break; } } if (hovering != over_link) { GdkWindow* window; over_link = hovering; window = gtk_text_view_get_window(GTK_TEXT_VIEW(text_view), GTK_TEXT_WINDOW_TEXT); if (over_link) gdk_window_set_cursor(window, hand_cursor); else gdk_window_set_cursor(window, regular_cursor); } if (tags) g_slist_free (tags); } static void insert_link (GtkTextBuffer *buffer, GtkTextIter *iter, gchar *uri, RubricaLinkType type) { GtkTextTag *tag; RubricaLink* link; tag = gtk_text_buffer_create_tag (buffer, NULL, "foreground", "blue", "underline", PANGO_UNDERLINE_SINGLE, NULL); link = g_new0(RubricaLink, 1); link->uri = g_strdup(uri); link->type = type; g_object_set_data (G_OBJECT (tag), "link", link); gtk_text_buffer_insert_with_tags (buffer, iter, uri, -1, tag, NULL); gtk_text_buffer_insert_with_tags (buffer, iter, "\n", -1, tag, NULL); } /* Looks at all tags covering the position of iter in the text view, * and if one of them is a link, follow it by showing the page identified * by the data attached to it. */ static void follow_if_link (GtkWidget *text_view, GtkTextIter *iter, gpointer data) { RubricaDataView *view = (RubricaDataView*) data; GSList *tags = NULL; GSList *tagp = NULL; tags = gtk_text_iter_get_tags (iter); for (tagp = tags; tagp != NULL; tagp = tagp->next) { RubricaLink* link; GtkTextTag *tag = tagp->data; link = g_object_get_data (G_OBJECT (tag), "link"); g_signal_emit_by_name(view, "launch", link, G_TYPE_POINTER); } if (tags) g_slist_free (tags); } /* Links can be activated by pressing Enter. */ static gboolean key_press_event (GtkWidget *text_view, GdkEventKey *event, gpointer data) { GtkTextIter iter; GtkTextBuffer *buffer; switch (event->keyval) { case GDK_Return: case GDK_KP_Enter: buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view)); gtk_text_buffer_get_iter_at_mark (buffer, &iter, gtk_text_buffer_get_insert (buffer)); follow_if_link (text_view, &iter, data); break; default: break; } return FALSE; } /* Links can also be activated by clicking. */ static gboolean event_after (GtkWidget *text_view, GdkEvent *ev, gpointer data) { GtkTextIter start, end, iter; GtkTextBuffer *buffer; GdkEventButton *event; gint x, y; if (ev->type != GDK_BUTTON_RELEASE) return FALSE; event = (GdkEventButton *)ev; if (event->button != 1) return FALSE; buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view)); /* we shouldn't follow a link if the user has selected something */ gtk_text_buffer_get_selection_bounds (buffer, &start, &end); if (gtk_text_iter_get_offset (&start) != gtk_text_iter_get_offset (&end)) return FALSE; gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view), GTK_TEXT_WINDOW_WIDGET, event->x, event->y, &x, &y); gtk_text_view_get_iter_at_location (GTK_TEXT_VIEW (text_view), &iter, x, y); follow_if_link (text_view, &iter, data); return FALSE; } /* Update the cursor image if the pointer moved. */ static gboolean motion_notify_event (GtkWidget* text_view, GdkEventMotion *event, gpointer data) { RubricaDataView* view = (RubricaDataView*) data; RubricaDataViewPrivate* priv; gint x, y; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view), GTK_TEXT_WINDOW_WIDGET, event->x, event->y, &x, &y); set_cursor (text_view, x, y); gdk_window_get_pointer (text_view->window, NULL, NULL, NULL); return FALSE; } /* Also update the cursor image if the window becomes visible * (e.g. when a window covering it got iconified). */ static gboolean visibility_notify_event (GtkWidget* text_view, GdkEventVisibility *event, gpointer data) { RubricaDataViewPrivate* priv = RUBRICA_DATA_VIEW_GET_PRIVATE(data); gint wx, wy, bx, by; gdk_window_get_pointer (priv->text2->window, &wx, &wy, NULL); gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (priv->text2), GTK_TEXT_WINDOW_WIDGET, wx, wy, &bx, &by); set_cursor (text_view, bx, by); return FALSE; } static void clean_buffer(GtkTextBuffer* buffer) { GtkTextIter start, end; gtk_text_buffer_get_bounds(buffer, &start, &end); gtk_text_buffer_delete(buffer, &start, &end); gtk_text_buffer_get_iter_at_offset(buffer, &start, 0); } static void data_view_clear_header(RubricaDataView* view) { RubricaDataViewPrivate* priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); clean_buffer(priv->buf1); } static void data_view_clear_body(RubricaDataView* view) { RubricaDataViewPrivate* priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); clean_buffer(priv->buf2); } static void data_view_set_image(RubricaDataView* view, GdkPixbuf* pixbuf) { RubricaDataViewPrivate* priv; g_return_if_fail(IS_RUBRICA_DATA_VIEW(view)); g_return_if_fail(pixbuf != NULL); priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); gtk_image_set_from_pixbuf(GTK_IMAGE(priv->image), pixbuf); gdk_pixbuf_unref(pixbuf); } static void data_view_write_card_header(GtkTextBuffer* buffer, gchar* label, gchar* string) { GtkTextIter iter; g_return_if_fail(label != NULL); g_return_if_fail(string != NULL); gtk_text_buffer_get_end_iter (buffer, &iter); gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, label, -1, "header-bold", NULL); gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, string, -1, "header", NULL); gtk_text_buffer_insert(buffer, &iter, "\n", -1); } static void data_view_write_pixbuf(GtkTextBuffer* buffer, GdkPixbuf* pixbuf, gchar* label) { GtkTextIter iter; gtk_text_buffer_get_end_iter (buffer, &iter); gtk_text_buffer_insert_pixbuf(buffer, &iter, pixbuf); gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, label, -1, "body-bold", NULL); gtk_text_buffer_insert(buffer, &iter, "\n", -1); } static void data_view_write_bold(GtkTextBuffer* buffer, gchar* label, gchar* string, gboolean bool) { GtkTextIter iter; gtk_text_buffer_get_end_iter (buffer, &iter); if (bool) gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, label, -1, "body-bold", "tabulato", NULL); else gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, label, -1, "body-bold", NULL); gtk_text_buffer_insert(buffer, &iter, string, -1); gtk_text_buffer_insert(buffer, &iter, "\n", -1); } static void data_view_write_line(GtkTextBuffer* buffer, gchar* label, gchar* string, gboolean tab) { if (string && (g_ascii_strcasecmp(string, "") != 0)) { gchar* lbl; lbl = g_strdup_printf("%s: ", label); data_view_write_bold(buffer, lbl, string, tab); g_free(lbl); g_free(string); } } static void data_view_write_link(GtkTextBuffer* buffer, gchar* label, gchar* url, RubricaLinkType link) { GtkTextIter iter; gchar* str; str = g_strdup_printf("%s: ", label); gtk_text_buffer_get_end_iter (buffer, &iter); gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, str, -1, "body-bold", "tabulato", NULL); insert_link(buffer, &iter, url, link); } static void data_view_write(GtkTextBuffer* buffer, gchar* str) { GtkTextIter iter; g_return_if_fail(str != NULL); gtk_text_buffer_get_end_iter (buffer, &iter); gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, str, -1, "body", "tabulato", NULL); } static void write_company_info(RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* header; GdkPixbuf* pixbuf = NULL; gchar *name, *logo, *vat; gchar *label, *string; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); header = priv->buf1; g_object_get(card, "card-name", &name, "company-logo", &logo, "company-vat", &vat, NULL); if (g_file_test(logo, G_FILE_TEST_EXISTS)) pixbuf = gdk_pixbuf_new_from_file_at_size(logo, 128, 128, NULL); else pixbuf = gtk_icon_theme_load_icon(priv->theme, "card_photo", 128, 0, NULL); data_view_set_image(view, pixbuf); label = g_strdup_printf("%s: ", _("Card")); string = g_strdup_printf("%s\n\n", name); data_view_write_card_header(header, label, string); g_free(label); g_free(string); if (vat && (g_ascii_strcasecmp(vat, "") != 0)) { string = g_strdup_printf("%s: ", _("Taxpayer number/VAT")); data_view_write_bold(header, string, vat, FALSE); g_free(string); } } static void write_personal_data(RubricaDataView* view, RPersonalCard* card) { RubricaDataViewPrivate* priv; RDate* date; GtkTextBuffer* header; GdkPixbuf* pixbuf = NULL; RContact* contact; gchar* card_name; gchar *first, *last, *middle, *nick, *title, *prefix, *prof, *photo; gchar *label, *string; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); header = priv->buf1; contact = r_personal_card_get_contact(R_PERSONAL_CARD(card)); g_object_get(contact, "first-name", &first, "last-name", &last, "middle-name", &middle, "nick-name", &nick, "title", &title, "prefix", &prefix, "profession", &prof, "photo", &photo, NULL); g_object_get(R_CARD(card), "card-name", &card_name, NULL); /* display photo */ if (g_file_test(photo, G_FILE_TEST_EXISTS)) pixbuf = gdk_pixbuf_new_from_file_at_size(photo, 128, 128, NULL); else pixbuf = gtk_icon_theme_load_icon(priv->theme, "card_photo", 128, 0, NULL); data_view_set_image(view, pixbuf); /* display card's name */ label = g_strdup_printf("%s: ", _("Card")); string = g_strdup_printf("%s\n", card_name); data_view_write_card_header(header, label, string); g_free(label); g_free(string); /* display contact's data */ if (first || middle || last) { gchar *str; label = g_strdup_printf("%s: ", _("Name")); str = g_strdup_printf("%s %s %s", last ? last : "", first ? first : "", middle ? middle : ""); data_view_write_bold(header, label, str, FALSE); g_free(last); g_free(first); g_free(middle); g_free(label); g_free(str); } data_view_write_line(header, _("Nickname"), nick, FALSE); data_view_write_line(header, _("Title"), title, FALSE); data_view_write_line(header, _("Prefix"), prefix, FALSE ); data_view_write_line(header, _("Profession"), prof, FALSE); date = r_contact_get_birthday(contact); if (r_date_is_valid(date)) { label = g_strdup_printf("%s: ", _("Birthday")); data_view_write_bold(header, label, r_date_get_human_date(date), FALSE); g_free(label); } } static void write_groups(RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; gpointer group = NULL; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; group = r_card_get_group(R_CARD(card)); if (group) { data_view_write(body, "\n"); data_view_write_bold(body, _("Card's groups"), "", FALSE); for (; group; group = r_card_get_next_group(R_CARD(card))) { gchar *str, *name = NULL; g_object_get(R_GROUP(group), "group-name", &name, NULL); str = g_strdup_printf("%s\n", _(name)); data_view_write(body, str); g_free(str); g_free(name); } } } static void write_addresses(RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; RAddress* address; GdkPixbuf* pixbuf = NULL; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; address = r_card_get_address(R_CARD(card)); if (address) { pixbuf = gtk_icon_theme_load_icon (priv->theme, "mailbox", 20, 0, NULL); data_view_write(body, "\n"); data_view_write_pixbuf(body, pixbuf, _("Addresses")); gdk_pixbuf_unref(pixbuf); for (; address; address = r_card_get_next_address(R_CARD(card))) { RAddressType type; gchar *adtype, *street, *number, *zip; gchar *city, *province, *state, *country; g_object_get(address, "address-type", &type, "street", &street, "street-number", &number, "zip", &zip, "city", &city, "province", &province, "state", &state, "country", &country, NULL); if ((street && (g_ascii_strcasecmp(street, "") != 0)) || (zip && (g_ascii_strcasecmp(zip, "") != 0)) || (city && (g_ascii_strcasecmp(city, "") != 0)) || (state && (g_ascii_strcasecmp(state, "") != 0)) || (country && (g_ascii_strcasecmp(country, "") != 0))) { GString* string; string = g_string_new(""); adtype = r_address_lookup_enum2str(type); data_view_write_bold(body, _(adtype), "", TRUE); if (street && (g_ascii_strcasecmp(street, "") != 0)) { g_string_printf(string, "%s", street); if (number && (g_ascii_strcasecmp(number, "") != 0)) g_string_append_printf(string, ", %s", number); } if ((zip && (g_ascii_strcasecmp(zip, "") != 0)) || (city && (g_ascii_strcasecmp(city, "") != 0)) || (province && (g_ascii_strcasecmp(province, "") != 0))) { g_string_append_printf(string, "\n"); if (zip && (g_ascii_strcasecmp(zip, "") != 0)) g_string_append_printf(string, "%s ", zip); if (city && (g_ascii_strcasecmp(city, "") != 0)) g_string_append_printf(string, "%s", city); if (province && (g_ascii_strcasecmp(province, "") != 0)) g_string_append_printf(string, ", (%s) ", province); } if ((state && (g_ascii_strcasecmp(state, "") != 0)) || (country && (g_ascii_strcasecmp(country, "") != 0))) { g_string_append_printf(string, "\n"); if (state && (g_ascii_strcasecmp(state, "") != 0)) g_string_append_printf(string, "%s ", state); if (country && (g_ascii_strcasecmp(country, "") != 0)) g_string_append_printf(string, "%s",country); } data_view_write(body, string->str); data_view_write(body, "\n"); g_string_free(string, TRUE); } } } } static void write_work(RubricaDataView* view, RPersonalCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; RWork* work = NULL; GdkPixbuf* pixbuf = NULL; gchar *assignment = NULL, *organization = NULL; gchar *department = NULL, *subdep = NULL, *manager = NULL; gchar *collaborator = NULL, *mphone = NULL, *cphone = NULL; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; work = r_personal_card_get_work(R_PERSONAL_CARD(card)); if (work && r_work_have_data(work)) { g_object_get(work, "assignment", &assignment, "organization", &organization, "department", &department, "sub-department", &subdep, "manager-name", &manager, "collaborator", &collaborator, "manager-phone", &mphone, "collaborator-phone", &cphone, NULL); pixbuf = gtk_icon_theme_load_icon (priv->theme, "role", 20, 0, NULL); data_view_write(body, "\n"); data_view_write_pixbuf(body, pixbuf, _("Work")); gdk_pixbuf_unref(pixbuf); data_view_write_line(body, _("Assignment"), assignment, TRUE); data_view_write_line(body, _("Organization"), organization, TRUE); data_view_write_line(body, _("Department"), department, TRUE); data_view_write_line(body, _("Subdepartment"), subdep, TRUE); data_view_write_line(body, _("Manager"), manager, TRUE); data_view_write_line(body, _("Manager's telephone"), collaborator, TRUE); data_view_write_line(body, _("Collaborator"), mphone, TRUE); data_view_write_line(body, _("Collaborator's telephone"), cphone, TRUE); } } static void write_net (RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; GdkPixbuf* pixbuf = NULL; RNetAddress* net = NULL; RNetAddressType type; RubricaLinkType linktype = UNKNOWN_LINK; gchar* url; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; net = r_card_get_net_address(R_CARD(card)); if (net) { pixbuf = gtk_icon_theme_load_icon (priv->theme, "net", 20, 0, NULL); data_view_write(body, "\n"); data_view_write_pixbuf(body, pixbuf, _("Net")); gdk_pixbuf_unref(pixbuf); for (; net; net = r_card_get_next_net_address(R_CARD(card))) { gchar* ttype; g_object_get(R_NET_ADDRESS(net), "url", &url, "url-type", &type, NULL); switch(type) { case R_NET_ADDRESS_WEB: linktype = WEB_LINK; break; case R_NET_ADDRESS_EMAIL: linktype = EMAIL_LINK; break; case R_NET_ADDRESS_EKIGA: linktype = TELEPHONE_LINK; break; case R_NET_ADDRESS_IRC_AIM: linktype = IRC_LINK; break; case R_NET_ADDRESS_IRC_ICQ: linktype = IRC_LINK; break; case R_NET_ADDRESS_IRC_JABBER: linktype = IRC_LINK; break; case R_NET_ADDRESS_IRC_YAHOO: linktype = IRC_LINK; break; case R_NET_ADDRESS_IRC_MSN: linktype = IRC_LINK; break; default: break; } ttype = r_net_address_decode_type(type); data_view_write_link(body, _(ttype), url, linktype); } } } static void write_telephones(RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; RTelephone* tel = NULL; GdkPixbuf* pixbuf = NULL; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; tel = r_card_get_telephone(R_CARD(card)); if (tel) { pixbuf = gtk_icon_theme_load_icon (priv->theme, "phone", 20, 0, NULL); data_view_write(body, "\n"); data_view_write_pixbuf(body, pixbuf, _("Telephone")); gdk_pixbuf_unref(pixbuf); for (; tel; tel = r_card_get_next_telephone(R_CARD(card))) { RTelephoneType ttype; gchar* num; g_object_get(R_TELEPHONE(tel), "telephone-number", &num, "telephone-type", &ttype, NULL); data_view_write_link(body, _(r_telephone_lookup_enum2str(ttype)), num, TELEPHONE_LINK); g_free(num); } } } static void write_notes(RubricaDataView* view, RPersonalCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; RNotes* notes; GdkPixbuf* pixbuf = NULL; gchar *partner, *other_notes, *pubkey; gboolean has_partner; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; notes = r_personal_card_get_notes(R_PERSONAL_CARD(card)); if (notes && r_notes_have_data(notes)) { g_object_get(notes, "has-partner", &has_partner, "partner-name", &partner, "other-notes", &other_notes, "pubkey", &pubkey, NULL); pixbuf = gtk_icon_theme_load_icon (priv->theme, "notes", 20, 0, NULL); data_view_write(body, "\n"); data_view_write_pixbuf(body, pixbuf, _("Notes")); gdk_pixbuf_unref(pixbuf); if (has_partner) { data_view_write(body, _("Contact has a partner")); data_view_write(body, "\n"); data_view_write_line(body, _("partner's name"), partner, TRUE); if (r_notes_know_birthday(notes)) { data_view_write_line(body, _("partner's birthday"), r_notes_get_birth_date(notes), TRUE); } if (r_notes_know_anniversary(notes)) { data_view_write_line(body, _("anniversary"), r_notes_get_anniversary_date(notes), TRUE); } } data_view_write_line(body, _("Public key"), pubkey, TRUE); data_view_write_line(body, _("Other notes"), other_notes, TRUE); } } static void write_company_notes(RubricaDataView* view, RCompanyCard* card) { RubricaDataViewPrivate* priv; GtkTextBuffer* body; gchar* text = NULL; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); body = priv->buf2; g_object_get(card, "company-notes", &text, NULL); if (text) { GdkPixbuf* pixbuf = NULL; pixbuf = gtk_icon_theme_load_icon (priv->theme, "notes", 20, 0, NULL); data_view_write(body, "\n"); data_view_write_pixbuf(body, pixbuf, _("Notes")); data_view_write(body, "\n"); gdk_pixbuf_unref(pixbuf); data_view_write(body, text); } } static void data_view_show_personal_card(RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); /* Clean header and body buffers */ data_view_clear_header(view); data_view_clear_body(view); write_personal_data (view, R_PERSONAL_CARD(card)); write_groups (view, card); write_addresses (view, card); write_work (view, R_PERSONAL_CARD(card)); write_net (view, card); write_telephones (view, card); write_notes (view, R_PERSONAL_CARD(card)); } static void data_view_show_company_card(RubricaDataView* view, RCard* card) { RubricaDataViewPrivate* priv; priv = RUBRICA_DATA_VIEW_GET_PRIVATE(view); data_view_clear_header(view); data_view_clear_body(view); write_company_info (view, card); write_groups (view, card); write_addresses (view, card); write_net (view, card); write_telephones (view, card); write_company_notes (view, R_COMPANY_CARD(card)); } /* Public */ /** * rubrica_data_view_new * * create a #RubricaDataView * * returns: a new #RubricaDataView* */ GtkWidget* rubrica_data_view_new() { GtkWidget* view; view = GTK_WIDGET(g_object_new(RUBRICA_DATA_VIEW_TYPE, NULL)); return view; } void rubrica_data_view_show_card (RubricaDataView* view, RCard* card) { g_return_if_fail(IS_RUBRICA_DATA_VIEW(view)); g_return_if_fail(IS_R_CARD(card)); if (r_card_is_personal(card)) data_view_show_personal_card(view, card); else data_view_show_company_card(view, card); } rubrica-2.0/src/form_notes.c0000644000175000017500000002743710617433024014717 0ustar seb128seb128/* * file: form_notes.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "form.h" #include "form_notes.h" #include "app.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" #include "calendar.h" struct _RubricaFormNotesPrivate { GtkWidget* has_partner; /* */ GtkWidget* table; GtkWidget* partner; GtkWidget* birthday; GtkWidget* anniversary; GtkWidget* notes; GtkWidget* pubkey; gboolean dispose_has_run; }; static void rubrica_form_notes_class_init (RubricaFormNotesClass* klass); static void rubrica_form_notes_init (RubricaFormNotes* obj); static void rubrica_form_notes_dispose (RubricaFormNotes* obj); static void rubrica_form_notes_finalize (RubricaFormNotes* obj); static gchar* extract_text (GtkWidget *text); static void form_notes_extract_data (RubricaFormNotes* form, RCard *card); static void form_notes_display_data (RubricaFormNotes* form, RCard *card); static void form_notes_clean_form (RubricaFormNotes* form); static RubricaFormClass* parent_class; GType rubrica_form_notes_get_type() { static GType form_notes_type = 0; if (!form_notes_type) { static const GTypeInfo form_notes_info = { sizeof(RubricaFormNotesClass), NULL, NULL, (GClassInitFunc) rubrica_form_notes_class_init, NULL, NULL, sizeof(RubricaFormNotes), 0, (GInstanceInitFunc) rubrica_form_notes_init }; form_notes_type = g_type_register_static (RUBRICA_FORM_TYPE, "RubricaFormNotes", &form_notes_info, 0); } return form_notes_type; } static void rubrica_form_notes_class_init(RubricaFormNotesClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_notes_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_notes_finalize; parent_class = RUBRICA_FORM_CLASS(klass); parent_class->extract_data = (gpointer) form_notes_extract_data; parent_class->display_data = (gpointer) form_notes_display_data; parent_class->clean_form = (gpointer) form_notes_clean_form; } static void rubrica_form_notes_init(RubricaFormNotes* self) { self->priv = g_new(RubricaFormNotesPrivate, 1); self->priv->has_partner = NULL; self->priv->table = NULL; // just a container self->priv->partner = NULL; self->priv->birthday = NULL; self->priv->anniversary = NULL; self->priv->notes = NULL; self->priv->pubkey = NULL; self->priv->dispose_has_run = FALSE; } static void rubrica_form_notes_dispose (RubricaFormNotes* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->priv->dispose_has_run) return; g_object_unref(self->priv->has_partner); g_object_unref(self->priv->table); g_object_unref(self->priv->partner); g_object_unref(self->priv->birthday); g_object_unref(self->priv->anniversary); g_object_unref(self->priv->notes); g_object_unref(self->priv->pubkey); self->priv->dispose_has_run = TRUE; } static void rubrica_form_notes_finalize (RubricaFormNotes* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->priv); self->priv = NULL; } /** * extract_text * @text: the text widget pointer * * extract text stored into the text widget. * * return: an allocated UTF-8 string */ gchar* extract_text (GtkWidget *text) { GtkTextIter start, end; GtkTextBuffer *text_buffer; gchar *ret_val = NULL; /* an allocated UTF-8 string */ text_buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (text)); gtk_text_buffer_get_bounds(text_buffer, &start, &end); ret_val = gtk_text_buffer_get_text(text_buffer, &start, &end, FALSE); return ret_val; } static void form_notes_extract_data (RubricaFormNotes* form, RCard *card) { RNotes* notes; gboolean has_partner = FALSE; const gchar *partner; gchar *pubkey = NULL; gchar *other = NULL; gboolean write_notes = FALSE; g_return_if_fail(IS_R_CARD(card)); notes = r_notes_new(); other = extract_text(form->priv->notes); if (other && (g_ascii_strcasecmp(other, "") != 0)) { g_object_set(notes, "other-notes", other, NULL); write_notes = TRUE; } pubkey = extract_text(form->priv->pubkey); if (pubkey && (g_ascii_strcasecmp(pubkey, "") != 0)) { g_object_set(notes, "pubkey", other, NULL); write_notes = TRUE; } has_partner = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (form->priv->has_partner)); if (has_partner) { partner = gtk_entry_get_text(GTK_ENTRY(form->priv->partner)); if (partner && (g_ascii_strcasecmp(partner, "") != 0)) g_object_set(notes, "has-partner", TRUE, "partner-name", partner, NULL); if (rubrica_calendar_has_date(RUBRICA_CALENDAR(form->priv->birthday))) { gint day, month, year; g_object_get(form->priv->birthday, "calendar-day", &day, "calendar-month", &month, "calendar-year", &year, NULL); r_notes_set_know_birthday(notes, TRUE); r_notes_set_birthday(notes, day, month, year); } if (rubrica_calendar_has_date(RUBRICA_CALENDAR(form->priv->anniversary))) { gint day, month, year; g_object_get(form->priv->anniversary, "calendar-day", &day, "calendar-month", &month, "calendar-year", &year, NULL); r_notes_set_know_anniversary(notes, TRUE); r_notes_set_anniversary(notes, day, month, year); } write_notes = TRUE; } if (write_notes) r_personal_card_set_notes(R_PERSONAL_CARD(card), notes); else r_notes_free(notes); } static void form_notes_display_data (RubricaFormNotes* form, RCard *card) { RNotes* notes = NULL; GtkTextView* view; GtkTextIter start, end; GtkTextBuffer *buffer; gchar *pubkey, *other, *partner; gboolean has_partner; notes = r_personal_card_get_notes (R_PERSONAL_CARD(card)); if (!notes) return; g_object_get(notes, "pubkey", &pubkey, "other-notes", &other, "has-partner", &has_partner, "partner-name", &partner, NULL); /* Public Key */ if (pubkey) { view = GTK_TEXT_VIEW(form->priv->pubkey); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_get_bounds(buffer, &start, &end); gtk_text_buffer_delete(buffer, &start, &end); gtk_text_buffer_get_iter_at_offset(buffer, &start, 0); gtk_text_buffer_insert (buffer, &start, pubkey, -1); } /* Other notes */ if (other) { view = GTK_TEXT_VIEW(form->priv->notes); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_get_bounds(buffer, &start, &end); gtk_text_buffer_delete(buffer, &start, &end); gtk_text_buffer_get_iter_at_offset(buffer, &start, 0); gtk_text_buffer_insert (buffer, &start, other, -1); } if (has_partner) { RDate* rdate; gint day, month, year; gtk_widget_set_sensitive(GTK_WIDGET(form->priv->table), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->has_partner), TRUE); gtk_entry_set_text(GTK_ENTRY(form->priv->partner), partner); if (r_notes_know_birthday(notes)) { rdate = r_notes_get_birthday(notes); g_object_get(rdate, "day", &day, "month", &month, "year", &year, NULL); g_object_set(form->priv->birthday, "calendar-day", day, "calendar-month", month, "calendar-year", year, NULL); } if (r_notes_know_anniversary(notes)) { rdate = r_notes_get_anniversary(notes); g_object_get(rdate, "day", &day, "month", &month, "year", &year, NULL); g_object_set(form->priv->anniversary, "calendar-day", day, "calendar-month", month, "calendar-year", year, NULL); } } } static void form_notes_clean_form (RubricaFormNotes* form) { GtkTextView* view; GtkTextBuffer *buffer; GtkTextIter start, end; gtk_entry_set_text(GTK_ENTRY(form->priv->partner), ""); rubrica_calendar_clean(RUBRICA_CALENDAR(form->priv->birthday)); rubrica_calendar_clean(RUBRICA_CALENDAR(form->priv->anniversary)); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->table), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(form->priv->has_partner), FALSE); view = GTK_TEXT_VIEW(form->priv->pubkey); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_get_bounds(buffer, &start, &end); gtk_text_buffer_delete(buffer, &start, &end); view = GTK_TEXT_VIEW(form->priv->notes); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_get_bounds(buffer, &start, &end); gtk_text_buffer_delete(buffer, &start, &end); } /* Callbacks */ void rubrica_form_married_check_toggled(GtkToggleButton *togglebutton, gpointer data) { GtkWidget* table = (GtkWidget*) data; gboolean married; married = RUBRICA_GET_CHECK(togglebutton); gtk_widget_set_sensitive(GTK_WIDGET(table), married); } /* ***************************** Public ***************************** */ /** * rubrica_form_notes_new * * create a #RubricaFormNotes * * Returns: a new #RubricaFormNotes */ RubricaFormNotes* rubrica_form_notes_new(RubricaApp* app, GladeXML *gui) { RubricaFormNotes* form; GtkWidget* birth_box; GtkWidget* ann_box; GtkWidget* note_birth; GtkWidget* note_ann; GtkWidget* bt; form = g_object_new(rubrica_form_notes_get_type(), NULL); form->priv->has_partner = glade_xml_get_widget(gui, "spouse_check"); form->priv->table = glade_xml_get_widget(gui, "marriage_table"); form->priv->partner = glade_xml_get_widget(gui, "spouse"); form->priv->notes = glade_xml_get_widget(gui, "notes"); form->priv->pubkey = glade_xml_get_widget(gui, "pubkey"); note_birth = glade_xml_get_widget(gui, "note_birth"); note_ann = glade_xml_get_widget(gui, "note_ann"); birth_box = glade_xml_get_widget(gui, "birth_box"); ann_box = glade_xml_get_widget(gui, "ann_box"); form->priv->birthday = rubrica_calendar_new(); form->priv->anniversary = rubrica_calendar_new(); gtk_box_pack_start(GTK_BOX(birth_box), form->priv->birthday, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(ann_box), form->priv->anniversary, TRUE, TRUE, 0); gtk_widget_show(form->priv->birthday); gtk_widget_show(form->priv->anniversary); bt = rubrica_calendar_get_button(RUBRICA_CALENDAR(form->priv->birthday)); gtk_label_set_mnemonic_widget(GTK_LABEL(note_birth), bt); bt = rubrica_calendar_get_button(RUBRICA_CALENDAR(form->priv->anniversary)); gtk_label_set_mnemonic_widget(GTK_LABEL(note_ann), bt); gtk_widget_set_sensitive(GTK_WIDGET(form->priv->table), FALSE); /* notes checkbutton */ g_signal_connect(G_OBJECT(form->priv->has_partner), "toggled", G_CALLBACK(rubrica_form_married_check_toggled), form->priv->table); return form; } /** * rubrica_form_notes_free * @form: a #RubricaFormNotes * * free the #RubricaFormNotes */ void rubrica_form_notes_free(RubricaFormNotes* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } rubrica-2.0/src/trash_view.h0000644000175000017500000000614210617433024014712 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _TRASH_VIEW_H__ #define _TRASH_VIEW_H__ #include #include #include "libral.h" #include "view.h" G_BEGIN_DECLS #define RUBRICA_TRASH_VIEW_TYPE (rubrica_trash_view_get_type()) #define RUBRICA_TRASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_TRASH_VIEW_TYPE, \ RubricaTrashView)) #define RUBRICA_TRASH_VIEW_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ RUBRICA_TRASH_VIEW_TYPE, \ RubricaTrashViewClass)) #define IS_RUBRICA_TRASH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_TRASH_VIEW_TYPE)) #define IS_RUBRICA_TRASH_VIEW_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_TRASH_VIEW_TYPE)) #define RUBRICA_TRASH_VIEW_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_TRASH_VIEW_TYPE, \ RubricaTrashViewClass) typedef enum { TRASH_ID, /* card's id, hidden column */ TRASH_ADDRESSBOOK, /* addressbook that owns the card, hidden column */ TRASH_CARD_LABEL, /* card's label */ TRASH_LN_COMPANY, /* (last | company) name */ TRASH_WEB, TRASH_EMAIL, TRASH_PHONE, TRASH_LAST_COLUMN } RubricaTrashColumns; typedef struct _RubricaTrashView RubricaTrashView; typedef struct _RubricaTrashViewClass RubricaTrashViewClass; typedef struct _RubricaTrashViewPrivate RubricaTrashViewPrivate; struct _RubricaTrashView { RubricaView parent; RubricaTrashViewPrivate* priv; }; struct _RubricaTrashViewClass { RubricaViewClass parent_class; }; GType rubrica_trash_view_get_type (void); GtkWidget* rubrica_trash_view_new (void); void rubrica_trash_view_free (RubricaTrashView* view); void rubrica_trash_view_add_card (RubricaTrashView* view, RAbook* book, RCard* card); void rubrica_trash_view_recovery_card (RubricaTrashView* view); void rubrica_trash_view_destroy_card (RubricaTrashView* view); void rubrica_trash_view_empty_trash (RubricaTrashView* view); G_END_DECLS #endif rubrica-2.0/src/main.c0000644000175000017500000000732510637705345013474 0ustar seb128seb128/* * file: main.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #include "types.h" #include "utils.h" #include "callbacks.h" #include "preferences.h" #include "themes.h" void rubrica_init(void); gchar* rubfile = NULL; gchar* csvfile = NULL; gchar* vcardfile = NULL; GOptionEntry options[] = { {"rub", 'r', 0, G_OPTION_ARG_FILENAME, &rubfile, "Open a rubrica's file", NULL}, {"csv", 'c', 0, G_OPTION_ARG_FILENAME, &csvfile, "Open a csv file", NULL}, {"vcard", 'v', 0, G_OPTION_ARG_FILENAME, &vcardfile, "Open a vcard file", NULL}, {NULL} }; GOptionContext* ctx; void rubrica_open_addressbooks(RubricaApp* app, gchar *argv[]) { if (rubfile) rubrica_app_load_file(app, rubfile, "rub"); if (csvfile) rubrica_app_load_file(app, csvfile, "csv"); if (vcardfile) rubrica_app_load_file(app, vcardfile, "vcard"); ++argv; for (; *argv; argv++) rubrica_app_load_file(app, *argv, NULL); } void rubrica_init(void) { bindtextdomain (GETTEXT_PACKAGE, RUBRICA_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); g_set_application_name (_("Rubrica")); gtk_window_set_default_icon_name ("rubrica"); rubrica_themes_add_directory(RUBRICA_ICONS_DIR"/16x16/apps"); rubrica_themes_add_directory(RUBRICA_ICONS_DIR"/22x22/apps"); rubrica_themes_add_directory(RUBRICA_ICONS_DIR"/24x24/apps"); rubrica_themes_add_directory(RUBRICA_ICONS_DIR"/48x48/apps"); rubrica_themes_add_directory(RUBRICA_ICONS_DIR"/scalable/apps"); } int main (int argc, char *argv[]) { GOptionContext* context; RubricaApp* app = NULL; GError *error = NULL; context = g_option_context_new ("Rubrica"); g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); g_option_context_parse (context, &argc, &argv, &error); g_option_context_free(context); g_thread_init(NULL); gtk_init(&argc, &argv); g_print("\n\nRubrica ***"); g_print("\nRubrica *** version: %s", RUBRICA_VERSION); g_print("\nRubrica *** code name: %s, %s", RUBRICA_CODE_NAME, RUBRICA_INFO_CODE_NAME); g_print("\nRubrica ***\n"); g_print("\nRubrica ***"); g_print("\nRubrica *** This is a release candidate version (%s)", RUBRICA_VERSION); g_print("\nRubrica *** Please notify me for all bugs that you'll find"); g_print("\nRubrica *** last stable release of 1.0.x series is 1.0.18, " "you can get it at"); g_print("\nRubrica *** http://rubrica.berlios.de"); g_print("\nRubrica *** For suggestions, patches, localizations," " bugs, other..."); g_print("\nRubrica *** please write me: nicolafragale@gmail.com"); g_print("\n\nRubrica *** rubrica needs localization, please help me"); g_print("\nRubrica ***"); g_print("\n\n"); r_lib_init(); rubrica_init(); app = rubrica_app_new(); rubrica_open_addressbooks(app, argv); rubrica_app_run(app); gtk_main(); g_print("\n"); return 0; } rubrica-2.0/src/form_card.h0000644000175000017500000000475110617433024014477 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_CARD_H #define _RUBRICA_FORM_CARD_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_CARD_TYPE (rubrica_form_card_get_type()) #define RUBRICA_FORM_CARD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_CARD_TYPE, \ RubricaFormCard)) #define RUBRICA_FORM_CARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_CARD_TYPE, \ RubricaFormCardClass)) #define IS_RUBRICA_FORM_CARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_CARD_TYPE)) #define IS_RUBRICA_FORM_CARD_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_CARD_TYPE)) #define RUBRICA_FORM_CARD_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_CARD_TYPE, \ RubricaFormCardClass)) typedef struct _RubricaFormCard RubricaFormCard; typedef struct _RubricaFormCardClass RubricaFormCardClass; typedef struct _RubricaFormCardPrivate RubricaFormCardPrivate; struct _RubricaFormCard { RubricaForm parent; RubricaFormCardPrivate* priv; }; struct _RubricaFormCardClass { RubricaFormClass parent; }; GType rubrica_form_card_get_type (void); RubricaFormCard* rubrica_form_card_new (RubricaApp* app, GladeXML *gui); void rubrica_form_card_free (RubricaFormCard* form); #endif rubrica-2.0/src/groups_cb.c0000644000175000017500000002347410620402734014522 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "app.h" #include "groups_view.h" #include "groups_cb.h" #include "themes.h" #include "types.h" static void on_entry_activated (GtkWidget* entry, gpointer data); static void on_add_group (GtkWidget* button, gpointer data); static void on_remove_group (GtkWidget* button, gpointer data); static void on_rename_group (GtkWidget* button, gpointer data); static void on_entry_activated(GtkWidget* entry, gpointer data) { g_signal_emit_by_name(G_OBJECT(data), "clicked", NULL); } static void on_add_group (GtkWidget* button, gpointer data) { GladeXML* gui; RubricaGroupsView* view = RUBRICA_GROUPS_VIEW(data); RGroupBox* groups_box; RGroup* group; GtkWidget* entry; GtkWidget* loadbt; GtkWidget* ok; GtkWidget* dialog; GtkImage* image; gchar* str; /* group name */ gchar* uri = NULL; /* pixmap uri */ gint response; groups_box = rubrica_groups_view_get_group_box(view); gui = glade_xml_new (RUBRICA_GUI_DIR"/NewGroup.glade", NULL, NULL); if (!gui) g_error("\nCan't load interface"); dialog = glade_xml_get_widget(gui, "newgroup"); ok = glade_xml_get_widget(gui, "okbutton1"); entry = glade_xml_get_widget(gui, "group_entry"); loadbt = glade_xml_get_widget(gui, "loadbt"); image = (GtkImage*) glade_xml_get_widget(gui, "image"); g_object_unref(gui); g_object_set_data(G_OBJECT(loadbt), "uri", uri); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(on_entry_activated), ok); g_signal_connect(G_OBJECT(loadbt), "clicked", G_CALLBACK(rubrica_themes_load_pixmap), image); response = gtk_dialog_run(GTK_DIALOG(dialog)); switch (response) { case GTK_RESPONSE_OK: str = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry))); uri = g_object_get_data(G_OBJECT(loadbt), "uri"); group = r_group_new(); g_object_set(group, "group-name", str, "group-label", str, "group-owner", "user", "group-pixmap", uri, "enabled", FALSE, NULL); r_group_box_add_group(groups_box, group); break; case GTK_RESPONSE_CANCEL: break; default: break; } gtk_widget_destroy(dialog); } static void on_remove_group (GtkWidget* button, gpointer data) { RubricaGroupsView* view = RUBRICA_GROUPS_VIEW(data); RGroupBox* box; RGroup* group; GtkTreeView* tree; GtkTreeIter iter; GtkTreeModel* model; GtkTreeSelection *selection; gchar* user = NULL; gchar* name = NULL; box = rubrica_groups_view_get_group_box(view); tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gtk_tree_model_get(model, &iter, GROUP_NAME_COLUMN, &name, GROUP_OWNER_COLUMN, &user, -1); if (user && (g_ascii_strcasecmp("user", user) == 0)) { group = r_group_box_find(box, name); if (group) r_group_box_delete_group(box, group); } } } static void on_rename_group (GtkWidget* button, gpointer data) { RubricaGroupsView* view = RUBRICA_GROUPS_VIEW(data); RGroupBox* box; GtkTreeView* tree; GtkTreeIter iter; GtkTreeModel* model; GtkTreeSelection *selection; gchar* user = NULL; gchar* name = NULL; box = rubrica_groups_view_get_group_box(view); tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(view))); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gtk_tree_model_get(model, &iter, GROUP_NAME_COLUMN, &name, GROUP_OWNER_COLUMN, &user, -1); if (user && (g_ascii_strcasecmp("user", user) == 0)) { gchar* newname; newname = g_strdup_printf("%s%d", name, rand()); r_group_box_rename_group(box, name, newname); } } } /* Public */ gboolean on_app_group_view_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data) { RubricaApp* app = (RubricaApp*) data; GdkEventButton *ev = (GdkEventButton *)event; GtkTreeModel *model; GtkTreeSelection *selection; GtkTreePath *path = NULL; GtkTreeIter iter; GtkWidget* view; view = rubrica_app_get_groups_view(RUBRICA_APP(app)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); gtk_tree_selection_unselect_all(selection); if (gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gtk_tree_selection_select_path(selection, path); gtk_tree_model_get_iter(model, &iter, path); gtk_tree_path_free(path); if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) { GtkMenu* menu; GtkWidget *remove; GtkWidget *rename; GtkWidget *add; gchar* user = NULL; gtk_tree_model_get(model, &iter, GROUP_OWNER_COLUMN, &user, -1); menu = (GtkMenu*) gtk_menu_new(); add = gtk_menu_item_new_with_mnemonic (_("add ne_w group")); gtk_widget_show (add); gtk_container_add (GTK_CONTAINER (menu), add); rename = gtk_menu_item_new_with_mnemonic (_("_rename group")); gtk_widget_show (rename); gtk_container_add (GTK_CONTAINER (menu), rename); remove = gtk_menu_item_new_with_mnemonic (_("_remove group")); gtk_widget_show (remove); gtk_container_add (GTK_CONTAINER (menu), remove); if (user && (g_ascii_strcasecmp("user", user) == 0)) { gtk_widget_set_sensitive(remove, TRUE); gtk_widget_set_sensitive(rename, TRUE); } else { gtk_widget_set_sensitive(remove, FALSE); gtk_widget_set_sensitive(rename, FALSE); } g_signal_connect (G_OBJECT(add), "activate", G_CALLBACK (on_add_group), view); g_signal_connect (G_OBJECT(remove), "activate", G_CALLBACK (on_remove_group), view); g_signal_connect (G_OBJECT(rename), "activate", G_CALLBACK (on_rename_group), view); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); } else if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 1)) { gchar* group; gtk_tree_model_get(model, &iter, GROUP_NAME_COLUMN, &group, -1); rubrica_app_display_cards_by_group(app, group); } } return FALSE; } gboolean on_form_group_view_event_occurred (GtkTreeView* tree, GdkEvent *event, gpointer data) { GdkEventButton *ev = (GdkEventButton *)event; GtkTreeSelection *selection; GtkTreeModel *model; GtkTreePath *path = NULL; GtkTreeIter iter; GtkWidget* group_view = (GtkWidget*) data; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(tree); gtk_tree_selection_unselect_all(selection); if (gtk_tree_view_get_path_at_pos(tree, ev->x, ev->y, &path, NULL, NULL, NULL)) { gtk_tree_selection_select_path(selection, path); gtk_tree_model_get_iter(model, &iter, path); gtk_tree_path_free(path); if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) { GtkMenu* menu; GtkWidget *remove; GtkWidget *rename; GtkWidget *add; gchar* user = NULL; gtk_tree_model_get(model, &iter, GROUP_OWNER_COLUMN, &user, -1); menu = (GtkMenu*) gtk_menu_new(); add = gtk_menu_item_new_with_mnemonic ("add ne_w group"); gtk_widget_show (add); gtk_container_add (GTK_CONTAINER (menu), add); rename = gtk_menu_item_new_with_mnemonic ("_rename group"); gtk_widget_show (rename); gtk_container_add (GTK_CONTAINER (menu), rename); remove = gtk_menu_item_new_with_mnemonic ("_remove group"); gtk_widget_show (remove); gtk_container_add (GTK_CONTAINER (menu), remove); if (user && (g_ascii_strcasecmp("user", user) == 0)) { gtk_widget_set_sensitive(remove, TRUE); gtk_widget_set_sensitive(rename, TRUE); } else { gtk_widget_set_sensitive(remove, FALSE); gtk_widget_set_sensitive(rename, FALSE); } g_signal_connect (G_OBJECT(add), "activate", G_CALLBACK (on_add_group), group_view); g_signal_connect (G_OBJECT(remove), "activate", G_CALLBACK (on_remove_group), group_view); g_signal_connect (G_OBJECT(rename), "activate", G_CALLBACK (on_rename_group), group_view); gtk_widget_show_all(GTK_WIDGET(menu)); gtk_menu_popup (menu, NULL, NULL, NULL, NULL, ev->button, ev->time); } } return FALSE; } /* gint on_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data) { evaluate event so calendar is navigable with keyboard switch (event->keyval) { case GDK_Escape: break; case GDK_Return: case GDK_KP_Enter: case break; default: return FALSE; } g_signal_stop_emission_by_name (widget, "key_press_event"); hide_popup (RUBRICA_CALENDAR(data)); return TRUE; } */ rubrica-2.0/src/view.c0000644000175000017500000002040710617433024013504 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "view.h" enum { PROP_0, VIEW_MSG, VIEW_CHILD_TYPE, VIEW_CHILD_SELECTED, }; /* signals enumeration */ enum { CHANGED, LAST_SIGNAL }; static guint view_signals[LAST_SIGNAL] = {0}; struct _RubricaViewPrivate { gchar* name; GtkWidget* scrollwin; GtkWidget* tree; gchar* message; gchar* child_type; gboolean selected; gboolean dispose_has_run; }; #define RUBRICA_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_VIEW_TYPE, RubricaViewPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_view_class_init (RubricaViewClass* klass); static void rubrica_view_init (RubricaView* obj); static void rubrica_view_finalize (RubricaView* self); static void rubrica_view_dispose (RubricaView* self); static void rubrica_view_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec); static void rubrica_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType rubrica_view_get_type() { static GType view_type = 0; if (!view_type) { static const GTypeInfo view_info = { sizeof(RubricaViewClass), NULL, NULL, (GClassInitFunc) rubrica_view_class_init, NULL, NULL, sizeof(RubricaView), 0, (GInstanceInitFunc) rubrica_view_init }; view_type = g_type_register_static (GTK_TYPE_VBOX, "RubricaView", &view_info, 0); } return view_type; } static void rubrica_view_dispose (RubricaView* self) { g_return_if_fail(IS_RUBRICA_VIEW(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_view_finalize (RubricaView* self) { g_return_if_fail(IS_RUBRICA_VIEW(self)); if (self->priv->child_type) g_free(self->priv->child_type); } static void rubrica_view_class_init(RubricaViewClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_view_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_view_dispose; object_class->set_property = (gpointer) rubrica_view_set_property; object_class->get_property = (gpointer) rubrica_view_get_property; g_type_class_add_private (klass, sizeof(RubricaViewPrivate)); /* class signals */ /** * RubricaView::changed * @view: the #RubricaCardsView object that receives the signal * * the "changed" signal is emitted when the view changes (add/remove item) */ view_signals[CHANGED] = g_signal_new("view-changed", RUBRICA_VIEW_TYPE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(RubricaViewClass, changed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, /* return type */ 1, /* params */ G_TYPE_STRING); /* params type: error code */ /** * RubricaView:msg * * a message to display in statusbar */ pspec = g_param_spec_string("view-message", "message", "a message", NULL, G_PARAM_READWRITE); g_object_class_install_property(object_class, VIEW_MSG, pspec); /* class property */ /** * RubricaView:child-type * * the view's child type */ pspec = g_param_spec_string("child-type", "child-type", "the type of view child", NULL, G_PARAM_READWRITE); g_object_class_install_property(object_class, VIEW_CHILD_TYPE, pspec); /** * RubricaView:view-selected * * the view's child type */ pspec = g_param_spec_boolean("view-selected", "view selected", "was a view's item selected", FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, VIEW_CHILD_SELECTED, pspec); } static void rubrica_view_init(RubricaView* self) { GtkWidget* scrollwin; GtkTreeSelection *selection; gtk_box_set_homogeneous(GTK_BOX(self), FALSE); gtk_box_set_spacing(GTK_BOX(self), 6); self->priv = RUBRICA_VIEW_GET_PRIVATE(self); self->priv->tree = gtk_tree_view_new(); self->priv->scrollwin = gtk_scrolled_window_new (NULL, NULL); self->priv->child_type = NULL; self->priv->message = NULL; self->priv->selected = FALSE; gtk_box_pack_start(GTK_BOX(self), self->priv->scrollwin, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(self->priv->scrollwin), self->priv->tree); scrollwin = self->priv->scrollwin; gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), GTK_SHADOW_IN); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(self->priv->tree)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE); // gtk_widget_show(GTK_WIDGET(self)); gtk_widget_show(self->priv->scrollwin); gtk_widget_show(self->priv->tree); self->priv->dispose_has_run = FALSE; } static void rubrica_view_set_property (GObject* obj, guint property_id, const GValue* value, GParamSpec* spec) { RubricaView* self = (RubricaView*) obj; RubricaViewPrivate* priv = RUBRICA_VIEW_GET_PRIVATE(self); switch (property_id) { case VIEW_CHILD_TYPE: g_free(priv->child_type); priv->child_type = g_value_dup_string(value); break; case VIEW_MSG: if (priv->message) g_free(priv->message); priv->message = g_value_dup_string(value); break; case VIEW_CHILD_SELECTED: priv->selected = g_value_get_boolean(value); break; default: break; } } static void rubrica_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaView* self = (RubricaView*) obj; RubricaViewPrivate* priv = RUBRICA_VIEW_GET_PRIVATE(self); switch (property_id) { case VIEW_CHILD_TYPE: g_value_set_string(value, priv->child_type); break; case VIEW_MSG: g_value_set_string(value, priv->message); break; case VIEW_CHILD_SELECTED: g_value_set_boolean(value, priv->selected); break; default: break; } } /* Public */ /** * rubrica_view_new * * create a #RubricaView * * returns: a new #RubricaView* */ GtkWidget* rubrica_view_new() { GtkWidget* view; view = GTK_WIDGET(g_object_new(RUBRICA_VIEW_TYPE, NULL)); return view; } void rubrica_view_set_model(RubricaView* view, GtkTreeModel* model) { RubricaViewPrivate* priv; g_return_if_fail(IS_RUBRICA_VIEW(view)); priv = RUBRICA_VIEW_GET_PRIVATE(view); gtk_tree_view_set_model(GTK_TREE_VIEW(priv->tree), GTK_TREE_MODEL(model)); } GtkWidget* rubrica_view_get_tree(RubricaView* view) { RubricaViewPrivate* priv; g_return_val_if_fail(IS_RUBRICA_VIEW(view), NULL); priv = RUBRICA_VIEW_GET_PRIVATE(view); return priv->tree; } GtkTreeSelection* rubrica_view_get_selection(RubricaView* view) { RubricaViewPrivate* priv; g_return_val_if_fail(IS_RUBRICA_VIEW(view), NULL); priv = RUBRICA_VIEW_GET_PRIVATE(view); return gtk_tree_view_get_selection(GTK_TREE_VIEW(priv->tree)); } GtkTreeModel* rubrica_view_get_model (RubricaView* view) { RubricaViewPrivate* priv; g_return_val_if_fail(IS_RUBRICA_VIEW(view), NULL); priv = RUBRICA_VIEW_GET_PRIVATE(view); return gtk_tree_view_get_model(GTK_TREE_VIEW(priv->tree)); } rubrica-2.0/src/calendar.h0000644000175000017500000000526210617433024014312 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _CALENDAR_H__ #define _CALENDAR_H__ #include #include G_BEGIN_DECLS #define RUBRICA_CALENDAR_TYPE (rubrica_calendar_get_type()) #define RUBRICA_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_CALENDAR_TYPE, \ RubricaCalendar)) #define RUBRICA_CALENDAR_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ RUBRICA_CALENDAR_TYPE, \ RubricaCalendarClass)) #define IS_RUBRICA_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_CALENDAR_TYPE)) #define IS_RUBRICA_CALENDAR_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_CALENDAR_TYPE)) #define RUBRICA_CALENDAR_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_CALENDAR_TYPE, \ RubricaCalendarClass) typedef struct _RubricaCalendar RubricaCalendar; typedef struct _RubricaCalendarClass RubricaCalendarClass; typedef struct _RubricaCalendarPrivate RubricaCalendarPrivate; struct _RubricaCalendar { GtkHBox parent; RubricaCalendarPrivate* priv; }; struct _RubricaCalendarClass { GtkHBoxClass parent_class; void (*calendar_change) (RubricaCalendar *cal, GDate* date); }; GType rubrica_calendar_get_type (void); GtkWidget* rubrica_calendar_new (void); GtkWidget* rubrica_calendar_get_button (RubricaCalendar *cal); gboolean rubrica_calendar_has_date (RubricaCalendar *cal); GDate* rubrica_calendar_get_gdate (RubricaCalendar *cal); gchar* rubrica_calendar_get_date (RubricaCalendar *cal); void rubrica_calendar_clean (RubricaCalendar* cal); G_END_DECLS #endif rubrica-2.0/src/callbacks.c0000644000175000017500000004605210637712325014463 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include "libral.h" #include "types.h" #include "app.h" #include "callbacks.h" #include "cards.h" #include "view.h" #include "data_view.h" #include "cards_view.h" #include "utils.h" #include "browse.h" #include "personal_gui.h" #include "preferences.h" #include "groups_cb.h" #include "popmenu.h" #include "statusbar.h" #include "tab.h" void confirm_overwrite (RubricaApp* app, RAbook* book); void save_session (GtkWidget* window); gboolean want_to_quit (GtkWindow* window); gboolean want_to_save (RubricaApp* app, gchar* filename); /* Callbacks utils */ void confirm_overwrite (RubricaApp* app, RAbook* book) { GtkWidget* message; gint response; GConfClient* client; gboolean backup; gint rate; client = gconf_client_get_default(); message = gtk_message_dialog_new(GTK_WINDOW(app->window), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO, "%s", "Save addressbook"); gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(message), "%s", "Addressbook exist.\n" "Do you want overwrite?"); response = gtk_dialog_run(GTK_DIALOG(message)); switch(response) { case GTK_RESPONSE_YES: backup = gconf_client_get_bool(client, RUBRICA_GCONF_BACKUP, NULL); rate = gconf_client_get_int (client, RUBRICA_GCONF_RATE, NULL); if (r_abook_overwrite_file(book, backup, rate)) { gchar* file; gchar* message; g_object_get(book, "addressbook-name", &file, NULL); message = g_strdup_printf(_("File %s was successfully saved."), file); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "file %s replaced successfully", file); rubrica_app_notify(app, message); g_free(message); } break; case GTK_RESPONSE_NO: break; default: break; } gtk_widget_destroy(message); g_object_unref(client); } void save_session(GtkWidget* window) { GtkWidget* paned; GConfClient* client; gint width, height, position; client = gconf_client_get_default(); paned = g_object_get_data(G_OBJECT(window), "paned"); position = gtk_paned_get_position(GTK_PANED(paned)); gtk_window_get_size(GTK_WINDOW(window), &width, &height); gconf_client_set_int(client, RUBRICA_GCONF_WIDTH, width, NULL); gconf_client_set_int(client, RUBRICA_GCONF_HEIGHT, height, NULL); gconf_client_set_int(client,RUBRICA_GCONF_PANED_POSITION, position, NULL); g_object_unref(client); } gboolean want_to_quit(GtkWindow* window) { GtkWidget* dialog; gint response; dialog = gtk_message_dialog_new(window, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _("Do you want exit from rubrica?")); response = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); if (response == GTK_RESPONSE_NO) return FALSE; return TRUE; } gboolean want_to_save(RubricaApp* app, gchar* filename) { GtkWidget* dialog; gint response; gchar* message; message = g_strdup_printf(_("Unsaved data will be lost.\n" "Do you want to save \"%s\"?"), filename); dialog = gtk_message_dialog_new(GTK_WINDOW(app->window), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, message); response = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); if (response == GTK_RESPONSE_NO) return FALSE; return TRUE; } /* Toolbar - Menu callbacks */ void on_new_cb (GtkWidget* button, gpointer data) { rubrica_app_append_addressbook((RubricaApp*) data); } void on_open_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* chooser; GConfClient* client; gchar* folder = NULL; client = gconf_client_get_default(); folder = gconf_client_get_string(client, RUBRICA_GCONF_FOLDER, NULL); chooser = gtk_file_chooser_dialog_new(_("Open an addressbook"), GTK_WINDOW(app->window), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); rubrica_utils_add_filters(chooser); rubrica_utils_enable_filter (GTK_FILE_CHOOSER (chooser), _("All files")); if (folder) gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(chooser), folder); if (gtk_dialog_run(GTK_DIALOG(chooser)) == GTK_RESPONSE_ACCEPT) { gchar *file; GtkFileFilter* filefilter; G_CONST_RETURN gchar *filter; filefilter = gtk_file_chooser_get_filter(GTK_FILE_CHOOSER (chooser)); filter = gtk_file_filter_get_name(filefilter); file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser)); if (!rubrica_app_load_file(app, file, filter)) { GtkWidget* dialog; gchar* message; g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Can't open file %s", file); message = g_strdup_printf(_("Can't open file %s"), file); rubrica_app_notify(app, message); dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, message); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); g_free(message); } g_free (file); } gtk_widget_destroy(chooser); } void on_save_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* abook; GConfClient* client; gchar* name = NULL; gchar* path = NULL; gchar* file = NULL; gint rate; client = gconf_client_get_default(); rate = gconf_client_get_int (client, RUBRICA_GCONF_RATE, NULL); abook = rubrica_app_get_active_addressbook(app); g_object_get(abook, "addressbook-name", &name, "addressbook-path", &path, NULL); if ((!name) || (g_ascii_strcasecmp(name, _("no name")) == 0)) on_saveas_cb(NULL, app); else { file = g_strdup_printf("%s%s%s", path, G_DIR_SEPARATOR_S, name); if (g_file_test(file, G_FILE_TEST_EXISTS)) confirm_overwrite(app, abook); else r_abook_save_file(abook, file, rate); g_free(file); } g_free(path); g_free(name); } void on_saveas_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* abook; GtkWidget* chooser; GConfClient* client; gchar* folder = NULL; gchar* file; gchar* oldfile = NULL; client = gconf_client_get_default(); folder = gconf_client_get_string(client, RUBRICA_GCONF_FOLDER, NULL); abook = rubrica_app_get_active_addressbook(app); chooser = gtk_file_chooser_dialog_new(_("Save addressbook as..."), GTK_WINDOW(app->window), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); rubrica_utils_add_filters(chooser); rubrica_utils_enable_filter (GTK_FILE_CHOOSER (chooser), _("All files")); if (folder) gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(chooser), folder); g_object_get(abook, "addressbook-name", &oldfile, NULL); if (oldfile) { gchar* file; file = g_strdup_printf("%s%s%s", folder, G_DIR_SEPARATOR_S, oldfile); gtk_file_chooser_select_filename(GTK_FILE_CHOOSER(chooser), file); gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(chooser), oldfile); g_free(file); } else gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(chooser), _("no name")); if (gtk_dialog_run(GTK_DIALOG(chooser)) == GTK_RESPONSE_ACCEPT) { gint rate; gboolean backup; GtkFileFilter* filefilter; G_CONST_RETURN gchar *filter; filefilter = gtk_file_chooser_get_filter(GTK_FILE_CHOOSER (chooser)); filter = gtk_file_filter_get_name(filefilter); file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser)); backup = gconf_client_get_bool(client, RUBRICA_GCONF_BACKUP, NULL); rate = gconf_client_get_int (client, RUBRICA_GCONF_RATE, NULL); g_object_set(abook, "file-filter", filter, NULL); if (g_ascii_strcasecmp(oldfile, _("no name")) == 0) { g_free(oldfile); oldfile = g_strdup(file); } if (!r_abook_is_empty(abook)) { gchar* tmp; if (oldfile && backup && (g_ascii_strcasecmp(file, oldfile) == 0) && g_file_test(oldfile, G_FILE_TEST_EXISTS)) { tmp = g_strdup_printf("%s~", oldfile); g_rename(oldfile, tmp); g_remove(oldfile); g_free(tmp); g_free(oldfile); } if(r_abook_save_file(abook, file, rate)) { gchar* message; g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "file %s saved successfully", file); message = g_strdup_printf(_("File %s was successfully saved."), file); rubrica_app_notify(app, message); g_free(file); g_free(message); } } } gtk_widget_destroy(chooser); g_object_unref(client); } void on_cut_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* book; gpointer card = NULL; book = rubrica_app_get_active_addressbook(app); card = r_abook_get_selected_card(R_ABOOK(book)); if (card) { rubrica_app_push_card(app, card); rubrica_app_notify(app, _("Card cutted")); g_signal_emit_by_name(G_OBJECT(book), "card-cutted", card, NULL); } } void on_copy_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* book; gpointer card, copy = NULL; book = rubrica_app_get_active_addressbook(app); card = r_abook_get_selected_card(R_ABOOK(book)); copy = r_card_copy(R_CARD(card)); if (copy) { rubrica_app_push_card(app, copy); rubrica_app_notify(app, _("Card copied")); } } void on_paste_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* book; gpointer card = NULL; book = rubrica_app_get_active_addressbook(app); card = rubrica_app_pop_card(app); if (card) { r_abook_paste_card(R_ABOOK(book), R_CARD(card)); rubrica_app_notify(app, _("Card pasted")); } } void on_add_personal_cb (GtkWidget* button, gpointer data) { cards_append_personal_card(RUBRICA_APP(data)); } void on_add_company_cb (GtkWidget* button, gpointer data) { cards_append_company_card(RUBRICA_APP(data)); } void on_delete_card_cb(GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* book; gpointer card = NULL; book = rubrica_app_get_active_addressbook(app); card = r_abook_get_selected_card(R_ABOOK(book)); if (card) { gboolean locked = FALSE; g_object_get(G_OBJECT(card), "card-locked", &locked, NULL); if (!locked) // card is not locked, it is deletable { if (r_card_has_refs(R_CARD(card))) { /* TODO: messaggio chiedere se cancellare la scheda o scheda e riferimenti o scheda e alcuni riferimenti (creare lista) chiamare un foreach sulla lista delle schede da cancellare nella foreach si chiamano r_abook_delete_card(R_ABOOK(book), card); rubrica_app_update_cards_view_on_delete(app); rubrica_app_move_card_to_trash(app, card); */ } rubrica_app_push_card(app, card); /* "delete" the card, a "card_removed" signal is emitted */ r_abook_delete_card(R_ABOOK(book), card); rubrica_app_notify(app, _("Card moved to trash")); } else // card is locked, it is undeletable { rubrica_app_notify(app, _("This card is locked. " "Modify card's property and retry.")); rubrica_app_show_message(app, _("This card is locked.\n" "Modify card's property and retry.")); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Can't delete this card because it is locked. " "Modify card's property and retry."); rubrica_app_update_view(app); r_abook_unselect_cards(R_ABOOK(book)); } } else { rubrica_app_notify(app, _("You haven't selected any card.\n" "Please select the card that you " "want to delete")); rubrica_app_show_message(app, _("You haven't selected any card.\n" "Please select the card that you " "want to delete")); } } void on_modify_card_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; RAbook* book; RCard* oldcard; book = rubrica_app_get_active_addressbook(app); if (r_abook_is_empty(book)) { rubrica_app_show_message(app, _("\nWarning. This addressbook is empty")); return; } oldcard = r_abook_get_selected_card (R_ABOOK(book)); if (oldcard) cards_modify_card(app, book, oldcard); else rubrica_app_show_message(app, _("\nWarning. You must select " "a card first")); } void on_prefenences_cb(GtkWidget* button, gpointer data) { rubrica_preferences_run_gui(NULL, data); } void on_info_cb (GtkWidget* button, gpointer data) { GtkWidget* about; gchar* authors[] ={ "Nicola Fragale", NULL}; gchar* documenters[] = {NULL}; GtkWidget* image; GdkPixbuf* logo; gchar* translators = "Italian Nicola Fragale \n" "Ukrainian Iryna Rtveliashvili \n"; const gchar* license = " Copyright (C) Nicola Fragale \n\n" "" " This program is free software; you can redistribute\n" " it and/or modify it under the terms of the\n" " GNU General Public License as published by\n" " the Free Software Foundation; either version 2\n" " of the License, or (at your option) any later version.\n\n" " This program is distributed in the hope that\n" " it will be useful, but WITHOUT ANY WARRANTY;\n" " without even the implied warranty of\n" " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" " See the GNU General Public License for more details.\n\n" " You should have received a copy of the\n" " GNU General Public License along with this program;\n" " if not, write to the\n" " Free Software Foundation, Inc.\n" " 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"; image = gtk_image_new_from_file(RUBRICA_GUI_DIR"/logo.png"); logo = gtk_image_get_pixbuf(GTK_IMAGE(image)); about = gtk_about_dialog_new(); g_object_set(about, "authors", authors, "comments", _("Rubrica, an addressbook for " "GNOME environment"), "copyright", _("Copyright Nicola Fragale " ""), "documenters", documenters, "license", license, "translator-credits", translators, "logo", logo, "version", RUBRICA_VERSION, "website", "http://rubrica.berlios.de", "website-label", _("Rubrica's home page"), "wrap-license", FALSE, NULL); gdk_pixbuf_unref (logo); gtk_dialog_run (about); gtk_widget_destroy (about); } void on_print_cb(GtkWidget* button, gpointer data) { rubrica_app_show_message((RubricaApp*) data, _("Feature not yet implemented")); g_print("\nTODO: print selected card"); } void on_close_cb (GtkWidget* button, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* notebook; GtkWidget* brother = NULL; GtkWidget* tab; gboolean changed = FALSE; gchar* name; gint page; notebook = rubrica_app_get_notebook(app); tab = gtk_widget_get_ancestor (button, RUBRICA_TAB_TYPE); g_object_get(tab, "tab-brother", &brother, NULL); g_object_get(brother, "has-changed", &changed, NULL); name = rubrica_cards_view_get_addressbook_name(RUBRICA_CARDS_VIEW(brother)); page = gtk_notebook_page_num(GTK_NOTEBOOK(notebook), brother); gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), page-1); if (changed && want_to_save(app, name)) on_save_cb(NULL, app); gtk_notebook_remove_page(GTK_NOTEBOOK(notebook), page); } void on_first_cb(GtkWidget* button, gpointer data) { rubrica_browse_first_card(RUBRICA_APP(data)); } void on_last_cb(GtkWidget* button, gpointer data) { rubrica_browse_last_card(RUBRICA_APP(data)); } void on_prev_cb(GtkWidget* button, gpointer data) { rubrica_browse_previous_card(RUBRICA_APP(data)); } void on_next_cb (GtkWidget* button, gpointer data) { rubrica_browse_next_card(RUBRICA_APP(data)); } void on_quit_cb(GtkWidget* widget, gpointer data) { RubricaApp* app = (RubricaApp*) data; GConfClient* client; gboolean confirm = FALSE; client = gconf_client_get_default(); confirm = gconf_client_get_bool(client, RUBRICA_GCONF_CONFIRM_EXIT, NULL); g_object_unref(client); if (confirm) { if (!want_to_quit(GTK_WINDOW(app->window))) return; } save_session(GTK_WIDGET(app->window)); gtk_main_quit(); } /* manages the delete event (x button was clicked in window) */ gboolean on_delete_event_cb(GtkWidget* widget, GdkEvent *event, gpointer data) { RubricaApp* app = (RubricaApp*) data; GConfClient* client; gboolean confirm = FALSE; client = gconf_client_get_default(); confirm = gconf_client_get_bool(client, RUBRICA_GCONF_CONFIRM_EXIT, NULL); g_object_unref(client); if (confirm) { if (!want_to_quit(GTK_WINDOW(app->window))) return TRUE; } save_session(GTK_WIDGET(app->window)); gtk_main_quit(); return FALSE; } void on_notebook_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, gpointer data) { RubricaApp* app = (RubricaApp*) data; GtkWidget* view; GtkWidget* statusbar; gchar* message = NULL; gboolean selected; view = gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook), page_num); statusbar = rubrica_app_get_statusbar(app); g_object_get(view, "view-message", &message, "view-selected", &selected, NULL); if (page_num >= 2) { rubrica_app_enable_previouses(app, selected); rubrica_app_enable_nexts(app, selected); rubrica_statusbar_enable_extra (RUBRICA_STATUSBAR(statusbar), TRUE); rubrica_statusbar_enable_images(RUBRICA_STATUSBAR(statusbar), TRUE); rubrica_statusbar_extra_set_text (RUBRICA_STATUSBAR(statusbar), message); } else { rubrica_statusbar_enable_extra (RUBRICA_STATUSBAR(statusbar), FALSE); rubrica_statusbar_enable_images(RUBRICA_STATUSBAR(statusbar), FALSE); rubrica_statusbar_push_message (RUBRICA_STATUSBAR(statusbar), message); } } rubrica-2.0/src/trash_view.c0000644000175000017500000002364710617433024014716 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include "libral.h" #include "trash_view.h" #include "preferences.h" /* properties enumeration */ enum { PROP_0, TRASH_NAME, }; struct _RubricaTrashViewPrivate { gint items; GList* books; gboolean dispose_has_run; }; #define RUBRICA_TRASH_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_TRASH_VIEW_TYPE, \ RubricaTrashViewPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_trash_view_class_init (RubricaTrashViewClass* klass); static void rubrica_trash_view_init (RubricaTrashView* obj); static void rubrica_trash_view_finalize (RubricaTrashView* self); static void rubrica_trash_view_dispose (RubricaTrashView* self); /* Private */ static gboolean trash_has_book (RubricaTrashView* view, RAbook* book); static void trash_add_book (RubricaTrashView* view, RAbook* book); static void trash_update_infos (RubricaTrashView* view); static void trash_view_add_columns (GtkTreeView *tree); static gboolean trash_has_book (RubricaTrashView* view, RAbook* book) { GList* alias; for (alias = view->priv->books; alias; alias = alias->next) if ((RAbook*) alias->data == book) return TRUE; return FALSE; } static void trash_add_book (RubricaTrashView* view, RAbook* book) { view->priv->books = g_list_append(view->priv->books, book); } static void trash_update_infos(RubricaTrashView* view) { gchar* message; message = g_strdup_printf(_("Cards in Trash: %-5d"), view->priv->items); g_object_set(view, "view-message", message, NULL); } static void trash_view_add_columns (GtkTreeView *tree) { GtkCellRenderer *renderer; GtkTreeModel *model; model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes(tree, -1, _("Card"), renderer, "text", TRASH_CARD_LABEL, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (tree, -1, _("Info"), renderer, "text", TRASH_LN_COMPANY, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (tree, -1, _("Web"), renderer, "text", TRASH_WEB, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (tree, -1, _("Email"), renderer, "text", TRASH_EMAIL, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_insert_column_with_attributes (tree, -1, _("Telephone"), renderer, "text", TRASH_PHONE, NULL); } GType rubrica_trash_view_get_type() { static GType trash_view_type = 0; if (!trash_view_type) { static const GTypeInfo trash_view_info = { sizeof(RubricaTrashViewClass), NULL, NULL, (GClassInitFunc) rubrica_trash_view_class_init, NULL, NULL, sizeof(RubricaTrashView), 0, (GInstanceInitFunc) rubrica_trash_view_init }; trash_view_type = g_type_register_static (RUBRICA_VIEW_TYPE, "RubricaTrashView", &trash_view_info, 0); } return trash_view_type; } static void rubrica_trash_view_dispose (RubricaTrashView* self) { g_return_if_fail(IS_RUBRICA_TRASH_VIEW(self)); RubricaTrashViewPrivate* priv = RUBRICA_TRASH_VIEW_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; } static void rubrica_trash_view_finalize (RubricaTrashView* self) { g_return_if_fail(IS_RUBRICA_TRASH_VIEW(self)); } static void rubrica_trash_view_class_init(RubricaTrashViewClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_trash_view_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_trash_view_dispose; g_type_class_add_private (klass, sizeof(RubricaTrashViewPrivate)); } static void rubrica_trash_view_init(RubricaTrashView* self) { GtkWidget* tree; GtkListStore* model; self->priv = RUBRICA_TRASH_VIEW_GET_PRIVATE(self); self->priv->books = NULL; model = gtk_list_store_new(TRASH_LAST_COLUMN, G_TYPE_INT, /* card's id */ G_TYPE_POINTER, /* addressbook */ G_TYPE_STRING, /* card label */ G_TYPE_STRING, /* first name | company */ G_TYPE_STRING, /* web */ G_TYPE_STRING, /* email */ G_TYPE_STRING); /* telephone */ rubrica_view_set_model(RUBRICA_VIEW(self), GTK_TREE_MODEL(model)); tree = rubrica_view_get_tree(RUBRICA_VIEW(self)); trash_view_add_columns (GTK_TREE_VIEW(tree)); gtk_widget_show(GTK_WIDGET(self)); self->priv->dispose_has_run = FALSE; } /* Public */ /** * rubrica_trash_view_new * * create a #RubricaTrashView * * returns: a new #RubricaTrashView */ GtkWidget* rubrica_trash_view_new() { GtkWidget* view; view = GTK_WIDGET(g_object_new(RUBRICA_TRASH_VIEW_TYPE, "child-type", "Trash", NULL)); return view; } void rubrica_trash_view_add_card (RubricaTrashView* view, RAbook* book, RCard* card) { RubricaTrashViewPrivate* priv; GtkWidget* tree; GtkTreeIter iter; GtkTreeModel *model; RInfos *infos; gchar* str; g_return_if_fail(IS_RUBRICA_TRASH_VIEW(view)); g_return_if_fail(IS_R_ABOOK(book)); g_return_if_fail(IS_R_PERSONAL_CARD(card)); priv = RUBRICA_TRASH_VIEW_GET_PRIVATE(view); infos = r_card_get_infos(R_CARD(card)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); if (r_card_is_personal(card)) str = r_infos_get_last(infos); else str = r_infos_get_label(infos); gtk_list_store_set(GTK_LIST_STORE(model), &iter, TRASH_ID, r_infos_get_id(infos), TRASH_ADDRESSBOOK, book, TRASH_CARD_LABEL, r_infos_get_label(infos), TRASH_LN_COMPANY, str, TRASH_WEB, r_infos_get_web(infos), TRASH_EMAIL, r_infos_get_email(infos), TRASH_PHONE, r_infos_get_telephone(infos), -1); priv->items++; if (!trash_has_book(view, book)) trash_add_book(view, book); r_card_free_infos(infos); trash_update_infos(view); } void rubrica_trash_view_destroy_card(RubricaTrashView* view) { GtkWidget* tree; GtkTreeIter iter; GtkTreeModel *model; GtkTreeSelection *selection; g_return_if_fail(IS_RUBRICA_TRASH_VIEW(view)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { RAbook* book = NULL; gpointer card = NULL; gchar* name; glong id = 0; /* get the id and the original addressbook of selected card */ gtk_tree_model_get(model, &iter, TRASH_ID, &id, TRASH_ADDRESSBOOK, &book, -1); g_object_get(book, "addressbook-name", &name, NULL); g_print("\nDestroing card id: %ld from addressbook %s (%p)", id, name, book); /* get and destroy the card */ card = r_abook_get_card_by_id(R_ABOOK(book), id); r_abook_destroy_card(book, card); /* update trash view */ gtk_list_store_remove(GTK_LIST_STORE(model), &iter); } } void rubrica_trash_view_recovery_card (RubricaTrashView* view) { GtkWidget* tree; GtkTreeIter iter; GtkTreeModel* model; GtkTreeSelection* selection; RubricaTrashViewPrivate* priv; g_return_if_fail(IS_RUBRICA_TRASH_VIEW(view)); priv = RUBRICA_TRASH_VIEW_GET_PRIVATE(view); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { RAbook* book = NULL; gpointer card = NULL; glong id = 0; /* get the id and the original addressbook of selected card */ gtk_tree_model_get(model, &iter, TRASH_ID, &id, TRASH_ADDRESSBOOK, &book, -1); gtk_list_store_remove(GTK_LIST_STORE(model), &iter); /* get the card */ card = r_abook_get_card_by_id(R_ABOOK(book), id); /* recovery it (signal "card_recovered" is emitted) */ r_abook_recovery_card(book, card); priv->items--; } trash_update_infos(view); } void rubrica_trash_view_empty_trash (RubricaTrashView* view) { GList* alias; GtkWidget* tree; GtkTreeModel* model; g_return_if_fail(IS_RUBRICA_TRASH_VIEW(view)); tree = rubrica_view_get_tree(RUBRICA_VIEW(view)); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); for (alias = view->priv->books; alias; alias = alias->next) r_abook_empty_trash(R_ABOOK(alias->data)); gtk_list_store_clear(GTK_LIST_STORE(model)); } rubrica-2.0/src/groups_view.c0000644000175000017500000003416310617433024015107 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: ref.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "groups_view.h" #include "types.h" enum { PROP_0, GROUP_BOX }; struct _RubricaGroupsViewPrivate { RGroupBox *box; gboolean dispose_has_run; }; #define RUBRICA_GROUPS_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_GROUPS_VIEW_TYPE, \ RubricaGroupsViewPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_groups_view_class_init (RubricaGroupsViewClass* klass); static void rubrica_groups_view_init (RubricaGroupsView* obj); static void rubrica_groups_view_finalize (RubricaGroupsView* self); static void rubrica_groups_view_dispose (RubricaGroupsView* self); static void rubrica_groups_view_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void rubrica_groups_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); /* Callbacks */ static void model_toggled (GtkCellRendererToggle *cell, gchar *path, gpointer data); static void group_added_cb (RGroupBox *box, gpointer group, gpointer data); static void group_removed_cb (RGroupBox *box, gint group_id, gpointer data); static void group_renamed_cb (RGroupBox *box, gpointer group,gpointer data); /* Private */ static void groups_view_populate_view (RubricaGroupsView* view, RGroupBox* box, RubricaGroupViewType type); static void theme_changed (GtkIconTheme* theme, gpointer data); static gboolean remove_group (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data); static gboolean remove_group (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { gint id; gint group_id = GPOINTER_TO_INT(data); gtk_tree_model_get(model, iter, GROUP_ID, &id, -1); if (id == group_id) { gtk_list_store_remove(GTK_LIST_STORE(model), iter); return TRUE; } return FALSE; } static void model_toggled(GtkCellRendererToggle *cell, gchar *path_str, gpointer data) { GtkTreeModel *model; GtkTreeIter iter; GtkTreePath *path; gboolean status; model = (GtkTreeModel *) data; path = gtk_tree_path_new_from_string(path_str); gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get (model, &iter, GROUP_BELONG_COLUMN, &status, -1); status ^= 1; gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_BELONG_COLUMN, status, -1); } static void group_added_cb (RGroupBox *box, gpointer group, gpointer data) { GtkTreeView* tree; GtkTreeModel* model; GtkTreeIter iter; GdkPixbuf* pixbuf = NULL; gchar *uri, *name, *label; gboolean enabled; gint id; tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(data))); g_object_get(R_GROUP(group), "group-name", &name, "id", &id, "group-label", &label, "group-pixmap", &uri, "enabled", &enabled, NULL); if (uri) pixbuf = gdk_pixbuf_new_from_file_at_size (uri, 20, 20, NULL); model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_BELONG_COLUMN, enabled, GROUP_PIXMAP_COLUMN, pixbuf, GROUP_NAME_COLUMN, name, GROUP_LABEL_COLUMN, label, GROUP_OWNER_COLUMN, "user", GROUP_PIXMAP_PATH, uri, GROUP_ID, id, -1); } static void group_removed_cb (RGroupBox *box, gint id,gpointer data) { GtkTreeView* tree; GtkTreeModel* model; tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(data))); model = gtk_tree_view_get_model(tree); if (model) gtk_tree_model_foreach(GTK_TREE_MODEL(model), remove_group, GINT_TO_POINTER(id)); } static void group_renamed_cb (RGroupBox *box, gpointer group, gpointer data) { GtkTreeView* tree; GtkTreeModel* model; GtkTreeIter iter; GdkPixbuf* pixbuf = NULL; gchar *uri, *name, *label; gboolean enabled; gint id, group_id; tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(data))); model = gtk_tree_view_get_model(tree); g_object_get(R_GROUP(group), "group-name", &name, "id", &group_id, "group-label", &label, "group-pixmap", &uri, "enabled", &enabled, NULL); if (uri) pixbuf = gdk_pixbuf_new_from_file_at_size (uri, 20, 20, NULL); if (gtk_tree_model_get_iter_first(model, &iter)) { do { gtk_tree_model_get(model, &iter, GROUP_ID, &id, -1); if (id == group_id) gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_BELONG_COLUMN, enabled, GROUP_PIXMAP_COLUMN, pixbuf, GROUP_NAME_COLUMN, name, GROUP_LABEL_COLUMN, label, GROUP_OWNER_COLUMN, "user", GROUP_PIXMAP_PATH, uri, GROUP_ID, id, -1); } while (gtk_tree_model_iter_next(model, &iter)); } } static void theme_changed (GtkIconTheme* theme, gpointer data) { RubricaGroupsView* view = (RubricaGroupsView*) data; GtkTreeView* tree; GtkTreeModel* model; GtkTreeIter iter; RGroup* group; theme = gtk_icon_theme_get_default(); tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(view))); model = gtk_tree_view_get_model(tree); gtk_list_store_clear(GTK_LIST_STORE(model)); r_group_box_reset(view->priv->box); group = r_group_box_get_group(view->priv->box); for(; group; group = r_group_box_get_next_group(view->priv->box)) { gboolean enabled = FALSE; gchar* name = NULL; gchar* label = NULL; gchar* owner = NULL; gchar* pixmap = NULL; gint id = 0; GdkPixbuf* pixbuf; g_object_get(group,"id", &id, "group-name", &name, "group-label", &label, "group-owner", &owner, "group-pixmap", &pixmap, "enabled", &enabled, NULL); pixbuf = gtk_icon_theme_load_icon (theme, pixmap, 22, 0, NULL); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_PIXMAP_COLUMN, pixbuf, GROUP_NAME_COLUMN, name, GROUP_LABEL_COLUMN, label, GROUP_OWNER_COLUMN, owner, GROUP_PIXMAP_PATH, pixmap, GROUP_ID, id, -1); } } static void groups_view_populate_view(RubricaGroupsView* view, RGroupBox* box, RubricaGroupViewType type) { GtkTreeView* tree; GtkTreeModel* model; GtkTreeViewColumn* column; GtkCellRenderer *renderer; GtkTreeIter iter; RGroup* group; GtkIconTheme* theme; theme = gtk_icon_theme_get_default(); tree = GTK_TREE_VIEW(rubrica_view_get_tree(RUBRICA_VIEW(view))); model = gtk_tree_view_get_model(tree); if (type == FORM_GROUPS) { renderer = gtk_cell_renderer_toggle_new(); gtk_tree_view_insert_column_with_attributes(tree, -1, _("Belongs"), renderer, "active", GROUP_BELONG_COLUMN, NULL); g_signal_connect(G_OBJECT(renderer), "toggled", G_CALLBACK(model_toggled), model); } column = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(column, _("Groups")); renderer = gtk_cell_renderer_pixbuf_new(); gtk_tree_view_column_pack_start(column, renderer, FALSE); gtk_tree_view_column_set_attributes (column, renderer, "pixbuf", GROUP_PIXMAP_COLUMN, NULL); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_column_pack_start(column, renderer, TRUE); gtk_tree_view_column_set_attributes (column, renderer, "text", GROUP_LABEL_COLUMN, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW(tree), column); r_group_box_reset(box); group = r_group_box_get_group(box); for(; group; group = r_group_box_get_next_group(box)) { gboolean enabled = FALSE; gchar* name = NULL; gchar* label = NULL; gchar* owner = NULL; gchar* pixmap = NULL; gint id = 0; GdkPixbuf* pixbuf; g_object_get(group,"id", &id, "group-name", &name, "group-label", &label, "group-owner", &owner, "group-pixmap", &pixmap, "enabled", &enabled, NULL); pixbuf = gtk_icon_theme_load_icon (theme, pixmap, 22, 0, NULL); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, GROUP_BELONG_COLUMN, enabled, GROUP_PIXMAP_COLUMN, pixbuf, GROUP_NAME_COLUMN, name, GROUP_LABEL_COLUMN, label, GROUP_OWNER_COLUMN, owner, GROUP_PIXMAP_PATH, pixmap, GROUP_ID, id, -1); } g_signal_connect(G_OBJECT(theme), "changed", G_CALLBACK(theme_changed), view); } GType rubrica_groups_view_get_type() { static GType groups_view_type = 0; if (!groups_view_type) { static const GTypeInfo groups_view_info = { sizeof(RubricaGroupsViewClass), NULL, NULL, (GClassInitFunc) rubrica_groups_view_class_init, NULL, NULL, sizeof(RubricaGroupsView), 0, (GInstanceInitFunc) rubrica_groups_view_init }; groups_view_type = g_type_register_static (RUBRICA_VIEW_TYPE, "RubricaGroupsView", &groups_view_info, 0); } return groups_view_type; } static void rubrica_groups_view_dispose (RubricaGroupsView* self) { g_return_if_fail(IS_RUBRICA_GROUPS_VIEW(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_groups_view_finalize (RubricaGroupsView* self) { g_return_if_fail(IS_RUBRICA_GROUPS_VIEW(self)); } static void rubrica_groups_view_class_init(RubricaGroupsViewClass* klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class->finalize = (GObjectFinalizeFunc) rubrica_groups_view_finalize; object_class->dispose = (GObjectFinalizeFunc) rubrica_groups_view_dispose; object_class->set_property = (gpointer) rubrica_groups_view_set_property; object_class->get_property = (gpointer) rubrica_groups_view_get_property; g_type_class_add_private (klass, sizeof(RubricaGroupsViewPrivate)); /* class property */ /** * RubricaGroupsView:name * * the name of the addressbook displayed */ pspec = g_param_spec_object("group-box", "group box", "the group box", R_GROUP_BOX_TYPE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, GROUP_BOX, pspec); } static void rubrica_groups_view_init(RubricaGroupsView* self) { GtkListStore* model; g_return_if_fail(IS_RUBRICA_GROUPS_VIEW(self)); self->priv = RUBRICA_GROUPS_VIEW_GET_PRIVATE(self); model = gtk_list_store_new(GROUP_LAST_COLUMN, G_TYPE_INT, /* group check (belong) */ GDK_TYPE_PIXBUF, /* group pixbuf */ G_TYPE_STRING, /* group name */ G_TYPE_STRING, /* group label */ G_TYPE_STRING, /* group owner */ G_TYPE_STRING, /* pixmap path */ G_TYPE_INT); /* group's id */ rubrica_view_set_model(RUBRICA_VIEW(self), GTK_TREE_MODEL(model)); self->priv->dispose_has_run = FALSE; } static void rubrica_groups_view_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaGroupsView* self = (RubricaGroupsView*) obj; RubricaGroupsViewPrivate* priv = RUBRICA_GROUPS_VIEW_GET_PRIVATE(self); switch (property_id) { case GROUP_BOX: priv->box = g_value_get_object(value); break; default: break; } } static void rubrica_groups_view_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaGroupsView* self = (RubricaGroupsView*) obj; RubricaGroupsViewPrivate* priv = RUBRICA_GROUPS_VIEW_GET_PRIVATE(self); switch (property_id) { case GROUP_BOX: g_value_set_object(value, priv->box); break; default: break; } } /* Public */ /** * rubrica_groups_view_new * * create a #RubricaGroupsView * * returns: a new #RubricaGroupsView* */ GtkWidget* rubrica_groups_view_new(RGroupBox *groups, RubricaGroupViewType type) { GtkWidget* view; view = GTK_WIDGET(g_object_new(RUBRICA_GROUPS_VIEW_TYPE, "group-box", groups, NULL)); groups_view_populate_view (RUBRICA_GROUPS_VIEW(view), groups, type); g_signal_connect(G_OBJECT (groups), "group_added", G_CALLBACK (group_added_cb), view); g_signal_connect(G_OBJECT (groups), "group_removed", G_CALLBACK (group_removed_cb), view); g_signal_connect(G_OBJECT (groups), "group_renamed", G_CALLBACK (group_renamed_cb), view); return view; } RGroupBox* rubrica_groups_view_get_group_box (RubricaGroupsView* view) { RubricaGroupsViewPrivate* priv = RUBRICA_GROUPS_VIEW_GET_PRIVATE(view); g_return_val_if_fail(IS_RUBRICA_GROUPS_VIEW(view), NULL); return priv->box; } void rubrica_groups_view_add_group(RubricaGroupsView* view, RGroup* group) { RubricaGroupsViewPrivate* priv = RUBRICA_GROUPS_VIEW_GET_PRIVATE(view); r_group_box_add_group(R_GROUP_BOX(priv->box), group); } void rubrica_groups_view_del_group(RubricaGroupsView* view, RGroup* group) { RubricaGroupsViewPrivate* priv = RUBRICA_GROUPS_VIEW_GET_PRIVATE(view); r_group_box_delete_group(R_GROUP_BOX(priv->box), group); } rubrica-2.0/src/form_notes.h0000644000175000017500000000502510617433024014711 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_NOTES_H #define _RUBRICA_FORM_NOTES_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_NOTES_TYPE (rubrica_form_notes_get_type()) #define RUBRICA_FORM_NOTES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_NOTES_TYPE, \ RubricaFormNotes)) #define RUBRICA_FORM_NOTES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_NOTES_TYPE, \ RubricaFormNotesClass)) #define IS_RUBRICA_FORM_NOTES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_NOTES_TYPE)) #define IS_RUBRICA_FORM_NOTES_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_NOTES_TYPE)) #define RUBRICA_FORM_NOTES_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_NOTES_TYPE, \ RubricaFormNotesClass)) typedef struct _RubricaFormNotes RubricaFormNotes; typedef struct _RubricaFormNotesClass RubricaFormNotesClass; typedef struct _RubricaFormNotesPrivate RubricaFormNotesPrivate; struct _RubricaFormNotes { RubricaForm parent; RubricaFormNotesPrivate* priv; }; struct _RubricaFormNotesClass { RubricaFormClass parent; }; GType rubrica_form_notes_get_type (void); RubricaFormNotes* rubrica_form_notes_new (RubricaApp* app, GladeXML *gui); void rubrica_form_notes_free (RubricaFormNotes* form); #endif rubrica-2.0/src/themes.h0000644000175000017500000000235510617433024014026 0ustar seb128seb128/* * Rubrica * file: decoration.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "types.h" #ifndef _RUBRICA_THEME_H #define _RUBRICA_THEME_H void rubrica_themes_add_directory (const gchar *directory); void rubrica_themes_create_themed_list (GtkComboBox* combo, RubricaThemedItem* array); GdkPixbuf* rubrica_themes_load_icon (const gchar* icon_name, gint icon_size); gchar* rubrica_themes_load_pixmap (GtkWidget* button, gpointer data); #endif rubrica-2.0/src/types.h0000644000175000017500000001072110617653322013706 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #ifndef RUBRICA_TYPES_H #define RUBRICA_TYPES_H #define RUBRICA_GET_ENTRY(x) g_strdup(gtk_entry_get_text(GTK_ENTRY(x))) #define RUBRICA_GET_CHECK(x) gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(x)) typedef enum { VAL_STRING, VAL_INT } valtype; /** Models **/ typedef enum { ADDRESS_MODEL, NET_MODEL, TELEPHONE_MODEL, INFO_MODEL, } RubricaModelType; /** Columns types **/ typedef enum { ADDRESS_COLUMNS, URI_COLUMNS, TELEPHONE_COLUMNS, INFO_COLUMNS, } RubricaColumnsType; /* PersonalCardColumns */ typedef enum { CARD_COLUMN = 0, FIRST_NAME_COLUMN, LAST_NAME_COLUMN, PROFESSION_COLUMN, CITY_COLUMN, COUNTRY_COLUMN, WEB_CARD_COLUMN, EMAIL_CARD_COLUMN, TELEPHONE_COLUMN, COMPANY_COLUMN, ASSIGNMENT_COLUMN, ID_COLUMN, COLUMNS } PersonalCardColumns; /* RubricaGroupColumnType */ typedef enum { GROUP_BELONG_COLUMN = 0, // card belongs to this group GROUP_PIXMAP_COLUMN, // group pixmap GROUP_NAME_COLUMN, // group name GROUP_LABEL_COLUMN, // group label GROUP_OWNER_COLUMN, // group owner (hidden column) GROUP_PIXMAP_PATH, // group pixmap's path GROUP_ID, // group's id GROUP_LAST_COLUMN } RubricaGroupColumnType; /* RubricaAddressColumnType columns in address model/treeview */ typedef enum { ADDRESS_STREET_COLUMN = 0, // visible ADDRESS_NUMBER_COLUMN, // visible ADDRESS_CITY_COLUMN, // visible ADDRESS_LABEL_COLUMN, // visible ADDRESS_TYPE_COLUMN, // hidden ADDRESS_ZIP_COLUMN, // hidden ADDRESS_PROVINCE_COLUMN, // hidden ADDRESS_STATE_COLUMN, // hidden ADDRESS_COUNTRY_COLUMN, // hidden LAST_ADDRESS_COLUMN } RubricaAddressColumnType; /* RubricaNetColumnType colums in net model/treeview */ typedef enum { URI_COLUMN = 0, URI_TYPE_COLUMN, LAST_NET_COLUMN } RubricaNetColumnType; /* RubricaPhoneColumnType columns in telephone model/treeview */ typedef enum { TELEPHONE_NUMBER_COLUMN = 0, TELEPHONE_TYPE_COLUMN, LAST_TEL_COLUMN } RubricaPhoneColumnType; /* RubricaInfoColumnType */ typedef enum { INFO_CARD_LABEL_COLUMN = 0, INFO_FIRST_NAME_COLUMN, INFO_LAST_NAME_COLUMN, INFO_ASSIGNMENT_COLUMN, INFO_TELEPHONE_COLUMN, INFO_EMAIL_COLUMN, INFO_ID_COLUMN, LAST_INFO_COLUMN } RubricaInfoColumnType; /* RubricaGroupType */ typedef enum { NO_GROUP = 0, ALL_GROUP, FAVORITES_GROUP, HOT_GROUP, FRIENDS_GROUP, HEART_GROUP, RELATIVES_GROUP, HOLIDAYS_GROUP, HOBBIES_GROUP, SPORT_GROUP, BUSSINES_GROUP, COMPANY_GROUP, WORK_GROUP, CUSTOMER_GROUP, STRATEGIES_GROUP, PROGRAMMERS_GROUP, BSD_GROUP, PLUTO_GROUP } RubricaGroupType; /* RubricaComboColumnType */ typedef enum { COMBO_PIXMAP, COMBO_LABEL, COMBO_LAST_COLUMN } RubricaComboColumnType; typedef enum { WEB_LINK, EMAIL_LINK, IRC_LINK, TELEPHONE_LINK, UNKNOWN_LINK } RubricaLinkType; typedef enum { PIXMAP_RATE_NONE = R_RATE_NONE, PIXMAP_RATE_FEW, PIXMAP_RATE_NORMAL, PIXMAP_RATE_HIGHT, PIXMAP_RATE_VERY_HIGHT, PIXMAP_UNLOCK, PIXMAP_LOCK } RubricaPixmap; typedef struct { gchar* label; gchar* icon; gchar* exec; } RubricaThemedItem; typedef struct { gchar* uri; RubricaLinkType type; } RubricaLink; typedef struct { gchar* pixmap; gchar* name; gchar* label; } RubricaDefaultCategories; typedef struct { SearchType type; gint first; // date/first date gint second; // second date } RubricaSearch; typedef struct { gchar* icon; gchar* label; } RubricaCombo; #endif rubrica-2.0/src/company_gui.c0000644000175000017500000001100010617433024015031 0ustar seb128seb128/* * Rubrica * file: personal-form.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #include "app.h" #include "form.h" #include "company_gui.h" #include "groups_cb.h" #include "models.h" #include "types.h" #include "utils.h" /* Public */ CompanyDialog* rubrica_company_dialog_new (RubricaApp* app) { CompanyDialog *form = NULL; GladeXML *gui; gui = glade_xml_new (RUBRICA_GUI_DIR"/CompanyCard.glade", NULL, NULL); if (!gui) g_error("Can't load gui"); form = (CompanyDialog*) g_malloc0(sizeof(CompanyDialog)); if (!form) g_error("out of memory"); form->app = app; form->dialog = glade_xml_get_widget(gui, "CompanyForm"); form->card = rubrica_form_card_new(app, gui); form->info = rubrica_form_info_new(app, gui); form->address = rubrica_form_address_new(app, gui); form->net = rubrica_form_net_new (app, gui, FORM_NET_COMPANY); form->tel = rubrica_form_phone_new(app, gui, FORM_PHONE_COMPANY); form->notes = glade_xml_get_widget(gui, "notes"); g_object_unref(gui); return form; } void rubrica_company_run_add_dialog (CompanyDialog* form) { RubricaApp *app; RAbook *book; RCompanyCard *card = NULL; gint response; app = form->app; book = rubrica_app_get_active_addressbook(app); response = gtk_dialog_run(GTK_DIALOG(form->dialog)); switch (response) { case GTK_RESPONSE_OK: card = rubrica_company_extract_card_data(form); if (card) r_abook_add_card(R_ABOOK(book), R_CARD(card)); break; case GTK_RESPONSE_CANCEL: break; default: break; } gtk_widget_hide(form->dialog); g_free(form); } RCompanyCard* rubrica_company_run_modify_dialog(CompanyDialog* form) { RCompanyCard* card = NULL; gint response; response = gtk_dialog_run(GTK_DIALOG(form->dialog)); switch (response) { case GTK_RESPONSE_OK: card = rubrica_company_extract_card_data(form); break; case GTK_RESPONSE_CANCEL: break; default: break; } gtk_widget_hide(form->dialog); g_free(form); return (RCompanyCard*) card; } RCompanyCard* rubrica_company_extract_card_data(CompanyDialog* form) { RCompanyCard *card; GtkTextIter start, end; GtkTextBuffer *buffer; gchar* text; card = r_company_card_new(); rubrica_form_extract_data (RUBRICA_FORM(form->card), R_CARD(card)); rubrica_form_extract_data (RUBRICA_FORM(form->info), R_CARD(card)); rubrica_form_extract_data (RUBRICA_FORM(form->address), R_CARD(card)); rubrica_form_extract_data (RUBRICA_FORM(form->net), R_CARD(card)); rubrica_form_extract_data (RUBRICA_FORM(form->tel), R_CARD(card)); buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (form->notes)); gtk_text_buffer_get_bounds (buffer, &start, &end); text = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); g_object_set(card, "notes", text, NULL); return card; } void rubrica_company_display_card_data(CompanyDialog* form, RCard* card) { GtkTextIter start, end; GtkTextBuffer *buffer; gchar* text; g_return_if_fail(IS_R_CARD(card)); rubrica_form_display_data (RUBRICA_FORM(form->card), card); rubrica_form_display_data (RUBRICA_FORM(form->info), card); rubrica_form_display_data (RUBRICA_FORM(form->address), card); rubrica_form_display_data (RUBRICA_FORM(form->net), card); rubrica_form_display_data (RUBRICA_FORM(form->tel), card); g_object_get(card, "notes", &text, NULL); buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW (form->notes)); gtk_text_buffer_get_bounds (buffer, &start, &end); gtk_text_buffer_delete(buffer, &start, &end); gtk_text_buffer_get_iter_at_offset(buffer, &start, 0); gtk_text_buffer_insert (buffer, &start, text, -1); } rubrica-2.0/src/utils.h0000644000175000017500000000205110617433024013672 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "types.h" #ifndef _RUBRICA_UTILS_H #define _RUBRICA_UTILS_H void rubrica_utils_add_filters (GtkWidget* chooser); void rubrica_utils_enable_filter (GtkFileChooser* chooser, const gchar* filter_name); #endif rubrica-2.0/src/form_phone.h0000644000175000017500000000520110617433024014666 0ustar seb128seb128/* * Rubrica * file: form_phone.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_PHONE_H #define _RUBRICA_FORM_PHONE_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_PHONE_TYPE (rubrica_form_phone_get_type()) #define RUBRICA_FORM_PHONE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_PHONE_TYPE, \ RubricaFormPhone)) #define RUBRICA_FORM_PHONE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_PHONE_TYPE, \ RubricaFormPhoneClass)) #define IS_RUBRICA_FORM_PHONE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_PHONE_TYPE)) #define IS_RUBRICA_FORM_PHONE_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_PHONE_TYPE)) #define RUBRICA_FORM_PHONE_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_PHONE_TYPE, \ RubricaFormPhoneClass)) typedef struct _RubricaFormPhone RubricaFormPhone; typedef struct _RubricaFormPhoneClass RubricaFormPhoneClass; typedef struct _RubricaFormPhonePrivate RubricaFormPhonePrivate; struct _RubricaFormPhone { RubricaForm parent; RubricaFormPhonePrivate* private; }; struct _RubricaFormPhoneClass { RubricaFormClass parent; }; typedef enum { FORM_PHONE_PERSONAL, FORM_PHONE_COMPANY } FormPhoneType; GType rubrica_form_phone_get_type (void); RubricaFormPhone* rubrica_form_phone_new (RubricaApp* app, GladeXML *gui, FormPhoneType type); void rubrica_form_phone_free (RubricaFormPhone* form); #endif rubrica-2.0/src/themes.c0000644000175000017500000001554010617433024014021 0ustar seb128seb128/* * Rubrica * file: decoration.c * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "types.h" enum { PIXBUF, TEXT }; // enable/disable combo box item if executable is/isn't found static void enable_if_executable (GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data); void rubrica_themes_changed (GtkIconTheme* theme, gpointer data); void rubrica_themes_update_preview (GtkFileChooser *file_chooser, gpointer data); /* void rubrica_themes_changed(GtkIconTheme* theme, gpointer data) { GSList *l = icons; theme = gtk_icon_theme_get_default(); for (; l; l = l->next) { IconInfo *info = (IconInfo *) l->data; gtk_icon_theme_load_icon (theme, info->name, info->size, 0, NULL); } } GdkPixbuf* rubrica_themes_load_icon(const gchar* icon_name, gint icon_size) { GdkPixbuf* pixbuf; GSList* l = icons; gboolean found = FALSE; pixbuf = gtk_icon_theme_load_icon (theme, icon_name, icon_size, 0, NULL); g_signal_connect(theme, "changed", G_CALLBACK(rubrica_themes_changed), pixbuf); for (; l; l = l->next) { IconInfo *info = (IconInfo *) l->data; if (g_ascii_strcasecmp(info->name, icon_name) == 0) { found = TRUE; break; } } if (!found) { IconInfo* info; info = g_malloc0(sizeof(IconInfo)); info->name = g_strdup(icon_name); info->size = icon_size; icons = g_slist_append(icons, info); } return pixbuf; } */ void rubrica_themes_add_directory(const gchar *directory) { GtkIconTheme* theme; theme = gtk_icon_theme_get_default(); gtk_icon_theme_append_search_path(theme, directory); } /* enable/disable combo box item if executable is/isn't found */ static void enable_if_executable (GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data) { GtkTreePath *path; RubricaThemedItem* array = (RubricaThemedItem*) data; gint index; path = gtk_tree_model_get_path (tree_model, iter); index = gtk_tree_path_get_indices(path)[0]; gtk_tree_path_free (path); if (array[index].exec) { gchar* executable; executable = g_find_program_in_path(array[index].exec); if(executable) g_object_set (cell, "sensitive", TRUE, NULL); else g_object_set (cell, "sensitive", FALSE, NULL); } else g_object_set (cell, "sensitive", TRUE, NULL); } void theme_changed (GtkIconTheme *icon_theme, gpointer data) { GtkIconTheme* theme; GdkPixbuf* pixbuf; gchar* icon = (gchar*) data; theme = gtk_icon_theme_get_default(); pixbuf = gtk_icon_theme_load_icon (theme, icon, 24, 0, NULL); } void rubrica_themes_create_themed_list(GtkComboBox* combo, RubricaThemedItem* array) { gint i = 0; GtkTreeModel *model; GtkTreeIter iter; GtkIconTheme* theme; RubricaThemedItem* list = array; GtkCellRenderer *cell; theme = gtk_icon_theme_get_default(); model = (GtkTreeModel*) gtk_list_store_new(2, GDK_TYPE_PIXBUF, G_TYPE_STRING); gtk_combo_box_set_model(GTK_COMBO_BOX(combo), model); cell = gtk_cell_renderer_pixbuf_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), cell, FALSE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), cell, "pixbuf", PIXBUF, NULL); gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (combo), cell, enable_if_executable, array, NULL); cell = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), cell, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), cell, "text", TEXT, NULL); gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (combo), cell, enable_if_executable, array, NULL); for (; list[i].label; i++) { GdkPixbuf* pixbuf; pixbuf = gtk_icon_theme_load_icon (theme, list[i].icon, 24, 0, NULL); gtk_list_store_append(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, PIXBUF, pixbuf, TEXT, _(list[i].label), -1); g_signal_connect(G_OBJECT(theme), "changed", G_CALLBACK(theme_changed), list[i].icon); } g_object_unref(model); } gchar* rubrica_themes_load_pixmap(GtkWidget* button, gpointer data) { GtkWidget *dialog; GtkImage *preview; GtkImage *image = data; gchar* uri = NULL; preview = (GtkImage*) gtk_image_new(); dialog = gtk_file_chooser_dialog_new ("Open File", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); g_object_set_data(G_OBJECT(dialog), "image", image); gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (dialog), (GtkWidget*) preview); g_signal_connect (GTK_FILE_CHOOSER (dialog), "update-preview", G_CALLBACK (rubrica_themes_update_preview), preview); if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) { uri = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); g_object_set_data(G_OBJECT(button), "uri", uri); } gtk_widget_destroy (dialog); return uri; } void rubrica_themes_update_preview (GtkFileChooser *file_chooser, gpointer data) { GtkWidget *preview; GtkImage *image; char *filename; GdkPixbuf *pixbuf; gboolean have_preview; preview = GTK_WIDGET (data); image = g_object_get_data(G_OBJECT(file_chooser), "image"); filename = gtk_file_chooser_get_preview_filename (file_chooser); if (filename) { pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 24, 24, NULL); gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf); if (pixbuf) gdk_pixbuf_unref (pixbuf); pixbuf = gdk_pixbuf_new_from_file_at_size (filename, 48, 48, NULL); have_preview = (pixbuf != NULL); g_free (filename); gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf); if (pixbuf) gdk_pixbuf_unref (pixbuf); gtk_file_chooser_set_preview_widget_active (file_chooser, have_preview); } } rubrica-2.0/src/groups_view.h0000644000175000017500000000546210617433024015114 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "view.h" #ifndef _GROUPS_VIEW_H__ #define _GROUPS_VIEW_H__ G_BEGIN_DECLS #define RUBRICA_GROUPS_VIEW_TYPE (rubrica_groups_view_get_type()) #define RUBRICA_GROUPS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_GROUPS_VIEW_TYPE, \ RubricaGroupsView)) #define RUBRICA_GROUPS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_GROUPS_VIEW_TYPE, \ RubricaGroupsViewClass)) #define IS_RUBRICA_GROUPS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_GROUPS_VIEW_TYPE)) #define IS_RUBRICA_GROUPS_VIEW_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_GROUPS_VIEW_TYPE)) #define RUBRICA_GROUPS_VIEW_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_GROUPS_VIEW_TYPE, \ RubricaGroupsViewClass) typedef struct _RubricaGroupsView RubricaGroupsView; typedef struct _RubricaGroupsViewClass RubricaGroupsViewClass; typedef struct _RubricaGroupsViewPrivate RubricaGroupsViewPrivate; typedef enum { APP_GROUPS, FORM_GROUPS } RubricaGroupViewType; struct _RubricaGroupsView { RubricaView parent; RubricaGroupsViewPrivate* priv; }; struct _RubricaGroupsViewClass { RubricaViewClass parent_class; }; GType rubrica_groups_view_get_type (void); GtkWidget* rubrica_groups_view_new (RGroupBox *box, RubricaGroupViewType type); void rubrica_groups_view_add_group (RubricaGroupsView* view, RGroup* group); void rubrica_groups_view_del_group (RubricaGroupsView* view, RGroup* group); RGroupBox* rubrica_groups_view_get_group_box (RubricaGroupsView* view); G_END_DECLS #endif rubrica-2.0/src/view.h0000644000175000017500000000501310617433024013505 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _VIEW_H__ #define _VIEW_H__ #include G_BEGIN_DECLS #define RUBRICA_VIEW_TYPE (rubrica_view_get_type()) #define RUBRICA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_VIEW_TYPE, \ RubricaView)) #define RUBRICA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_VIEW_TYPE, \ RubricaViewClass)) #define IS_RUBRICA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_VIEW_TYPE)) #define IS_RUBRICA_VIEW_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_VIEW_TYPE)) #define RUBRICA_VIEW_GET_CLASS(klass) (G_TYPE_INSTANCE_GET_CLASS(klass), \ RUBRICA_VIEW_TYPE, RubricaViewClass) typedef struct _RubricaView RubricaView; typedef struct _RubricaViewClass RubricaViewClass; typedef struct _RubricaViewPrivate RubricaViewPrivate; struct _RubricaView { GtkVBox parent; RubricaViewPrivate* priv; }; struct _RubricaViewClass { GtkVBoxClass parent_class; /* signals */ void (*changed) (RubricaView*); }; GType rubrica_view_get_type (void); GtkWidget* rubrica_view_new (void); void rubrica_view_set_model (RubricaView* view, GtkTreeModel* model); GtkWidget* rubrica_view_get_tree (RubricaView* view); GtkTreeSelection* rubrica_view_get_selection (RubricaView* view); GtkTreeModel* rubrica_view_get_model (RubricaView* view); G_END_DECLS #endif rubrica-2.0/src/company_gui.h0000644000175000017500000000335510617433024015054 0ustar seb128seb128/* * Rubrica * file: company-form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_COMPANY_FORM_H #define _RUBRICA_COMPANY_FORM_H #include #include "libral.h" #include "app.h" #include "form.h" #include "form_card.h" #include "form_info.h" #include "form_address.h" #include "form_contact.h" #include "form_net.h" #include "form_phone.h" typedef struct _CompanyForm { RubricaApp *app; GtkWidget *dialog; RubricaFormCard *card; RubricaFormInfo *info; RubricaFormAddress *address; RubricaFormNet *net; RubricaFormPhone *tel; GtkWidget *notes; } CompanyDialog; CompanyDialog* rubrica_company_dialog_new (RubricaApp* app); void rubrica_company_run_add_dialog (CompanyDialog* form); RCompanyCard* rubrica_company_run_modify_dialog (CompanyDialog* form); RCompanyCard* rubrica_company_extract_card_data (CompanyDialog* form); void rubrica_company_display_card_data (CompanyDialog* form, RCard* card); #endif rubrica-2.0/src/popmenu.h0000644000175000017500000000212510617433024014217 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "app.h" #ifndef _RUBRICA_POPUP #define _RUBRICA_POPUP GtkMenu* rubrica_menu_do_card_popup(RubricaApp* app, GtkTreeView* tree, GdkEvent *event); GtkMenu* rubrica_menu_do_trash_popup(RubricaApp* app, GtkTreeView* tree, GdkEvent *event); #endif rubrica-2.0/src/form_address.h0000644000175000017500000000512210617433024015204 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_ADDRESS_H #define _RUBRICA_FORM_ADDRESS_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_ADDRESS_TYPE (rubrica_form_address_get_type()) #define RUBRICA_FORM_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ RUBRICA_FORM_ADDRESS_TYPE, \ RubricaFormAddress)) #define RUBRICA_FORM_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_ADDRESS_TYPE, \ RubricaFormAddressClass)) #define IS_RUBRICA_FORM_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\ RUBRICA_FORM_ADDRESS_TYPE)) #define IS_RUBRICA_FORM_ADDRESS_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_ADDRESS_TYPE)) #define RUBRICA_FORM_ADDRESS_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_ADDRESS_TYPE, \ RubricaFormAddressClass)) typedef struct _RubricaFormAddress RubricaFormAddress; typedef struct _RubricaFormAddressClass RubricaFormAddressClass; typedef struct _RubricaFormAddressPrivate RubricaFormAddressPrivate; struct _RubricaFormAddress { RubricaForm parent; RubricaFormAddressPrivate* priv; }; struct _RubricaFormAddressClass { RubricaFormClass parent; }; GType rubrica_form_address_get_type (void); RubricaFormAddress* rubrica_form_address_new (RubricaApp* app, GladeXML *gui); void rubrica_form_address_free (RubricaFormAddress* form); #endif rubrica-2.0/src/search_view.h0000644000175000017500000000553410617433024015042 0ustar seb128seb128/* * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SEARCH_VIEW_H__ #define _SEARCH_VIEW_H__ #include #include #include "libral.h" #include "view.h" G_BEGIN_DECLS #define RUBRICA_SEARCH_VIEW_TYPE (rubrica_search_view_get_type()) #define RUBRICA_SEARCH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ RUBRICA_SEARCH_VIEW_TYPE, \ RubricaSearchView)) #define RUBRICA_SEARCH_VIEW_CLASS(kls) (G_TYPE_CHECK_CLASS_CAST((kls), \ RUBRICA_SEARCH_VIEW_TYPE, \ RubricaSearchViewClass)) #define IS_RUBRICA_SEARCH_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\ RUBRICA_SEARCH_VIEW_TYPE)) #define IS_RUBRICA_SEARCH_VIEW_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_SEARCH_VIEW_TYPE)) #define RUBRICA_SEARCH_VIEW_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS(kls), \ RUBRICA_SEARCH_VIEW_TYPE, \ RubricaSearchViewClass) typedef enum { SEARCH_ID_COLUMN = 0, SEARCH_CARD_COLUMN, SEARCH_BOOK_COLUMN, LAST_SEARCH_COLUMN } RubricaSearchColumnType; typedef struct _RubricaSearchView RubricaSearchView; typedef struct _RubricaSearchViewClass RubricaSearchViewClass; typedef struct _RubricaSearchViewPrivate RubricaSearchViewPrivate; struct _RubricaSearchView { RubricaView parent; RubricaSearchViewPrivate* priv; }; struct _RubricaSearchViewClass { RubricaViewClass parent_class; }; GType rubrica_search_view_get_type (void); GtkWidget* rubrica_search_view_new (void); void rubrica_search_view_free (RubricaSearchView* view); void rubrica_search_view_set_addressbook (RubricaSearchView* view, RAbook *book); void rubrica_search_view_display_results (RubricaSearchView* view, GList* results); G_END_DECLS #endif rubrica-2.0/src/form.h0000644000175000017500000000474410617433024013510 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "libral.h" #ifndef _RUBRICA_FORM_H #define _RUBRICA_FORM_H #define RUBRICA_FORM_TYPE (rubrica_form_get_type()) #define RUBRICA_FORM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_TYPE, RubricaForm)) #define RUBRICA_FORM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_TYPE, RubricaFormClass)) #define IS_RUBRICA_FORM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_TYPE)) #define IS_RUBRICA_FORM_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_TYPE)) #define RUBRICA_FORM_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_TYPE, RubricaFormClass)) typedef struct _RubricaForm RubricaForm; typedef struct _RubricaFormClass RubricaFormClass; typedef struct _RubricaFormPrivate RubricaFormPrivate; struct _RubricaForm { GObject parent; RubricaFormPrivate* private; }; struct _RubricaFormClass { GObjectClass parent; void (*extract_data) (RubricaForm* form, RCard* card); void (*display_data) (RubricaForm* form, RCard* card); void (*clean_form) (RubricaForm* form); }; GType rubrica_form_get_type (void); RubricaForm* rubrica_form_new (void); void rubrica_form_free (RubricaForm* form); void rubrica_form_clean_form (RubricaForm* form); void rubrica_form_extract_data (RubricaForm* form, RCard* card); void rubrica_form_display_data (RubricaForm* form, RCard* card); #endif rubrica-2.0/src/form.c0000644000175000017500000001006710617433024013476 0ustar seb128seb128/* * RAL -- Rubrica Addressbook Library * file: abook.c * * Copyright (C) Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include "form.h" struct _RubricaFormPrivate { gboolean dispose_has_run; }; static void rubrica_form_class_init (RubricaFormClass* klass); static void rubrica_form_init (RubricaForm* obj); static void rubrica_form_dispose (RubricaForm* obj); static void rubrica_form_finalize (RubricaForm* obj); GType rubrica_form_get_type() { static GType rubrica_form_type = 0; if (!rubrica_form_type) { static const GTypeInfo rubrica_form_info = { sizeof(RubricaFormClass), NULL, NULL, (GClassInitFunc) rubrica_form_class_init, NULL, NULL, sizeof(RubricaForm), 0, (GInstanceInitFunc) rubrica_form_init }; rubrica_form_type = g_type_register_static (G_TYPE_OBJECT, "RubricaForm", &rubrica_form_info, 0); } return rubrica_form_type; } static void rubrica_form_class_init(RubricaFormClass* klass) { GObjectClass *class; class = G_OBJECT_CLASS (klass); class->dispose = (GObjectFinalizeFunc) rubrica_form_dispose; class->finalize = (GObjectFinalizeFunc) rubrica_form_finalize; klass->extract_data = NULL; klass->display_data = NULL; klass->clean_form = NULL; } static void rubrica_form_init(RubricaForm* self) { self->private = g_new(RubricaFormPrivate, 1); self->private->dispose_has_run = FALSE; } static void rubrica_form_dispose (RubricaForm* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); if (self->private->dispose_has_run) return; self->private->dispose_has_run = TRUE; } static void rubrica_form_finalize (RubricaForm* self) { g_return_if_fail(IS_RUBRICA_FORM(self)); g_free(self->private); self->private = NULL; } /* ***************************** Public ***************************** */ /** * rubrica_form_new * * create a #RubricaForm * * Returns: a new #RubricaForm */ RubricaForm* rubrica_form_new(void) { RubricaForm* form; form = g_object_new(rubrica_form_get_type(), NULL); return form; } /** * rubrica_form_free * @form: a #RubricaForm * * free the #RubricaForm */ void rubrica_form_free(RubricaForm* form) { g_return_if_fail(IS_RUBRICA_FORM(form)); g_object_unref(form); } /** * rubrica_form_clean_form * @form: a #RubricaForm * * clean the form */ void rubrica_form_clean_form(RubricaForm *form) { RubricaFormClass* class; g_return_if_fail(IS_RUBRICA_FORM(form)); class = RUBRICA_FORM_GET_CLASS(form); if (class->clean_form) class->clean_form(form); } /** * rubrica_form_extract_data * @form: a #RubricaForm * @card: a #RubricaCard * * extract data from form and fill the card */ void rubrica_form_extract_data (RubricaForm* form, RCard* card) { RubricaFormClass* class; g_return_if_fail(IS_RUBRICA_FORM(form)); class = RUBRICA_FORM_GET_CLASS(form); if (class->extract_data) class->extract_data(form, card); } /** * rubrica_form_display_data * @form: a #RubricaForm * @card: a #RubricaCard * * dispaly the cars's data into the form */ void rubrica_form_display_data (RubricaForm* form, RCard* card) { RubricaFormClass* class; g_return_if_fail(IS_RUBRICA_FORM(form)); class = RUBRICA_FORM_GET_CLASS(form); if (class->display_data) class->display_data(form, card); } rubrica-2.0/src/tab.c0000644000175000017500000001645710637705375013327 0ustar seb128seb128/* * Rubrica * file: * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "tab.h" enum { PROP_0, TAB_LABEL, TAB_BROTHER }; struct _RubricaTabPrivate { GtkWidget* label; GtkWidget* button; GtkWidget* brother; gboolean dispose_has_run; }; #define RUBRICA_TAB_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ RUBRICA_TAB_TYPE, RubricaTabPrivate)) static GObjectClass *parent_class = NULL; static void rubrica_tab_class_init (RubricaTabClass* klass); static void rubrica_tab_init (RubricaTab* obj); static void rubrica_tab_dispose (RubricaTab* obj); static void rubrica_tab_finalize (RubricaTab* obj); static void rubrica_tab_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); static void rubrica_tab_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec); GType rubrica_tab_get_type() { static GType rubrica_tab_type = 0; if (!rubrica_tab_type) { static const GTypeInfo rubrica_tab_info = { sizeof(RubricaTabClass), NULL, NULL, (GClassInitFunc) rubrica_tab_class_init, NULL, NULL, sizeof(RubricaTab), 0, (GInstanceInitFunc) rubrica_tab_init }; rubrica_tab_type = g_type_register_static (GTK_TYPE_HBOX, "RubricaTab", &rubrica_tab_info, 0); } return rubrica_tab_type; } static void rubrica_tab_class_init(RubricaTabClass* klass) { GObjectClass *object_class; GParamSpec* pspec; parent_class = g_type_class_peek_parent (klass); object_class = G_OBJECT_CLASS (klass); object_class->dispose = (GObjectFinalizeFunc) rubrica_tab_dispose; object_class->finalize = (GObjectFinalizeFunc) rubrica_tab_finalize; object_class->set_property = (gpointer) rubrica_tab_set_property; object_class->get_property = (gpointer) rubrica_tab_get_property; g_type_class_add_private (klass, sizeof(RubricaTabPrivate)); /* class property */ /** * RubricaTab:label * * the string that will be displayed */ pspec = g_param_spec_string("tab-label", "tab label", "the label that will be displayed on the tab", NULL, G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_object_class_install_property(object_class, TAB_LABEL, pspec); /* class property */ /** * RubricaTab:brother * * the object that will be detroyed on button click */ pspec = g_param_spec_object("tab-brother", "tab brother", "the object that will be destroyed " "on button click", GTK_TYPE_WIDGET, G_PARAM_READWRITE); g_object_class_install_property(object_class, TAB_BROTHER, pspec); } static void rubrica_tab_init(RubricaTab* self) { GtkWidget* image; gtk_box_set_homogeneous(GTK_BOX(self), FALSE); gtk_box_set_spacing(GTK_BOX(self), 0); self->priv = RUBRICA_TAB_GET_PRIVATE(self); self->priv->label = gtk_label_new(NULL); self->priv->button = gtk_button_new(); self->priv->brother = NULL; image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); gtk_button_set_image(GTK_BUTTON(self->priv->button), image); gtk_button_set_relief(GTK_BUTTON(self->priv->button), GTK_RELIEF_NONE); gtk_box_pack_start(GTK_BOX(self), self->priv->label, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(self), self->priv->button, FALSE, FALSE, 0); gtk_widget_show(GTK_WIDGET(self)); gtk_widget_show(self->priv->label); gtk_widget_show(self->priv->button); self->priv->dispose_has_run = FALSE; } static void rubrica_tab_dispose (RubricaTab* self) { g_return_if_fail(IS_RUBRICA_TAB(self)); if (self->priv->dispose_has_run) return; self->priv->dispose_has_run = TRUE; } static void rubrica_tab_finalize (RubricaTab* self) { g_return_if_fail(IS_RUBRICA_TAB(self)); } static void rubrica_tab_set_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaTab* self = (RubricaTab*) obj; RubricaTabPrivate* priv = RUBRICA_TAB_GET_PRIVATE(self); switch (property_id) { case TAB_LABEL: gtk_label_set_markup(GTK_LABEL(priv->label), g_value_get_string(value)); break; case TAB_BROTHER: priv->brother = g_value_get_object(value); break; default: break; } } static void rubrica_tab_get_property (GObject* obj, guint property_id, GValue* value, GParamSpec* spec) { RubricaTab* self = (RubricaTab*) obj; RubricaTabPrivate* priv = RUBRICA_TAB_GET_PRIVATE(self); switch (property_id) { case TAB_LABEL: g_value_set_string(value, gtk_label_get_text(GTK_LABEL(priv->label))); break; case TAB_BROTHER: g_value_set_object(value, priv->brother); break; default: break; } } /* ***************************** Public ***************************** */ /** * rubrica_tab_new * * create a #RubricaTab * * Returns: a new #RubricaTab */ GtkWidget* rubrica_tab_new(GtkWidget* brother) { g_return_val_if_fail(brother != NULL, NULL); GtkWidget* tab; tab = g_object_new(rubrica_tab_get_type(), "tab-brother", brother, NULL); return tab; } /** * rubrica_tab_new_with_text * * create a #RubricaTab and initialize tab's label to the given string * * Returns: a new #RubricaTab */ GtkWidget* rubrica_tab_new_with_label (GtkWidget* brother, gchar* label) { g_return_val_if_fail(brother != NULL, NULL); GtkWidget* tab; tab = g_object_new(rubrica_tab_get_type(), "tab-brother", brother, "tab-label", label, NULL); return tab; } /** * rubrica_tab_free * @tab: a #RubricaTab * * free the #RubricaTab */ void rubrica_tab_free(RubricaTab* tab) { g_return_if_fail(IS_RUBRICA_TAB(tab)); g_object_unref(tab); } /** * rubrica_tab_get_label * * get the tab's label object * * return a #GtkWidget */ GtkWidget* rubrica_tab_get_label (RubricaTab* tab) { g_return_val_if_fail(IS_RUBRICA_TAB(tab), NULL); return tab->priv->label; } /** * rubrica_tab_get_button * * get the tab's button object * * return a #GtkWidget */ GtkWidget* rubrica_tab_get_button (RubricaTab* tab) { g_return_val_if_fail(IS_RUBRICA_TAB(tab), NULL); return tab->priv->button; } void rubrica_tab_set_brother(RubricaTab* tab, GtkWidget* brother) { g_return_if_fail(IS_RUBRICA_TAB(tab)); g_return_if_fail(brother != NULL); g_object_set(tab, "tab-brother", brother, NULL); } GtkWidget* rubrica_tab_get_brother(RubricaTab* tab) { GtkWidget* brother = NULL; g_return_val_if_fail(IS_RUBRICA_TAB(tab), NULL); g_object_get(tab, "tab-brother", &brother, NULL); return brother; } rubrica-2.0/src/form_info.h0000644000175000017500000000475010617433024014520 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_INFO_H #define _RUBRICA_FORM_INFO_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_INFO_TYPE (rubrica_form_info_get_type()) #define RUBRICA_FORM_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_INFO_TYPE, \ RubricaFormInfo)) #define RUBRICA_FORM_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_INFO_TYPE, \ RubricaFormInfoClass)) #define IS_RUBRICA_FORM_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_INFO_TYPE)) #define IS_RUBRICA_FORM_INFO_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_INFO_TYPE)) #define RUBRICA_FORM_INFO_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_INFO_TYPE, \ RubricaFormInfoClass)) typedef struct _RubricaFormInfo RubricaFormInfo; typedef struct _RubricaFormInfoClass RubricaFormInfoClass; typedef struct _RubricaFormInfoPrivate RubricaFormInfoPrivate; struct _RubricaFormInfo { RubricaForm parent; RubricaFormInfoPrivate* priv; }; struct _RubricaFormInfoClass { RubricaFormClass parent; }; GType rubrica_form_info_get_type (void); RubricaFormInfo* rubrica_form_info_new (RubricaApp* app, GladeXML *gui); void rubrica_form_info_free (RubricaFormInfo* form); #endif rubrica-2.0/src/form_work.h0000644000175000017500000000476210617433024014552 0ustar seb128seb128/* * Rubrica * file: form.h * * * Copyright (C) 2000-2005 Nicola Fragale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RUBRICA_FORM_WORK_H #define _RUBRICA_FORM_WORK_H #include #include #include #include "app.h" #include "form.h" #define RUBRICA_FORM_WORK_TYPE (rubrica_form_work_get_type()) #define RUBRICA_FORM_WORK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ RUBRICA_FORM_WORK_TYPE, \ RubricaFormWork)) #define RUBRICA_FORM_WORK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ RUBRICA_FORM_WORK_TYPE, \ RubricaFormWorkClass)) #define IS_RUBRICA_FORM_WORK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ RUBRICA_FORM_WORK_TYPE)) #define IS_RUBRICA_FORM_WORK_CLASS(kls) (G_TYPE_CHECK_CLASS_TYPE((kls), \ RUBRICA_FORM_WORK_TYPE)) #define RUBRICA_FORM_WORK_GET_CLASS(kls) (G_TYPE_INSTANCE_GET_CLASS((kls), \ RUBRICA_FORM_WORK_TYPE, \ RubricaFormWorkClass)) typedef struct _RubricaFormWork RubricaFormWork; typedef struct _RubricaFormWorkClass RubricaFormWorkClass; typedef struct _RubricaFormWorkPrivate RubricaFormWorkPrivate; struct _RubricaFormWork { RubricaForm parent; RubricaFormWorkPrivate* priv; }; struct _RubricaFormWorkClass { RubricaFormClass parent; }; GType rubrica_form_work_get_type (void); RubricaFormWork* rubrica_form_work_new (RubricaApp* app, GladeXML *gui); void rubrica_form_work_free (RubricaFormWork* form); #endif rubrica-2.0/TODO0000644000175000017500000000000010554703327012260 0ustar seb128seb128rubrica-2.0/rubrica2.keys.in0000644000175000017500000000021110554703327014607 0ustar seb128seb128application/x-rubrica _description=Gnome Addressbook manager default_action=application icon_filename=rubrica.png open=rubrica %f rubrica-2.0/pixmaps/0000755000175000017500000000000010637712740013264 5ustar seb128seb128rubrica-2.0/pixmaps/Makefile.am0000644000175000017500000000023210554703326015313 0ustar seb128seb128 SUBDIRS = 16x16 22x22 24x24 48x48 scalable icondir = $(datadir)/${PACKAGE}/interface icon_DATA = \ logo.png EXTRA_DIST = \ $(icon_DATA) rubrica-2.0/pixmaps/scalable/0000755000175000017500000000000010637712740015032 5ustar seb128seb128rubrica-2.0/pixmaps/scalable/Makefile.am0000644000175000017500000000071010554703326017062 0ustar seb128seb128icondir = $(datadir)/icons/hicolor/scalable/apps icon_DATA = \ query.svg \ card_photo.svg gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi EXTRA_DIST = \ $(icon_DATA) rubrica-2.0/pixmaps/scalable/query.svg0000644000175000017500000003171310554703326016723 0ustar seb128seb128 image/svg+xml Help Browser 2005-11-06 Tuomas Kuosmanen help browser documentation docs man info Jakub Steiner, Andreas Nilsson http://tigert.com rubrica-2.0/pixmaps/scalable/Makefile.in0000644000175000017500000003235610637712671017113 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmaps/scalable DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(icondir)" iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ icondir = $(datadir)/icons/hicolor/scalable/apps icon_DATA = \ query.svg \ card_photo.svg gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor EXTRA_DIST = \ $(icon_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmaps/scalable/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/scalable/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-iconDATA .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-iconDATA install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-iconDATA install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/pixmaps/scalable/card_photo.svg0000644000175000017500000004620410554703326017701 0ustar seb128seb128 image/svg+xml People Jakub Steiner http://jimmac.musichall.cz users people rubrica-2.0/pixmaps/logo.png0000644000175000017500000004262410554703326014740 0ustar seb128seb128‰PNG  IHDR€€Ã>aËbKGDÿÿÿ ½§“ pHYsHHFÉk>E4IDATxÚí½yŒeYšØõ;Ë]Þû–ûR™Õ•UµuVoÓíîéÁöØc ƒ-c³„A°YKÈB²„…m@È6#Aö 3ÌôôLOMwW¯YY][vVåž‘±G¼õÞ{Îásî}÷½ŒˆÌ®ž™6V|Ò‹÷âî÷|ßùöï;pGpGpGpGpGpGpGpGpGpGpGpGpGpÿt‚øqN¾zåò,° 4=q=wÀÇ„o~ †@è¼qíºýIÌï\½ryx¸¸u€u`H%`h…1íkÀ#àpøàk×w~Ügú‘ àê•Ë/øð\x õî]Å@^txøà¼qíúêÏ1\Îà Pþ¸ƒñ#BŽGÚ»o\»þî!ã%?üYàsxÄþnÀ*ð&ðà—߸vý;å"OMW¯\~ øOŸç£!ü£¾äõƵëµöŸþ}àâ¹ÏO à;Àÿüí7®]7µgýà¿>ùûð_þð¿¿qíúÞÓžôTpõÊå¿ü ñûð"ûÁßþ5à_þëŸàs< ¾ü¹7®]¿sõÊå¿ üg?gø!~ÒüOsð àê•Ëø7/2 oãåç?éð&ð;À¿ñ~ޝák×ß9ì C àê•Ëÿý?/r¶ýk×ñ ”åW¯\þKÀô“~ƒ#ø± þ…“+Ëî¯>úÖ~ìKW¯\þ"ðwø1ÍÄ#8¬µk1Îs!BàœÃ9‡µþÛá÷;B|dtüÑ“+Ë·î¯>úÞäŽÇ®xõÊå)à»À…']µ( Æ RH5Ε&¿wÈ5Ê—-ò )%ívûGz3çÖ¹‰¿»¤ëÆ8çR"D„8çèv»H©˜žj“¦ RJ¬±ììíQJ)ZÍ&RÉ0˜àäyÎ`8ÄodDQ„R?’1–_~ãÚõßš©q¸zåò_þ½'½HQ[YâÔ‰c´[M¦§§(Š)Ýn,ËPRâœ#/Š@Ñk,…1žHœ£ÑL˜™žæ™ç_d{·Ãßÿ{¿àì)WV!d5{\¸±7œ@⑸‰í#$8ü,•R!¥¤(ròÂ<5•ˆû¹ŸÿçxåÒ9–çæ™!I†Ãœo}÷{)ˆ•fyy‘î`8LaȲ!Æ:îÝ}@o8äÎÝûܸù![Û8 ‰ã§%‚€WÞ¸v}{_¸zåò«À78D7ð3ÖòéW_äS¯½ÂÌì:I5úË™¢À‹”‚<"„¬j­¥(2ò¼@ ÉÒâ<§NŸâÙW¿ÀÆêþøÏýQºýÁSQw¯ßçË_üñ?ü‹üðo²·³ËÖîÃlˆ³¨f©uÎ{Š„ ( ¬µ(­±Ö"­u< Ö,€™©)–Nžæ…O\áïÿÝÿ™ÿîoý]š'[¤Î9ƒ>é?ùËüéùÏA¾Gg} à,ýÁ€Í­m¦gÚÃ¥;»¤Ò Ù0#Ib½>:Vìmï°ùh›·nñ_ûnÞºBé§âík×ÿÝò=±ó¿á Nž,Ïùô+WøÂ>Ãìâ :ŠB ´öè²Ê˜¢ú-¤ ƒ¤D˜©išÒl6™;v€îÖ#–çxÿûOEÖÚSÓœyöãHçèv:t{]úÃ!Jˆ±‰-›Økm@°ß"ň­gƒ(Í’V«ÅÌÂ"K§Ÿavº]íäyΙ3gøÿÌŸöB&)ÒA¿ßljˆÖÔ JG«J“6y^ „ NBJSBJftÂÔÌ~ù2/^~›o~çûž‹ ?ü }õÊå”Cd¿µžý«þÏpîÒe2ëu©ZÅ8©)œ#pE޵Žl8dÐëÑë÷)Šœ"Ïèìuút»=Œ5A>ƒ5†ÓgÎrå…g‰#ÍînÇÀÑïgl:5Ãÿô×ÿýþ€V«Iž(%Ñ‘Æ9GÅÕL–JE^ó—kBHšq#¥¢Ñl€uàÊYè ç@Jœ)ˆS,·#f¦§Ùé<äIÁQ%;»{|øþ{¼÷k¿É`0ðæ«Ö•ž"ƒ¢¬´bvf†$M½",$iš²°°H£Õ¢Ñh273‚¼×eÐí ÔëëX+i´§øäË/ñÝ7ßzøäÕ+—§5>¦æ`p¬,/ðÝ7ßæÆÝ‡äùÝíŒ5h¥+QàœÃä&°/‡5•6_¾`nMõâJ)ò¼àíëoòðÎÇyöìiº½þS ¾œYŠõ{·èå–Þ0#Ë8kJâœ'^çÎÚ0üŒ*òbL~EÖuƒHTRú2L š~¿OÚhð™—¯Œˆã‰Ï)ÙÙëòÖõk¼ÿá} ëÂFé06ýÖºJs×ÊsÅF£Ò |Eaè3¬½ë-¦ ͱòÄ Çc*Î*ÁBRÒjµÉ†¿úë¿ÎÏþÁ?ÄÙ³g9sêòÉÖÔ¬NFJkÒFÅ8g‘ÁœÂ‚”ãóëIÈbQ±vë Ýjqòäiš­V5 Î;d¥$LKWÍ!yžqûÎ]V·výËŠlñ”ÛÆFà1$#évº,,.1µtlÌ{è¯*½½®F—I„ ØÚöÖ“|\i¬¿WI å3NׯÆλ²;Ý_ýÚ×ø—Nžäô™³(]Z.¾gCãmÂAI‰Vš(Ž‘\> &HäÈ‘òä—¾€:â"‰àü™ÓÄQä-Á¬t8¬±Þîun\6Vç[l^0 H’„Ãçsîb¿}Sî s= C¿]Ht£jÈôñ;çCG¢´,GÀYƒÁVzTý•Æ_o’`_×s´[mv¶w¹þÖ[DÍ)/^wW·4Oü(­‚— ”м8AUò˜õuG¨3°Örù…çX˜CHE’&H¥GŠXÄX\¼”µ‡p§NbnnŽ;wîÒëö‰“$xÓj(žV ìF@^äYÎììW>ñSÓÓÈš4FC³ðº"齟 —_xžÂ­­³±¹Iœ$Å+B ´"O·AÅ<ˆH‰^Ä~xë6+§Î1RöÎé¡à‘®ƒŒguJãL> ‘>òGî×ú€NµÛ¼ôâefgg0…ųQiÄqIωJ¥Óé 0¥05=BðÌ… l¬­ñÖÛï1È2’49û=u?0„^¿G»Ùàù]`ai ¥¢ÊÒ)‘¤” nƒ¤P–Jb£ÑäìÙs8kyæüyÞyï}>¸u‹8аÖ=_éz(¹Èä{ìÏ $B*vv:´æ‡H)1æ0ü£J!qðR¢„Bɉ²dr"¿|ø‘™7¹Ï‘&1_üÂOÑžš¢0%ÀXƒ±Þ½éŒgÕJŽó›‘áe©Öš$މâ˜Ó§O³¼´Ä?þÕ_£0Q°íËÛËÉ´‘ƒÌÄò€,ÏøØ…g¸pþ:I0ÎáŒçŒ‘ŽÆ´y¯Ñ;Œ±8ç?JúHžµ†¢0h!µwî¤&7?øÀ?›½—«q„1BÜÀURÌ=Æá¥RäÖ²×íùc§öüP#¼#HDøØŠ—÷i³¥ÓLV‘3(mù& ch·Û,­,1èö˜à¢c¬µž"å}ÒûÀƒ&l­eoo—,÷æÙâÂ{.ZŠ'ªyûA©®EÁù³gùÜç>Kžç $…)*Qæœ ã Þ¤ŸF#ç(L@UJª fŸeCDš9ܘ)XŸáuÑPÝ»:¾.‚‚G1Jét{ ·Ž!¿v¨c ~ùW•?øåŸæÄ±„Öç3`Œ1Þ‘â@i]E¥ AGˆ8–f“%Ž#ò,çý÷Þg8’DOãL~ b‚¤Õ¢i@‚5à,¶$ÐVMM©¼SLxÍ$ú2”ôQ>ãøðÖ"¥*‡Y¥ô W3 '‚ò¹*ŸEઉ” “n¯rF=M¥ŸîK©PQR¥Fù 䤉 ÇìÛÉY_nâXÓíõøÇ¿üÿðÊ+¯rñÒ%¦çPâ0Ä…·µƒ5†<òðÞ¶·¶ØXßàÆÍ›¤éX72A¬%DQÄ»wùµ_ù>~å,­#jø*49’µ3ëJZùò¡Ò8v7·ÙØÚäÝë?àÛ7‰âÄsyV-þ?É &EB™­ä¬ ¯àQŒŽ:«kcN· ;”‡Jƒ_¿|'!•ß66vOB~È*]»Ò(çøÆ×¿É÷¾w¹¹9¦fgIÒ”f³EÇÍyW¯Û%0¦`kcƒn§ƒµ†NH¨l·Û$I:þÒbdzŽ?ðÓ ­÷î=àîÝû´ZMÒf“åc'˜›_`jz†f³Aœ¤Dq‚R#µ–,’ 3vw¶X_[ãþ»¬>|À ß爓¸ÄzE¥3¹TxŸ†ÈÀ‘ t‚Š"†y†µv"ÆñOn9RGAñÃóraàúéeýHÃc?FÈ/“n¤A!óÇ k kVyøðÁÈ{%ü±B–F¤™êÖ†´bffç\xÙzÌ@T·?àÕÆá‘©ƒ8 3vv÷xôp5DJiâ8!Ž}–néä±Ö’ d™wýEá}Z %ˆÑÔT‹)„}¥é¯[ó¾ (¹¼Ò‹#¢¢$Äž(r ô;Â9‹ˆR?•ÆYƒE•C§|‡rȨ;/F+¼¬6ò#ùÄ’DÄ(‘ƒqßMc"É~—®¼ÏïC”$7ñóQ½F«1¶ÏG ½~>²ÑÃ`”ò?VÊÈÕ ®ô¹rÎ;¡D}léÏH9")RÇ€ÄÆë"‡C_îP9¦ðJÞ³$”cýÑ;Û•ý«•ô)bÚ›CZ)”ÖD±öÞÄàù’ÊD¨#(C"(0¥,Â3š2—ÏMš!ullœ„›t§Œ;lJA䜡”A0?£Ëw©y€Üèù*ŽÂù <xüÈ™ç9ûú ÆaSãì!ȆCœÀç£JGl­oó­o‹‹ÏSŸóß·ÞRC‘EAQäÕ 9ëMc=eêH£B>¿”ÒûB¤1Š""­=)“­#´ö¬ViO`Z+­&Îx(ªDRDò¡•èyÒฉßÁŒsÕŒ ›kÄçÜnLº@Ôž«9ÎŽò$]™Šîê,ψ € æ¤÷H2J@E(1ô9”Ãyx¤kÉ‚"ÏÈrSQªÌš8Žøôk/Ój4ë)õ€ ËJÛ/ _GšrïÞRŽ’1 c°EáHð™¶Ã,󟼠ßé¢#;²<Ú’Ð ò<ÇËôt›/üÏ#pØ¢ ´Ê„T!a…`ZŽ.‡+G£Yî<S˜ÐF&ܤ(&T¨2WÒ…M5&Eá“ed v¬Íf#p¯å×D®´ ð¿YŠ ?îQÚÄ…—á ÿ4ɪ l¸[Š<¬K¦Jø”Üð¿û¿ü¯ô;{´Ú-^ÿú7}®½s¬¬¬põê«|ûÛßãÑ£5„´ >÷¹O{ånNàÜH·BpãÆ‡8g¹pñ¬1H)èvºÜ¸q“ Ÿ¡Õly¥k"xãç'ÎÞ^‡o¾ñmò<ãÅ?Á‰+…AH¯{¢q•AX‰‹ÒH …ªG%dà+!ë …Jš8©QB6< ù]ï9sþ1¦ /ò ý >$G8!ÐIŒ1!L\«¢)3m„#%ßüÖ[(#…ðiÖB dŽ*,‘-ˆµdkcƒ]Ÿ/‚‰–dÃŒkwyõ“/“3‚σH+v67@§×gjzç Ûí"„àþýûôº—h·ZìíîÒëu½ye ®°èØ¢×Þý;[[f ;´V|ý›ßâÝwßçʕˤq‚) «ñ[_{ë,—ž¿„T"x?RhDPÌl‹2Èä½Ý=LÈù×: ¬-°5„KFQÒ2=ÌZŒRŒ•id^¤Z “¡ã¥¡ ]WVÆÀ[ßçæ ÀZà×¹T].Ò Ç ³Â³sR«Ê|{1ªÕK› o¿wƒ¢p4Ò¬#I$‘$F¢…$m¤´ÓHÁ’A¯Oî|ò‡q–T7Ù^ßacs›c‹ Á¤òÇ BzÝR Ú­››‚F£Á ?àÑêͳ ²aFš¤ÉŽ<7´•¦ßïs÷î=z}Ÿ‹Øh¤[Y!MS=ZãÑê‘Vôz=Ö×Öi5›Ü¿wŸl8¤ÑhòèÑ‹‹‹´ÚMzÝ.kkëô{}„”LµÛ,.-¢´¢¢$NI¢ˆ;·ïÒíõ8vl™f£QY››ìîv°Ò¤Áüüqc ÃÎÎÖZ¦¦§ÙÝÛcg{‡™™i¦¦§Ðq¡Ò ²,£ßë=Vì29û JàÖaG9kåB„PAS ³­cï‰ ¶ºª2³„ÎrïöI‚‚¸‘jEŒ@ Š4ÓSÓ yž!#ˆ""+}yžÝ7…äþœ>y"ˆÏZuì/yž#…ðìØXæffØîßÀòòƒá…ùyÙœe9_ý­ßæÑ£G£Ê%çX\\àKà ¼õö;ìu:¤iÊ­[·ÙÙÙáùK—xçÝ÷H“k ¯ÿöïð…ÏÿÖüÆW‹½½N• /põê«AWp(-ùÞ÷ßdcck‹K‹|þóŸÅ:Ëw¾ó}î?XÅ»Ó=W™››åS¯½Æ òÍo}€……­­‘çÍf“×^{¹ù%k4¦5™‡@èK¼Ð=ìÈ~wá`è«% Íf‹Á ó‰"J¢„DIŸÈ!B°FkM¿7`8ȈtD’D$Z‘JA¤|j™µ0̆Eæ•”J{M_i’F“½Ý.›Û»!eZ#”"ŽŸd‰D iOM!¤"Š—ÙØÚâÑ£5¬sLÏÌ$©O:Í3†Ù€F3åôéS|ñ‹Ÿç§¿ôh4ÿSŸáÕW^FiÅÎÎý^,Ï(L1†~¯ÇÜì Íf c¡?Å /º€<’ úcÁ¸}`èJ|‘ÝÃÄÀpÐÃ@eÖIi’Òív@)”ŽQ!Îx»>Šcöözà:R()hH…–:Ì8ïÈAH‡”ªŒ"¥ÐJ ¤ð5†Â‘HŃ»÷Ñ‘F Ïm"y½ÂzS£ÙBGya8qòÆ:nÞºƒÒ1³ós¤MÏ*³¢`važÏ|æÓ\|ö"k›\»þ–OÃÖšÞpÀs—ženv†á0ãØÊ /^¹ÂââÏœ?GžçÄqÄk¯}’¹™Î=ç^û$+KKÜxÿ÷îÝ'Š”ŽRùTp¥hOµùÂ>ÏóÏ_¼5"€ÅÅy^»ú*çÎem}?¼… ÖJGt»]¬q$QÂkW¯ré¹*ÿK£ÕFHåe¤¢ßë’eƒ'q€µ7®]·òk×»øvlû‚T‚^g”¿ò’Ífƒ¬°>MÅH!”DjŸ-ìݤ’l˜£”7›QDyÛ]J…Њ8’4’Èg!ÀYÒXGŠ$Ò´#M,AKA’Dôw;dYîJÁµ*¤ð©cÖÒl6<çô™_˜£Ùj²×Ùᘙ™öIÁ…š ¾ú›¯óúï|“ÍÍ.^üÓ³óH¥‘RƒˆÐQ‚Š4Bi„Ö8)½¢¼VR ¤V¼óî{üê¯ÿ×Þz¡Ë++H¥HÓZÇdyuŽF(Bɲ!ÎY’$&m4øàƒ[üæo~7¯½E·ëkŒµ¤IB³‘ú¸‡³LÏÎКš¦ÛëcLA'LMÍTʬ^_)òüI¹0j®x !é÷º>óÕXïÅÂÑl·ö‘Ryä+¨6xûD‰Ï(jEšf¡B1‰Ð¡6@‰ªN¯0imUp’(UºP|¶‹Pä™!æÛˆÊÿn1 ¡ÑL‰ãˆ^@š$[YÁK¤"Ú­6I’ଣ( ;»»lll £ˆW_~™ãÇ1›Ö:¤!ÑCÓétY]]GIí]Ö:¡x¸¶A§?àƒÛwÉ Ës—>Æg>û©ªÊ×;´$&÷y¾RI0 BbŒ÷Û¿ûî{ôž{îY>ûéOy ¿(HÓ¥½~ELÍÌ •d¯ÓÁZG³Õ$i4½µà|2ÊÞöfeiwêp÷`äÃZiœADQä{ÜØÐ T +å‰AIÂ1;7M;M˜ ÁI¬ ï#yF¯ÓÁå¹OížÁÜ9rBbª(I¨0*³]¼+zä€Jâ„(ŠÉ²Œ^ÀéÓ§|6³V4šMâ8&·†^¿Çüü< ‹‹dYÆoüæoñ•ßø*QhÑíuQJ²¸¸îܽËo¿þ:ÆÌÎN£µ¦Ûëòµ¯½N·ã¯Žïÿ_ú¥Ì£µußI%hÿ½~"/ˆ¢)$½~Ÿ,Ë=‹¼?àÃoñë_ù*««<áÆÖ9:½!Î Ú­ÎYvv¶Éóœv{Š(n`‹<è>ƒ^·JS?À¨?À‡k·()rt+A(Ÿ€ÑjµpH²lH«ÝB?S@„ ãÌÌ,3í¦g«J`¬#3ÞîBÒ+ ´DÊË!"$\X)ˆØÂa(%H)I»Ö ¤¿^Âħ>u•a–Ñnûò—ú§‘ÒÇ*Î;ËüüœãÆš/~ásܽ{Ÿ<ÏY^Y¢‘¦lll’$ ÃlÈsÏ]$MS:ív ,//ò¹Ï}šõõ ¢(bzfŠW_}‰¹Ùzýss³ÌÎΰººæ'бœ;w–ÅÅæqÎrâø Ò´Áìì Qñê+¯pëömŒ1,/-EšGÖ˜ž¥ppöìŒ1,.-P†ã'Ž3??ϱã'±HÀú¾ÎÑÝÛyš8À½:Ü>¤$Ͼ2gºÐ>¦ ÅäÆ;6|øR"¬ qß%»ë[è( )Q¾f0…ƒnnI´ðˆ-qþu¤”Äz¦ÀX‹®æ/ïãH{¿¼´U…s'KKK¾Þ hÅ'OÇçꦧÚÌÎL㬥(r”K—>ؾ÷ªMMMù(Ÿ1H©¸xñ™`±ØP¯ç8{æ4çΞÅaÉsß åò'ž'B_ÃÂÂyž‘ 3Ξ=…4ˆœ8ß|æó±cÇ}GmcùØÇ."„w';ë¸øÌyŸŽ"“ª÷f§) :{;Oã¾['€[‡Yƒ~žÄ=”Œ‘$i4é¼/À„Ji¼¿@ œ5Ü|÷}´ed¦ yQba¾á©Hi"YÆû½¼憡ñTÜJc,­%3™¤¡v¾ìâõ)ü}ë‘=cFþú²¯Üë«zòI¹WiàeC¬RÔ”­p|¶MYq,}|"÷„Å!uÄÞö6ßþúë,[æã/½ÊÝ?äë׈¢k žñ%æW0˜Ñ3•áb))ì(¸T¡”=Ä)Œµ¸HÒÃ*Qä9ƒÎÞ“@KÐûJ¸‡o#¶>–sìílÍÛ7SR‘FGÙ°ŒT(Ù¡8„´äC‡Ò)±k ”öåÎÖA;Ñ>ÁSk0¥XG¬½5°7ìb£•&4_‚n¬Àæ9Ãþ©©)_æ –PKº;à÷~O°±úˆµ÷AÀìÂ"ÇOŸfýáVïÝ£5廡¾p‘a¯Çý;·|ÜáÄ)š­ï¾yÓÏ<ÃÞÎo¿ù}z{Ž8’µÕ‡yα'i¶ÛLÏÎÖg>[‡-;š” 6ÂyT•ÑBdÝ‘'Qqêk"TšÁîήOâ=¶& `ïX9èŒÝ­u„Ô¡±’¨4Nés„PaB (”r¡h´›;{–;wˆ“†O[’‚DH"Icó™³\ž…tA+KHÓˆF“`VZfâóácN:”’UXzÉ!'ØÁÎÖƒþ€ápÀýÛwh4[\ûÖ·X\9ÆÎö6«wï0¿¸È›ßþf !àþ­[|âÕ«ìlmq"/h¶Û|üÅ—yó;oÅ ˆtÄüÒ½n‡ûwn3;¿ÀÔô´žIp[:oÊ€G•ùYû.³°¤@Æ©Î'‹ ú†ý^?6ðmù=¼qíúÞÕ+—ïDJJö67|Bˆô³=šf«M·ÛGI…õ|ÞƒžÕYËÉ3§Éwv½ é Î8"å“Bµô©Ýqc‹²n g™žJq(ŠÂËe­,©Ž È}K©ªx¸oûb®–ô@Ažeìno%1B º{{YŽÉ ffçÉóŒ(Nô3zÝ. ËËÄqBÒh £ˆs/’¶š´ÛSìíía CÇ>gqjŠÓçŸaÐïqÿÎWȳÌ{N} =Je”_†Ô˄Њ¶¥÷WÆ„j*Igo‡áð‰^ÀÛe[ûúQ+‚JÒéìz¹§5¶ð6f’¦ä…õbÜRø|’“FÊì©“8Iê : QLœ6|õ!Ý\kZ͸p’HI¢HÐH"b-1€–qÈ&’Uqˆwƒ~”*€qpÎÒÙÝeÐïû̦8¦Ñnsþ¹çXôíu0»°À©sØÛÞes}éÙyŒ)¸þo“ †>!/HMï©SšíÞüîw¸ñî»<ûñ+Ì-Ã: 2ƒ c(Uð{Œº«ùò¼PœS&½”)ú¡Ùú½=Š<’XẞñþÁ3CÑïv ú4“ˆ"à€V»ÅÆæzhq"B¾@P}õ(ÎZ–Ž­°qç>ˆ›Mœ)°b)PRb2߸ÑJI3IH&#ŠVŽúøXk±h’v\Ð7‚²fŒñ2ô#A™~ qÒàS_ü2ÙpHœ$”ÝMw·wI-z{{´§gH[S|ü“Ÿ¦×ÙCA£ÕƘœÏÿì?K'äVИžå3_þÃÞ ’’—^û,½^áIc仯MTù“Nø>„p($V„Î+!k¨ìÐæÃñŽ(–Á TÀáu7ö#€÷:ZJA6èÓÙÙbîìyúCßÇ'‰â áB•l-©L`”Vœ¾ô,nÝF:‹Õc™sy°ù§-„…îp@¡\ÈöI%Æ8ŒbE7p2Â×-H’F;ôÛ‹|Í¡Ô_ß÷xñ t¢‰’F-›Çqþù³»µÅìâ2‹+Ç|ˆs´¦¦OœRE$:Â…69Bâ4­rAÐjMUÕLR*ìöz™SaËÊÆ#xG}AŠöÞ?k¼´–ÍC¢û#øá~ðÃ÷?×WïóÌs/Ç ÖX’FŠu0Ì Ú­F(ê´•—ŽPÑãŒcqe)«|€–þ%¬ %IÚ±ï¾1Ȇˆ$F;Ca,ZHoªI‡1ލ™§ lQTÉâ8!ˋа`Ôü ü@¬íO(õ¼¿2¯nna‰…啪Çäy¨V¯ïöÿzÇ Põ'*¯U¥JÏ-e¨!|,ƒW„Ú›’ÊYò/œ©4Öº'©Éò‚í§ñÜÜnánڷͤsŽíGA9õåÛQä«ds“#Ô4ÂåUFP½`THßbvziž‡«¸¼rÎS#Ž08YVÉ:c\Õ4ÉáûøYS0?ëTf¡y£©epâŒ2eý>oÿ»ÄIÂsŸx‘8múýiJÊàè‘¢|¶2UÇ2oPHÉÍw®cåÂ¥ËÜýà&­éifçª8Œ2‰<ÈÐk°Ìç·K(”ô¦´µŽí-Þ¹þ}.^zžÙ¹ùj¼Ë ãHFØ@È¥Ã+/ Oà*ªÄ€Š,ëÒÙÙz’ ¸GÍõ_'€ûxspß–1BH¶7Ö0¦ J[˜ÁQì)o0È}´ %û++ªrH³Kˬ߹GœúRj-ÖAŽCD‘÷¶™-c„ ¶±’¡Eª@6gf:6{Kbd”pçæ ÖWráÒódYÎݯcŒafvŽ´Ñ`kc“çγ±ºJ– YøÐëõFáÜàÝÁ£BQ!$Ö8æ–‰š ‡–>ˆä¤DêÈÏ¥˜j´H¢¤¯¼)gX³ÝFÄ);ýç,¹±lörz™ïüíï+qÒë("JRz]:;›ô:;¼ýýoÓïu¸}ó}6VòÁûïÐïuyÿú5=¼@òæ·¾ÎÎÆ:7ß{›;ÞD+ÅöÆ{;[U½Òk«\{ãwèw;ܹù>ï^û®+)ôº\ûæë˜"C ÁÎÖ6[ë¼ùí7PJqÿÎ-n¼ó®(HÓc-ß{ãäyÎîÎ6oÿ{ìíîðî[×X_}HÇìln²··‹Ò*Je›¹Œº³µÉ ßÒ:7ê+›MòŠA!½Î.½ÎJ)âfÛ³¨(b8ÌÆÚ¾!Ø«}„oàØžE ½0 «Ç‘öŠ\ðihA«Hâ˜Öü"‘€HI¶û[½‚¬p¤‘Í~ç°¸rŒ(ŽX9y‚~¿‡Ô1íé9œ4ÛÓœqŠÖÔ4çŸ{í Þ}óûœ>™…%’Fƒ(Ž) C’6HÒ&Q’25;Ï­›7˜™_dåÄi:»{dYÆüÊ daLÏ-râÜ3Ü|ÿ}Þ{ë:ÝN‡ãgÎ3·tŒ·®}5xæ…—*¦=3ÏÒ±œ<{ž¾û½þ€ç®¼‚NÌ.,¥M²¢`õÞúý¾ï:^Ó(„òÚGŸÔà­ú?“ÂâíOcr¶6y»_GH$qD¿ß  éísg} p¾í*!ÆS:o”®œ¥¹ä F==FÒƒgQJrkÖ‘ÆŠVâûá”J–OæiÛÆX¦gçxå³?…”Šgž{l8DiÍÙ‹>ò'¥äêO}Ñ7°Ì†¬œ<Ųï;œ¤)ÖZ^úôçB/çÒ‹¯P®òâ§>ë{ó&)/¼òÃái´ŽB^ ¢˜ç_ºJ6†Ù^·¾üÊ'ɲÜçRJE’¦;}©$—>ñ ƒA?äCú¦Ö‹ËÇ¡=ÝåW^EHIa QÔu>‘’<ËX_½ÿ$ðc`’nphP6×|@#Ž42JiOM±½³ãecYW¶‰GúViÎó²S*ÍÞö®ï½/KsÉDÖ¢¤ÆŠP"8Ê`8D7æ§”õMœ…RrÔÞ¹JÿP!Jæœ NQ©5´J3Îá¼lÕQev©²Ù„ÖòøµÂq.—¤eº¹­¸^©·ÄI2VV†”•ùlCÁí¨.Ñ·Ñ7¦¨ÕN‰@iQ•–«ÈÀúÝm¶7ÖPú‰À˜¹?yô]¼5°/()ÙZ_e8x»U*ÚÓ³dƒ>E–”¿±*¡°bˆÖ(ÑÝëÐÛë ‚Ò'tH) ÇR†Š>)AiúYAÜl°°¸@¬42Š}Žž”è¤AÒœ¦Ù𦬱 3ÔÉk¡.éÓÏüŠ g¡ÈŠÊYãË3䨾ÓyÄS]c´ŨK‰ß_Ež“g¹'$©7++–)p£YU{ÊQX;¤ÚÕ °Î¢C¢©ƒÊtÝÙ\§»»ãs†›“k1ýƵëëW.ßÎîw¶Pš½í-²làg¡”$ÍRÇd…!J²>”ŠMt4ðÍ rÚ³3dYæ2†HꪧñZBI´–$S-fæfC²ˆóíUÀç ê!i«…ŒbPQ­ÊQïh1ÎŤR|ðÎÛ¬¯=â¯\ÅZ˾÷m^xéf–Âr7¾ÚÖ…|ƒrv{g—ð%ðe›šàÕëu»¼{ýMâ$A4»øÂeÖÞ§×éréÅ—)SRÊຮuùP¾O‚Ò'á‡Où&AõAG¾ ¼±Î+‚B²öðÙ°Oœ¤?˜Ü°¹¼ |y¿³¥”ô:{tvvX>v©f‹8i0ôBKYQ¹…«wX´ŒÐqÂìrƒ¹åeŠ"#Ërò¾_˃)ÓÎEY”©j«‡8ÿÖ¾g‘盾¨ªL…r¡P²j­R5YÕÞ—ª­s ú=n¼ó'Îø4o!Vypç6ÇÔìŽÐN(òÂ0¿<‡‚µ‡°8†ƒRJ¶ÖרZÄ©ó¸só Ë+Äi“wncLA£Ùæø™³>«‡ØÂø8¼•¡Ÿ’OÂò¢ðÑý;OÓèÛátŸƒ¾wÐÙ¾\|Àöúj(‹DqB{vž¼ðµt8RÂUP^$RFÄi“²¿°µ¥"Í3 Ì,,1·´ÌôÜV‹(ix[æûÒКMâ¤QõÂ+’I’†Î¢²:™2¾×7j^å§ÕÌÜ"JEܺñZEå?GA“¿wët³µ¹ÉƒÛ·Ù\ß`aå8YV°±±ÎÚê#­ißCI)Œq c :Š}ƒ±ÄIB¯³Çîö6ÁæÚ:Ù`È­÷ߥÛéÅ)«÷ïÓÝëTnb!Gýõ9R…`àBHòlÈê½ÛU²Cà±%æ÷ã?8ì ÎZÖVï…:KÇ4Zm Ù`g¯‡p.d¿úõƒ¤ŽIÓ–wÑ»‘ÒVïråÂìn´fˆâ!ÙpˆµaÕ|³Ê8I¼_½Ö4Ù÷𹉾\, _¾éÂÚ:µîáOŸ÷Ü•—¸ö×=1–Õ»wÑ‘&MSz³ ‹,Ÿ8ÅÝ[·8}áYæ–sj˜ñÃw~@’¦?}¶Ò;L‘‡6rxåµ×eÐë‘eCÍÖ9Š<çÞí½«9Žáíx)Y\Y!m6«øAÙxÒº’Z_|*ÊÞ„+`ok‹µ‡Oê´«”|krã~gÜÀgŒ,ìˤ`íþ]²á´á2ÍÍÏsó‡7qÎÒÝÙô«€ ‡‚´ÙFkŽãªpG~å˰£”"”Žù6¯¢4ï„/##Aa‡Uk¸R¤ë0Íæhñ9r< 9Á']U1¯œ/ÂBK¬ ’LïÞºIwo§25€·¿þÝkžHo\»¾uõÊå÷€Ïìw¥›ë«t;{´§¦qÖ±´´Œ–‚N§K³Ùd{}•A¿Of-ì1Áäñ>{Ú¾—Í œõÿ»²E¬+Ž"(ËÈêv¿’¾*H+Å^g/´g÷½üÊUµêÁêt`ó!]!0EÁÌܳ KXkY>Ñòç…u­)h´Zœ¹pçýn‡{Þdyy™•S§Âry>‘¤Õnû1)uë3‹Oœ:]5‹8ÿ±KÕXZëECûÂEo [jr\ŽÌU¥)[ÃKyŽ 5Æx?˽èóHR²×í~c¿}ûò )Äw­sŸÙÿbšÎÎ6kî3¿´LJŠ‚ÙÙ9I‚ŸãıÝ]²l€–~}»rßrYW¿” ¡áb¨0~Éz– #ý6¿lšW …5!óÆ‘Ä Ÿ}6,b)kÎRË=Ù‚Áí^”]:C!ÅXAEHÍÂ9ßt G’6¸øÂåÚR9¶L­Úlð-¸j»±®âPƺa– A»/Íß2ËÙ‹Ž’Ðv–ê[ôI©pEN¿×åÎÍ÷[`Œk Á^§ûµj6ÔzÇìK~ÿ­Fã/ìW\P*‚÷oßäÂó—)ŠPí"%²êf!™ž™¦(†½*ô[õÖqáF^n+å» ®u£5*wõ³­:¿ÌJ)>d¹‚i5ókÎºŸWÃQþ3ÐË,ܲ8-„¹Ç| åªhŒîçnÕ-=ÊQ˜¼ßcC"°§=S-Pá=‹2J1Emû¼¥qŸõ‡÷ªVvû³¶¿Ûé|kâ ܰº¾ñ‹gÏXc̾d¥¤äæ»×ùäç†V³…LdX‹7™ÂË^©ˆ¢iŠ(Æ*³°DLè®/pÕK–3¶ê\þ­Ò¢)3%G’g%¾$}t9÷Òô´Yq¡òI*œL GŒî2r×”¸ ‹a— >¦t&)é½v’Ú|;ùá~•ǰ,Æ•Þæk,Öâ¸Iº„|ðîuú½i£¹ÿÕ…`˜çßïôú·oi >ßúqèv{ïcnSÒqƒÛ7¹ñƒïyW.¸¨Ç ’Ýh‡þuÁ/å{pc2 oR¤¥ð¯Ä¸ÜWJ¢´BëPFëà*W1 Á§ú›•­kT0… k•íêêñØ·‰BRk”-ƒ›¶<²½‹ iiÁ+:–u&ÿòyý„QŒÐQpukT”¢¢Fȵt¡ógâk+ Kgo—w®}ûÐu–¥tº½_3ÆXü„Cë$ýá0ïöú¿:Õn}Ìà\¾öËÿÇOŸåÜ……¦ ¾G€5y•ÂìC¾Î`ó!Œ¥8—#X´«ËH8€gŽK9†µ™¤TmÞ0ËǸðèXgÍã3´Æ$Ë…*ªµܸ+XØ‘(*íò’ «Ù\r¹ê>áø@<Õ"ÁO"]­#®r ËHzÖ HÞÿÁ›¬Þ½åý ‡ÀæÎί\×y¢Ä~"@fs{ûïOOµÿíƒ.ª¢ˆíÍuþÁßþëüá?ùgyöù+~ÙW¥:AUýïm¥á;:P³—ífœ•»Z]ÇcKÑÔQ”c;^¢BNA•™T6­÷á+9º;•ÑŠg#}ʼn/AÁ5v¤êúU½×سC}©]Q†ÏëùbT—˜g9ØÚXåõÿ÷—BÛžê¡„`eïììuÞšø¶ÀŽ‘`ª¯ïV½ŽÐZÉO<÷±¯EZ¿vX¥ižù61—^zç¯|’Å•c,,¯033‡ aÍÒ]YÖò•-UGA[eºŽEsãOVsóN¾hyÐaŸ,·O²cjÿï7€¼ß0ÔÛ¼ŽŸ*R¨sÔžQÊÚ‡,ê*©UVœÇZK>ÌÈò!Y6dwk‹[?|oþæ¯pÿÖC·ñýA)ŃGkõÖ½ûÿyx˜ ß̆o³@òº+08¾¼ô§Î<ñ …9¼ÖÜ9âíi£Éò‰Ó|üå×8uösKK´¦§i6[U—ÏÑ…BH,®2ùF¤*ý9 t¹†€ªŠ*!²r›Vˆ*ÝÇ£éý8ÞÅ«ŒÒÊåkê¸wañf)Ýîm6=d}õ>ï|ÈÃû·ÙÙÜܡȤջþþ?Ùë~ôçB~jy[(¼KAJ)í /üb»ÙøCæÉ†Ê..ò·?i4iOÏ23·ÀüÒ2³ó‹ÌÎ/ÒlMÑžž ¤„F³EV!UZWëýZgq&TO÷ªÐ­^§ U—>)%*Ö`G«”U«uZïG/›>VíVk«…˰¢—5…w`_–+z¨ÌØÒô iCX_Ò]PäY¨ Îöû ú}Š<£ÛíÐëì1ì÷ØÝÙfgkÝí-:»Ûtvwèw;dÙ[øÜ?)”zòbJ)Ö7·þÏ·nÿ•€ìu|g°â0aöGá;n5—ž¿ðÌÿ¡¤\¶‡ˆ‚ý Âb ƒ±£òçÒZБwGqJ’¦ÄIJ’¤ÞÛžòDúðÇQLÚlE1:IˆãÄ{£ˆ8I}÷’€@­#Ê&åÒêY%œŽ@¾rEP¶\ÊÕVìÛEØÂ×F”mà­µä™ïœV¶eˆCßÑ+Pä¹Gö OoÏ7©dƒÙpò ýÂÚEh•[š•õeqÊV8‡*Ó3ߤºo½ã?è†×!£npÃÀŠ’ê²_ÖŸó@±0;ó¥gÏžùo-¤OÑyâi(£R”\Pméª}êígÁkÙ2xúF5sACVes*_ðY¢jk﹋¯&*iÞy•¾–ÏÖlû"Ï=!ø*óþmhxm­Gšç*eËVFyÁŠÁ X®÷#ËLŸZgÕ'$rþH •âÖýûÿÛýÕµ< ˆßÄg ¨qýÌÀ*Öbjc{ç»BÞý/.œ>ù !Z?*'x DmñHä“V_ß—xÀ»mýÊ%9•"Vz#->á¢Â…ã1-Nˆqí@äó„õPý¨)qe¶“PUaæ?  µb}së«­¿îG¡æa«iÿåÖe]þk` ˜À" g§§>~îÔÉ'M’ÓÆ<± Ñü>‚>rmkë·nÞ¾û¬µÛø"¾äžôñ³¿LIºu(EA_&–- 9f;›Û;×”’ªÕhœTêð´#ø½‡2sʳ{÷áê?º}ÿþWœ—Ó[xv?Ä‹€=<«ÌñÈ·ÀØ2uE°ÔÒÚw ´µbkg÷í½Î‡ò8ŠÚ‘ÖM̰ß ážål—R’ÅîúÖÖ7>¸sï·vv~ˆçÞ›ø 9^óße4óë+I¸º ñ@3²fðŠ`)¦ñÜ û\¤ucªÕ:9Õn]˜n·Î5ÒtEJ©Ç½#²øQAEcLItcmžåùV·ß_ÝÙÝ{°³×¹™åùF8ÜÄ7,gû¾æsˆwu¨å;ûPGÕ¾á‘Ý ßm<ÌáÅD©X!D³Õh̵[Í•V£±’&ÉRGÓZ©TJi»õÔ®ÉëŸôèÿÀ¤¦_"xüwåQ´ÆÚÜXÛÏó¼7ÌòÁp¸× w{ƒÁÚp8Ü6Öfx6Þųzð™\wñˆvxV_ö* ¢öÙÑŒž±ô–P./?‹sáw¶ÏãŃç”+6–«)Îh­[q¤u¤£VGqE©RªG‘Ž´nI)¥”TJ%Rˆï€B¡Æôê13Éí÷U àÄQ YcïñýûÆ‘{g­5ÈunhŒc¬unh ÓËŠ<7Æò<ïóÜ…éäy>ÈMaŒ1…«üÍx^šr?£s¼ÿ0l+?C|¸žýgŒD€;ˆê¢ Djþ/Y3@+ì/•Çù°]ÔŽ™¨ HÄ€TREJI-„ˆ¤”B+)´Ö‘2R()„ÓJ ­u,¥L…ZßVIú*e©¤Œ„±(ÏŒªÈ—n_Ëþ¶Ú(¼4ŠCTžÚ°Õ8ç ë\fŒ-Œ1Â9ß–ÒK8W8熅1â(Š°Î±³ÎfÖÚAQ˜±ÆZëœsÎkŒ­º†P®ï]Ž 5–;¼W¿< ³‹góëŒüüågx_D^'½Ï`Ô}¾2œ j'•&„ ”Ø „!¥µÃucF"£ô)ÔW*Uá·2ÖÆ>æ•tµgÚdí¹ªs…w.b”"ÃEýoQ:Cøw™`&>è;º³uÎÕ ··ú³–ÏQiØa¬ªkÔ&ƒ¿Wul}lËk”¿{å±›øVÿ<ÈjûJdoóx¨~ï1¨æ«ÙRo¡O\Äà9D?ì‹B:áw„—I <§(Ø¥•¡öù”û&_r¤I§Æc.$çW|ò‰`eÞÖhàËsêÄ–×Þ—ÚvÉþráec9.%³Úo¾ËçD~9æu„—.\²îÒ¬Û Û3FîÝÑ¥¬/}ÿõç›Pûq€òÍÄÁåETø.r³ë3½¾¶•&¥®_Ž9£߈`JE]LDås”Ï\'1qï1¶öÿäu£™\¥—ƒ]î¯OŒQL\§>žû!¼ôÑ×6%«/?%'(ÙyÝ®/9È0›M\ÿ1nzÿr’×ÍÃrÓÚ@E5ä•ûãÚ6Q;?®]Æ‘2©/Dµ}u…ØçyëS¿`Ÿû'®úo7q½:8ŸÉõ™/Gô$Â'‘_"±Tô†Ÿ‚w)q°ú5êþþÉ{Á“uq3)F ×)ö#Ô§&€ƒ¡>õÙ]xuÀöýrÄ>ב÷ÜÉOº¶Ø/ÙŸ@÷#˜IîP?f?ʼn}u±Q碆ÇÅÆä5ë¢`Ò´ÛÁû±x[»îS!öi`?ŽP4öÙ/9¿c'6‰ØÉ¹CŽyk?è}·ÉÙ6‘Ôø˜I»ßwÝÜáOûaâÚ‡ÂG b‹¶ÙäOqüÓüÑ=Í}ÄSlßovÄ&Ý‘û ú$rÅ>Ç× ­ÎEöãOû›‰û>|TøÝ¸žø÷F0?Š.sع‡Y‡z9x¶O[gÍOƒ@÷”×ýHð»M¿÷þQ‰l2ç÷G%xò"õÙ~>lÖN^Kìs>ü˜È~Ú—ýÿ;|Åö÷~ÄýžGÿi$€ß«w}DìÇqêç‹§¼ÎÁÁÁÁÁÁÁÁÁÁÁÁÁÁ ÿâÎýü#FIEND®B`‚rubrica-2.0/pixmaps/Makefile.in0000644000175000017500000004440610637712670015343 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmaps DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(icondir)" iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = 16x16 22x22 24x24 48x48 scalable icondir = $(datadir)/${PACKAGE}/interface icon_DATA = \ logo.png EXTRA_DIST = \ $(icon_DATA) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmaps/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-iconDATA install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-iconDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-iconDATA \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am uninstall-iconDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/pixmaps/48x48/0000755000175000017500000000000010637712740014063 5ustar seb128seb128rubrica-2.0/pixmaps/48x48/Makefile.am0000644000175000017500000000147310554703326016122 0ustar seb128seb128icondir = $(datadir)/icons/hicolor/48x48/apps icon_DATA = \ all.png \ bussines.png \ contacts.png \ customer.png \ flame.png \ freebsd.png \ gnu.png \ hobbies.png \ keys.png \ lock.png \ mailbox.png \ net.png \ notes.png \ phone.png \ photo.png \ puzzle.png \ rank1.png \ rank2.png \ rank3.png \ rank4.png \ rank5.png \ role.png \ rubrica.png \ search-contact.png \ sport.png \ strategies.png \ tux.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi EXTRA_DIST = \ $(icon_DATA) rubrica-2.0/pixmaps/48x48/rank3.png0000644000175000017500000000367310554703326015616 0ustar seb128seb128‰PNG  IHDR((Œþ¸msBIT|dˆrIDATxœí˜ilGÀ3»ï=ÛÏgìÄähL7nÓ4'Fi 6Ä!RˆˆPEÅÕ¡V "„""¤|¾!*„Ä—)RªE!¥je"š«Èä4FMœ7ŽÄ~owæÏ‡Ù·ïÅNjµiÞ¼ÝÙýÍÿšÿ ¼[þ·J+Ðõ߆HKðUàwÀiÀ’T /ßîûO‚-ö&2‹zø2 gó15‹¾‹[Òq øÈšÎ6Mg+,˜£™†F,†…ƒÇcÊñMï9<|'ösÚ›ßÜ\à+ÍÓPP‚µ`,+Äb#”cøó©˜}G ϾalÕ;lÃiâm> ü;[Û·Öñè¦ 4¬]ððúJáìJ‡ ó ëèûë˜ïüòkÿÝàT­ó C?æPÉ÷;1`Ü}€¤U ¾ô±0±[À…*¡Õ*à³O}ºà*ÿ«@iŸ¼èüíüeÆ'”ö}01 ¯WÏŽO# 螯XÛí1:€·\ÜQŸWl\ø0!ˆ1 Kwøsç4ÑX' QòÜ"ņ€÷´×û~=]-î=P ?Éõúž*ŒÍ·üÀ‡VÔåœÇ¥^ˆ”Á–ÀLÒ{ï\?`ÃêE(3fÒ=—²g \Õîû­ëiô“õ^ž0ö.ÓhUÍ0àR€]Ú‡„t…ÀL‚¹fœ¯o^H. Í·¿° ‚OžOúåÏ!Ÿ (ä¶>Øè'+".ÓHÐT-ž°‹Œ†5€ 涨ªµÕXEl„PÂÚù1Ø J“Ÿ: q Ì 0ÄFü¸åíƒ ì^ÇðuMaò$å˜jÈŒ†ÚáÊ5Ï4šp>@G³&¶ 3pn~†PFÁN‘;7ñê“5¸i‰Çú)ÆBÙ‚µ’„W³­Åte÷‚š€©H\VbJ iZ ¸ÙjUBëJ±¬8(—$@d„ؤÙM ì ­€‘êëÈLGr3àEà¾Ë#–ظU©NV„@+´ÓRÃwöê â´M!Ó{³q“ªŒ»6Q•+\˜ p`hÄ©)Eº GÎDhíbœÒÕÞeI¢‰=ˆ»Ž…4É­°æNM.LúŒTcàÊL€çŽœ1D&UªâÜ%Kßù¶ÊJÙèïã›#©ñ'à®/1è^RO‹½€±0tU©d„d’ØZÀ',W®Yæ¶hD„ÕK½÷@ 5ZƒRê&‹$Yµ8I™Dj©ÓÄ" åØÝ›šfjÊý?rº*©þmö¢ðð+,Þw4fË9'‰@a&Ç\&âÓŒIS*©ÄNSIýãÄi"Q\iSçé믲¿_e/jµÏì<3>éöåX(GÉÿH(EB)ÎÔ¨úy9®Œ‹b('p)llÄ;Ò_ÎXÞö€—€W³@Ó¥['Ço”ÈrŠ]ÚgÃixH¥d-Þ3}[QG{I7™Ÿ¾h™˜ôß~8r;À  øð냖uÝš¶¦déK RÏ3VùÐb ø&HÉÜÏJRØóŠåøy/½~àkÔìòfÚÕ€S@WG³â™'òt´$¶—q¬]xGj–IVLºÓK@_y]عßd_ñ î$¢ªÌ´'1ÀKÀ#7Jä²ôÞ¥©+¨ €dTl2jö5ªÎÀ>-ì:`\–äÊw_Nr»}ñgpN£šêÛ>²|±¾…ÓÕA¦‘¢³¹ç^µ8Z¥Å__œ à­lÜ·;z¥à{5[7ÌkÍFêJ¨©^›SÈç…_ÿÉri¤*¤ü xˆÞ À:\|Zné]¦¹ÿnÍš¥š|ÎÙ_E‚®^¶¼vÖÁeB Г à;VÚe2§Va€t¶)éY¤äþ{´¬ºSI×<%źO¹öòo>ŽëÄ©¼ ô6ÕâN)VÌöc³9~«-!° · \‚K2MÀßq©Û ð{ààú´oy·ü¿— lº_Á‘"IEND®B`‚rubrica-2.0/pixmaps/48x48/freebsd.png0000644000175000017500000000422310554703326016202 0ustar seb128seb128‰PNG  IHDR-0²ŒíèPLTEƒ,#š•’òòòëëêZ930*%···ïïïÈÈǘg_„?8E88±±±ÜÛÛâââçç窡šˆxjÐÏÏóó󸪤«[E›;3OC<“““ÔÔÔÞÞÞéé鿹°†>0hL=ôôôëž´P7²2-w:7gee¾¾½×××åååííí¶Šss0"ÃÃÃìììк£ÏT=Ê9*ž¬¬«Ñ»±=0F*#GECèèèÝʸÚ<*Å@3i8642,›šš«”›~txhdwok„}y˜˜˜ÇÁ¼p5) cbaÚÚÚÎtQ¬>3" PKJxeW—O=„4'i3'b/#*+,+SRPˆˆ‡®mS#%&âF+[2*a01y4)˜:+:89Ä›‰ØJ1´>1¶F4R,"3"x/"9'%ŒŒŒËC-(((§¦¦áK1œC4ÃG4ØE-ã;*©E7{vr"¢…##!åQ0ºA.ª>,²¤˜fO‹YOE1,1$1#}||¢¢¢£7*ÏÅšúõÅÆ´†Ä™hôܪʹ­~:0åL-)$!þúÎêߨ¸-(÷õ²œ‚’½=+âЗ¾_@ìâ¹üè©srr¬k?Á¯_Ù¹…cbxxxĸ˜¹³—Ú–Zúñ®æÆ²ƒ‚‚†V>˜ua]^‘Bnifmmm³zhYYXÖÌÆäàÝu8/ñÜ»…luÐÄÁ¦ž‘ÚÖÑžyjÛÆTŠ93K+/éÏ,ºµ¦ÚÕÁƯ/½±}±™Q•Š‡Òºo‹„Ì·RËů04:Ÿ„9Q.5,&*000‘A@%*+V3;7.3.+.gXJ‰}8Ⱥ´>WƒGp§Kf’9;H_ŒFVm`rlcuâØØ·¦˜u~ˆ€Œœ_qˆ@LjU\s`\kêÖµÝÈ«TWhuzrIN`Žw„ÙÒ¤âÕ£äͬ÷ç¾>Kañì¾WHYp+ H#ÌËË„Bª½tRNS@æØfbKGDˆH pHYs  šœtIMEÖ \.ç$IDATHÇc`À ˜J¾3àB‚p&?7'>ÓØådál)I! 1Qaœj;›A9|’BÚ††â\zº8TK»»¹Š:ƒXÌflA®fà–Ù£\m\œ˜Çröäî‚DMm!53l©‹#ët“UO”l^EE/÷…“gí$¥¤¥5°§D)íæò~kåüÄŠŠŠüºóËØ¤4p–WjlÍÖMgë¢{Î$û…f± ±ã.Ý$Ùæ¯éoŒ8ÒJ™kWôI'C!>~ÔÝ -ŸVù0ò¤ùª~W&M`N›µBåù³»Ÿ>=}£ ûbóKÛæ#†¼:ØPm‰ª;â8iÒŽ½fì ²Óf©Êz•ÏŸ¿zþp‚ãüùÍ6ž.¾†‹ýÌH—Ñ àwß>l‘~UÍsÀ›À÷€ŠxV]`ôgM?^|8/"úøãëo¼¡ccc:11¡'NœÐ£Gê¾}ûTD˜ö£À`}¼éÕ©r…”É€Û}"ò_|‘[n¹…f³‰1†Î9¼÷8çpÎÑn·yå•WxàPÕŸü°´Û ¥’Ë`¢ñwßܽ{÷öçž{ŽÑÑQŒ18çÈóœ²,±Öâœ#„@š¦lݺ•]»v199¹ñäÉ“»€³ÀX—FÂ{  Ûóß|ì±Çú÷îÝ˺uëÈóœv»M«Õbvv–‰‰ æææ¨ªŠ"‚1f9:·ÝvF#}ýõ×ïþ˜ŽxÏô Q¬ë7î¿ÿ~=þ¼.,,èøø¸?~\:TÜwß}s7n<~¼ùè£N¾ôÒKíÓ§Oë©S§ôøñãúòË/ëÁƒu×®] ~ Ø FçÊÕÖ@G´ŠÈçÏœ9ÃÈÈív›ÙÙY><½gÏžüð ÐÊèÍ>àžxâ‰Ñ;ï¼óš$IEQ066†µ–»ï¾UÝ ÆÅ˜¡ôjQ¨“uú€|á…n¼ñFŠ¢`ff†Ì>ôÐCmàkÀÁ˜6'€©HàÈÌèèèûFGGûF*"ÌÏÏsÇwðüóÏG€<÷ïfTÚcàvÙ°cÇB´Z-ÆÇÇyä‘G*àŸGž™¥Œ¢L€~àë>øàº‘‘‘ßÚ¹sçõÃÃôZ-FGG‘_UÕ#ØN»Q¢×‚uóþýûi6›äyÎÄÄGŽ™ !L¯G¯wpÇ0Û·!^˜™móåÃç/»2~öƒ[زiç<§Î-ð¯Ì\ðùLîw›³‡b„ó‹#kH›}¿±­oño¾ð)nþàЀµKøªD½GQÄ{‚4xØ’°ŠïMü¶  Z_|…¾@½ŽPe›|{?_ù÷i^ýßâWböš‹Ñðk¡PwÇÉ-¿óY–¦Oƒraм=ÁbŸã½'„‚à*|P‚«.yã ¼Ãù¶Âû_”ˆ[ÂWž²ÈY\œaªUvþdcþb—]ºV ÔÕ:Ô*A+œmÊï,Þ{pŽ ÞY¬sxçаRDE. ´ªÔ¡Î|U_«ÃÖé\»¢¸> :½˜5k1ƒ‘ºÓ$IÚ c Ö€©€$ Åÿ”& „Á Ú¥G_`ƒ­änåã,Újz°¢“PU‹zKUµÇ4¤ªåÁE½¯½§Ä`Ä$ 58Ä€ÔPƒ/ f`S´ëkQl™ÓÈVqä•ôBª CÖì' êk!˜€Qؤ¦§÷H’u8ôÎh¨k‰÷h°„²"Øï}íèfᥒΚ¨÷¨Z¼³¸à°e^óÀVˆñ¸ µ°µc$ïô>$ Ák=Ø!Þ!™ÅHR•hð$F–³ÖUéF%IŒñcH’›/QYz‹/–(«6eY✣*+4„€&I‘Ĥ)"¦N¿"  GÃ(êïlí½Š:ÚI™æÐMñ’RÓ[jïŠ1Ë]P<Áyleqù<ÎV¸ª ”‚/-í¥¬£ªªé«É0R{NU)fjÞºŠ¢¬°UIÕÎ)Ê66/¯+žn$$IJÚHI5Á¤€(‚¢Ö#¾Àƒ¦Bâ0éÕ¥Æ &ÁHJjRÍ>šë¼wõ žD€$ÅHÀ¤ ŠAUÑð¶Ö-rÊr _ÖðU›PÊ|©N¯Qô?Àš Ù …¬EÕâlEérŠb¿XŒÃÚ [YlUR´—¨ÊŸWXõ¹xúKßøXœôlOªabúH†¥ß94qxUŒÄÒ4AƒPÓ-wokWKsTÖlŽ/ ªž², 6Px‹!Áz%Ô=S$¿÷¹¾:un:¶Æ‘µÕ…$Ã$¥M´Ñ¤Ê—ðÞc½ÅWmª|‰²(©Ê’2o¢Øë}P‚I’4e×ç¿ÕkÓúÔ'?ó‘3Sç¦ß¿Øjÿ$®#é‰BÞ—hURÙ‚"oc²#B_¦øÆ:ú×Ö“Lšb0i²"5 xç©ÊøÖr7únÇäôŸ~d7SçfÞèäÑï|ÿO#ÿ= k€ÖÕ¨Ûe*Â’C¥®œÖ9\UÖéÒËŠFR4DçW¦Ø¹¹¹ š=¹àçó³SüíS_$_,˜ŸžûÁ‘~5z~<Ž®=³l”J|5Š=Qô¨suÖQuÉðØåÞùpA—Ú¹Ö³ @D!ðÅýÉ[?>ÆÙçøÑko}?&n=ÊÞD;cд‰¡ª†TX!ƒ º•°œè:)1‰T•³c¤’ÒÌú¤¯¯áÄÛÇxü™¯ròÄ)†FøîkGˆƒÌx\×ÑÒô”…ÄDJÔ ZÒCŠˆ&& 5CDH’„Äd$FHÌŠg%öc§Îžäð«ù«'ÿœ½ñÇLNNR–%S3“µñÇO1`Ö±ó×?Ô1¡'²¼{.î©• º Zïü±j,μ-—;I,êü²fº…¬­xóØñÁѲs|ékÍGvÝÃóGÿ·OŸe]sˆ{w~¼[ìíÕv¥¦‡jŽãg ÆÅg…"Bb2L–b˜Æi³>³¾A²æ ¿xÝ/ñé{>Ãúþ!~aË5œ>w’=ò oŸ:ËPv ÷îü86làºë®[ƾڮt-´„ ±¾ ƒó°Ã: _–¸²/K|¹D¨Ú„ªÂ[k ] ú¶mÛøÃ=È5ƒ#\;º•ùÙ9úàÃwÝ˦M›¸á†ؼyóòÌv9{!‚ ú½—¾ò¿¹é—oÃ{Oٚŷæ 8‚£âÎ8‚ ¨Ñ娤ÚM¡ú—,˦Ùl²çñõoüÕ”òáÝÃæÍ›¹þúëÙ²e ³³³ÝzÚ uú›74~¿‘È'‰Ü~¥OH‚*¯—¨êò“›²,™ššbbbc Û¶mcãÆ 0>>ε×^ ð'Àwâ“r-ÍÜò.ó¿§«ŠOP6CqC`.óAI<555…skíòšrhh(v·žùùyZ­'Ožìü]ÙµÔÒ^(dcÕ#¦°¾¸%0—„èæöZ¥ÕÖ•kÒ@×J¯}‰õF¯Ø×è[V±AWy²_ÿÓµ+íi  ­Æå ŸðK¬¤­¸È5ïòÝ·ã£*¥º¯Ö¿'˜hØqà;VìÿÄÚâ¾^ÍIEND®B`‚rubrica-2.0/pixmaps/48x48/rank4.png0000644000175000017500000000410410554703326015605 0ustar seb128seb128‰PNG  IHDR((Œþ¸msBIT|dˆûIDATxœí˜{ŒUGÇ?3çÜÇîÝ÷ƒe—·Ð]J)Ïb`«†G|P45m$†Øj-Å«ÆR46&RcL+‰­þS&44­ÚÔ"Ò†¢KxŠ[^"ز]Ø]vÙÝ{ï™ùùÇœ{î½tØÔWb'™{î½gŸùÍÌï÷ÓÿVª&ý·!r©øðà` ³Î{€ÇÛÿ“`3€m!„Œ"Ÿ¾ èÑt¦FQv"ð$p_®ž>9×§¡ZÓPM5šî~¡£Ûr¾KØu8 ¼¯ÓÀj`׿p)°¨¨­P|kE‚?§4¡kÁX0V,FÈðçãÛ6¿žÅØ¢6¬ÅÍļø5à7T)Ö­Lrÿ²8¾ç* ’‡3²Æf ç. ë·¦Ùuض½ ¸è©sïp«€€^Øâ±ý‰2ÏŠ÷¾çáyžVx´Vh*³qEi–ÍñW«ØÛnr̶֜+: À/þçÄxy]ŠšrçÇQ~xåà¥@— t ­­,*\¹ÞD"„Y1¥A³l¶ÇŽƒ†¡,·¥ÀŽÑ–{ê;gx¼´6EiB¡½ð+Á«?˜å¡°('y8+`­rOT¦OÐìÛÚˆ  HkáÑ>»õÓÕk°~­-&´¦˜Ü 8rÆr±GÀ9þKÀ¾Yð;@鼩w/Œ¡n]itt’½Ç®D…÷xt©›jíGuöµ§£rGÎ÷?@øT ¾òi?\·€s;EF»P_xä󉨢Š>(MÛÑ Q…·ÿv‘¾A¥£2 è„3®æOõ c ˜Ö¨˜7-¨_p.0¡$®X<ˋ܄ Ä€d™:±.ªP_SNYR@²á{‹¤J=ÆÖ–DåZ&Uºv ï~Âß [Š0V\ð.€OÌôHÆÜŽËíB$6 f·ÕGZçŒG™+`Ý{ɸzÖð±ÙµQ¹ù-eÑ`£]2.hÖhUÌ0àT€™“tär3æ*˜>¾¾b1ßÃ÷4ßýR3*èÓ¾Œ"Ê7î®!óHÄ=V.)‹+"Ni„(/ºÊˆpëп°  ¾RÅVc|Õóú_[J:A̘~#Q½µg9³e>]W5‰Á£dŠ! f¨º :{"¦1@Çp€ušÀ‚.€sã3øÒ vˆxÐæ¶¡H4ýAƒó–àJ;©@ÈX°VB7ãr!dU*Ù#C ÀPVœ*1 ¥„œ,ÜhµJ£uÞ…X V” 5B`rê&ì ­€‘âßY3Éû×à€‹Ý¶Àð^¯åÀiC&p*é¬É†Ï‚ÿ3A.WßBf,ôíïØ‚u.ôôi…ó#vttKÞ0hJ¹w}†¶“†tVHªðé@‰$V6¼ì²„ òç¿×¼ÝY“·ª@w0:G< °ÿ¤‰¦)k "1À/¿ÝÌOgùG—,—˙Ȋù\X?·. oüUq±7Æò¹Ùh·w\ºóŠð "öÚXܬîìîiõIÆUä³+û¨3™5Ow2¦ ¦6j¬Å©çœ’6DjÚå…k&€M¯~õjÀl$f»¢Aì>b9öNdÁMÀG¼< P9¶Zqë:T…ˆÐÜ0À’EÍütk¯îÏPV"4U;•Ëç¾e„‡ O¾(dt5ëW%aÎȆƒÚ´Ëre bx w"†—ü?­¯T<ÿX’TBáy੼jö’Õ¼r¸šWÞ¼ÀŸŽu³üŽ8u冚rEm¹¢«O¸pI8YóV{–;çÔsWk3êÏ348N½³êþ– /G[ø]œš²×lÄ ÇÔCŸ‰±j©ê;­ëË…%?Q‰$êÙ}Tèì±tõ¤é¼4@Me’±µ%Œ«ó¸}²e°÷™ô ³ZJg„l6t\ަ÷aàÙB˜‘M?OÄੇâLŸà¡u^lF,ç c¶—$È E`øµé,øüËö‘±ÚY¸]|CÀp˜TW¡Ø°&N]ex(R*¯ë‰€02‡IçM‘ËÞø‹ðÜSØÄÜMDQéLb€×UiâûŽ[Ü¢I&T |Ö9b}Ïû½ rØáÔ†pm'„;³¸Kß~3ÈÎÅ÷/ª¼D±ö‹>3&êëX0< ‰ cEÈd…Þ´ìþæ†D 9Ü=qÿTëË×ýæà¯ÚíÅü¸§§Ç¼ïýßËsËòD·7H0#Rä<¾Ã¤´IÀ×6”%þ×ÛûÑj"Äb2ÁpL¬\6Óêì ü:0ø»/gOO¹$Ï#ßöØŠoÍ;¶¿xíÚ›ÖÌH*Q“’ ^žöº®½y££±ÉåÞÿ¦.RœÞµõþëÆ5ðÛ×rḛ̂r´¡;‹ËýÀ;_uIÕ^Œ8S ?ÑÊãþgŸ]/HzAT’A{"ØûíÉÔ¾¦š===oÍÎs¯¼íÑkŒlIêï¸}%‰@áÑ j¿~zý­Ë×ýfð”ߺØ&x^Sç[îûÃÀràoîyïÕüй6aŠ‚Þ4}¥€>à%à%»Ý¾£}ĺáõ-S´ÝnÏ]³jayÄSª³/"vA–çy¸í±Œ‹s`8ÀžêFEžؒz>}÷Ÿ^7Ç'¥Õ5`S" 8‡²Øöyq"éAIsÎ%NI’¾×6”Õvj¯:»G·M…rmC·øüÏ7nøÖzI'aŸ”V à¦: ܵõÞŠ¹sòxdË~þðês\‚y§øOuÏ-À£©%8ŠñÜoë•ÿÞö‚p!{À™­;{+ŽÖíbhØÇŸß}…ùóòù »í­À6lØàxøÑ‡{·/Úºuëö®æ®ðd5µNaï®W™Wn›ò^ç­B/ýd•üó[">òÓ}t¸³ycËwÛ;€M÷Þ{oÁÃO<Ñš´Öž‘G8晞a÷žÝlýãNeý5³„›¯+&Š•%Å9l¶½3õ½¾´ Unæžõs'=…¨ü¸kã6mü—ÃaÂæS]§ŠöìÙCµ€üÂ|¼¬¼v%«W­~õü¯xãÑ]”NËäpm›ðwÌ?k¯½5¾—(Ôùi’öa+¯yTþ¸ùñ'·ßýÀÝ`<˜_ç¬Ëß[µ—Y3f±ô²¥D§ºNaŽ™Ñ84h"6mÚ„?îç?þ¶âBå¤+c‚@4š˜Ø«½Çœ¤YåRØb·Ûoð¡wÞg¸k¤+ÿÐéCTï­FI(,¾l1ùÙù˜­fö×îGoÒc¶š'ö Œ¢×éyú™§9ÑrBØúü«,*·ñÀÚEB1BÁ¤¼ióÛã{iTÃÇ)(ç«Bw½¿õÞ_—ÏÉ3>²e¿¾²²’šC5©pv¹Q4Yc÷ÿÃý¾õw¯7vwZ÷îÛKÓ±&¢á(YÌpÌ`åõ+1˜ ÔÔÔ I3ËfÒx¨EV¸jåU‚€F£A#h0ê:7_“‡°å˜‡†È±šxóíÆ­ÀƒªñIu×Là»êˆP¸ãåï\U1/_ëÆ4?úñ.Ò-ŽÄŠU«“«6¬NôûûV}HÓá&ÜnJ/+e¸ok®•¼éyȲ̌’8æ8Axç÷ï é$žÜü$-Îbѽ”_VŽF£Áb²0ààw¿üA¯Od¥·úƒÚ?Oq ¡: OõLü}àÉo¼1}통⢕‹t}Þ>íÁ#qµ¹puºô —-Äa`d`­FKqa1Ë–/£¾®žÆÆF®Xyf³ƒÎ@ŽCCS½éeÓéëîcØ5ÌåW^Î`ï …3 Ñê´ìþx7µ»kñ»ýîʵ•¼ø¯/"@HŠ_pN#pàŽ;ïX»ù©ÍÒº¿_§3Œ™>:𑦺ªÿ¨I’0g›q”9¸~åõ¤àõy „x|ÂÑ0%ÓK(,*¤þp=>¯œ‚}ƒäæ’‘“Áž]{ùCd˜38qôæ,3H°¿n?‰D‚¢Bj?ªÕIzé`ë‰Ö6@×€ö<†Z,–·ûö‚[ÿöÖ¤Án(hînæà΃´ŸlÇd6aɵmËÆ>ÛŽ¨9òÁF=£,(Y€Ãá`ÛŸ¶ ‡¨«©£)½ [ž ÐÚÑJCMK–/á䱓 »†™S1‡Ž–¢‘(×Ýr-Ô¬clh ߈tS:&ž•—$5d@'/+´íöêúêYÓ–NË:í=Q´žÚk‰ÇâŒòù¬»iŽlÁ– ŠFáÔ'§ðú½ÈqY–Y¼|1iæ4‚¾ ñxDXrÕì>Àˆk„ì¼l|(pÍ × Y$ªTÑÓÙƒ»ÛM4¥¨´Sº‰ÖÆVAÒKµ§:)$´“Œ€ÓrLîè ô•½UÿEÖ",¹óŒÖ¬Xƒq~⤶®–«×^/䣠¨}šߘ}‡öQ1·CÂÀŠÅ+(+)£îPÃÃì¯ÚÞ gtd¤ã†õ7Ç©ª©Â=âÆ7â#â‹cÏAŽÉt¶t"é$”¤7g›Ã€¨%Uw@ToH@™F§)“Ýr¤óÓNƒ<_fºq:Åó‹)±•Ðr¼…'N`Ì7²èÖEìþßÝÒ ”/)'/?¡@ wZ.ý½ý´u´aH3 IƒCƒŒŽ¡AÃ`ÿ ×®¹–y‹æÑÔÖ„³Û‰»ÇwÈKŽ=cºß ÇŠ¬Ð 4èF\#ÖI XѪ† êM p) ¥_Ìg"ÂéO“¨L0#Œá zXxÓÂÏê7zZ{D‰ׯ`vþl:4dVd"'Ÿ¤õ“Vä¸LÀÀškeý=ëŒï}ü®N!OC†Â9…øÝ~ü>ÿYDQŒ[ó¬>Õð¤jsrÜq 0W…ñ‘x iæÕ3qtâ)òšÂQà˜0^#hxpóƒÌÊ›… žïW½ONA¥óK9~à8AK¶Û4 ®X@4¥þÓzFè;Õ‡NÒ‘ëÈ%:¥·¥÷s4¢†¹ ç²ïOûø’Ïí3ªå31^‰@§:¡,À A#<³³nçÕϾñ,Á¡ %•%ô5ô e+ËÈ ƒ’¼A˜p¦n_Ë*èïèÇír GÈ´dR¹º3gpö;é:ÙE,Ã6ËFÄ™ `µYñ»ýD|¦—L§µ®•¶†6ôiúÎ>gß?=€ª:ˆk' vZ H£ÕM&`-²’ž•NÓ‡MØJlÄ1JòJ0JF:Õt þ”¡-‘’椞ʄI3N­F•„Y¥q³ î3f3W?¼ZëëóE ôŠRŽì8BÀ`æ’™ø†>먓 ØËìÔ¿[«Õ•ÔéuNwŸûe Q#ïOj<%]¾ôéô¸•‚^ý4©4Ò'´íâYKgé–ܾäœÚÛûÃdd}ŽÀôòéŒvÒðAJRñ ù^ªàU ©Q§¤Ë?^רËâ„1E׉:ñ!£Åh¾æ¾k4ñPüK èõz¿y߈/,饷¼CÞwUƒ=À¨jx@5>ñEŸ|ë<0~æ?ù$TœŠºAŸ’Tª•¤RÜq¬#WEÍÌE3i?ÖÎì+f…ñö{ÉÈÊ ¯8Ó{NÓðAƒ ñøŸ‹#U£ûÕO¿ºRsý’¼¥LM)I]zUØF X,¥I›£qÕ«ènêž àjvá<êL Šàöy_Pë¹S#US'¡Ká/¸„ øQ5|<­Æn7YLɲ<¯tY©`Ê1Ñq¬ƒ1÷X0è þpTM€j|Hu$’BúkyOœÚôÒTgŒª#F`qzvúSÑ`Ô jŪH ò35ºÁ”O¨N()ÝôkÑÚ3ÒRË-jjDÕ*MiF‰KõKñ¦^“²tªbʽDŠèå”Z.O¥4~ÿì!¦]L©bò9êø%5üR9ªÔ2œúVá+¼þÏ1 ž"w¹ÞIEND®B`‚rubrica-2.0/pixmaps/48x48/all.png0000644000175000017500000001406210554703326015342 0ustar seb128seb128‰PNG  IHDR #ꦷbKGDùC» pHYs  ­#½u vpAg ‡úœ½IDAThÞµYgXTç¶~w™> Eª4±"*bÇÞ»˜ØP‰ÆÄì5kT4±—X±bAì € @é½·¦Ï.÷œääœ{Å»þ¬½ö³ŸUÞ¯¬÷Û¯$w #êüe;Œt‹´Ž=:± ]í³îó g³Ë´kgi©úXÓ¶~ë¹ùæÁ¼­à½UœÓ$é üRqåGé@講™‹‰9q’[›L½56Þ‘\ ¸§ákeû—_ËÑú÷=»«øËf¦˜;Úc«¨½ä•ðaX ò€ý~Åà¾VV§e=[³Â›Ò©‚ÔdUB…L7®a_Í®2²þÁû•U×+”5½nçÂLÈämr¦ªvÿÝŒØ ¾>ô?uÐ9:ýÓ*@ðLòÝè¸dÔv傊õNo¢ÒzŇhƘwÎ{Ê•ÛÄóTœe£C ì$ Xn·Nò¥ªQ?ê+%`7ûc£ÓdQp¢ø•C— Ÿú#¯&lyp·$ötÁÇäæhüé¯ ù=$žX°‘¦…ìaºðƒó³žyv>³ì‡¶9£ÜâÉŠî‹mE׉,Þ–oB+@õ®:F‹µâ¢aê§ÊÆ0#Ùï‘k­RްIlæØ.·Ž²Ì)< ö!²×Ãæ .¿vá_ Éd¹Dèˆ7)¦ ºò‡¤.–#…öÌeA.}ÞÊ„R{¨*Uì,Í÷Ô‹ëæêæ¡´vNéÍ·øÀ´2oáâ¡GŠrÅÉ€ÈV´\¸P°“yÆçš>ÛýÜE¶çÿ šçyžçÿe²ù]¶Ä=‘Xoy{>Ó§ªw‰ö‹>‘%%ÃÍý{Äa…° m"Þ°²vÖΔ]QÈgAã7ióËcÛÞrÌêìeÜÓÖ»Û¦rÞµq «‡×ŒÓ¿3†”l² Ûƒ>&ýj¹2¤}}ºÚÉùž>FÿD‘óBD„Çé“/ !èIÕŒ)¶<+£^ÓÝ¥:ѺªJ–æ˜#*¸Q}k©¾ßŒƒuÚ‡Âtö ³Âm¸q»Ú”¦¨H¶:% ŠÅ*Ò—r! ²£þäQa,ªO¨]ËΘä߬uÈúå}qŸí»³a«álu|ÖøoÝÝv›ií¥^VÙ«fâø ÍÈRÏêÑË"„ âó}/`dwÄsÇÑïÄrÑÙ±aÄ Q’ÀO|Ûåî°÷½w;tO'£îÔ” +þ|LNÒÍç5UsWXÔ¯ û鹸 z²“Z¨}l^‘© ·*–º´/îÞ³³Ú1N6ÁX‡uö^âo,w[<[H]4:Ã}¬r½šå\ú=ScÚ[ضTW§Lôl³ÕǽÝdæºÉ³A»ØÔ[(ï,w4t´í"rØà:“²³t¦ èat* Ù#øM¶ȯ®ã2KsK^ÞÈ;ñ1§v6]©¸?PsÉœ¼3°jÈëïÙ­©—:ŸÖz–ÆT‡.3Yy·5º.èÚÁáA`e§Íòí6'Û“žÓ¥cpßt•ÿAáßô°î`c½«C5ýei—›…®.á\Æ‘Œ}ß‚a•¶õñ®ÔžË¾Ð'×þ¼~À¥Ó\ÿ_l_Nð‹dÔ\+â] FV''þp¨²õ’¯C’£¥@¶:ÊQàDƒØ0^ëÄ%º«¹X_ Ý5èYÕáò Âíïº~žT½©¸Õóq¡ÁYS®½ú+›>žßµþν¼ÑI[><œT‘TNë÷4'h 9¼i|¡s©_hž¬šdȨ›—ñSvJ}tÿWËñ¢ Ἒ’Ìû«ŸSC‹²m…ŽcŸs™M˜V¾óeÑ6*å©ÖJáiÛ:E\sG& uev 5ð—. —Ø;O³±“-Æ ÷ÿt´ñXÅÆëw÷Êr‹;VÔÒþÍ“›ýg¶lþ…,))‡Ñ;ÝÙDÜ¡Ò Eô/‚Ba€êB9ÑQ€ÖÚ´š…±z¡zˆÉ†RÓZÅ­0×ì˹1¶ÐY¾±¹e“"qóXÑ!Àÿ{¯‘’&áDþ`¯}Çû\3 ^ëá¬é)ZW?Z%%–Ym7\ýÃÉê©‹ìI _bK6êäŸ_W‡¼³II}u<ÿ齟SöÞj}hßStÇ G0cv÷rfK»Kføº‘ÛÙB~€BE$‹¨D&“©î¥ûŒÝÆÂê6£°‘ùµé;C Ê©âq¬8P¼S|O)DÛȳL²¸e‹š }ü³ ÚV( dDí¶úv5ýÊ"jÄæg†Ûj¥f5Rà#­å{SsûqžgÈã’Íõ%\$+ñœt¥ÇŠ# •ïPY…u½Ë6«  ™ÚTuK;5&ÿÙmÖY¥xÊu?yl ¾êšåkmŸïº.é¾É±Õu‡ßÈ.d’åbê(©àm‰Î¸B~KlG.—¹ *þ;ÂÆô4çÌõÇÒ^¾Íj’SIp¹†~)sË]Î_Y²íѽÞ±='±¤*ÏÓYhYzƒ™ÄKÍFN_Ç1aeåi €÷‹ãÆœžŸ§dñÝËÛ¨9ÝðAZ*Hº[æ<”ò’Þ¯`q2î*ë†w8 FÀ„áø– øcln¿–íÄžä|ø‹EQ ÁU‘õ!÷FçZ¥•f -œß0·Ê:×À ¸6RЦMŸÓ¶ÄI¡ƒ|È£øº©…ŸÒgÕ÷«õÏ09ô…lšõ^ÇÍÝœ$>Š+Öm§|tç9×ñ„߆NX@8ËŸ‡±™,d«859I  ©r/˜é%«PØ=§&ô€ºúÊUÕB“ª²ú}íïPQpÀà?Íxíã‹&†l£[Ïú°*k|áC¿‹å £ò–W7èa”SÕ3ê•xŠh”!‰ØDnÁH¾±=ˆÞ¨âÃù¼m ìb3˨ËĪàº] sK6½­ï”Õ³¨·®WÝö—ÏÕ×ÌU†¾nb ¨ÎþÉ|þw~dq ÒŶHrÜá¿Ò}­T¥ä]§Xä ìE„&~˜I˜oD#›E.%ääF²;1‰ -þª‰¨_òÐ\w² 8e[éþ0ÿÚÀ¼<‰{€È­®ìbߌË|þЍ(´hÁ9õÊ`Ò¼oïó(ýjÊ­”Ë>7Ù&Ø/¬¡ïˆô³ŒŽ ‘Wb.aOÌ„39‚ʯlnm¼Ì.Iû±±wé#­MùFãé¦Kå.p€|{@YËÚ7®þ/þα’WihªAÙ¨ÙKà=ˆ@9~ÈÙ΀Œ ñÞ)gÞDRÆ´Ûo¿IšM¬3ÇšškÑíHOf¬Œžc1,ño¨Oç}r?}EÐn•u!žøbµ‹wé¾mË·ê­ýe¬U16o@^oNÁ—þ¬“'‚ þmØÿ< 6|hÙ @s|¶Z¢ë psœ…ƒ,uÒÉÙŸ‰$` ¿F7лö!S oØ6ÐZ¿°uZ``ç ÊÄO(æ†ð5°'z±TO ý €Eè×* F˜t=0tÞ’*@¸Ù¸ˆÙ Ð?Ûz23@Îßb Þ|skj&ÀvÕ|ÇN?É…Â0€š<ºÖ±¥ß󵀿ðŸs8PŸ7ëe# nÏo£¦z®/;B(õe=¾«ª 2Œɾ÷,„îëœ:ô—)\6ˆ,lü)O±†©îÀ-58"æÓ\ã7µöh•vÄ|¼ö'BÊJdi"hi]ÙǸ¼þ¹É›Ö ;|ûñæ¦oŠl*&4JÓL6Vóö¬Ú6çÙ_‰è ~°ä;×)Î&¾d|ï-­œè¨ê„1Ÿ!£GKêd6”µ²‹·Äx\\ï´.È€Ú$iç†~˜é¬JED½k¯f\ä—i½ ¼ll)ÙR0)gTúþ˜×©£õÑñ*ž™Odß°áÏè}Ç]ÇCïÆôJÏ3},qbóÙÜq7øohò†š±ïÅîå­¹á= }=;Á8J¢ÒÌd×é 3Š×˜Õó_m#¶•dw©Ã€-ëØô ·”Qåκ<ðKr¦ïó{ÉÇ^&Ç÷Íúéyãbâ‰o²Ã?8T¿zP"zgŸ –à”½'kqäK¯Åª7“’|æD³~&ƒ©¿Óm‡e¡Õ)³×Qy4)Táž©\rºèÀ_eŠÍùŸÌå˜+&Ë°Þ FwÇ̘Ca“ Mð*3¡ÛÏ‚µ6ÃÔBÉŽ?]ê÷£—ÞFY‚# £ìÞ¤¦ÒpÍ,jS´„cU';TIx'C‡Þ©vÝéç¢>’-‚bâo ”ž7ýÖP¤^ÔþV¼H~¨Í):”¾ào©·OÒšZÍì.ÜONZ?)ÇójÃÓÁÉ×x;ö"ßûÝáæqnºÕèWÙA÷`ÚI.ˆ?Y^dÝ%o=l^¶{çTîÛ1®ytˆ0ž2tgš[„~%õT4–j¢ËÉ;ü nµ„-ŽrÍmf¡>õ|1îð(D)y›¥°›è;é2t)-}sâãÓìMÓË‚«cžMÆ1C“iujÈŒâõÙƒàlÉ=cQ¦täVë^b¹«ÿh‘JÁËöYF¸n+J÷÷vÈ º=]œda£wþõ–yäZé‡ÉKk.ií ÏGÖW‹†é¯´sTœS”r³HcüLèEæ¦ïMN8×±F2‰šNž†ž$"Ä!Û…9F\¡ŽT¥6„ëû;®A(C0^|Iå^Òk¢$Ëfþmýf£«nJµ’p›øåБLjAd_€Ö“ Ó±B°‰¢…ß"^&8%\‹]¸EΠŠõŠEõ™ÅïâWFŸ¿yOô騕¦Ç«ãuoÄÿ¦²ši°âÒ©ÑÅÃßf¬é?«~°ªª&Õk¤øEÉ(Ù¯ÝwjÛþ·>3ÇLšSÕÇäÓmÓáµ Ûãœ~ >ߊ›ðkbô­ôû—F7rúÕ\õA%–1ìõ©Ø«ã–H%=÷„Áˆ¢ß khÌ)¾‘«šd†y†ÃLFäéò›—¢éòŸg>¾¿^lÅ6¤qÑëy§‹Kº¤:nzZË'ïSŸô+ȧM€p’2Di„ˆ&¡8ȯÈ¾ì›ÆUM/»Ù;nßÛ~MòÊvµñÏW6»-_0ëõ€ðo<¦ÛN–œv?9q-½‘o’([¯fMf?îÀ7 !€U'+o«¾ÂvuÕ%œnV¯ε½òe‹GnBFÏ é8©úE›·aó³Ê_¿ È:_ØïÍõg=SÒ?+žqšÃoº˜Ú¡–»-üiV³-Iú-”Š>Š™tZª¯š«.:>òÚÞ„o3½>ÎËÞSö:¯ª9¿Æ>ò€×þ'|®ßØíy©å´Ø ¯L½v‘pm×Ö£Í]Lãì’ÆêÏpþœ©3\¢Ã(ÈɳzÕçö¸×ö]Ómbž?žWdnoXo:ðq(Ïócy¾iÀ½ÌÚKûóûvfk™¡ì” "*œ·εses·¸¹€á1ã¡]P9dgá4@‘&¡Øx`¨óT2¨ºâ6üÁ¢KrÔÌy+^__§CÁ¯¯ ³÷è< \¦Ù¾ò‡ílÛ•ÊKz?Uº®±Â× ù¢Í5 –¹J…_¨Aæ1)×>-|•Ÿå}76eö+ceDÝzCxÖ¼õè–ú¿#,,‚ƒ;tÔê¡UØawèz·ì;–fÜŬð‰4Dj‡ª·öãΙ=Ù Î!f#‰  eô0?øân<©ÿ`ÈÈxåx×il«ƒ…ËŒ7•Û3%gz/6¯Xµ —ÑŠˆú-F~‹ö·Œ-–_£í¬ö"ZOîÀÃÂ^w ›¹ò¦›ð2°fF¿ yAÆÝø%Åö³ì¶É§;wæóÖ1¸ÁMÝ'»yŠä.7}ì¼Ï8Ï0 èæÉº›ë™ãîøp²/¹Rõ˜¹Ëyq riBt» ÎYß±WXŽ*è&J6Ò£t´í síÿy ýšµøh³VF4kIcË:׬µÛ[Ú›ïóãÙA7ŸðÝ9WwÏëm*R§Vxå»|M­¹¨îãbÅÁUËŠ}¤ò¥:¬%bp™|‚(.:Ö÷¨þòK| :«f©’Õ?侉\žpyêÎË)ƒºg{PHPÐâ²Xž…„7 åw¹¬eM[¸·Øû[˜Ÿ®%¿–©®myoÈlaÄ.ÿE…ÿ.Ü»ªÝãß(÷¿‹ÿ¿²\UÙ‰¯qaÄ(r0­å72 ™ Œö&;R%´™¬ F’<ñÑFT¡ŽÂïçÂtã'&né‚ FXIðæ£D^Z;õYC¬Ë«æ(Š'-…[·„ÚRþ®ÿK^ü‡íòŸüã{z=;\¶ ’l‰ü7Âa/ýÄÛªTÝð¦)ºÞ¯,F—«ë¢{jÄØ¢3S`µKÃhb/õˆ Â/p¥C¸ pÒÓ[C" Y¯ž®µ5>Å*´åûk‚[F4öŸæùÉ?€hË+ÈhÀzŸ|†]0ç'1Š#E_nÞ7Ýð‰ ÌÎz;àE¿O›?­ÑÚ?k.ë°x³f€OOgç ¥7ÈÜž–•7]muß:ªw‚6O«ÚUßQó9Ç£9ŠêÞÿ_ír4àþŒrgÿ¿lµ‡ê^Ó}ÚF¶Õ_Ó÷Ãà±AVA?Z*¦[ù¸/ãµÜ B.–q‰Hã&éÇ}Ø‘øeUiûøƒ·o¥ÏLRýmA^£æÁˆÛ×4q¥[š½š¾:_ €ÿ”®Ë¯uÔüI~&ÿ^\!Ät?e¯p¶ì{ãFó¿½ó[ã›››¶ß¼±ÑãF+Çh¿d”—7¾3füò°ñŠÇŒ;ÕcÜ|·q&ß5[^zÂ|é‹7xßýÎÝ—Îö!ò#ð…{ïýæ'›ìl6ƒq2Xµâä+÷’?ZËš5«ìw;ÝöàŒÖ–Ëo¼áÚE餣1ÚEûE´*ƒ1ø¾Dù.Ú/‡wî¼ãfæÎÍÞú“|kÃlžcDößTŸM¯˜?¿™ã½¯{ùÜD¬©u)ñT–¬C iőҧPpÈOŽàÙŠ[Û̲³/$[Ÿ®í÷»oþã£ðàfà" ÞþW^qy£èë²ËÛ~@¿‘ Mzʆ˜-Qb$,CºF®•´¬ûË5Üwÿ£×|T¸ x8gÆù`c(C-óšêŒöè9$Λ[ÃdQÓ˜‰£@#ДÒÄ„ÂõÂhúwo¦vÞ ÚÛš9{ÕYÙ_lúÏvàÈéðàÙY\7﾿ûÎZq&ÛÇø†lÊFHH˜ÄÆ´ïSr \ÖŒ ”FzÈ66²rå ¸àƒX§`üÊpMÎô¦ç_bý¹óX\7”Ì(ùƒ1£®ãQrϦ¾©•X¶±‰’öÝBë:{ž<],ô 8•p¹®Ç£O¾xZi|ÏÇs]\×Áu<×Ey~È?ÃalhÛ¶XК6¹üTÍé¢ÑK€ë?L¦ïëÍñƾq”ïa”Ñ T F+´V(å“+”ÉùB‘©©¢`)ß_rº|öÃoYq[°y×Fk´Ö¥Ð‘÷FkÐÇÕŒ\êRI  |:],Ôtž‘µW~cC=½cŠ‘)Í@Îç×E–5ÇX0'Æê3bdk%-u’ïþj‚Ñ)ÛÝE´V!0ˆj!6ŒÑ8®OÉQ@ SÔ!¥Ô…²”Ų#N€ ãskSl8+…eI¤%R"-‰VGµ2(¥QJ¡”áÂqžÛSâð°ƒÑ:4^`NÈe6š|Qq`Ôa~[ÚBÆÇÇŽª²ãŠÓµ„.îX^›VÚéfM591 ÃŒA©àš¸%¸¨=NÉ5­Ñ:Xû•õï¸>£9ŸáœËž~Öœ·lŸ1f"ŸËûR ët(^¾$Áymñª‘ÚŒ2áZŒö•BùºzÓ™6ëĵå%ÇÃq|´Ö”]ÇñÉM)†Ç=z‹<¿Û³ãç)åeÇÆ ¢÷èÏ7³Ð6§VPk Œ1xJáû ÏSxn •V(­ÑÆ€6` çX¤âÁ|í#ì88ÅÈ„C¹äQ.ù”Ÿ®¾"ûMñø-2™Ñíë½ÇFlà¡ÿÎÎY¥TL©(ß …™Q˜B­§– 6|‚pϯ†¸¾UrýÚu1‹\ÙgÓί Á¼kæ!’Éñûgt|’y-†GóÜö^/XÝf™Ö ß—‹ñ^û!€Fk¨±4ƒH¬´Å‚›ðZwžŸý¸?*¡ù²fZÖ$1¾AûU<γ¿ü ɲ,½r²7µ kÓî—€»}Û e³l^´Ö ƒ‰&&ˆ a~”ÊÏ7”]H4%°ÂdVfȬÊT Ö^ ÂßµcÏëüø‰_Ss]}ÐèË‹¬úê:Þ}lû? xìT‡úÛ®^YóÔ_¯O’©µöú<½«øž ¯Zž cqœ¢«9pÜgS§Ã®¶ Í—48uÀXZiŒo0Þ4 ¡ðÂqâõÄë㈘@&$Ò–Ë`gÙûØöJg° 0³ Ñç¾”Í6&-@ðí—óÜÓ‘ByµÀýÓ æÃyÍ_½gõC«±„&4\›iã+ÇasW¥hiRO–õÃÊoÄéyùߟüÙ²zr§ƒÖ>°9%ðÙy ï4À/­X6›æÎ?óŠ ·ÞÕxéÕ7óßo¡-­8<ª‚$Õe è|ï\¼ázÚ—¬ãèkûéyæÊQ¤W¥Á Œ ØË ´¨R™!Hî`Ø™.ŠÚ Ú1Çcìw£g¿_lGÊ·ýAV¯9Ÿc# ÷¥.™äÙ'&YŸhY6Äb:Lƒ‘­MÕóB0#‚D¢–΃‡Yá*úƘÈM3®6\uñ947d8Ø;ÄÞAzúÓ:·žÞþ‘Dñd 9ôl!ÔåÐã&Œ‚zÜkÀØ@<*Ú¤0¡ÖbºÁWÇâ5ôôôQv<üpG‡”¸ùµ·xñÕ]Õ\8!‰•:!᫉@©²D¨¶wïS™bÀ±üÄh{}C3ŒʻŽð¿ Æ ¦.ÃèdžbÙaÇÞCøJU;KmþŽ8DÐÅÉñÊ®‡íD˜È¼dfWûØy¤sG8”GrÀŸ_ù?÷}HzGysÏAö×VrÀ?y.éÊû0¡ïØIT÷$ËEE¼nf6lØÜ½c ¥b!|_}¸¯"Æ+Xx^+ÅX.ÂõJù'!]êriо½¯κ~$ '5öýv§ã@pÙá=ÛZ=ÏEH iÇRVw‘+k[kμÁ)—§hªÏÒ74V=_e›ÅKi…S.21ÒO×[ìÿýó­ß¾¡È ÃÌúw⚀+‹s@¬¡u1Mm‹É4¶Ì4¯I‹Ç–Ï-sÖ’vö††*|ßÃsœbbnœÂøã=L ©TÕNàm`ðÛ“P¤ž÷+baê"`jÃó‹€%ÀàŒp¸É™ðºÀ^»v­Üµk—=WŽTÖJUíŽÝ@O¢²æË!ûÃ÷j¶ÆWˆ0‘íРÚP"‹|^)|2òãÈÌŸ.DĈ V’Ñh' ÂûúTŒîJDŠEtÅp+”Ê5â}€Ì¤<=£E%Ê6þl“öƒþ+!f'#ƉÀÌã(£E¹:Ê&*¢Õ £OÙðSÙ'Ñ3#÷~;̦ýO^ÿÞ¾Ù\»a IEND®B`‚rubrica-2.0/pixmaps/48x48/Makefile.in0000644000175000017500000003312710637712670016140 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmaps/48x48 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(icondir)" iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ icondir = $(datadir)/icons/hicolor/48x48/apps icon_DATA = \ all.png \ bussines.png \ contacts.png \ customer.png \ flame.png \ freebsd.png \ gnu.png \ hobbies.png \ keys.png \ lock.png \ mailbox.png \ net.png \ notes.png \ phone.png \ photo.png \ puzzle.png \ rank1.png \ rank2.png \ rank3.png \ rank4.png \ rank5.png \ role.png \ rubrica.png \ search-contact.png \ sport.png \ strategies.png \ tux.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor EXTRA_DIST = \ $(icon_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmaps/48x48/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/48x48/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-iconDATA .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-iconDATA install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-iconDATA install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/pixmaps/48x48/phone.png0000644000175000017500000000647210554703326015711 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“ ïIDATxÚí™ypU×}Ç?ç.oÓCHb!lˆ!8vlÀÆœxH±fâÆ¤ÅuÿHêÔ¥Sì2m2^&uÇm§i†tÆI¦Û ijc¼àB¼"[iR%`ƒbY ´?éé¾õ.çœþ¡÷èå!vì¦ñ™9sî¼wï9¿ïoÿ|<>Çïrˆð[ý €­â{èó¬¿bpçÎ[­dò^?“‘2–û®‹ïû(ÀòA€3<üNntôå/nÞü7%‚Ui­œÿ«Äð‹/>©«ûG``7•BKI %D"‰Äã¤Äñ<²Ù¬ª«©åó‡R3gþÅš»îê.Q ôG @†³gOàwwSìéÁ?u ™Ï£•Bk‹¡ ‘H c1ÓÄ3M²žÇ°ãPÈçÿ³³¿ÿïصëM@–¦š@"ú£`ô?÷ÜWmØ\<~¯³™É ƒL“ãUUÌYµªa¦ëþAþ½÷FG–ñ8*ÇUŠŒ”œ%],öz¾ÿë7nüÔÐèèŽE7Ý´7D}P ÖyÀ /›•F ¡ ´ß¿'öª5knѨ)]—‘TŠS‡1kî\¦56bæó$l›XÒö ².iz¢~ú NÌþÂÝ]}ûCRQï„u> åR©ŽˆmC±xúÇAÏÛwMsó­=--¼ÝÚŠiÛ:rÛm"3{6à2)É>ŒH§©J$¨ŠÇ©­¯g Ì1¥ÖÆo¹Ñ{ò)ºv]ø@PšªB"X…`ÑŽ¯}§™N¯‘Žƒ©é«W‹dMM@ï›o‚mÓ3g˜&Bˆñƒ C¬¼òJÜÞ^R­­ÊÂ0ª«QÑ(A2IÞóèêï§§¿?700ðÀC¯½¶µäÐü ;9ç0/€ùݶ¶þhñâY ¸B,XpbzSSSù¥)³g3¥¾ž¦¦&Nöö‚a„ËæÎÍË‘9˜Ét¿ùè£5¹LFLkhÀ´mlË"R›H`A$“Í~~i}½ÕÖÕõÆ1Eü6Ê ¬-‡ï½íŽ;ä¢E‹Ö2u*bÁ|Ì%KÐ5µhÓ„þ~“Iæ55ÑÝÝMS4j2™Ü+›65‹EQ,¸xÉa˜‘¦RØZcårô¯\OÑu)H‰!S,k‰p{Ðç ‘yúé½eâÈfQ~€EŒhÔ̘¹ªz :§*YÍX:…yòùþ~Ù¹ÿiÝùÓŸ’\¸Ã󎃗Í"s9t>çºóy†óyæ<ôs€æææo”ˆ.sþ‚½èüæ72ZÊ+dï‹Þ>4²¶UW‹cpÃÉ€RB`f2Øï?KÿúÞz‹#[¶0ÖÓC±X¤X(àäó¤ †Ói3œb‘_~ík…ûn¿ý¯ZZZvN&ôBÖYÙ§Id³Y‰„ZËÀ÷•;r¤ÿÒO¢#Р/¾‹¯ž BPU߀Ç[géÿiÒwð Uóæa×ÖbÅcJ#ŒB-(ŒŒðóãÇpÈuO´´´´8p€k¯½öOV¯^ýRHg¤ß• ÇqpGTWW›±DÂTžˆÔˆ miÍ›‹š6 •Lb b9C€ükGw~âÈbñ,N¹@Ô¶unh(pl!„‘õ::šYµjÕÑ#GŽübýúõ¿.¸³”"`uÛ†/ýhZãüÏñ*ã¼@„@¡•RÊyûmãgO=%¤Rx¾O_¨’+ÏìØqú¹uݺÔq)_y¦Pøq‰è<-=û---ï\wÝu¿éêêºdñâÅ_^/ƒ¼JV @˜ LÝs÷Ÿý[ÝE /™ŒsUÉ$¦a‰DðGF9z”½»w“Îå¤$§Ô¤\ÿÌŽ477ßQÒg·DX6$'Nœèصk×£›6mz¸h)ýïᬳ4ƒ’xŠ@~å¿|ÿ·Ÿ~âžÜàÉቈÈe³8ŽC¡XD['éJ§óýI‰O)µïßóù{”RÛ8°­t^@±´–Ÿ½L&C<ìÛ·oÝ–-[>[b´5neg¦Î* dç±_9°ló·oÛý“—¿ã¥ “ñ<ª&åxV©ß¼V,þí÷r¹o¿xøðºT*µ~hhè‡mmmÿQA|±¬"€7}úôÇ–.]zgkkë?UWW¿ŽÐb²²”‹GK*ž±gïøÃ»?µøÊµÙG_{;?yþù³ ôˆï?ùŠëî)©K°sçÎæ¡¡¡nºé¦Lkkë’3fÐÜÜüé°—jvtt þùÊ•+} è(1ø¬€sFYJ¦"¥Ì0Ä^ûÊÿýÜÅKVœ À± ØúL¡ðRèÚÄ/qö÷^ýuÛ¶í¿¾þúë¯íééyàwÞY»lÙ²çǹ¥¾¾þÇG]«”ºqöìÙ/ Á}¯¾úêÁ|°£,)c¢ ¬Ì¥ Ãr€1 ]šc7üðÉû~ú‰{R'Žu”7HÔÖòÉË.㤔/oÍç7–¼K±bxvÍš5[_zé¥ç{zz( k›››ïò<ï–mÛ¶mîíí]{ìØ±kb±ØËs—,Yò嫯¾zg:¾ôBî…D(Ù!i”U+V!•Ø]W]þé{>ÿ…oŸì—úÄ_í”2bDÙ)”g¹H0»ºº~=oÞ¼ €jooÿÁîÝ»¿«”úË{ï½w^___W{{;ÍÍÍw¿(1Ø+ú…\îJ¤ÌPž¶‘0 rR–d˜ø²n—/¯Ê®Û'ÛÚÚ~ß¶mcÆ ñÇwïß¿úòåËûý!/é– ý‚û؇U²°D¢¡›* q¿|óf„쬜"\ôÆo,]±bŰoÕ.»Ü3ïˆQÁ½°DìPŽ>0\ߪdÍPéXVS³"OS.¾<ýÚ#öV-3¤B*äy—·ºòú2D¼UQ‰U:?´Ê£ÉW $\þ銦Få…mX-Ðí£B NïùÛ˜ ˆ¨8ø| ŒJµÔÁ:Ä€3ZU€‰º˜µZõûè€Nƈ³ÚR&€»é(ÎÑwÖü?çeð%ïU9|CIEND®B`‚rubrica-2.0/pixmaps/48x48/sport.png0000644000175000017500000000725210554703326015744 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“ pHYs  šœtIMEÖ ¼´7IDAThÞÅšhgzÇ?r7ðúX÷^ÁºÌö,Xq·¢h¹˜J-.lÁº’ƒ $`ÃH † ¨!†š$-¾Ö…ª JÂ%pGåsV©›bšýCë"—5¬a—Zt‡®Ê¼° óÍEÉÔÓ?ÞÙ_¶ìؗдÚy~~Ÿïó<;Á7x|²¾ž ¿gÑY €Öšž>=ñ٧ד?þÁ‹ßÔ3¿Ö>ûôzbv &è "t­effæ‘×ß«oSk6™œÔœx¾Äüì?|åÜÄoDµ+—Ûí¢”B9B±X ?==vVÐl¼ÿîß±Y­!£Æ‚ÎjJÅ?>óÞ³¿Žgžú ë«+Év£ÁÌÌ Åù"ù|­5dÖoÒn[‹M¥]]]Ebazfš hùAÄ] ¥ÅBååå§Vä©X_[KüvƒÂô³Eo¶‘¡¾ÝFe¥(/»4Hó ¶UãâÅ‹è¬"?=KÐnâ(!©(…Î*N½°ÄÌìç.\œøÆøäƒµ ÕîPœcznóhn×@)ÊåÊCß±‘M-,ø»>/]!h6ÉÏÎmü– ¬ x9ÊR#ÂÕ«_/Ù?ûôzòÉkÉùWÏ&ÏK”R‰V*™¶œZ*'ÍF-I¾L’d?IöÂ$ÙßOÂÐýí¿·É~$A§™œ}©’ …¤R©$ óÅDkƒSeH”RÉúÚZ²0_L*Kåä«d<ô¸e×p§y¯m`¬E¥pè÷,sÏ)IF¥‰«¯É(”Ò¨Œ{ïòÊe—hÖë ˆ^‰$vÉm‚³Ó.g*•Êc•ø­Ç…Íæ=Vßÿ(²¨oe)>{Œ™¹b-ÿ×P‡€û1Ê •è¿>”ž±ý–&>¤øýÒïðqõ—ÌÍÎ05å‘ór¨Œ"âûð‡ß/ñÝïÍò…|Aû¿Ûœ8±øÖÝ»­·’3óhá¼wuÃÅrF%ᥠ\ŠÅ Ý·ø£•³Œ°¹å³±±—+ŒAªÁ¯W©Ýn¡³šÙ¢‡ìíÐl69ÿêÙäÝ÷?œx¢jµ;üó*Æ€wÌK“S(W–FL ž,¡bÁ˜*§¾xSyÊå"ZAh Åé)f &'5µíëkkÉW*°¾º’lï´¸Õj¹˜Lã>ŸŸ¦Ù¨s¦²äˆåé!ª7ë”O•$v±¯P­óLÏyˆ@¾ )äR,L3©7n\ûê$Þn4ØÜØü?_,PZ\$Ú˜]ÃÂÉ“CË=©õc *§ÜHdÜ‚B+…R ´&_оÅó4sÓ¼|†¬]¹œ<2Ö®\NîÕ·±"h­Y,Q:O³QÇß5œza‰É ˜ž§½§r@}«Îâ‰Ò_¯Ž(òž¥™=‹ág×?z´doÛ›¬"ܪÕ*³s%êÛU>X¿N¡TÆ4ëkž*|<¯8f}5b>•2%A£8ì8ÖQ (l$òSÎ{"¬¯®$y Ÿ V˹|× ¸öÎ%N½~Þ!EdQE¡TƯW‘É&…ç–)°ˆÅøušM‹Ên…Â!W™Ç *„ÆRZ,Ðnf ¦p£¶õpùí…©N̹zCQ^œgeõ]ŠÅ$2Nø¬—ZÎ)av[ÜÙÚ`þDJ%Äb¬¡z£Êv}›Úv  ÖZJsŇ(‡ˆ ¼`#‹Â"èÔîϤV´†¼§0»OOÒ¬7Ç Ù'¬%Öð©ïrìw¿Íýû‡øÙ?ÞÀËy˜ÿº ÷-Yå Q&-T™C<¯€Ýÿ¶«[üË/®òý—üÕå¿å—ÿþoyf‚”Oò'ô|!ŸSÛ¾Ëw&¿ÍÜ÷“‰#â8‚ûB bä !ƒ;ãâ/±–Ð · .ýÍOùÜþŠœÎ²+——ßúøæ¿¾éwNGsï˜F"X~ýǨ ´în¢uþ±x_,.ðÞê{llnRYZâÇ/ÜÇßõ¹YÛÆ†!ZkÞ¸x‘r Ãbn!h´Ri9Jbeßy'ÂX!"4n·ª:^G3;3ͽfcBZ)8:ÅdVÑÜiQ*Ÿ$©HˆR“ƒ˜î‡Ñèáïú”Ž/BdÙÞºé‰ÁôØB‘AȼrúŸ|ZCe Ø^+‡QÚFÙˆ,6š6¥Ò,õF“ÖŽO~ÊÃC¡ŒB ‚§=lÏ { ëbT+…Œ°>š4ïµ]7­v›V»é´ CKгXëò¥¨Öî°yí**ë¡8Œ°•}DF¬ŸÒlð;÷tÄì¨ÖîŒ'±lª€«†dD!ê(­Ð r/Ù"A'õZš„*“"K<^¸Î½ñµò"*WÄîTÝ}ö êpZäö‡×nÝ®£rš Ý¶¤"øÆ =`»Ý!©íÓãQw (\!‘>7»­bØH°‘ ‘ë¶LÏPh Xúð+—ÞAg5²Á=ãž$t¯C+ÜiÞ£Ý1äóÓ´|3RµARo GkMà›s”}A=ã:ó”ºcÅ¢µFbAe\85›m”rŠ÷UiP÷–Bàß_åxé8ZklϽ?é¹ÈnÞõÛeëv ÓA{¬‡h·Í¸6¼‚‡—><Œ„|^¥¸DÓ€µQ¨¬‡ˆÅo4 AŽ ªF¬…ÈCÄ]e¥%§@ªxLf@ç쌤M<ÌŸƒŽKvžr¹‚D‰|Dœ‘ÄZ‚¤'˜†kb®:§ag„Ì™ CàVWW±‘%?瘣t-6±€¸¹O¿AÄý“0L`©¼À›—W=éùB£Û1`Z>f§A£íÝ÷ÁûçóÓC*LM¡Žáýk×0ÖòÊé)æQG4¡íc²`{!¦ã0¿~³JõfË«+|öéu–*´ÖU¤ðlõë› ÖYž}ˆBc1¾Át»Nø¾Á”ëôA¿n8½üÆ„ív©m×]ó†¼òÚiäK0Æñ‘ ‚®%0P«·),sêÕ×ñrÊå ×?ºN³QcåÊe Ç®ÖZ)66®:ê`[ÎòÖbC`§ƒß¹Gg×ädÿ{ýá—¹×ñãÇÇû®µHäø>?M»ÝæõsÑ^IÏ#Tcv-ÓsÓT*§ð¼¢‹aë»32x¹¯Ÿ“f³ 0±0_Œ­ÈD±¸€IÆH®%0‚Ùí`ö,Ýž Uk-’Î&UêQ ÓãI|T«Á¸¯Z­R.— hsîÂ\X^Fg5K§N¥M…EÄ>Àßwé[( àzs“_>=‘|™$Æ´eXÞ /CáE06„~5θs´?/ ƒ©ö@ÂôÜ`Ød­¥V­²Xvs΋—Þ¡y¯ŽV ÓóQ±K,+ûiå^a»å“K$_& #×Ú® Kkí¸å>´’R…ʪs}ùä·nÝlýâãß~þùçÞÚM;±X„ž1蜦gzüÞô÷8rÄ’¹ÿ¿Dñ>Ç?ã¸;1±Dc\%²÷â_Ù]²úq´ƒØˆ óŸ»øAˆùüsÁFb!†8&´‚ÄB|²:˱ßÖD"ŽåøéGÿ4q`Oü£‹@Zuïܾƒ¤›íZ$ !ì;$œ”‘q˜N›fÓQ³ÒîXèL¸G×­/"Xö‡¡3ó:£0Öb¬åå*ŸN …¤åû¡ÈÒÂ<úÚkLÏ ÛÊ~ThdO#”ÐyÅænkðùÍ­-ׇ(…1Ž&KºÐ‘”ŽTuc-Åb[·îLv…S©T’Í ‡L©Ð*«˜ÎiB`ò°ÂÓ“.GÊ_ðP\‡f{)£ìwF)Ça´áIÇ™^N»8¥X{ç§—ߘøµwdç_=›\½¶Öz h¿#CÁäèHá°r‚§nû‹¼h(üA»ýgXk`åK_¹ì{¢%ÚùWÏ&þüª œFg†ŠôñZ§ õĦõ ¿…Úþû*ãiíî•U\X^~¢Måo×®\NV×ÞÃãÊzvè7NLÏ §i—ö•½Bºf-Ÿ,?Õvò©×˜g_ª$7«nA—*¢2iaKóÀ7æÀâöHá3P>±À K?zâýð×:ÖWW’……ùDkh¥OëÄËé¤pÌK ǼÄÓ:QÆV¨žÖIe©œŒŽËÿ_ìчۭ۷¨m×±Ö­‘Õã—8Ìq"ÃfJVì"&„J•ˆ+IEND®B`‚rubrica-2.0/pixmaps/48x48/photo.png0000644000175000017500000001017410554703326015723 0ustar seb128seb128‰PNG  IHDR00Wù‡gAMA± üabKGDÿÿÿ ½§“ pHYs."."ªâÝ’tIMEÐ ýwùIDATxÚ½šy”\u•Ç?o­µ»º»zßÓÝIw–î„ " @Ft *ŽŽ Ç £ƒ¸ãŒ:€žƒË8\€ÀÈ€ ®A0‚@B’NwÒûÞÕµ¿zõÖù#¯œ7Ew”cóΫå-÷{ï÷ÞソW¯Ï+¬j€4àðgz âù›K5ÞgÛÛD@Ž/û1èÅÀ™ÈAï·aÀús¨®ºYU$û—_(É’ìÞóãGÓ¶]ïÚ¥ë»ÀÀ:`“ ë½×€‡=¯ˆð.à&@”ÐÎ+/–wýÝG¢÷~ÿßkëª#-{Ÿ{141³X ¢  (Å¢‰á2¹ª¥A“Á¹×¾/¿ªw  kZá[ßøš{ïÏ~#z™¾ yŸŸþ$%ã[€Ï*²êl®Uwÿà»Q+;·¦.^Ñ==1ÂwÝÃÑ‘9ÂA×qÉë&.²$a;'lÏÜô~ ƒÔwîþñÌc/Œ”èc{ùò"ñ`zÆ»+^ƒñQàsª"Ŷ¿i“z÷ÝwÕ/{þM½ë7Ôæãç_k£­gêwÿð§Ø¶Ã]w|“…™ >rÓç ІE4¤ *X¶CÁ00mËv©­­Á².¹àDC*¿{y˜—N‹yÏU;h¬öÏ0m×ꀤ…ó@: ê\£*rs6— Ýð¡ë”ääáM÷=øK9—/òÓGå‘wsËW~ÀygõrÉösƒ¶¦8GGæp\Ë>ÁÿUmM>>ÅêÎVâtu´°¶§¢^äÅ#ã<õÜ!ê«"4TZ'…=–íÈ@?¦|rO@Éûïïl‰‡¾ò¥›Õ¯Üv[ÛØÈH["­ñ£îåίßÊÝþ†çpÍ{þ†½O?Cm¼Š=O¼„(€å¸è¦E$"™Ñ°m‡Ë.y ¡€Š" ¸®@G{3}=m,×å½ïºŠºÚZz»Û dT TYDUT*#AVµÖ# †aÒÞÚÌÂRO•:Ñ$¸·wþäéÁƒÇÆD«ÿúr>{ã.æ—r|àšKùú÷¢hÚ˜–Ö½ lècpxŒƒCã\xîÖ­]úžvlÉ£s$¤.æ‰eBA•¥tŽÙ…d‰ ž=%ïKËi¼Låù€lÞhZÔ>}ã®HO×žŽƒ¯ ii]ÅÐè,—o?“Ÿ?úâh:lî_ÃÚ¾Õ=>ÁÃO6 ð -£ÏŠÊ¹¯!Y–øÎ}P‹²¡«»qøØçŸsüç°~u3±Ê*&æ³ ›ÊŠ º»:xæ÷‡Ø»oxuŒhe%·ÿðghz‘­›¨ˆ( $“IFÆ'ùõÓ/qäØ8Cã³,$³tƒö¦8͵% I>Ï¿Šÿ§Œ@&›Ç4-z;yö¹—8<:Ëúž94½ˆ¦<ñì>4ÝÄrZZš¸ýþÇHç ¤g–˜Ï¾ÂÚµkyäñg©Œ„©¯¯åS_ü6×^þfžzþþúy²¹ª× Fç“©¼cÛ[%IımŽÒPcb6I0àow^FC] mÕœ}F«;ZYÊj¤fG±SãŒ?Jsm7^¿“ÖÆz‚A•‡~õ$3óKôv4ÑÕÑ̹[ú9÷¬~â•T½hËçöŸ\R^.ä<=(úÍ-€[†Öyüw÷}â¢7nØ61³ÈÄÔF"A™ƒC\¶ý(²HK}[ÏX#èî•Ù¾í¼‰ª™T×Ä C¨ª fÑÕ¹ë¶qÎ_ýCsô÷¯'R‰„h­PIJ,DAp} Î2³€[N!¿ñŽw¢;oúúî¼åCáÖ†øÖmçœA8¨’M%Ùvöµñjz:[ARÔ(²À±mœÊ*j  QVN„WA·Ø´¦–†F&ç±, I "®ëbÚ.E]cx|nÆ ¼Z¶™–©B%*öøï§çédÿêÖÆ–úªÐŽ7ŸMoW uµ5 H JRI”$A’EYVPYtEñĽ­<»¸ç—ÏP4 z»ÚpðXL¤È¤S¼pxô¯ Mú(TŒòéL,§w€éñMóNÎþ×3/]ûéoÿ¼±¶šæ†8¢w–k¸fQp%EÁ5OÜÀ±Á.’N¥X×ÓÂÀš69N>›ÅuÇ!•Í"KRÒ‹¾éöí•Úi±ŒWN‰:^3•÷Ô0]J¨ù¥Œf˜&–ëb 8¦î {üI´lÇÒq ×ÔpÇÈã3|ùö{i<ï:Ú/ú(/À²f“U™‚a¢ë:¢(hž þ­<–m§…e4Á_d@îlŽ÷t6Å«%lÛA$EÅÅá±g÷óÞ›¾L],Dc] IV\×Ôp XP$‘Ê ¨TU†Ùº¡›-뺰™ùDŠÅ…lÛ982µ0êѧT…4Ï¡f9ˆ•æ¡Lÿ  ñªðôBª/^U$‰8Ž‹k“-ë:±‘øèÍßåŃôv6R’‘1q-ƒxTå²·lbç_œÍ@o=­ü÷s‡Ø»ï0‚mRÐ rZáÐôBj Xòd=&=¶íUXa””ýzTµ@#Ð|Ã5ÿÓ†ž¶hgs-Mq¢‘ UEUdfS¼td„ß¼ô¸rûVª+CÔT†Њó‰ {ãèè,²$R ±¹¯ƒœ¦óô¾¡;€ `ÜÛÏy`r^J”z•øs¡”È¢/ÞªY$Ó~;»˜¼(q‡U­ ¸à:¨²È¦Þúêß󉻟{~þäI×m:šãlîë`z>E@‘g|¤¸LœöP²)MÙ?8ž©«ªèT¥ZEôb‘pP%¨*(Š„nXH‚ÀYVÑÕ\G}¼’†šÍuU´5Ö°¡§•³û»ÙÚßEmUKé™\P@™^<æytH·Dû`7ýMI îÆ~&„ ›Bm? Ü ´^ñØ·£™²©“éÙ‚(¾{åK¸õgBB#ÃC ði`ø:ð(ÐHˆª’OÞûøfÞx½L¦½›X,ÑèÚó¡Khdx( | ø H ¢@_ZrǪ€{÷Äißµ‹o<úî¢5Û6z¤Ñ=ú¡2€¿~@W`gloóèÁ{ûÙ­ü» п-ÓJjÕµZ¥1ćmÏ¿SÖÄØÔlÑ7ÜÌúý,\äà߇®­¬ØD¥Tbâì |×E( ÀÑÍF†‡îþP"Br[Ü¥'ë>²™î¢RØÉ7_<‰\µ“þ[ogéÒŒ¶vþóà×à—¹é5ÿð§ oÐ\Ú“*©¶4éìÖr;c¯ŸÄmÝÈêáä&NÑ>´—þá ÔÍZ£&z8sS Œ %€€6ŠÁ<Ú5ŸÎµëÉv©a‘» ²T’¤W­%šL‘^=È믽ÌÔ…s! ¼ÏŽË›m¿ c¨Š¢ðÄ– ^µNS,F6ß#¨æQÝ2^ÝÄ2mÖ÷Å9ä^½Êrq±1TùÇEž‘á!}dxè“ÀK@¼‚-æ–ÇoHBa‰ðÀ6)%;ÖuÑ)r•&³I.xš.PUrâÿª”“À_ÿÊä`‹”7ÏÐyd÷šz^÷Jè””’Û×ÐÛâ`ÙRé ¾çø.š*‰D@1$Í6šRÅÐ+`Mò‹ÏÜÏc»[Ù`æè¬/£\)â4àÀ-€¢°§Â‹’aÏ–,‹É½xÿG¸¶b í K^úûhòÊ´¤²QÃ6ðMbWÌŽ/¤š\Œ¨ ODu‰&fY³u#[7çä™iÔªËLª-\ÕHv¶Õøg;X½cËï&™ŽÝ͉ӳ×ÂøÖŠŒ ©À³ªª²¦»ÕžÂÐM’qQ’˜–KWq]E•xŽéÑ»¾@i1RGW«H' •ˆÑÛÑŒ•« |>óH=³–ZÐÆ©³k©Åú Œ¯¾ü|#_€ƒ+µ@ocöÛZ;Q|‰*]TÍ ·/Š>ëãuËGzJ$j!¥õi[à‹Õxõ4KçÞ"—+Qs$‘T3žÍo~æî|¢›ùéY.M÷Q(EHô¦ø×—^ ´\lxatl|b¥ö6´¿fͤY£nûøj;ºNúLätjf…À“HWA×ÊèEÓÑ{6¢$fþãß8}ܤRó™5£¾Ég?w€;M1y|ŒÉéÍ”ì:^,Ëå“§8öæ‘øãa¹²âbîN€HÄ £³CTª6ùE‘ØÀÛ§QõŽ`ÛõjE#‚ÖÒ‚4ÏP=ò=êS³H×Å$ŽïÚxx»Ì2÷îQ&Þ1(Ì™;EnjŠc?ø.¾ï5îÿç£cã¥)%2M-Dã üˆé+LŸ¤µu[îêá­œáôYÓ‰P5UJÓ6B:Ø‹óÔ‹ •…üb„¸¡P©˜Ü}ÛýÊZ ?:Ìøñ,¥Z‚™§R4 ¼).Mo̾fã•ÕBaòʤ³YÒ-­x iLÍ _R™zgœTëvžþl•o~E’_ªcù ŠùÛ PTcù8¦‹”’ÓmvlégÿãƒÔ/ab,`qÒÅ2J Ë’ØA™jõjy”·^n|= ( Ííhñˆcùfç5Î9N¤y€‡žòY·¡XÄÁ±%õšÀ®ƒç‚ æ VoÜľG·qŽQY¨qáDÛ•”–ÈçòXÕK³—q<§qÛ൑ᡎŸ„í=Î.äèéh è‹Æbì{è1êÕV¹D`V®‹t=sÕ#«èL-’;Ø&R! ¾u[Ç1Yµ¦™–è;T OV(XY*v„B9À´%PX4-J®ƒ²Q©ws³ ¹7Þ7€žŽöÝÀvÛ¶¸çGPÔŽe!´~½ŠôÜŠƒ“Ëѹ1‰¦Å" ^qPPP5 =݉®™t5MR/VXš±9¿Ø†éÅÉ— d+xŠN>Ÿ§;–c?´m}˜ó¯FÎñÙ…Ük+ñ\°êuÆ24<‚50H‘€ªUÃ-»M‰6£“>‘£½ÓBíLãÕfTM!j,“‰×©—]Ê%¢“¥æÅX®HÊu—zÝÁ° <ºEéîãtûGy÷{‡0àðŠ$ÔÓÑþ‘p«$"„`avš}=Šc»8f Ï2 áÖÀ÷pœ8Ù&\EX5σÀ³°M‡ºm •(ç’äK‚RÍÅ.-ÓáÏðéOôSmº•·í휻<É…³c þlv!ç­„ÀsÀvhB²\*aDcôööSœ›Á«.ƒªáÙJàkã­4eMŒ¸ÀµêUkûR%QJv”‰YJÅ!b-°o§Ç#Ÿº•×Oõðæy°âq޽y!€%àÀèØøÒJ£lØpo“Çž“#/•ÂrǶ |¡z’šÃW æ.UqÔ>ôTœ¦Î€l“ƒaH„ªà¸’¥¼ÄªÔèÍðôÓi6ݽƒþVÀ;gJtnÛÉè‘C¡ ¡æzÞ3£cã“׋ïiîŽvMÀãDÑÓOqÿÚžY$Õ³Ûvì:Ø&ªðˆëñ`™Ög!M; ÃÛQÉÍ”¹s—Ãû˜)oâ•Wæ™w2l~ð—8ôƒTÊ˲Z«=7~vâàO*£¯KÀqœ™L*ù€¢Óò}Z7í¢PÑÑ+yÄâYšZÒ¸•%0óH«ÄªÖ:}½‰¸_­ - ·ê‘hDS’t³Â­ûºÑznãè±6Þ>:‡Ó²ŽÁ=ðÃwßäÜÉ1„XŽóí3.~AJé‡ËÏ•0-KIÄb—cQã çó‹ ßµ_OSžŸ§6y‚2Jž¶è" ½JT·QµÃpqkš®k5RgîBÀáÃ3ÕJ×zºoÙEÕ5ùÎ7¾Žß÷ ç&§žsw¨Õ†”W’´b¹œO%†‰ÜîûÓÓÙ¶g?F[?…ª‡Y©Ò•,Ž;(ª¤^±qënÍ¥¶ì¡j‚zÕçòi—³QN7PM®Cié¡{x„dk–¯~ù/p] ÞlnñÅb©|*tàZHbÅ@_*.O5gÒtMëwl‹SãÇèdõÖÛ™¯ªœšKâÙ*f¡N¥")U4òå$…ZšéBšKË]äÔÍÌè·à¦ûÈôodýî½ />÷‡T+WTR\.º4;÷_áf0ûzÄuÈÅ#Ù°nußïÅcÑ]€P…ÁMÃÜ{àIâ±þrÕ.áUòVåJ†v}T &›pãÄZ»iî]E2“fìè÷ùÚß‘ºiP©ÖÆÎM]zÉ÷ýÉ0y^ ås]'×ùÍO\4Uíïïí~º)“¹¯ÑOÓt6nÙÆî{ö³exñXÇvH|ÇÅ— tX"çÚŒ}ƒ×^ùw&NŸl”Ì”«µ‹“S_ñƒ`¸˜åãÞèA·n´«€ÎælfwOGÇcQ#ÒÓèø>z$Âê5kY½f-íÝhºNݲÉç¸tq‚© xž‡rewŽ@Jw±PxëòìüÛRʳáAàÅ| p®'ŸŸö¤^á†TС©jkSÓÎÖæìíQÃèB\­©¤”×äÁ+Ã7f ¤[5k3³ ‹oTjµ Àl| X*!øàƒ|Ô@·ù2a‰Û ´ !:“ñøúl:µ9 D #£iZD¹°”Ïó]˱ •Zíba¹‚Z[#9ÂÖˆõöO£÷‚ÀµýDèä BFØ"ág5”‚6°ÂW/¼¹ü¸ë]f=oéH—”IEND®B`‚rubrica-2.0/pixmaps/48x48/gnu.png0000644000175000017500000001075510554703326015370 0ustar seb128seb128‰PNG  IHDR0.nÞšlgAMA± üa pHYs  ÒÝ~üIDATxœí™iTå¹Ççœ>½LO÷ìû¾ê (‹¢€ˆ ŠšH¢¡nŒÆÊ­TnrMJcn’›{cª‚$ŠY o WÔ1Šl#Ⱦ 3à ÃLÏÚÃì3½wŸí~èÓÌ€Pó1OÕS}z¦Ï9ÿÿ³½Ïû¼ð/ù—|!>ÏM¢(RS³Ÿùóç~æ{‹ŠŠèééÁjµâr%#‰º¦!IŠªàóˆF£†quX®ðÿ©—«(ŠU55û…ø«}Ñ«¯¾JQQ‘£§§gšÕj}ÖåJV$QÒuM3$I2UÑ|þ€F0 ã: ÇÔLÀØéòç~’¦Ó,"[U=þÇd§ œ¼œî–ÏzÃ0N[e‹ª¨Ú•À‹÷ßÿíÀŒ”÷ÏË #+V­Œ¹,§ñKYÙÙ†=ÉÛûÑÁÈ®=5É€À9  èÀÅ^N`*ð\NvÆM¾ÁAfϘDvN‚jäN¢ñl s.2ŽŸi §×{ÔÓêùÖúG¾}bÓÆgþ!`­Ã‘ô? n¾© ¼ o}}ŒtwbO¶’“—GaY)…EedÓÜêQÞ{ï}¡®þl­ª*Z`ð™D.ï’b`«Å"ÌIM²QœšA^Q)%K²²¢ÐGÇÎp¨¶A:SwVˆ„C‚+-½}åêû¶?÷̆ޟüä'ÿ½,[“$‹¸*¦ž¨=Cmc1U§Ïç'Œ ­~`M0[ÖÔˆ³¦OcÖÔÉÒƒ_û²!†ëÈñS1¨ü@ PÃÔ1TVV.uwEYß{•óçãÈÌ0ú‚¡Ø®;cÀ÷€‰ß§¥§‡‡†$IVu]½°Ýnçé xìá‡-€Ý4T©y­›ïÅj³Ç¢Ññ»î°¹“ìowK–.cÊŒiúWÖ?Jooÿ÷ !RŒKâ¡Á]kVß«z;;ÈÉr°fÝZ:¼Ý‘];wnØsðH*ð{Àx Ãh J’‡ŸÈå­·_ììê:¨êÚó@‹iMŸa!A~ñ‹§µüÁÕw— öÉ]íÌuüâK¢Ñ¨°šà%Ó“c9`•姪ò³ñœ«c”IÜ½äŽØ_Ú:ô÷wÞùíøP$© Ùnnæµ3Òcjzz’Œ¢FÉÎËC­zªË53?/gi(0rc00*½·ï€åÐÞ]?u’ü¢Bqå]w!HRaSss¹éQÍ|~"¶£>è–XÐ'uw´±`îšÎÖ3Þâ‚…7gÿd_¬’A°LŸ6•hPáØ‰cÄb±D¸'T0;Bn—ëÇ÷ݵ\?|èØæõ³w÷nió›†>ØóÁB%¦ •ÀšîöΉonÿ«P— ¢@iU1¡€Ÿàè0“'U“•žÁ¼›‚$“ævb³̬žJAVšªâ hiñèín¸v¦=%-%Öêi›´Š¢ÍÉÉŸœ”´4Í•D$äÚÓøèT¡Hô5â¥t”x9Uãb‡ÂýtCk(¿°Ò3:höösèðþÒåKosžª­sdxÔ’Ÿ—Ç¿‹ÍÏþ”)«Ùýþüû“ßåä©:/º—+›Û/fÚÔ –.œ…Ûí¢²z2aCF0ÀæÌcÇ;¯³óýÝì|ol“9sçe-¹õû¡#Çõù|IûÒõ_]Ç–ÿÛL¦;™Twf[ÌH¸Ø¿\ô€ ŠºE–o™3ëZéL]J4Œ§í¼¥§Ë›\Q^¤ ‰N»$¾ñƲsÓxë­m öõóÌo7óàW¿AÍî]üô©âÝo`!J8ì'q÷ýëyñ…?ígí×eæ¬ÙÌ™;›á‘Q¶½µ]ÌÎɶ­\uOÖäÉÕÓª'N´ÿe˺º{(/)Ùf¯;K4ÛF| ˜ªÆEªª üÛ¬™×D«Õ*ƒªè¨Âð@ŸÔ×;,lÞ¼‰éS'ðÒÖ?ÑæñP5©šM/lãWžcÝ7Ö x÷o/átZi:Žææì²Òò2ÊKKxå/[¹sùÜ鹈’LUE#££ìÙ[#4m;η°kß>’P±:so˜Íáú&º¼^Óu½ 2C(” p1„ »º»ÖþþÏ[7}åÞ;ì)©N©©±—3ƒö ý,˜·˜…KWqâÀvz{ÉÈÌ¥´t2™é„CÃØ-/m}Ž’Ê*Ü®TÖ>ø]BÁ{{·-˜Ë¨Ï‡M4hl¨e²EÆívg²ö+kð¶œçts+A Ø&’áÆát10ätCSXUÕv³l*fü_ ¡‹ºº»tÃз ‚hg×þÿž:©ª¨ªúzAºú|¬ûÚChšFS}3Z šZZÙøÌÖ>²GRݵ”•Upãì™~Ý"ÁŽE°QZ’üù³©š87·½,KÔžCfЇ(‘——KvQ‰±÷X-ª¢ìú€ˆiu•øÚ¡_B@Dx©ÅÓn´xÚg';]ß©žTi¬þò*¦Ïœ.D†{ð‡}d¤§QR<¨*óÀ=«8´?驸ÝéèšÆ÷ßÇâ[3ir9•%9¤8“ÈÊÍÁïóãLMghh˜´L;Š¢‘ž•Iå„ ee GÈÌ/Ò{ü!ÍÓÕ×\0-Gâ»ÑñR·|ùòšú†z²;é¦_üïcAÿ¨õÈ‘ýÈ’N0âçõmÛXy×*Ö¬[ÏÉC;9¼ÿCÜ6¾v¿û&Ën¿™·EWÈÎ+#%#‹“ÇŽÐÞÖFqI Á˜Š J(:Dc*MMM(¡%e•ÚSõÁ}‡5Mýèú¯é‰DWzi]&ÆŽ;"Àg’ógV«[lmm`bõtœÉVžzê)d«ÛV¬œŸâóùj€À5†$:Ê«ª(-)& 028È´×ñô¯~ÍG‡?$-5™¢Ò2î¾ç2³3Q5…&‡â‚B-XˆÓ‘D§·EÓÉÉË#)9…p(LÓ¹óFOÏA¥¼¢Ò‡£vY–(Š`¬÷ñ™ÝñÇ[‰+ˆ¬ð´uUnùóŸäS'OÐÑÖŽŽ×ÛÇóÏ? ˆþð#Ö¬ù~ŸŸW^ÞÂÐàsnœGFf©îT¢ŠÊðÐgšh<ßFEù ,øýáh§÷‚ÒÕÝcµÛígc±ØyâU§‡x > ãöÃWôÀ8Ñ%Iz¨þôñ™®´äÌÆúÓYónœÃñ#G ‡|Ø-:¢åÙßl`á­ ùÎcpç²Û°;lW”Ž„ééíÃEñ´uÓRR3A¶¢hݰçÖH$2-p§¤D'VO‘=-Í ô÷«|Âèj 𦩀ñ­o>|ÀÛѾ²£½ï°ôQV¬¸“G}ŒŒœ<º½^†‡†Y¸h1ý„"*‘°‚Evp²þ$çZ=ô’–‘ΨÏGLQý¾N¼êDˆ—Ë€ot´ÿØáƒ ÃH$ïǦhWK€ÄÍÙyE×.[²%!3ÍÍôë®G툢ˆ·§_>ýkÖ­û:uõuH‚HA^#£!Bá G×Òpî<1ÒÓeb± ªf (JâŠI`ØT¿aA.¥|®JXÿŸßûšÔ”d¦M¯F‹†0 _P%òãr»YµòNVÞ»’Í›6âv§•ì¢áT-çZ=;~”ôÌ|l’]QCÕ`0h˜o™G+Úe.‘ÏBࠪĖN:mçÿ°»Ý.:N†¼`¨”–3Øëå…ßm¤ ËŽNoÿ.ô^ o ŸÜüb¢º†,Ë(ª† Ï  õu&àƦpaÆjb¾úuàSD‚·Š’˜uòô1áÜù&B))tzšxióïh9×@yi!ÞînηuÒÔÜFí™Zìváh MÓ0€–O$‰tŸP ›à{ÍÏƦq;ÐKÀ|"0 xX*JB™®䨙}M5ªJ),,B@¤ÛÛ‹§³§ _ D~A!šaUtd‹ÄÈè¨Z[ÛÞ nñ“ˆ—x7ÌØî+Aà {À ^›w7mÞü›I¥¹i8­s¯ŸÉœën ¯ßGÃùηwÓÕÝÓF$Áár‚."Š">Èhll64M;0lÂò ëGˆ{ 1âùX\é|àÓ$a Èé F™Ý,*ŠK&¦IhbV¬¶dd‹•ä”T¢Éj'ŠgÏ6F÷'ˆw‰ð`¬e¿p}âAÄçñÀx F‡¯q“b±é)™xûúñ´{ );:»ÕÆs-QMUdY¶ Í-£¡¡!ÚÓÓÒ4í]|ˆx¯Ó 2VBÝè§V øœGL¦ˆÄ«Øé;—/ËînmN>¥JLOM§ßäϯ½}˜@<ÜÆ[±øø+FÜÚÃã$¦Ï!>%îÇËg-£ãE7uóþÃG¿YV˜ D JRÐ1 È>N/‡ã1Ñ×ûMõ1V:ƒæï¯¾XA܃Ç#á°sĘsýÜùÖ¡Q¿¶}Ç{B4}›xK¬0ÖUFL€AÆN[†[¸Ä=£^ xøbÀ|‰b•åßWd;2¤ÈrËŠ8•Ÿûü訯žø@V3A&€iæuÔ6 &&ÏWeù„|‘HˆH|ªœL|œ¤?ŒM0QÆf:1ÆVØÄ.+12׸lÃr%ù¢€¸¥b&aܵ“¸ÆÆ"‰ÄM\'€'ÊåÇVÚ+É?Ã06~Oœ¢8ÌOcÉžh—Tóú’cÓÏ*ÿ,‰g%JkBH€Lä@B?—ÕÇËÿë5¸#ÑIEND®B`‚rubrica-2.0/pixmaps/48x48/rubrica.png0000644000175000017500000000527010554703326016222 0ustar seb128seb128‰PNG  IHDR00Wù‡ IDATxÚí™{lÅÇ?»÷Zû|öÙçó ?c;NÒ8¸`‡à4% (@Q@m‘ZÊC¥*¡¢•¨P%þŠÔ V…TA ˆü‚ŠÆªš8QBB'Ä!¿ÎÆæìóù|Ïݽþ‘¹èbìœ ‰Ÿ4š½Ý›™ïwæ÷šøN¾“ïä[-Êõ[,ëz`!xB >6_é@ö+Yܬ4ÀòûýÎ¥K—úŠ‹‹õõõ¥‹-2}>Ÿ½¤¤$Ïãñ8kkk'ÑÕÕõ‹[n¹¥xæj(þìv»½íííUuuuZSS“±víZkÁ‚1ùŸ²Äb1’É$>Ÿ/óÊ Çÿ èWu***6¾ýöÛ–-[@*•Âår]òÿ½½½ìرƒH$B"‘`É’%¬[·€Ý»wû€±«j0‹/Þ)„;vìâ…^ccc"#ÉdR˜¦).%}}}çŸïºë®÷^Õ(...ˆF£„ìÝ»—òòrÜn7–eÑÜÜ À'Ÿ|Boo/ýýýÄãqJJJðûýÔÔÔ000 “sEà·ÀòŒ¾JI !ü«V­"•Jáñx…BhšFnn.6›ÆÆFÊÊÊØ¸q#---477cš&.—‹P(ÄÉ“'I§ÓØl6Ξ=; „ç‚ÀÒÆÆÆ;·mÛvc*•BUU,Ëš±£D"Áûï¿Oww7o¾ù&ëׯ'°}ûvUUUdì'‰ÏÃÁ`ð•×^{íú뮻Π…. Ê—CGæ]~~>¦iÒÙÙ‰aTWW³zõjêêêèïïÏ4œsȪªªþrÿý÷?¾páB"‘Ȭ ‹Å‡ÃlݺõRÝ¿¥(ЏuN#q[[ÛÙ‡z¨ÎívŸ'1i |ñÅ”••ñÜsÏ]¬ëÍŠ¢8€–‹|³€à%àð§+V¬ˆ?öØc9³& ( gΜapp 6°fÍš ¾oÚ´‰ÎÎN¼^ïEÇìéé!è+Þ{ï½_…Ï6h4ú`0øhkk+–e¡( ªªÎX|>–e±ÿ~î¾ûî úÜ·oÁ`ð¢ãíÙ³'5222¥ëúµ'Ožìž ŸmÞeÔ0Œ ]×ïhiiÁ4ÍYPU—Ë…išlÛ¶±±1Þý×.ƒ!|å•iAp8p~õÆÇÇùàƒ‰D¢G±8=°ÍæO“““uwwïl…BÝ‘H¤arr’x<ÎÔÔ‡Ã00 MÓÎÐ4 ·ÛÍ‘#GpxKhko§½¥™Â|]{÷è=ƒ¦ituu}zêÔ)ݲ¬]ÀÒKÍI:ý†à’R]] @NN~¿€B ÷ýäçÜÚÖʮݻyæwO32<ŒišTTT²Ç_Îu~ô'@\n¹wÃâý}Å@`X”””—Ë%ÚËjDe®G!àÕ¬=ÄÜäBÇŸ|òÉEº®Çu]ÏÝ¿?@€ÁÁA8ðÕƒØlT——qìDv»!óK+PŒÆ£…â¯_wæg$à÷ûW_ýõܼy󂦦&€\€ûî»ïËÑé­·˜N.¡¨ Ÿ-;w‡ñi¹”VUÒ?ú9yNz2ø*žQs‘õ^ÌŠ¦i¿yâ‰'Ââ ä‘GË—/}ýýbõÚ;…Çã•îñäš{Åm×Ô‹ú¼BaWÔW/\•NÆ&ŸÕ¬ç™mwÞ¼yo¾øâ‹ãW~Ó¦M¢¼¼\Ô×׋çŸ^¼ñÆÅ9nñ«{Ö‹›JkÄM¥5BSí)`å4ÐNY\²vH™‘ÄüÚÚÚ·?üðÃ+Á.Þ}÷]QZZ*¡išX¹r¥8xð hhhו‰ wˆÕUMâÆÒjÑà)96û$@—<py²Î•{nGõRq@‰F£m§OŸÞ …bªª6Äbç¶»¹¹¹³R½®®.6oÞÜ}ôèѳÀÓ¦iñ:t¨¼­­MMŽÉ-ÈgxxÍæÀ´Ò„S Ÿ!¬@_X{–(Óf]¬K-Ã|à§òÔüü|ïªU«&ÚÛÛk—/_þC¯×‹Ï磸øËžïرc<ûì³cï¼óÎðÐ+´´,Ö½ß_¶Õë/þÁ™îã$-“¸ž"nš LMôèX?$@S¶12me1dmÎ6Íòí(-Í ¶vÜv;K–¶Òø½…Ì›7EQèëëãõ×_gË–-½¦inÊ¥rP°¿gýöÇ?-tÄ’Œ%㤅ŔžâóøT2ž6þtJÀ)YŒlÐò› ³Ÿ¿VTæ´ö òÊK/#^:çÍ4ñÀƒòßOѹ½3išæ;ÀIœ\’€S¬ÖWUêÚGÒ4(ÒÜŒ§âT{ °+ªv&2þ°‰ÉÈ›f°é¬Z¹ìM½Sµµ8sM?xê,Ï=óûpÊ0Ë |Vkå±´¹6eY¡žMƧÎS‰©3=‘ˆ$ä;5ÒB5u\6;ÁD C¤És8ËÃFêf LÈ’Dt Þ&WàòxìÎö vmvçÇ5§’Ÿç] xÇ>ǹs"·ÍÞä–.ÂçpÝÐîñULU!i”åzŒ…q(*qÓäw>n»C3§&nŒšF?0,=’MY¶ ^>›£iý]ë>X¹voìôéÅ{_~å:K7ÎÏ€ŸIZ7óáß·3–Œ’gw’H›k¹L:É´‰×¡ÕDM£Nz#$eÑe9ï‘l—•xËÛsâXÍá#WVÖ7üè©,ê¸ÒÅ‹9у‘HÎØ…ép0’6 1‘Jœ;~4 ìŠÊÀTEUq«¶ô¸ž`ãRRò·)Ÿ/Ë ]I¯´®©¢²©¢Ð7ÿá ?nº©c%é´Ibr’cÇ9°õo$³2¢WUਭâp×>FcÒÂÂasÐ ‘çtR¨:¦º§Æ?–'ØCroÐ|!ÕhRJú×=^Wäê-‘ÑòÁZoQͼªÚº5·ÜÚxsû2Ü…Eœùè#NìÜCx`à|Ãxy)9•å|öÉQFQtÓäää×hyV(?:ª'>Æ%àI"( yˆ IÀ¸’û%+Érò.`]M^AyCM]CkYUâò †º?%6~.[ž,* ïa8 wrœ¡X„2§6q"Þ%Af¼ÎH–'ŠH—:%ÁÇ3jt¥JÖjØ%M’i–Uä{7z‹ë®‰ë%5š›ÓN;a3E 2ݲÃñh׸™ê‘û`àˆÔùL0Ër\Ö& ¾‰eZú›Éa2‰W °À¥¨·W;sÔ—Í›JÄÃñÈî¡dì¨T‹Q9ëq9Óñ¬è-$Ø„,zVZò^1©Y„Y¤\ÒN¼Òø%ÁÌlfô:ž™Õ¬ô#C"•Id1çòŽL½ˆ±;dJì–)s—’³jN;%Q³7=«Ng¥szÉ7½eÚÎJ‘@ÄEÞ+YßÓY‰ÓÁ_ —OL³e!g}zÍÿ›ÀW9ìÕ²²ˆ ¾%¢ð| å…$bøoÎ_)IEND®B`‚rubrica-2.0/pixmaps/48x48/tux.png0000644000175000017500000000424710554703326015416 0ustar seb128seb128‰PNG  IHDR,0j˜ábKGDÿÿÿ ½§“ pHYs  šœtIMEÖ tšûM4IDAThÞí™kl×Çÿ÷Ι}ÛkÖ6¶wMRÛAŽÁóp-@ ™Â3•š†&"BÔ% ŠZ*EQKšT¸)·´%m•BÕÒÐZ…àI«â´€pKÀ`Æo¼ëÝ™ÙÝ™Ó~tmŒÁ`*q¤ûaç¾~sîÿÜsï,pÏîÙÿ·Iã5çÂÅOgŒËŒqƒÈ¢»ò9œ‹œ‹(ç‚zK3çâ'œ ÿÝ»sN%Î)Šüþ)ŠâÜù•»Bœ   @úà:—ˉ¥KË išÒÑÞº Œÿ…Èjšhï.ìÙ¾âtºÈï÷“Ýîè}&WÛ¼·Ð·Øº®£©©†í}Bs.r&8•s éi©`½äII”––¢  ;qžÂ‰–Ä[‹-¢š'hË–-$I2%%%See%>}Š>L“&ù¥òÜ{XÂ’%Kðý;°ví¸Ý.NGnn.V­ZƒÖÖ¬Xñhbßx‹ÏßÕ¼ÜÙÙ‰ê#Õ˜–—‚¥Q¨ö 8rèO¸xñ"Þ{ï ²³³Ç}eo˜mmíØ¶¾eù{‘YÆÐ¡ëp:ßFl“‚ùËJñÂ÷ÞNì9ÑA§µ}ò+,Éý²2¸ƒÃŸ€/KÅ·6˸O¼ˆ™“kÛ§M°‡©)3ÅD²—CR˜ÝŽ.„¯·ãr]’n!$¨ª "B4]ȹðXV<8!™Ž1^f™k“S ‰ºÃ gºÐt6 h¾§pü\ ê/6`ݺ¯¡¡¡QD"õDÖ?'J^_swàÂ¥ûÑV§!x…!ê(Fw<ë9<½qt]Çûï®iðŠ"Ëî;îa—Óy¿iY{6lÜ Ï[ò–Àð,€È^ OÎJäåÂïÏBNNjk?Ň~„h4 ! ÄãñÃw2a(²¬œ˜9c&…ÃÝdÕÔœ cÇŽR]ÝYŠDÂdYñþrúÔIBIL QÎŃw –q.~Á¹ ýû÷÷CÅbQ2 mh_1ÍÎ|@:ǹHºÞàëééi(**QÏ¥‚È‚iZ ¢þbš&tÝ@GG'Š‹ç'@çÂ~Û4Ü{Úú©  sæÌ×ë…2"‘LÓ„,Ë4MÃÕ«Mhl¼Œkך››‡ƒÂá°Ã0 ô¾§€ƒÈªº]rxÕår“Íf§òòrÒ´™fŒL3FѨAñx¬ÿw_‰Å¢ÔÞÞF§Nž¤]»v‘2ùý~RµOÝœ ïí®ÉÈÈ ¢¢YdÚ pÃ]P}}=åææQ  ¬¬¬D=cÜ5̹xÀívÏ …Âxùåíb`‚ŒÇÍaû˲Œìl?V¯^ I’ ë\.g_õÓ·#è6Úí6~”•• LÐ=iwTƒÌž= —ÑÙyNg?ðLÎEö¸s.Ò9cÏÆãq<öØZ10NMÓ„eY£šlÊ”)ú%0ÌG³’œŒ1””|ñ†Z˲ú··‘,))©÷ \€9>€¾êr¹àr¹‘‘10óÑ)KU•þÏÁ`h@Õxy8vaš&ìö÷y¢Ñƒ!(Š UUa³©PÕ~Îà¸?¿ÚöŸw¶)FíÓ²ZQ]]=Ä1³g‰G8;#Úz µ¿ƒ,ÚÚÚGàt:—— 'ÇøÑ¹ôââÙ\ ¤3ür;ǯöm¼öÚ냂Œ¨áX¨ZírLz†aô?D"(̾‚kÇó>×ãÀ6•OòI»Ün¶8ƒÝ›Äv'@pØ€òç…Ͼ„ššQQñ&<l6uX`"BGÇuˆˆ…P!ÅEhéê½F; |÷ f»Ø `ÇØ¯H’'?ÕÙœ–޳ĒûÌ}“¶>.aûî}øw]*ßý ¦N}`XI„Ãa\ºÔ¿8džä8qð8€¥%S| œY®³ï¸|ùOt·IÄÍe’ÌÁ X¿R`ú8j?ù,[MÓGºJ!nB!‚ËÍP\ÈñÌr†uKò§r¨*ƒáô8ù»GßHµ X@oŠ0Ⱥ¹Çœøá7d´µµC×õÒ²„êCUˆÅ6•#m2GF¦„Ôt ²Ìú×ã¶=˜§:³'cƘ‚Ž,Âp!ÄÌÆñÓ—¦áÔéÁëM¾i[Ã0°uë Ø[ùs¸È ƒÍΠ( Œ'îù€]żÔäîߎ˜3k¶,“š¨Û!….ø Í>ºi›cÇŽcÁ‚/a÷î·àT !’\ïäVóUV1ê ³)xÜébõ ÀØÐßSÕ4q`÷Fü¸â˜?>RR¼…ºqþüyTW€ššûwdÇмd–Åì"«³ƒªººØJ¿Óõ·QkÎvÁŠ&·“â°3Øí ª PTYîY¶¾‰"! Y‰¡ê÷û°wï¾áoÙ  … ±XïDcÀõBKküìÕ¶iÕ«ÚÑ1oke;ô×ËŸR*dUÆ2.aÄ1Ýãb"ÍÇ‘âå°;º»Mœ©3q±0-Ô¨P)ù+«[GIãU+Éí6áñ0D£@K³…ú+¨4 ëÉõ»Gy>½Éô¶a¡œæ¶³yv…Vxlˇaê[€s-ÒÎ¿ÖÆ_±¬xçpc”=¤>33`Uäg3ØU†®0¡±••‡#æ–Žéï16–Æe)INÄMLÕbüPÕ)ýƒÑö]\¨OrâË6Ô‡öý=r ÷ìžÝºýä­§æ§OIEND®B`‚rubrica-2.0/pixmaps/48x48/puzzle.png0000644000175000017500000001145010554703326016121 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“ÝIDATxÚÍšy”\åyæßrï­êêªÞwI$±ƒ"!0b•ñ /8‰mBl˜1'>ÉIâ™,Ïü•ídœ™L29ÆŒ‰³˜I¼ž±É°KF „…Z¢Õ«¤Þ—êªîÚëÞïûæºÝ,'&ã¹çÜS§OUßzŸ÷}Ÿç]¾Rü„.!„B´777ÝöË¿òÑÿ¸eÛÀoNLL¶‡¡™BØøvüÿx !2¾ïíÿÈ}ïûÛ=5ù•¯ýy}çž­¶9<$„¸Gq‰"%„o÷,ýÿÈ`èDÂïêêêØuó-»éîÿȉ„ ¾þÔ˜_d`scsÛµ–÷F‘]*@]áœsî'@!Òéæžk¯½üÖw½k÷Ý×î¸â®Þ¾îöï<Çë£cëŸK6tugš¢ºÙ«G% à' ø…ûî®xà?—kÙþ“§Êú_ßxÓg”dü&¶^ÑÇJ®xY­ZßEv8QB„?( ú_1epKåó 55A²S‹ù7®¥"ð5ž¯éím§£§%°–[³‹…cÀ$PŽ£`.ô]ê6¼MÑ$ã`hh¬ÿù矹nÿ»oË\²i›;w çÉÀ#™ô ðà‡>zß}?÷³Ë+gÓK¹,¾ŸÀSŠ0¬3;»Är¶ø ð*0,Ä ª@)~µïDÔÍ7ßxýÝw}ðŽÇ¾ôÇÍóÙE ÅaØíkzûÛ™™ßÖ+7M›7oøùßý½ß¸åê«.Û:zöxÓìâ$‰ ’„ï#IL(‚&ç(ÅÒ9ˆbõ±?¨¨.i_>úZû–m­û…ª7Ÿ›ÄZ‡‚ ðhJútuµÒÓßôô·^¹ïöí·ÝùžÝ×§[eÏäÔ¨·ZÊ¡•"ð<üÀG*‰ïiAÀôÌBÿìtvB䀒Ö2ÝÛßyuGGkje¥XmpçƒùçªB^}up×ÃýÛK§æÏ`­!‘hÈaÂ÷iJtuµ²ys]-hOE!žÔh¥ÐžFjEàùøÚG‰T’ ÞÁçkkÝY`°×l¿ôß=ðÀ½ÿ%Ó’Ú>:zöl½•€0–T÷/•ÑZ¡PŽ®ÙqÉ=WlÛ¦gI$rèy­=´ïáûð}/ïH%ð<§}´Ò(¥ñ=Ïhɤedë­#§§µs.‡`×ÿñïþÓîÝ7ô8üìEcÓùJ¥>sb½.¼ d€>`pÅ%Wí¼ó]·Üzç‹ß=ÜïîN…a‘Z­†çyhíáù ?ÀÓ> ­ñýßóQ^€ïyH)ѪÔÓžïx>MÉW^~‰o\µz*»íÓ¿ÿ©Ûîù™{·.eÏ22:¨ÎŒÏõæóÅÓ1GÖë›´õ}¿þÇâö©6`GߦÍ]×ï½a÷UW^¹gæ‹.ïÝxQ{ßÀF¥=MEüÃßý Í«\}õVŽAHIàù(©ð”Dy!$¾çãë¥=p)AI…Ò-Ji„PhO!PDQD¹R5}=ESS³¬ÖJLMOðÈ£»çŸ>þ¹z=|²@ýM*ô?û”Û½gÏí_xü«ÿX5oÞX‹s°Z©3vv‘Üj•ÛÆÐ±!ößñnjõSógÐJ6Š“TxÚCK…T ­<´Â!$ô‘ )J+”ÐH©‘J’L4Ó’‘J)£žØ´a wÝu‹8;1ÿñÓ§&_rqÌ÷ÉèÑ#GòZIf–òŒN-™†ü:Ö9œsTKÊ…#§Ç8|øp´wïn½ZÌš:¾öPR!¤DI…Ö­|”öQR …û>Ã…”h­‘¢X))JJ¤Tø~‚ŸÚy=×î<¦ÆGf& £Ù¸ÐU/T*“gÆ ÚÄšñ‘5–—Xž›¤R*°49Nµ”µ¥JÉxž¯}?@F­bÏ*…VºÀÓ>B4RHЈŠ­¼kQ‰AH©PR7Þ“šŽö>n¸~'/Ü7unñàÚ¼p!¹3c#…½·½'sz2‹‹[°Z¥º8Âþ¨Ö4Á7Q­\-»Ú[ƒ3çN¶AV¥Þ’ã±÷µp)ź±Jj„R(dÃëªáq)õ”B ‰’[÷ÝÉSOj_ZÌßY­„ÃÀò…fÎ剱±‘TÂÇÚF¬s˜zÈ5WneÏΤ’!Ö,øuV‹ Tª%<í5ëîÒ Ð:Àó5žçá)Ï ðt@*ÙBk¦‡¦¦6fg§X\^ µ­Ÿ®ÎͤšÚðt€ç IV>J5^7n¸‚ <`ðS@û…"°22<ü’Vòºts@±'a9›§V«D¦Ž)%Æ6Z ßó ¼àûr\i¥<”R$‚4Ùì<Ï{‚Ç¿ôÓ39Š+%l–¾õ­¯Ú;¯KW*9° €ï§Ò#¿’¥­µ¹rÇ»¯/>ùÄ!?ŠlòBê¿{p°YzÒ)r«Ë(!RóÚ©qöíÚFO×F¦g+d³Yž~î%êÕ:¿ö‰_¡9• V-5È)ÚóQ²À÷~–Ï|ú¸|®Ím4·va²«Ykì“>úXÿ#Ü´ßÚšRâûI@±´¸ÀwüSù‘GÿzjêìÒ±lvå°µnXÕo)Z> æfgíôì,¡µ()0Ö¢´‡×ÜÅC/ó¡ܱu¦¦ÇyòéùîüD†ÖÌÅlèetü*ÎÝ5B75¥YXœâ³Ÿý²K«çœãL”_Ê–W²%)å²”r¼«»CkH$Òh`|â4G_9T}ì ?2_|‹ ¼,k@lܸñ’}7ßüÀu»÷ì=yâÄÜÿ|ôó‰¯p™— c-Ö”ŠÎM—ðÌ·¿ÉænnÜ{=/¼xˆ×ŽÏ3°e;ÍíÝüáŸþ}î/è••™˜˜*N\>Kn¹€sŒÓBˆq!Ĭ”2眫:Wߺ°0%ÎMŽqòõã|éo¿vrppô¥r©:äÜz›=¬Ä-EMÍ÷ßÿ=ôËŸø —Hqbh˜Ÿ¾÷C®äeD¾ØH`‰D3—í¾•?úËÇÙwè9sÒ]—Ðñ4·w²xn”ѱQú(W–cï7xàœ¡µµþÝ,/úcØ9· dÃ0¬xžWþú×þÏÜÐéÑå|~yqðµÑ§kµpÌ97-„˜¼<°ª°jß¾}·¾÷}ïÿmZz“O!_‡ÅªÕº%²–0r`ÝúJ ‘HѳùR†F樸º7l!ÓÕCºµ›Tk¯¿vŒŸÞJ{„a­<<í£”O[K'ý3œ8>ÔY©Õ:£Ðfïýù|øö÷}øc/>ÿtËêjñéñ±s_œ™^üf™`D1Ìœ·'ª9çÖwEêž{îùØÏþâƒï9>>Ëj%¤V·X稇–ȺõXçÀ5ÒIyšÎ¾´´÷’ÈdH$3øÉf©f&Ï㪭èëé¡V/Åš¯QÊÃó\ºu;míJ¼òÊ`›çû›oºãîKs&ÓܵeïöBvfgy5û÷ñ(™½¾"„(õØð7]òÙgŸ2Ö’/×1¦1+XëR¬§ŽpcÁ9‹D¡ýÉTš¦T+ASÏóžOºsO8ŒR ’É”Ò(í$R¤RíVó¼z|!5›·\ÙS·Nœ;‡RŠŽ‹€­@/Š@Õ9gœs)åÐÐЙR¡H¹!¥À9@œu˜Øøµ¥˜s¶Q8H…ô¨“ é$™®^¾ršÙ…,­-½ø^étÎ }šÿû¿Å“Ï’ê¾Õ¾‘é:RiLdhïÙÜ쎷ð#-w Ã#§mo¦]NçÞ ­±”qˆuï7àÆÖb+ Ž–s ”G[ÿ¾ò¿Ÿà×~d2ÍàÉøÜ£qø¥q­›éÛº‡TK~²•D*… VW–iîèó€í@[LÖógbq¡¹X‰J±p{wOowÁøÂD†……EŠ+¢ÐN§#»î}DÃP³ö·³¬µß”—ॗŽpãÎËùóGþ„?øÃ/’«wÒuѵdº6ÐÒ½æÖn’é6‚¦Ú (ËhÏgôØ3eà;±áa|G?l¨/¶µµæ7ôvï»áºkRÓÌÏ.òúÛ ûÿí>P0»Pˆ½oÁºÆÓ ‡s`ã͇‚d3_ûê—™˜±ô^¼Lg/©ÖšZ:I¦Zðƒ&´çT$åbk-sãÇ«a­òBÌZ|¯¸`Üôôô‘#GSšèª¶Àòê'ŠgÆNŸ‹"SûøÃ¿šöµbx2»îuƒ‹·4 UÂ6Œ—ªÁ°VÃYH´l ÓÖ+T A2ŸhFk”!ÁÄÝnX'ª‡s3®˜›E±$¥¬8çªç¥ÒW‹X k•Ï~áóŸ;,„è“RJÏó a­¼«Z-"é8kßà祎sX,ÆZæ¦f‰juLâœ@Éö]—Q©Ô™›_ÁIc BH\äâˆYÒmíÔÊeÒí}Msâøf¥ÔIcŒ>o³÷W‹pƘl:~Ö“‘R¶:çš«ÕjÓèȰ»úšÂ0î<ã 8ÖZŒ5Œž8Aqy™•ì¤[]šÃZÙ4¥ZÕeÝïm»â*áù ¦çò8ëXÛZÛó–mB„Éß9·Å9§¥”ZJ©¢(’o·µ@d­­ !ŠJ)EQUqfðÔ©ÂÕ×îȸóhß0`y1KaiŽñãχ ç†F¤”'€l"•é}驯Üvù–mmÍLÍä°q-Zóþ›4]JÒÂ97hk­¶Öª&§ko8À–J¥¨8çVs9`bðä©Q)`CwóÞ·çü`ÂÕì óg_ŸÓZSkýœ”òh¥¸r|ðÕ—mgߦPàœÃEîMÞwÎQÈ稕 çJ·DQĵ` ÀÛn§-@©Tr€I¥Ru!„-›@ˆ¤1¦ 8éœ+9çrÏx±ýå39_ŸY“-Êåå ÖD±OñšR©Òm=‰•¥éDìý5òGYîÚó¢ÑÔè©#ÆÚ‡ÚÓßgüZ$2­4µurˇþCçÑoýÕþ°Zü6PpέTjuJ•:-Ÿ×¿w¡TƒREUÊù,ÕRβSµÜÜÙòjv¶lM4«ŽøaÞÿAÛé5½€+V¦²‹ ´¶w5¾Åxk-õzH¦­k­ÝÁâ¹ÓBQ²|øÞÓÿ擟ºtlhINž>â*ÅåZµ°\^Yš*×+¥ª¢ „˜Î3ι¥¸ â"fÿ¥§”kÿ” wïíöœƒr¥J1—ÇZƒ1FnÕZ¦G±ºp6'„…‘ïû㣣ÿ_{è> pBˆ3Bˆ9)åjU)åZ«`Œ1‘µ64ÆÔœsŵ¡å‡µ¾Ýù€–Ož:µpÍÎ]3S“¢e ¡©±2?C1?g‹ËóµììD97?¹(pOzžWŠO(ÖzøŒ”2 ´ÆwJáI)Œ”2rÎE@äœ •R5kmÅZ[Š7pásÀ±|ðÐá——î|ᩨ˜-.MO”*Å•*PнyV)5åiµ(„X9¯ü ’R¥T5nµ¶"¥T€SJEBˆuBˆÈZZkëñsêñ³.@ü|!Äõιۥ”(¥Î !*ιõê(„°RÊ(ÞÝW¬µEkmÞ9·EQˆ‰„4ÆøJ©„sN+¥औFaŒ1FJiÂ04BS­VÍyçÃöÇÿÎ!‘ÐZg¬µ­Æ˜kmS,s.ör$¥ s5ç\ÙZ[4ƬRšóz/ È `¥”VJicù^WÁ·¨âýS«µŽêõzE¡¬µÖS²Ö®±N@ 4ÆÔßÒI®²Ö"‹Z­öVÕãƾíÏmþ/­S—$?IEND®B`‚rubrica-2.0/pixmaps/48x48/net.png0000644000175000017500000001073310554703326015361 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“IDATxÚíšigyÇowÏ}_{ïjwµ+í®¬µ.²0È–|`lp°`IAˆ©‚„0@¥BœJU "•@)Ìlƒm@¶lÙøeÉÖ±’V×jïcv«§| ×/º\áKÞª§f¦g¦çÿî÷yþýn—øÜDÑt/Ñ$+Ëjz\,˲~gš@¯ˆÔ$«I¬€6m±ó/ÿ`×zY’,Y–,€øÖ/ÆëlàØ@å&QlYy-5ÝßÌ{wmî†|Ýa¿ç£j¥º%ð†GúÚXÊq:]̤JÌÍ/ýðûO¾ú¾ß üŠ–À8mqÙâ°EĵÖ´åJ•šišæ{oÙº»¯#öÙD<ÆÀú!ÂѧûW÷nT8rô5~ôÄó t'îà_òïW‚Iyà¥&­;l°nÀ x‘$ßçÿñÁÛ¶l¾úÐT¡oaz!¶¥Íã<úÌmhú•;vï sÍZ\.?(NÛ‹˜˜ ¬F­kãh‹û7_).åM‚_îü¸û}÷ |ð#}G_OÏm_k¦X£=^áyÙÍz¯Î‹å}ÿ»q[PÜ”&à:èU° p°ô¡€Y–œBq%A®\!øf­ûÀàÐPû7¾ú/÷nÝ4z;àOHFª%"AƒÃÞ?˜,-ÕyxïAúÖt³®¯x¼„B€d‡Œ^µŸƒ¦é !ÌË‘P®PóŠí.~ rûïø§Ï}úX(ºÅãrHF1QÊ` ¨—jì?«rpÇB²È`Lf9]`$Pfnn‘£'Ï11¿Äù3“TË*ÕŠJwL!ô`™&³)•d®Êu·ÞÉIJ ÐÈeÎ>ó`¡X<-„H  èÀ]I¾D®_q»þƒŸy×kß=ŠÇ+­ë‰Ð÷óžë:9—“RCF—Ý´w´ãuù8?[ U÷“Tž¬qv¾H)¯rÝŽQŽ<‡nY~¡•3F-=)„X‰¿fé"q±’÷Ý€ÿ÷Þýö›ö›—Úü a¥2™Jƒ»¿ü,‡'Óäj¯Íd‰û´„|8¼Q §¬°yãUì¸qµÀZòr;GfRJ/îX¦'/ÚÊññ%2•7¿} ÙpF¯—e9lY–Ïö„Õ½Õ%-°ÒãxðÕWv‡GoÿÓíƒ-ROÄÃb¶ÄöÍ]ôH ܾ©­®SÓ >'± -±(ŸÌóŸJ<ôè Ru÷îÞÄRÝE('›LSÈhÔ³ÁæÍkØ÷ãg¹ûý·“Y^féü”G6ŠÇL£žªv<èM±pY+Ù'|ÛâÚ¹Ft— ‹›‡ãlè ’^.ñÌÁy¦§–±4Ål™51Iàu*<öÊ,_}dœ†%¡Ujd2*cãÓdKƒ=-dÒ9É¢\Æ@ayvžšZbx¨›ÙdŠô|Úá°Ô3ºVšʶ+]Д‹¸Ðëq° Š5ÉÜ2wnP-eùÆÃ¯±8›%­)ìÜ>„Ó­ TruëÛùâןeßxšH[”å´ŠQ.Q¯V9Ÿ­›=Å ¿ wÇ0Â飆Q…JnYÖùö׿‡a \·$LO*ÀaY–²jÓtiëzZZ£Wú»â”ÿˆ´èeîü}è‹ D%ÅH—ÂD¦Á;6E‰…#œ=>‡SÓX^,°~ …ÙL‘SeS«£«*T³T,Žž^jºFÀÌãŠv²ìv‚V-ƒ¡i8\^¬Fƒš®`”ª!;o:6tÜw÷ÎÑÝŸùÃ[ úÜLŸ£5"äsñí‡÷qòÔ4¹å<?}Šqçí± B‚^ußv†‡:ùâß}ذm” \C]žáø©ó¼eç=ù–YA²ôF­œËØ7.”>/UȬ°ß;‘W«xÝN‚šZÀãr øXÈ5èŒé º¹Ê_¦·ÅÅÆ.?÷ïî庑ô•')WkX–…Ý093›Âá ²û¦aî½y];FX»n˜¡‘µè–—í;w@Ãø•eÕ4Ê™U©Ó¼ÒJl:ÒüìRîõ ¯ ¿Ï…Ù¨#„Œér3_Õ‰…Ü|þÏï&ppzìq¯“›G:xè oÇçq#d²–ÒyR³Iê5P$ÄôTŽ¡žj½Æúë¶“ÂEld£b© 𦕛Û»µ®Ä…¬ñÉ¥³Ã½mod*½Êš‘­Œô·²®5È£¯Îð‘]WóÙì&ì‘I„ƒX¸2EµÂk“Ëüø™ã4ju¦¦Rĺ⤗æÉê0ܽƒ/}úôÆýÌ« ¾õÃ=¸c*ó)Ýl$ÏÚœ¹jvY€59Ÿ™ÊÔr®X~ýjW"XÔ:¹‚A"Ä¡Èý.Ö¶…xݼvzÃ4XΗ8³˜¡;æá}»Gh[Ó‚Ó/>wˆñ¹%nûÐßqÏ=ã?~´åŠÆÞŸì£Q¨ ™F½¦ælÐRÓÌ邵à‚í´¸f¤ç¦ ÏÝ×ÛC7LŽO,pj.gæä¸èmo¥¿·“­C½Ô4ƒDÄO¶T¦T®S(Wi ûñ( ßyôeœ’Åé‰y®_߉Óïep]7üð9æO¾²Äøt‰½O½DþìŠQÆe-;êZ½% ÔlW2/TĬ nÞ¶.2“ÌÝvãæòj•ùdž£ãç Ñ1j«šÔ’h¡-â ßø9†°Xß“ÀávÑ‘-ª<õÚ9>pÇ5B^Ö¶Æ< KK˼pð45½Îî»vrã»ïbnzžä¹)‡ƒëdvnéäšáž¶ùå¼¢Vë‹@ze[y¡Œ$_(„”kõÉ€×}s&¯¶¼îÆžý'¥SSK²j¹ÆvÞº³Å‰Î —ž®0#]ün'­‘— ËÉæÁ.ü7¿¡€×ãäð©n¿i ›¶ob1§rðÅÃÔªE4ÍbS[•·m Óß§»-*mênMÔ5Kéâ «Òi³,ù"{b’ÙReëpÏØKc¥=ûÇ åjççKOŸ9–Õ$Çàηu …]„É4À²h4t Ã@V$$!¡–Uêõ:EÁïTèˆö»xËè S¸8¸ï9²³)¶FSì Ñ™ÓѦ5ê§-’Ú£ÏbºàOfK)Û•ÌUD.h×cáÈé¹ÅO}`בÛÖŸ¼/<{èÌ!D­S)¾ÓXž͈™| lbÕZèºN¥R¡Z©¢ª*ù|UU@FvñrªÌã=Ê™‡ 3yXZß.3Ôׯšö(‘`€–x˜` €×­8B~ÏÀ3‡ÎÔ€ñ&¯o3/:²,ËBðÉþï4°ß²,¿C‘ã»®üýá¾öîPÜÉÂË?aÿB•ó·ÞÅí£}¸}^F¿Ç…eACÓ¨k…J•|­ÁdÝbf1Çþ½¿4Ͼ²¶¶tj K‹í?Vêîk÷mî! #Ûp{ýtI‚µ*oî=4>ã·SkÕ–: _n´hÙL5!„úÍÏß·åĹ…{F7 ù[ .§‰ËŒýì›|í¥œ[­–žÞFKÐ+û=.Iˆ¥¬Jj1Ejê,ɉ J‹SÌOœ^Æj¼¤€L^­†’ÙâÇË•:=.r(âp㊵Q;1!zZ¬Cã3®¦ øJZÊ…ê@“,!„ è–e‰cçwŒ¯õ o¤ª„¥2VÙGoKÙäûþíçUCš“Ýg4ä_3Ð×Ñ‘y‘k*­V¿Uætm ¬Æ$°hX’?}î¨{ÇÕý»ºÚÂkb-&.jxÐ Ã4M­æÇ_«ÄÖ\ÉB˜c?øBÏW¾óìMCë×ÅÁ4м0¿°@WK„±s Å‚Z=”jÙðxb]ÛzÖoíDi©–‹œŸ³d à–í\¿Tªh_ûÞžC§ Ãúäõ†ÒéOtQRKÌ,d >säPS[Ñœ‘®l¼nY–ðºñD̉Åñz*@¹¿3Nÿš.ÜáxLÔô,±‚J"êÏÙ)Qµ«­ºò ñòñ©o81ý´eím·­c( ÛÁ»2ðzsîþÒP»áäòžÝ{Ãݲ¡Q*Wõï?ùêcÇÎ.ìµÁ—í(ù½.¢±(ŠÇ‡äh È-á’Œ¦LR[±ØJµu*²¡éÆ0Ûtd%Ù.£ÙŸ­_6^d•_zuìþWŽœk‰† Ã|)™--Øæ­Ù Ê@YÓu|NÔhô¹Q+uŠåZ¦ Èê©›©é†Õ”ﵦ&nåÚ69o†€µâºa>¸*xìÙ‘Ûþ£‰DýĹœ¹ljÄ4¨d—ñº(ŠL¶X>ܤE­ PóöqåµÞt\k­:®µ.¶¡¹ÔjÖLÅÄ,YÙ|Û¨;Ê}?~bßY­Z¨1L“Ù¥lùðé¹Wíï¾ÁuVõþVSó¦7‰±z¸õf]ˆU2lbÕA¶ùØ/ÇÎ=ö˱;2Ù܃р·3WªÕzã€eYã6Õ&«]lp»ê„ÿ7þWƒ‹ý¥ÀjzeÊí³Åc_3š2JÙ¶†±º×ÿž_D;Ö…*xÓZq7šÒàJ@6làÚ¥¦ÿ'ö¸Ìý›O:åUîvÙ±ÉåÖÿl·eÀ°Ë2NIEND®B`‚rubrica-2.0/pixmaps/48x48/rank5.png0000644000175000017500000000413310554703326015610 0ustar seb128seb128‰PNG  IHDR((Œþ¸msBIT|dˆIDATxœí˜il\ÕÇ÷¾eÞÌØoÌ;˜$61¡!$´)[‰B£RQ¡B©@‰¥ê&¾°äK+¥EM#PSU]TZ@ H¡¤”:!-TBÈ‘›ÍÁ–Í8ÞÆÇËÛîí‡7ÛƒâBÚJå/]Þ›÷îýÝ{Ï9ïœ ŸêK•ÀùÿmˆIUß^Ž!  MÀ^àGÀÅÿI°‹€–„žG;| óLÌãÙàgÀ-“ï àK«L2U’L%ÔUKr§4Ùœ¢»_³ûÝ/øP?Çï»?IÀ/[j€š Áý7Äøöµ6‰˜@£Q B¡Ò ‚PãðÃ;†ü~O¨fôùS`ÑN|,À»€Ç3S)xàV‡»ÖÙ˜Fô²´ž‚ øaè‡?/Ðt h6ouÙýn8½ïàfàÔ\ƒw;ð /o6ر©Œµ+,lS`†a`H!AJ Šs £ € ƒu+ êkûÚÂÉÕlVÏ1ùè<?¼˜×¯¶xñ$Õåôfå`$AÆÒB  Q°ÎÉÑ´hM¡ g$ë.1Øy0dÂà ìœ`ØT]u‘Á¶ I1Á¸ï`;)0*Àœt@X  AÁé)8¥A)Ò0êB*ž'ÙõNˆŠVòJà-àè™n®««‘ìÚTF*)0 ››7³þ±Au*\åP—©Á‰'ÒdÒ"…öA‡h Žhvy|»ÏOžõ8Ñçš‹5šªrÁ¾¶¢\ RhZ;BÖ|´Ø±pNm B"DÀ—/5Øy äÝ `1p7ð«é0³yñ/û.m4xå¡$Ž%°-°ªPö¹ÈŠ•h³Ì 1ð‡`ô8„`ü´ŸÃó5n  F|bxøÆ `¤ÿ0î„‹hu*î{ÌCGFÛœ;}KWP_¸÷«±‚ÁOÎB ucïƒUÖ8˜•äA dáI1cÖáÈqü@ãù/и¾FOÛĦ‚K›$oUµÀZ¦ñÒÏÎ*༸-X»Â(† ­­@‡ }P.„càD¿Êîë´Š<¦ÂLÁ¥uѵgÞ¿¼yÆ Ó/JWð+k–8´v*žÚí±âêÛ±m‡x¢Ëv†…4LLÓB…ü@èt€F£µF)ÖàŠ ”bÌÇ÷†óyòƒ=,/•ÕK%RDÞ^`¸g.ÀF€åçKNMh^Þïó·÷—pû†»p‡êêj‰–eaš&Žã ¥Ä0¢` 6!„@ëÀó<<ÏÃ÷}r¹®ëÒÕÕÅÉ“'yû¯‡YÓ˜¥6%èÒ¥k;,Ýâ:€sR‚ uj–.]ÊÙ’‚œ[‹ÒPUV¼méÉ‹RÀµ7€áqIYYgSnCk¨LÎ(us0áG)œRß÷Ï* Ö!Zøáìÿ—ÚàÀÅ's C¤+%ÝÝÝø¾aø¾çyPH)?dƒ¶maÎjƒÓ[8f@ š‘+tÏ˜Èæ4†çVj^}ã(ÇŽömR©ŽãH$¨¬¬$NŲ¬"¨iš†çyAÀøø8ƒƒƒ ÑÓÓƒëºôöö200@*6Ò› €Þ¹ì?¥CW-Óüî¥~:::X¶l™L†úúz’Éä¬^\*˲Šàñxœt:Mmm-}}}ŒŽŽÒÚÚÊçcd{4¹©ŒðÓ’ØRü À{'½CŠúÁÊ ’´¶¶ÒÜÜL&“Á¶íYaÎTBR© .äd¶“tÙ(ûÌHª_š~Q øЩ4ì8àØpóÕ6---ttt|,°RõôôqºÍ÷±¯m†ýýét€x`Ë®€‘qÍUK'øÂŠr6n܈R§-楶þë.Kòfë0]ýEÀàµÓüíÖ<·74÷_ïs²ë(ëׯ' çˆóГO>ÉeMà ÷á¯Ï˜ô))¢fÌ¿xj·Ï¡Ž²˜Çoï­áð{{¹í¶Ûþ·á}äbù=4V÷ñìî<ÙÁâêµO”>?Wý ÐáúðÃg|zrŠ*{€ßÜDŽfÍš5<üðÃäóù3Û³g7}íF*Ü¿³²a„–×:Ùq ¸Xš(YýP}º²óàu ¹°Vðàé*‰iÚô{ lÝ;Â+û{¹ó›ß¥¹¹™††-ZDSSù|žöövÚÛÛikkcÛóO³ve9×^±€SýmìÝŸå‰í!Á”µüØ<ÄGÕÅ79( 6|Ã䢉`ZIb©þùCgÏ8Ý}cdûÆvIWÇ©O'ÈÔ&¨O'YRg2Ü×ÎÐ@–ç_ Ùup†™= Ü9À™î·[€¸põg$·®5HWN½*e i93Ža&ƒÏÃsÇpÝ1ÂPñÖÍŸßPôäf„”G‰r¿9?øgzôñY¢ø´¢âgõRÉJV5Jl‹BþW(1 ­»_qà˜æ­#zz(¡tOðS ðkÀcÚ©•i 3UB7/úŠeR_²DèóÓB'9O¹Z8ËÇq¢-ŸúMR,Ÿï`ó9~+• ¬#ª%™u@9ð>QêÖl¶£³öò©þßõ/g–Œí(ÛúÌIEND®B`‚rubrica-2.0/pixmaps/48x48/rank1.png0000644000175000017500000000414310554703326015605 0ustar seb128seb128‰PNG  IHDR((Œþ¸msBIT|dˆIDATxœí˜{ŒUGÇ?3çÜ{÷î{—e¶ÀÊC(‚,¢€µòˆ%5¤MùÃZ­bÖ¦$5(‰¢ÓÄgˆ¦¦6hiZ+–Ð1ˆ‚òP–wQÞ¥,Ëî²{ï93?ÿ˜sνwY›úJì$³wϽ3g>ó›ßü~ßx§üo•Z å¿ —:à³Àzà`‰ªN[€¯·ý'Á&"@=<è ¦Ðv°¸7î§€OõiªÓ4ÕBs½¦½K8Ón9uAؼ'$^õž£ÀçÍÿJÀ¹ÀZ `Pµâ+ 3|æÎ4å… X Æ‚±Bh!4B>„? yu·áÙß[òÎïËp+ñ¶ï~ øMµŠå‹Ë¸^ßs)À q€‚ò¡pò-ት96ï1ÅïÞÜt]kpïpŸ~èã<^]QÉìÉ)Ò¾Â÷<<ÏÃÓ OƒÖ ­@%sV n (ÏÀ¼÷xÜ2H±í€‰­9˜ ü’¸éß¼ø ¦§X·¼‚ú*ç§Q~%xUàU€Î¢t ­­,*òÎx4…QUŒlÒÌ›â±q·¡7àÝ@9°q €Y`P÷ /.« <£Ð^üðªÁË@¥@y(,ŠÐÁIÎ X«Ü§@En®ÙôºÁ:KÎv‡oppWó ͦ•ÔT(¦>°·®T ~³¦—]–øã›Â=«,w.ïåR· QU(ó[=¦ŒLFKúÂôø(PÞ:ÚcÑŒTòR´: ºŒUÏeãk'Ùsè_{êèr7í'}¾ñ\š­{»iûGÀê *  ׿ÓóýÈovJVµ/ >ðå»3IG•üU 4Ûö·'¶ì:Ê¥“6ñxÛô&íöžè?¢ªh“`4³¯8žM+fOö’0!ˆ1 ;öJ:´;Gg׈|±ˆ@g?Ý]<ÚíÞ…ð=ÏW‚±ðz€¸c’GYÊ9t¼ ‘<ؘF¨O: ®¯¤2ã¾Çæ@òn§f=še“vãZj“É&»V£U)õGLjÑIHˆ3¦L7˜N¦/Κ2¶ƒéŒ~ïqÅnŸ2(i×:®2™¬ˆ8¥ *ëvuTZ(òþ€ÍƒkTIn5QnÅtBØÁ&åk|O³tñÛ!ìÓIh$é÷ÐÂzÒ)LÚcñœŠ’‘’çºÊ„Á‹ŠËP€†jMhA[ÁXEh$r|ƒ/´6¤kã@‘î9AlŽ0ÊÁ1äøú78¼f»4™ž}äCÁÄñЖBÖVÄ™=1Ô™þè Ä©£PJˆƒ°àf«U/~ç.ÀI€ – F ˜Ž¿‘ … Zk”‘ÒçÀôGr5àià¶sí–иŒªT' +‚§ZIÓbÇwþê Âø3†Œ¿+r›$«Dý.u•h…$Lô<p¦Ý-Sb9Qˆ'XqpZÃŸÚ ÓÇz¤—,yY0ˆ ŸÙl¹|%ax w"ì`80óðiáî>žvâSl;z´ Ã0 -¹x9`{›ÁÏÖQV–â‘EiÊíqò¹Þ¤'„Ö¹Á®Ã–M¯'< y-€›9¸ß < d•‚NÔ,žíÑX[Ե؂Rš›cȇ„—¶[ζ—¤´Õ¸óOðv¦¿†;KL«™y«fêhM:å”IÁ‚®žº`ùËwòB X­¾Éñoª ¾ä)ºµò=¤©NɸaJfŽ×2e”’–F%e×¼åÚÀ¿ù:® ·ä% 7¨wK1i ƒ äú­oñy¸SàHœÈlª€7pÒíð ð"ÐÝï[Þ)ÿï埵ÿ­º°ÂSIEND®B`‚rubrica-2.0/pixmaps/48x48/mailbox.png0000644000175000017500000000443010554703326016223 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“ÍIDATxÚíšil\Õ€¿·Íâg'vÆÎ‚à…­¡B…$””J$]€©•º©j¡¤Òþ  ѪjÿTü@ U©êÚT¨áW%BC+Ñ´ $¨Ù’6v™xÛcdzx¶wïíñ<ÏØÏxI¡Ru5£wÞ=÷œsÏî1¸6ðà¹Æ ´¶¶ªõ"8;;Ë+¯¼ÂÉ“'9zô(~¿]××á‘‘mI^}ò1D>¿æþì9¢Ñ(===ƒA.]¼ÈŸ^ý?,ËÂq²Ù,Ñh)%ý}}ºººØ¾};–eqéÒ%”¦Ík\J”+¼’g¦iÒÒÒ‚mÛ.nxx˜çŸž3gÎËåÈçó®ú|¾ÂE:±XŒl6K$!cY–+X,ã…^`ÿþýD£ÑyeÊr_Õ™B-b\‰Âgcc#@ l£mÛD£Q&''B¸Z×4\.‡ã8ÌÌÌ „À0 ÃÀï÷cš&†a „`bb‚}ûöáóùðx<„§¾•É ‡IŽ2@[Þ^j{¶d"“ksLÍÐÉ¥RtÝ÷¦úûHG§ˆô“#>\}Â"+†`UC)!b Ϋ¤büâGt}þÙDË®gràߌ_ø`¢Pe?2kÉvµB,dàïoÒvç>òéY:îݦ„{Î/ä¬Ü‰EM-¥*8rÙµ¯ñ‹aúüœ{ù7 w¿áñÑqÏ~>ûôiݳ¥)Ü¿*=w)]%UEû2K§ ‹Òµ^AcË8x"&6x•ØàUþöW¶nÃÞ¼%«¹d©*—"ey`ÑK¢6gn½c7ú\½”ÏfhÝ{ƒïž7­ÑQbs=Ãj ª£äª3°t¤ãàoj"1Æ[_†Z±–—ËÄÕK !V-€n™è†I>Æ·±Ý4k3•ZgMa´¤œ®]msÝÙûï/Òdq\².ýPhÕ21’Eåô5)×™V™ ]ëÒxÕ>&emN\ÉQ©ÙùÂÍ.ŸNIJYÒŽ ’Î`ê;75-b8í8„S³¤‡íõ6^oùx&™"šÍb›&7,Y Éjy@Š¥54’L1OðÆÕB-s¸£½[7»øx6ÏP2Åñ`€CíìÛ2¿s.2ÉùÈ$úø‘TŠ`"ΉÐš‡;®gßÖÍe!¡ªw5 5÷ÂÏæx#4H2ïÌ;¼v%ÄÖ›?…&šPLg2†H:IÇáx0DK× î@v6Ÿ§'2Él ¾íö].~*áÐ)§Hÿ*Ûn»9#Š«ª -ÌÖÅAon‰fÚרäô,˜W*ÀÛÔäÖ.Ž,ï§ {½eµÍB¼å÷—1\Ú-V¼b"sk¢9É›}>lßmšØ¦É×>}+3caƼ~»‹âÀ}Ì B²’ܶ©‘Csø¯ßÁS"ÒwÙÅw5Ø.Þ6M¾³g7ñð¨‹/¬Z:21ŸJCn‹ÏKÇŽíˆähEòmây?ÎÁyð<|¯ÏKøÜ>·Ïíÿµ ÿGïXïYð0ßöù!jŽx¿ît°æ»Áÿ†@-`¹æZKf#àÁ}’©÷¿æ È^¤—^zÉjiiA×uJ¥Apg<‚ ¬{ ‡Ã444¬ûB¡À©S§Ú°§|ï=HTÀ‡~òÓ0ºv=ÎÂò+Ú2šQ¢¤i€LLià±–-ôïÞOkS]¬$Iˆ¢ˆ,Ë„B!$Iª>E±J¨Ö8zô(@`Öð„ûúÂ¥¿ŸÍŽÿprvŒ¥ü¦ibÙ6¢¾J8D4E”$b¡vìÜCs*Z‡Q…H$B4EQEù‰ŠG_{í5^}õU€€ èe®t¯èç3ó¾üÕ“†Fž½pi€ë×>+NLjEÍ”2*Ëó²Ð@¼®@°ÄÇ_a*3ÃÕKC(²Â믿N¡P ‹aš&žçÁm^¡ >\×å7Þx­ÿ•òï)ææN^¸vþÍËÃCñ¡KCliîåG¯üE9ÿÛ_ÒÓÕÌÑ-3›+🣳ìïù&+ºÆâòMJÖ‚dßÁ L¢Ñ(ÃÃÃlß¾]×1MÇqª€#‘HÕ ëä”R>•Âq÷*´”[ÚîêÙ7‡® Ư_ó^8ù²ÔßßO$büƇ{wòôžMDk£w%Çž¡Q­‘¦4ŠÔC6—$oŒác2™'öíÛ‡ †ñ)ˆ¢X §uL*+Õî®F>>uñêÅøäÉâËßÿËúŽÍmÄcQ"a™Í›Û‰"] GÁr’ÍDsÑDDzˆGRúvêš™[˜ckïVŽ9F>Ÿ§X,bY¥R‰P(D8®&7€(Šk½ Ô‚çng|êæ_<}päÚöò«õm­MÔÅ#Ä£ ápˆÆd=!IÑG%?>O¢¹H"‰"K„dIð‡N"Š"KËY~ûÁûø¾O"‘ X,2??O©Tbdd„ÙÙYÇ!“Éàûþ];ü <üŸLO³¿»¯Ð××G<&!Ë"AmÍ Ûƒ»¢KC³D¬5Bw»‚¦ë¨ºŽa蘦Aº©C»!+2ã·Æ)‹LMM1;;K&“Á0 ÆÆÆãüùó n”·MÈåsß¾95Öš¹5Ï+/½Ò aEF<ÏÇq\VtÂQÐ?7·°&¯rùÜ0 Ùùü2Åb‘b±ˆªªìÙ¾H8ŒãÙx¸ìرƒ£GÒÝÝã8tvvÒÓÓæM›Ø»wï]ã=ÍgŸËd3´&Ò³étº“«ÄmÇAÓ nå4–g¦ñg?c|}êC×FÉ..’ÏåÈçsh¥…BUUÙÛ³Ÿd*ÉÄìD£Q²Ù,AF±,‹†† …Â=Ø0‰ÇgÆú² Y÷ W:©(€ë:˜–C¾¨2»g³8ˆ°½‰Â¯þܼμل.7àçóhº†ª® ©«^MM›hin%;“%sæÌB¡7nÜ º»»ijjªŽ&ëäÁ½¸µp«S+éô÷õ'ÿ§.û¸®O~Ee|±ÄÄÍ Nì˜C+¦¶ö15>Ê{ìÁkt1 CW1uÝÐÐ4 I’hŒ¥hmjaa.ƒ,Ëôöö¢ë:¢(¢ë:ÑhÏóeß÷«é¾ XŽ%®®®p‚€mÛØŽKN·ñ}dKš¿8ÉÜ¥<Å‚eta"¸ÔÉc¯&±¡aŠ¢à:¾ç¡i]]]ÌÍÍQ,I&“¤R)‚  §§çž&„;Ð"Ñh|rrÒ~òÉ'• 0M“eÝÆ2-b²H¨>†¦•Àqp,ǶqlÍÔ¹¥©È®ITp°Lß÷q]9$ãŽåžçáû>¾ï#ËòmSêªÐÝ „CáOÚkë½rõÊÊîÝ»›ƒ ³˜#o®†QXY.¨–—1õ–i`¶ea™Že²¢p ¤²:Û„B!DI ¤®Q"8ŽÃ•+WXZZ Eaqq‘L&C"‘ NÓÝÝ}'Q´±èhß:äºnïÉß›•vÿñÔ&àÞuœ>ðDß +…3¹âbãÛç~¹ò¥}Ï$%Ibpp°ê~Ï󘘘Àu]–––¨¯¯gÛ¶mLMM‹ÅÐl¦F¾<ì¿óæ;\¢eq"VY*–ÊrÑ)‡JíFÂ.Î(ß{€Ošø÷7?:yîwoJËqò8°ë[ÓhÚjƒššš¢­­­zE‘H$BH aK“Ó œð³™E±9ÝÄ?ýç¯ Th–Á—ÊD*¢Ý¯9nù™]#)ƒ{õcãcÎþîô©\1×g;¶e±­}[ÒÔE“xîjû—d Qüð"–cáX££¹7ÇnÊõ©zžyúi”ˆÂŸ|÷O¿Q&À¬”CĪվ5;¡Û’ø~·Â{ïþõøÌøŸçWò-%u˱PBa µ±™¶¦v\Ç#¿œƒ@_\Zô/^ø`‡’ˆ'tíÚÆ—£¨ùîW¿÷|Y&V¼ Å2‘jœ¯ '¿¶™=È^HÄ_y÷;ã37Ÿ›ÍÎî/– žëÇ<ÇÓ…@˜-d‹£ûìK»ž³è¹žð³ü§s]Olû± Ó¶%MKº…c‡ž¥¨ùö|ç¹5¡¤•½°²†„¿Îzñ—»µ«ÅÊ‘*ÏŽåÙø®Þ]­®ãŠÙLÖþÅ¿¾Uz¼·k÷Öÿ‘lLÒØÜHª±c_8Žnë|ëÄ‹ÇË Ô„ÓÊ:žð–»k÷¢µä”OïëoÝœ~'RŸª§!UϳOÀv,¾qü›w"¡ÖäÄm$öz]¸AŽ|åp_¢>qº®¾ŽdC’Tc_Ü„,ó‡Ï¼°‰µ9Q›Ä÷´¿ŸÕ·¿æ¾R9*%Ðxçü9Ïõš¦ê”T•3—Ïâzÿþþ[¿.—Iq ®|­”]áaÿÁñ@;ùâñîh<6šlH‹Ç‰Æ£ô?ÙO4­„S¨üèåPZ.{¨éH|F6þáÄÒÖ][NAð×õp‡™¹Âá0Oìþã ¿¹ø³š Ô©éÄ·åÀgl'_<Þ‹ÇFeEF”EdQfàÝóÏL<­–½àÕxáSøÌ œü£ã•pødgú/ýfèVyVªízùTF‰€GÌ„/=dk9Y“@3Ф& Q®PRí/0v Nˆb âŠæ0V„ä¿‘Pˆ’?B¤ˆ ˆ(áH EJD¬XØs-ö²ö®÷ð^ž™ûݯ»«*ÌÔ;¬YH)©ôª§Gõ~ßú]ß߯ü?âÖ/ö·_uØmŸ; àᇶ÷ÝwÖÚ  $„8ðÙß¹“z%ÏØX‘Éé]ìÞ=ŽÛ…Ê©Ö(å‚ħÏãù.ß/\Ë¥^BœJÞýÀ7%¶vÐB\²Öª »S€Ô׿þõ­õ °²õÐ7.ÝXÓî„„6ºSÆ­p]T}8Àò2i«C ŒŠU6ü!¢8Ì Ö>`=ø4;Bý\B|?û"±–°gÙ°kîßeÒUà¸(V0óç¹xâù|™™ÆGy–Ö;dö|"³eH2“˜°}˜N‹¾Љ K:&ç{($ca  ÔcŽ~÷Ql§Ï²[BF Ó®cx|æ…¶¬Ðœ¼ø˜ÝÖÚ{–âGqøÈUl÷'—{¯µï.!¾”Ù4< ¤ƒù²ÍHfÖë@~‡ƒDȘ¸Û¾wÇ|àPöECêžáÕÅí7\Ãè® *CÔ Õr™ÆP\¥Ž#@.Ïãî-,öÞñû¶öüJfKgð}ÎÀtÄŽø…áÀ¾äÕû¯chd” 6<¬¶ Á•¤Ä¦!Âæ8·´Al[/%çìØ{}‹µö¾­ç=9×<Àè®Ýä E”k”_$ÈpsFH4‚¨ó‘š^ØËúÀǬµïúuf⬖€ÒÖÃk¯ÙÃØø.JEŸb)O/J馂^¯Ç†H‰ELº¶ÀâÜ,CC£œþ}"½Aoem{Žg4 vZYøAöÅžj•œïáç ¥ðq`ø÷Aøôˆÿo£æ 4þT Ì ’ÍŽp!k-Àz!ÜTôK~þ¡•öòP7ì:žë‡õJíR½<|,MõS'gŸ=5 ñ ÁéÌ|Q/èWË…W[(¥p•Ãøpí³Ã!n˜ÙÇëö¾ó·ïºÝ׌sâÔ)ž;sŽ?y”gOá€wýáåÕÕo”KùoŸž gÒØ_+Ú½† _¡Z®0=5Î|+·\¿—œ¨vbFF¾O½ZæÆ}×±{|Œnïnæ—nýÉác¿óÝ'îÚ½ûKÏ_¸ð¿@w$1WÒFÖÞ ô¶|àWáBÖZ„ÔÊ£PÌó‰~˜w¿ãm¸´ˆ:MšK}Â6˜Tc-Xk0Vc T+Eì»–·½ñ^÷·Lßù¥¯ýÏFã³a}µÛí\m\"ËI.]m|B0T®R¯–ùäG>Ì|J¹†ë—Pž‹—S!ÐzÓŒµhm°€ïzäóyšá:×ß0Á?ôz*e÷!×ó?ˆÃ¿ 2J¼$x)\È/×°ÖrøüÿoñÉü9wÝq&NAJ”WÁõ{x¹>^ I“c,ÆXtjPޤT, ËÅù9Z6Å¢âîÎÿ×ÿè½XÛ »½/÷“(ëIÖäKáB£#ã.ÄϹ# JSþõ±C¼ýíoç®ßº“¦˜~ŒíÇ`n®ŒÊ)r"I4X0ÆjMÎw©Uj\\½ÀFgƒ0êö»Ô«%Þsÿï¸âm¥ ¸]nÖyÀÛN¯š )?G/Ñ|óÈLm˜÷½çTÞÇ g(òÈ£}y\(´}æZ¾ðÍGøÇ/|žj½ŠÑÇq6í=JÐaáH¼|?ßA8`ͦý+åäsÌ­?O«Û¤Ûm¨€Fiˆ‰Ò0• Æý¯çû?>¶_xêÖ3³³mLo[h5WÅ…ÚZ±dj9³Àþ[²oªJ-£ü 2ç"P F¤·Z¤ú—ŸzƒïûÇ{aØI[ ï…}`;š˜åæW½’Ý×ì¥\(sÍÄ–‡Ûo>H¿Û"j/¶æ‰£Up N!‡* "(ã˜4&îµ{m‚b‘éƒ4SŒ•FÙ?º—½#{›˜¦81Œ;ZAVî}ãïb9SªíBä3f$¡}ôÑŸûPܪ¢^Œ õ¢>«­.˽§¹»>Is)Fy׋Q^å¯âú9üâ^mká™Ã‡ùÔ§þÖ?yª_«ÖÔ›Þ|Ÿû–·¼‰{^s?ÇŸ¢P.ãÖ à)Œ#ÑR’¦íÜy÷]>qhÊqä3iª·yÀ³Ï>Ûª@(Yk߸úîü×o¿Bá»J ßõŠÛÿÌ—A°¶´É%p=I®ÐÇËu)5$¥\™…Å%>ýŸáÈ‘£ Iš´;ížû/Ÿû·]¯¸þ@°ëuÓ ¼‰^¼AÇÒâP“h1c-ã“{rÝîcukeÚ½L‡H€þ@X“é$´Îe¥¡E[CêåenæºI”£°ÖbÅC[ú¡Á:·’òôÏžæÄñ£ËÚØç…k©1N9(6¿õØ÷n»í5¯ÅØç–úÆZŒ6É ÆB¥RU½n»`­ö²ÂoE¡t |w ¼›)ÀÝ+áÂb‹Úèªë»ÔF+xž»IÌæLSMš&¨‚Ç’š”$})EéøKW)GÜ$Ié÷ZXch/œ@HÒA B‚X¦ßÄãcÕ@Ž-b @8ÈlQƾœ¬­m+Ë[ã8:uîtP-Iuº)¸Ñè4%‰5~¡Â¾òÓS{¸vïÔäs§Î˪‰rD1ŒÚ7Ýÿ¦7S©ŒÐÜX¦>2E?\#;¤Qh´ÞäN—æÎëœï›A½}YYºÀLInC(¯ÐBˆXIµÚéDçÎ_f¦&Ð:%I¶N_#…ÀU.Òj&§vóÞ÷½ƒ/ñ«÷Ì.¬ì+ʵ|gõö;nAIÛ i¨ýJ™~Õ釤ý.:é3¿¸û¾…Qhí ÐÈ&2 ®ÐrßNð„븸Êݘ[}öùs«ë­G¬áxªõóÆšõÁéGÙ"ÿåi„ã!Q?2§púôÅ‘|.p÷Ḭ̈§¾‹Ze¿^D½/¨³riž¹ÓOsä©'9yf¥¥Ngaþâ‚°ö¹¨žRǘóq’\4›vßÉœ~¶Ñµ#mî­líK)KJ©1{…áZƒ½ÖóܱÆðÐT¢Mymu=†¡£\×ó¥$ç«võW{½î¼rIqË|jÓ iš®íÁÉG™äzÙ½ÚNõé·@¸RÊ‚/!)åˆLcVˆ1cm9MÓ‚ÖF )p¤Œ¥]‹hI!—À.Yc´ÑëÆš¦µvKðþ‹] îäµÈ@OA^ºnI9NE*YÕÚã8É£ GGÈA7Õº ¶§µî îgZŠz»Ùü:ï­²—J‚RzÒq|k­¯µö¬Ý !h!DlŒMÀ¦3I¯ ¸ý]¼mÓÆ•f–åšÌÅ·ÉüÁ¾PC÷7`{áq¥¹8š+üä—ÞÔü?{:¶Z9VIEND®B`‚rubrica-2.0/pixmaps/48x48/role.png0000644000175000017500000000667010554703326015541 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“ mIDATxÚíYmpT×y~ÎýÜO­VÒ $$#CÁÆœ€!lÇ µó1Ô™t¦Ì¸N;™m=qhôcÜéOgš‰§¦Ó¯¡NÛmJ‚ Á&±ƒq PŒÀ!i%VÚÝ»«Ý½{ïÞsÏéÅ×Ë 3nòÃgæÌÕ®îžó~÷yÞ÷_î à}Òò[zò_e$ ULI|ÏøbRñù—®ióÔ2™žäCÞ?œééXZ¯Ï¨W.¿SÿÙã³–MMU–P„…<ò¡zEY@xYüOŸ•%K–tüÁW¿²}ß¾]OfzômvýùÜé£4©zèð±Â3Jlá‰ðüм"·^{ôÑýƒ›îºkùÔÔtÜuÝÔŸÜ3ò¥ÇóÉ¡+vJ„)ž7G|g²Ç³räÄÉJnãÇ’™Ý;{—wuªÉÉé† "Ö BùÐ=@hö§7<ü©ŸŒè‘‘/~ñ·f¿õÜ·Žfz{Ò]]=ˆ,É< $ ±hBÎ,éëê÷éo¬Y:K¨ºmKÃ}þÿé…ÚOÌŠYà-Êíä·ª€@Z¹üÎåƒËÒ4=•NwѯýO6Ž^x뎎x8 (8÷¡G’øØÚþÕëÖÈ«T‰hD!HidåꌥöÆQ/Xø_7F’XZ@¦vçgÁ3¥´I‘Ê÷¿xvíÈÈÛk×®»'(«†–¬àœÂuLø~žoÈ‘¸¬n.Øõ¥îT0|×Xô,¦TÄÆÚ–-[:úúúâ”R‰1† @)%Œ1>::Ú(•J¾»æÙ ÄlÍt¼­R©ŽÈªáåý‰¸ÞùpH ”z|ŽS„çÌÀ®]…ãæAm  p€oº˜ TQ:€È–mÛ¶m[2™\Fû)¥²çyÄó<ضz½Î.^¼8ÍfÍ\.çåóù¹J¥â–ËåiÆX^¡  .<ÊÛy@¹wÛæÌ¾v<ÒÛÛ1ì{upÎA}Nc ;†•…cOÃm”¿™—@\"`ž J)ª5Ô+.êaüH¥Rý7nüíL&³•s.{žÇqÐh4`š&Êå28çˆF£ „øŽãTëõºÇË8 à¿äD¶£ÍpºA5kúâ÷¹Nàõ4ì2js“°ÌYØVrsK ÂmȲ¢Hà”aj¼h½rç/M<À›iÏ>ûl.Û¿ÿêx<ÞM)…ïûh4°, •JÅbSSS(‹j­Vë©T*Ð/<ù ‘* ´]É,¨EÁò §QAà{p5Tç&Q5fA«WáùøvàuH´U—¡ëT+%T гWñÖFñoºÛà†Ñxæ™gN¥Óé;wíÚµ/Õu]X–…jµ Ã0ËåÏçQ*•`ÇiÊ¥Hˆ‹¿I;DÚHõ-aýɘ5äÙy©ZÀ\ö ŠÙ(R{¡êÊÜTfˆs¢˜Ó4I¹\Æìì,²Ù,ÆÆÆÏç‘Ëå`F8•æœP`„=Ъ€:3[ÓjU3X9 ¬Žhf7u 0®±nçˆD’ˆÄ¢P ²L ©ipÒh$¯üë+Å;”™bìP   !2 (ããã•>¹g›iÖõb±ˆ|>‰‰ LOOcvv…BŒ]oÀEW„ðŰR hPõã'Æ/]½:~þ d' ê* !+*Uƒ턪% «1Ä:; uf ¥b aÂÚ†°¦ð¾xÎÈçóùI‰ð¢&( ˜œœD>Ÿ‡a0 ¾ï/„MTga«‡ð…e] «ð$= EÓ ë:¢ñNDãH¦—bÕ–Ç00²ŠªbÓçŸÂ×þøkͰR£%Ÿ7Tu]·âñ¤:¸,ƒ®¤Ã0P,a,ˈÜĆ y[_r—ÅX,*+ðPNÑ·öaDb1Dã)DãIhzÑxF~ô…ÝÐqtõààÁƒÝbM¹¥vh®ÏW®\y¸wIo_4Ãö»7"¥0 ¥Ri!ÆÀC€ö^%µá$Ò¯oéìëêdƒõàÖ’}P$ ª…ªE¡Ec¢º¿øöó¸cëgÁ¨=÷ïUU5  )ÒŸÚ²yùå—%Y–BRé.<ýô×ðȽkn›jO·ÖùÈ™G†ÕO3ÏÔ&/”±nûïBKt@QuH² EÕ ª1(Z ¾kA–e$R}øÄî݃éδÇ9w&³ÙZ ü7Óaòܹ³ö—¿üøçßgó¶mÇVl_ÁkGÎ\GÀ›ð¶8[MÊ´z€ïZß‘Ð÷-„Ìë( ª…IA‹$¡h1 xh˜ªÅ«Ðeù½'¾ò©ƒŸþÜþýŸÙ  WxB3 N)Ü@G Áæûöá©'>~[tZîH¨©DB^A ü†‹Xj²¢CÕPõá ¾ ß5áZePßC)ws399ïëéíS†V i‘ˆÞž¨¨ ¤Ï}ö±Õ{öîÝ3²æŽûÏi+PÃqo¯à< ¨†`Ðb Y†¦éàà».¨WGìÀ6 ÔJã(OŽáÚùó8ôщºÇk]]iÛuÝ‚Ðþþ¹¿»o×®=ñÈjY‘ó¡sãlç+@×ñ9u}‡G\»Þõ{¡j:@ê¹¼\Ê7^;q|üoþü¯.^.6r"]²Pq_+‚£‰ÂGÏ{ûìK¶'eF/^Æw¿óüWëFk[®ÀÏ]¨Íü9?¾i$Ò­Ç–uwtiàã¥RÑüæ7Ÿ{ý¾ýï£>eu!œ-è-Ï*€‚8l–øN~þ¥cYàпbÅŠå·ÜÐyŸ!ä ù‡*¯~éñ==~汇âÉ~MRTÎqéíw®ýÏŽù”U„€®õPƱ˜âé Ã(¢¬œÀöîÙ=´@}ý·å Àš³ëìÙ\îZº ±Á9GÀÌÍÕÌìôµªpÀT(Lh-iˆ³#„ž~Ï=[ïE©w«ÄdN»{†…àc^™3¦ß<}ê''j/ü׉ü´‰™P)çϳÌO°Í&úÖÁ«¶p¡0’ú7mý€AQìÐÐï]aí&-iR–ŠX›.vGFDÝÚ `XÌ.Q;bWlf‹g#¤D³Roc1"ÊÊnËĺJh½æ:~ˆ !šÞ %¶˜¸øAInˆÃî…6rBÊxmîÄhw7ÉbMü¯Ù;¤-VoÍ`7M d̤…êYµe#¯…u†^ìf’„®kÃ×´­)—¿ß«&r“Ël9”ƒ[ó;ocÝÛ½Þý@—€äÿk£ÆGãWtüë ±­ÿiIEND®B`‚rubrica-2.0/pixmaps/48x48/keys.png0000644000175000017500000000716110554703326015547 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“&IDATxÚ½škŒEvÇUÕÝwî§Îÿœó?§®àô/Ñ6¶ß­ËO¹i¿¶Kœæw î(Œ²mž,`ÂhÃ3ÿu*"Nc~Kà¸ø]à`‘¢è½o‡Ÿ;y›B¾mMÙ¦ô×n¥ö—Ä@7ð0*„ð›7oöü±?xð ö{÷îõï¾û®ß´i“Bx`Ø,=a ,n³È%áêÿJø°øXáß|óM?22âK¥’¯T*¾T*ù±±1?22â>ì8à?ûì3¿eË––"Ÿœ ÌŠ€¯Õj~bb¢¥Ä5@o°ð)¡Cž¢1pðúºuë.9pà—_~9I’ µ¦R©P©T¨×ë¤iŠ1€b±ÈŠ+xõÕWY³fͯß¾ Ì –ÄZ‹ÖšÁÁA€WUÀ¬` ñ«ú€»±x}ãÆÅÛo¿B¡@£Ñ Ë2êõ:µZjµ @gg'Åb‘B¡@EXk9rä¥R‰çŸž§žz*þØ|^.—ÀÃâÅ‹™5kÁ·ÞŽŸ9¡_D§à°Àc·Ürˤð-÷íÛ—mÙ²%ݱcGitt44àî¿ÿþ«W¯î>çœsŠRJæÏŸÖšo¼‘‘‘‘ÂöíÛÿØ×þ²O>ù„ùóçS¯×éììüpð@i&%ÄIà•÷ !Ø¿?½½½Ôëu&&&xë­·ÆÖ¯_ï€O€åe\PúÎ-[¶œ{õÕWÏQJ%išrðàA´Ö\wÝuxïnY`÷îÝ,[¶Œ… ’¦)}}}Ë€½@%¬{Ê> Ú°¿þõ×_§··—4M™˜˜àå—_žX¿~}ø`3ðeØÑ½áþ ¸çÖ[oýÑ+¯¼rXk æÍ›‡µ–Ç{ à÷§¾Ô{O–eìÚµ«õhQˆLòtœXW !æ]zé¥8ç(—Ë qï½÷æÀ_‡€ƒá>Ôvÿt×]wí|ï½÷†’$aöìÙôôô°dÉ’Öî/”Üpà ŸŠË“àÿ§Ÿ~zÒi‡‡‡Ù¹sç˜snØ ŒÃÁÙ&ŒÊ·ãáÿ¿nݺÑF£q´§§gÒ’6l˜öÅ .xø4$Äê‰às* ,Yºt)BJ¥yž³uëÖ x8„< Ô€´-Óê}+À°sî_ž{î¹REtuuQ(¸à‚ ¦}ñáÇ ùb ëø¯¢@;×ùÞÞ^¼÷T*öíÛW>ÂUE˜%|ص¨¯<ùä“çI’ÐÕÕE±XœV ={ö´CØŒ^D3ì~ã8Æ9‡÷žF£A©TÊLÚW3ø‘òýû÷[kQJÇ1I’Lû…U«Vüã4œé¤ ˆ¶ÄÕt³ªÕ*q㽟LVm!¶vèDqºµ^ðZk¼÷Íõœ™I®½ÀX€¦;UÔ¥ ë%žh=xûÞßbÑ¢Y+0u¾yfÇ7€çN‡Tí¼ï7YxFÆXŽ ”gšZÂç_ň%žxì¡›¸pÍzð­kØ<Ã[‹5šßþ‹ £Slžbt _­ëïÅDQ„мŒ‘QŒP ï,".‚M9'3ðâÝÇ ´k×..»ì²!¯ ´AuFZðI.ºö.jc_‚¬r„F½Î׫˜<'O3ò´LZ«¥9Y­†s®ȉ"‰Š"¢(FÄ1RJ¼HïˆbM3lV9V(š £o¿ý6+W®|¸4D·†ÒhççðÚã|ŽÑu\–b&Ï .Í1º†É3²\S¯7йÆ¤h+‰Ç:ˆ„@Hô¤Ã+ÞaݱÈ( ‹E’$aåÊ•óBR¬j­]”B"E‚”R!z(HÊ'¨¨9'‰%JI”(!x¤H!‰"ÕD !-#aÓãÕR4 Î?ÿ|€->G„üWSÀ9<ï5Þjò,%×iœ×X_Gçc4F[ŒõXç0¾©¼R"(­"…ŠbT’ :ŠU@vÎ"ŠŽ £ ,`þüùìØ±àÖ K'sär!ï=HâB‘¤Ç1ÒG "¤Ù2R‚(Šˆ•!'Œók-Þ[Œ1xcñNã²£Óé2Šxíµ×þ6>…™8Ñ´õ€·ï5ÖhŒ3謵£5d9Â[¬áÆ;Œ±X뉔@Eï|JP áA'R b°ǽ·££ƒB¡€“òž Δ¦U@(…@!¥EJ‰RM m N ÑÖ¢¹ëXœscRá8!¬·H#Ëx-çËÃã¼ÿ߇ŽÛùV$êè˜TnaH‚ò´,Ђ€sÍoAçXg0ÖâœÇfç,Þ9¬¼Ç[Ï<žæÎ+ ^f”ª žzco~|˜÷Þÿ€Çûû©ÕjÌ;—¾¾>òkAyžS(Èóü8¡†††díÚµ¬X±‚;vçùdª5ß9Çèè(ê/š…|»Æ„¶8oðÎâœÁyGn,ÆLšaÒ”¼‘¡ ¼Î0¹F[ Bpaÿ<¶mÛFooïqÂW«UX»v-üÙïqÃE]œQðtvvN6¿Zó­µXkùàƒö‡n]x1¥Ó³laáß¾{Ëù+ϸ`ÖZ²ò¶\Âa¨Wrt  µ<£^ÓhkÉrÛ, ¥ FÇ©$‡Ê†ïí8B¹\addäJ¥K—.å;7­dxÏG N>ÊÿsÕ·ÿèç}}}·ßwß}ÔjµÉ¹ããã\uÕUøëpnð3`"š²û&5þÇß}æó$Q{®œŠ¬Ü8Œ£ÉDCÑn¼o¦_&q¤€¨É&è‰ï¿ÿ>W\qcccÇáûÅíïÒIRãvŒ§ö¥gŸ}vÿÝwß}{kŽ1†ñññV•ö“к Ý MéeêOÇò Ï6 ûtΔðkkÖ¬¹gpppÁܹs™˜˜h‰\¼êšmÛ¶mÛú@#>úèy“ ýôÓEýýý4IŠqöÙgïÓ4åÃ?äwÞᡇ¶†C¿ÿ –ª„ mZÁÚÛëâkúyBÒÿEÀw–/_þ­ 6È(ŠX²d ÝÝÝtvvR«Õ8tè/¼ð›6mró?íü/Ã)Ð1Í©³~]‡å-Kœ, çοø}w˜W _…‚‡îÄ1ð¯KÀ¯§ŽpR?/°ÊYáY‹'´NwÊáh,4¸ÒéŠúÿohû•Kë|¡ÐöÛ‰Ö>t¸ýØjÚîÜÿƒ 8Ðû„HÁIEND®B`‚rubrica-2.0/pixmaps/48x48/notes.png0000644000175000017500000000720310554703326015721 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“8IDATxÚÕšytTu–Ç?¿÷^m©ÊVÙ„°‰ (nZg´GqCqAÅÓÎgì>¶m{ŽG稧uœéãô8Ó­³èÑžÆmÚmZ¶FAB‚!a;’Tª*©å­óG~ÊœN/óÎùT½z¯òýÞû½÷þî}ÿÏñ'úŸP€LÀ TÉÏÖ`Éåü¹K4 ú"à‘•+–ìÞ³ù§‰¿ººâc` øäuâÏø à‰•+–Ö6xo(Ö³Ö‰}ÚùrÓâÀKÀ O^«œ„úG®.àbà»wÞZõüºwŸ¿éÎå‹&{ìýn[ï ÓïÑNaõ­ëS.[®?j ¤k<È®Y¹bÉÊgŸzð¢â|Íg5œöÆæ–øÜ«^Ü <ô )I8hŒµøLàú•+–<½öçï[yëâ©^»Áeë=g¸U%ð¹Jв¼¶6…#€.ƒùŒÄ8‚Wl`ðäm7.,~þ¹Ï+.ðfѽ§½ép»I¶_¥(èá.¢‘WÜðRí‰Öþ‡f $Δ•Ôqï–-_vɳÛ6ü×¼7]4+CívY‰ã£ö„,>eô¶Ãí6«?‹ãÖzB“ =8¨L-Ïó¼¿nßf)!=-ÆÝ)½¿¸ê®«/~úñû+‹ò8z¶úÚ…»ê,<Ï=’ìw%)ÌÕ8Þe3œt¸áÒEA÷ˆ„ Ó¹ão~Ù°uGÓ¤”øé¼ ÆÉúoFº6V¨NèB+vðk Em6Õ%Yr‡Â•݇ Úzmž¸;ˆ@€P¤|T@ äûšÚãCW/a-ðРɀvÒI(ãf•\ÓžH˜'WþèÉPtÄë—Uz¨>`ÐÑï°p–û¯ËF¤@ „† B¨£çæV–î½ýòK€"À¸e-ùÚ1`=°fÁÒ‡Ú QMÿpáy^–^ècÆD7Kç¨(óQt¨l­fÍöëwEFÉøýûá² ÀÀdYØ´±ÅMǼß Çgöv.»áŽB[ïÆ¥©¬«IÐØlQQê¡$è¡p Ù¤0׃*«7†PU…›¯, –„’<¯ŒŸ×ëv»µÄö‡f5ÀpZ8ã•FSqà‘iô'ÛÖÿíWzs; B‘r‘†êèûÍ O$¸ýªÂ‘s©R"NÅD$ãòkž¬=ÞÒópH¦ÕdŠÈb+±çWoo¹âG}¯À¥$\BB¥©ÝäX‡Éç 1j'Hš ›‚y32Éô¹O²PijKbZÈpãõúðz]æ'ŸÕõ!¹Ì”Æ+ˆù¥ <|ÿ÷ÿù¸â-‘­P9¶1m…„yÙ..­ÌáÒÊŠƒ¾Q‹w‡,^û¸‹ìL7Åy#AÊ˫ʦ–ß(kM@z\b¼$4VJ™ÀîÞòóK*gK°BÔ|cQeÖ)I¥–t„‡Zzüå%…£©4]v{jE–\÷ØàQ™V€5u xìúë¯o[¿~ý@­$Q:erþ«÷þzkT„iÀOK/„’Vººú#Ÿnª‹|ðQuï–íûj€Ÿ})êï\fßxmÅ3»·¾²xrùÔʺ½»ü½'‡ ¥ZñË'Í¿¢3,4¢óÿ Ë”ùG[ÖÓtÖÙ°ioô‡½Üù㿵ý“ßîi<ÑÒý °-m‡jŽ8CUcô=ö¼\0{fÁ_oÝðw»E8`ÄŽ (00ë[³þ`Óëï~yàà‘¾­À}­/ÊÝ>„B÷€Á–½!|›«& Bbq®žÁä¯ÞÚ<üþÚê–¶ÞWviíˆÌ>c‰T §-–If[FY8Ò—l÷&ñÎêŸ,¹æª¹YúIô¡Ã( EAÓ²9ÑÜ×÷ÑÆ¦Îi3æOº{å-yv¢]ÊF‘ÀÃCkîxâ™7£Ÿï<м ôH°CrÅäJŒÙÜ(ýð­Ÿîš3IÖ};Íí!¡¨ªY»¯9|ÅÂY¾îÃÇ:Û„ï»ÿo–OôOÀ1H Ö¡( B€¡*(²¬Ù¶ƒaZD¢:Ͼ°ƒÿ~í%¬X3˲NÒÞÙßùè“«ãÛ«û€_HЩ5,7p Ùèø ÙÛõ¯-)ôçv5½"R—U´Uqí¯A¡€"Ĉå…" €"„Ž–m‹é<þÜf~öáó¸0L›öŽ>û¹ùu|ó¶Æ®¡˜y\Þ ì’¯SÀ“i Ó›çtZŸ <õÞ[ÿvåâÅ—•F;ëÒã#€R@•p¡IR iyEŒJI–ã ë‘h‚æN?_8“Õÿ³‘÷~SÍÃ\J¦ßEf†‰‘ŒÕÿngsüƒ ­_5j^”R1Ò€Ÿµ#+•ÿ޲뮚õô“Ο>¥ Ûb c3f¼kD*ªµrº'„P¤7Ny Ó"7XûY?~´Ü\wß%dd¸ø½.’Ñ>|jE5L¿vçàçijÓ|(€_®T[ø`yiŽÿ‰GV̽å¶{‹\n¯íû‚DøPRòR„$À©x$–å ›×ÞþÜ;ŸÅ‹ÊQÇ«áVÑè.a’3¡ªÛ}òõâ‚+«ü“ ÞÄÙ\éûëÔV@º€-š¦ÜÌtz[ÞÖ̤ͤŠ{ÈÊŸO"ÚLôäpÀÁŽcdXŪ"pi*ß¹˲pª 3ÉP(Jvv6š¿²? ´v`Ž4drŒ„Ή@Ê+Ì®((ûôÝ{æ)‚‚xÜÀ4MN|õ†nQ>ûnòÊïFUz¼›¡ž-€ƒ#“špl[ ¨#Ä4™×Èß¾ž =F~ñ â‰ÌÁ­#/Ñÿ%¾üùÀÞV9™sÙ¦8g#`KsýþeóŸ|êñë¬DÉ¡&²Åpl›¸ë»ÑBåP¦1ÔŠcDÈž¸€PçЧ,¡vç{ß¹¯® h•ӰܸéçòC=͘EôÇfúš Jfùr ÏDz,Â'y%³¤·¥ž¬œ Ëç÷«Šiª•qFÀ-Ìf4UàötWEs”†Lc¸×MFîtâ¡ýä—-f_Íû)ð5Àf¹uHbYg‹õ JoÓѾo¬Ùß{²÷Ȥ²`sV »\ –ÌÃÔuB=õdåU’?áÑcôu4  K æå¹5%q.ŒˆŒó-]÷År´CYÉF\ÞL|Y“HÆ{É-žCÃ6.]Uל¶¤Œ‘зò@: è®ßßñù+oÔê­¿ Ç}Ì“›_¡å_ˆ‘Œ3Ø×€?gÁ¢J’ñ.ºÛöcÄ{)(žèÉÈ,u¹ã{¼Ñ£ïàÍ×d8t˜¼’9ì«ù¨±jUÝ v|Ð/å?—=Ð7y`ì´ÁŽnßytÇ+¯ïÎV{fž¿Õ•[0[Ë)¬Ä4 ûöÈ­ XTc†énÙ‹ÏdøàÓøŠæã ”>I°ä|êv~ÔX5bùðöiÀßæß7õĶü"CT¨ßQs¼ú•Õ»ò'IJ&OfWÁ’ùz”ÈÀ!ü¹‹gãñúv/ª;‹ØPYùSÙ[½¶±jU}ÐrË+ðßDÀI#`Jº ¬a ö“Mõ~Ú01ÓÕÊòüŠ»`Ñ<Œä‰ð— ä>ô à »¨r,øuãþ\f£g"¡¡ÁÁØŽO>khøàã}eÙþ˜SV0Ð<Åd\Œ¦98f/àLj«ÓXµª¾Kì¸?—ÙèØ¡•*7Z^ù/dɵhÊäÂåo¾üƒòŠ“þàùDä«f=¾F®qÿm§ÓvZP›i±‘”«c0<\ûË7·ÛSl¢åJÇñš¦Å÷ÖwÇ€M2UŽøÿËt:}.¤ÊJ~:s¥À¿ÊY΀ÌŽøßg¼~:"ž4"~Ù”¨Ò[±´9O\zÎf~ 1^ùÒŸTº%™TSbI‰%εMüSüZe,-mž7Öx‚ø_M C);ŒõIEND®B`‚rubrica-2.0/pixmaps/48x48/rank2.png0000644000175000017500000000406010554703326015604 0ustar seb128seb128‰PNG  IHDR((Œþ¸msBIT|dˆçIDATxœí˜kŒWÀçÌì½{÷½°ì–}t‹,…®¼Ù6µ´XªMÓ&¶66†¶>@ûÁg¢Ñ 5qã£F›¨ý€Ñ(EšÔЊ¦Õ@VSD-´ HB ¸ØRhwÙ÷Þ™sþ~83sï]v ¾búONæÎ9s~óŸwäKª€æÿ6D,ÕÀZà÷ÀÀ t¾,øO‚µÛ"™Âx ø §²˜šÂ½Wßîç)àÖ6ŸºjM]ÔOÓô =½–Sç„]B²áÏ9| Øõ¯¼ØL˜^¡øÂ]i>¹:EIZ!Ö‚±`¬Z ᥮ç: ›_0¶à™ßÖã,qE€?üº*ÅÃ÷óાç& ’ƒ3ã#!dCáä[Â#[ÆØuÀä?{ða`p²Å½KÀ­ôйÏu”±ra)_á{žçái…§Ak…V ’wV î@Q’†U‹=¦+ö6±6[€6àIâ[§¸ø5àß±¬ˆg.eZ¹ÆóS(¿ ¼rðJAgPº­­,*òÎx5…ÑP̪ӬZä±£Ó00(vL0ìªohõغ¾”’´B{ð+Á«?,UÊCaQ„NrpVÀZ厥i˜×¤Ù¹ß`&¯öG/°ø`ýtÍÎŽ2*Kž—¿ÂU ~xe Ó(í{¤’Ä Y ~ÇÇšJEu¹bÏá$F®6àòi"å¤à³ß¾?Mu™Bkå4åeÀ+eTÊY÷è Öþà#¶ñ+6½ èâÄGÆ„/þ<äËÆP* ¥à¶%‹f%³€‡.Gƒßn\2Ûã;Sä)|O¡üÒȬ<ò«³|óA:_=˨ɰzy]¤¹,ÈØQ¬…/mÒlÚ1È¡îå—ðÞ9ÖE{¤E#Ð8C±ýåDiï%/`ÆkPw|îÎtäðq.Rn(Íî¿õ&žßw”J'÷Äqü§Ã9kí?1qFk™©XÒ’`Ô+ó¯lš2)ÅÊ…^’&D± $`wç?’ ^=ÍàÐD¾‡XD``TèêÈpÏ\ú‰ÎWÌ-À¸ëb€·¼o¾Gq‘sè8 ‘,Ø10#4ÔV$*ÊÒ”eÁŒ¸ë’Å dÒET•§“û¯*K^6‰òˆqÙµ­ &œ 0¿Y')!®˜0C`XÞ:=™Ð¾°Ïô‚ˆ®`¬ 6䆅¹û–έH^VD\§) <ã¢:’fòbc<`=ÀŒJUP[MT[1žçã·ÏHüó3÷4CØ áy0„F’ykï¨A)—´À""Rp^]–0ø@mþI¾Ì¨©Ð„´ŒU„F"Ç7ørž•³ŽÑ½u5 hJwAàÌF58†\Þø:¯üâzÎöCcê Ù@’vù1YUWöDQ=0ˆëJŒB)!N‚{[m†iÐ/`ƒ8ç4Œ††Js€LÚ5 Æ‚µÊHáy`&"¹ð4°àL¯%4®¢*Á‰ÂŠài…Vâ.¹(wþ*N‹ñѸ£‰ÿËs›¤ªDóú z…S“öôô:3%š…x‚§5ùQç1püŒ¥ªJÒ*Ñdh„ÀF½bžo›´7oNx `ßQC`b£:ÍYÁµUÊ ¥ ë¤eÓóÛ;…ÁKCm1oè io-æ¶6ím~â—q#kLAö¼-ôæ:Âä5±ãt&PyUµâº&%Ô¼¶I?~6à¯ÇKxú[­,®=Î’é#;6Hvt€`´ú²^Þ¿Tª†Ž'úiŸ§É¤s~"ÈM»,ýà ÃWp; š€ö£§…;WøxÚ5Ÿb\ÿ°°þ—†Í_kÁé"46/È3%aHËŒ!êjùÙ¶€›˜\ðXç£/µìÜŸhð àóä囉*øL\ãXºîE¬¹ÅÇÓ¸èÒzºòÂnTä¥WÇ@Ñ©k0ï“ Â$ e…ol6ô¼ð|øÉÅL nS Üt¨Û²´ES]®óšOFû¢¼§_Š?Ö^ΔÑq¬ ´Id‡FØò¢åÀñî0°Žq»¼Évui  h®©P<öPŠšÊhS5›ù“& Šö ʤ#7N9‹‡„;Lþ#nÆ}‰(ÉZ~¼¬#õ—.˲9šât®uKVhöLò;—÷ "nïáñÆuIN¾ <1È¥öÅžTyF±þ#>­Wë‹h0Žt™@‹ „§v[vvXqðÀd—³q¿Ød”‚ß­¹o¥GmUÞÔ¨·Ë”¸6Ç{¿ý³åÞ‚’¶·ÿ ®`)ð \Yv­¦}ž¦m¶&Uäü/§A7N³¼òšƒ;y®,ˆÀ6\æú—%ÓYò¾ZùRW­dn£’öë´,z—’æZ%¥Å“~åÚÆ¿ùs\Îä —÷•bþT›Êç·ñâ«p»ÀY¸&³(þŽkݺíÀV`è ÖzGþåŸb”±ž‘Cq$IEND®B`‚rubrica-2.0/pixmaps/48x48/customer.png0000644000175000017500000000670010554703326016433 0ustar seb128seb128‰PNG  IHDR00Wù‡bKGDÿÿÿ ½§“ uIDATxÚíYil\×uþî}û›}8rF\D‰EÉ’åE^䨖»VbÙrT;)5Œ6ù•"A‹´hƒ-ÒÔI›FI»ˆÒÅMÝÄMêĮ´¶–¸ZÙ´¢Í$EqîœáìóöwotLhʱSÅ(Pà`Þ{ø¾s¾{æÜskvÍ®Ù5»fÿŸüоµrÍW=Ãÿ/X |Åù*п2Â`è®ÉÏ6Þ£”R¢© 4€x¾/ˆ .¼‡À‘Uþ®ÒDÁ÷}¶F4ùêwB š¢ÄTU¹¹c]s”RzÜó|¡{}ênAÿöÜÐØÒ…¡Ñ)ÏgOqÎÏ0Ø<¬á›k•ë÷¬µ2¸ràsŸMÇÓ¾ößo_*ˆæÔêªðÈCö2‚~™òV˨p–µl§YøÈ[#™M;úº°ï¾Û*–OÞúýÏ?ãg—Kçü%€Jˆ['A²Ð¥ëzô3Oî«í¾ý†…û?þÙÌZ2$«ÁÀÑç¿ÔEÍÌ%þêà ­—'æ”rÕ(°°sGïýÍñè§‚¡Ø®Îž-¤»»›ÌÏLÁ*. T.c*3‹ß}b/zû¶B‹¯ƒ[Îf_>øBåÀ³‡Žø%@ @€G¸ûñ‰ßxpù¦m}ލEÆ=:öÌÁo>õ×_·V¯«5 žz)©)rÂ1J-Ü5S’(u”Mkãs?8"¿ôò‰Z(hÝóÁ;wßsÿ‡õXS“86> î1rþìfffÐÛ™ÄÃ÷ÝŽX{/´PvµÎ8FžYÆËÇ~2ô™??˜µm·À»ô}övîݳM‰[ÖC“TÖG•`rÔ6ÊcÃçFüèïä¯$¡Ÿýžé:‹ÅSD §©¬· ’Ò#R¯0»GàH‰êDŒDgò–æy®˜Ë×uÈ¡ÿ8ŠP@ÂÞÝ7¡§o;äP ˜ï¡Vʳ*°l²Èj¾UÆâÜþðKO¦ë<|ßΦ[»·…¢Í±|s2=K)àDg#veér±°|ùÎ}ŸœY-!qõªŽFÂA=‰´ÕgV;å´]ÒâëEAjgfV#‚ KÁ˜¶1LŹé)2^©£ÇOãC÷ÞŽÛn»’c@­¸«VB­œƒkT113ƒõmi„ë «Q´vEðóù]£#˜ÈÌbjn›Â)4Ç[Up/àû4èzv€0+À („’‰¸´”Ë»xßF€8Õ¯ñä@B)J¼¬|’ÉJ ‚(pækµrQ ’HÒ©4ù—ŸÆ¿øcT+Hj…|Vi žm£\\‚iT˜¦Z­Û‡$« ”CÓ#H·u‚ 2/A" šh+FÍPQuß5t׬h¾kéŽe¶oø9äç|õžÁsŽYi¢ž%;JH(J%E]?P¨9B # Nˆ$Žž Èg玷¡Z˜GvzÓS”A×dærÈ.˜c;´)(¨`@¢,À¢¨ˆEBhM6c*3…pPŒjEµ¨ês_s*Ë:çL Qº÷Võð‰ŸÖ®”ÒÙ–Ð@™îùÐ$Áy¶™à„%¸+Ç©¢“p0F$E"„pŒû8<«Pß6 ‰˜†KãsËÌáÂpápˆ¦šìÄÀ[¤#ÝLšâaˆ‚E ¹.¤š¦ A¹hâòè8:;;•j9§z¶©ù¾§q@©èéJë–¯˜ mI¥X2$­)JuËuÔq4.ê,‰¾e"$P8`ž 0Ç2áE0*@ Š,áÜPét É &§2tf¡X*WŒð¦ m$Ò¡ª2Û…&I E<¤C i0*9¹\1îyZ Ò¬îëžkjáá ®)UôW ÏJ«€'¹CÎÊŠçû¢ïzÔc\p]Ÿ¸Œˆ²@=FÀMç’,Òÿ©b¾YÄí7oÅ¡ãQ¨:`r£‹.¨ A”$ôuwàÿ¶l?nÜÜÁÌ—*¨š,_€ã8>‡UUaUMX¦#ÇâI5ÚœV=Ë XVEçÓ·÷u)øU•šéŠ—¦²´hØ´P2‰( ¢®È²írfÕªÌ2kÜgT€¤qýæõèÝ|ºz¶! CÑ#&dQ@4@a’06öíÀ=wï„mVuYìŠá¡R³àq‚…\ eÆÇ8(€hsf9¯VŠYÍu- ×gæíñGîQËþJ3G4UêèJGFXIJÜx©f%=_hÑu5äùŸRU‘E—1ˆ’L¨$‚|»Œ‘± ºÖwà̹ èi ãÜнòR­­Ø{ßN¤ÖµCPƒƒh º8|r€ƒˆ5×u”b©  YäP$ Ós j2ó7^! Ûv«…rµâz^­ÿÇå·p}×Χ¦f–š/^ÊtoÙ˜pBRU˶'QA}‚ã3¢ˆ! ð³ãƒ‘Bª„3gqj`ܩ஛6àÖ{÷Ãs=¨šU ‚ÀGgKHø÷—OVÛÒ-:¨„h@ẠI”0žY@$ ÙlÁ¨vm>›ÏŽN/>uvö_^ýw8ÑÅ'ë18>iÖ`U«4µÂ2mˆ~>sQ™„iE¥¸ŒhºZË&\—êŽ ɡɹâ†ö–¨H (r¹~ç?Ç< à<€sõ®Õ©·ßx¹°V3W7V÷Â7¿øéøËÿõæ¾ßûí­;öB %æâ¶--8õÆyüððIœ:=€ö„*JÈfA‰Ï5!ÀG{Ïõxí•ï#ÔÒFdµ*lÇÅé“G°ÍÑtkÒ …²e;è?öFnptúK~`ªaï௱áªînÅYý¿þÀ®èÙ¡Ñh÷NÊ<Ì÷±8|†a¢oC+ö<ô6$e<õÌ÷è DÄàÙ3ˆ„5œ2 ÉÔ:ôÿàyDâ- TÀ›'bnaɦðÓÁIÞÕ–xl`ºÿÕ7Ç\×{@¶Þn› XVxÛ–r5àßí?‘½eû¦GÏ Ž5ÝÔ›B-7Æ8À:n~áæNâ)ä¦pidD”°aó9ö*|߆ey`b±–v9ú*F/"›ËƒpŽRÙÀüⲘ™Y\|á•Óó®ë}¥®õåºÞ†è¿m/Mßa?Êdä>÷Ò«÷s·ÿìÀ?áO| „Ä:·CÕ£¨•²Xž¾ êUQ,W1;3‹JqøÀxáG'¡ g/ãòÄ8Q¨˜˜™g>Më`ÚÞœ|À·ëQ_Ùè8«¤ÃѦþŒ¾q~ôП|êcb._¼yçŽ>¥E¥epæãôû±eëìÝÿ›˜¾|'.‚ø’©vœ:;†¾õ1\™@©b ‹`lrí7ãâð(Î޽^6¬c¾Ïf,®Š>{/S‰wÊÀþµÿÔÅ[º…ó#×ߺ£W°2ŠKÓèØ|#º¶ÝUcôÌŒe–ÐÓ݃ í-¸82Ûu°œ/B•DTM³ y\ÆÂüÒ¢éxßö}žõ[ªk¿Ø }\ hXØÞÀÅÑ ÙB¹xâõ‹7Ldæ•›·÷€6µÁ¬PÍÏàðkç0›·133ödÇNƒq žL£T3Í·†‡ó¹Bõï=Æ_¡„,ÕL{¾>_¾ûnfGïe°µò''×§1֧͛žýÞ3ŸÛèº,׃m»Htô!Ԕ¾}A2Á†õë08:±Ì|ÏñeQ|¡j:—ª†5W½â+•ÇûEòy¯Àªëp—‹ÕÅûÑÉæ·.7oëN‹ ­[ô:„xXCÕö‘Íæ±+ÿ3¡ôµt2>P1ìÑb¹6Y×üR|¥>ÿñÞíäî—-®ÌnD€€.û·mêxü_ütÌu=|ákÏ!—/`a¹ê•jæ¸aXGã3‚(,{žŸmˆx±.™•‘¥Šs5g£+-Ç ‰P]RM%c¶Æƒ#!]:}~üë¾Ï–}ÆÆyMÅŠãzKruðåz¹\kJ÷¾ wi]† ½žXK"šV%¡y>W8dŸsÇ÷Y¹^—êàW´þž¢~µ§Ó´î@°ž‘Ps<œô<_,”kF]ß…ú"­5há1©¾Zç¤!+D´ºKuf¸ñËhýý:àhÜS¬ŒÖ…:H¯¡%f¸JçW“ÀZ!«NkØÕˆúûAàJßç¸f×ìš]Uûoz¦mŽuu IEND®B`‚rubrica-2.0/pixmaps/16x16/0000755000175000017500000000000010637712737014057 5ustar seb128seb128rubrica-2.0/pixmaps/16x16/Makefile.am0000644000175000017500000000071710554703326016110 0ustar seb128seb128icondir = $(datadir)/icons/hicolor/16x16/apps icon_DATA = \ ccare.png \ green.png \ operator.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi EXTRA_DIST = \ $(icon_DATA) rubrica-2.0/pixmaps/16x16/ccare.png0000644000175000017500000000273310554703326015637 0ustar seb128seb128‰PNG  IHDRàw=øbKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÓ n™óqtEXtCommentCreated with The GIMPïd%n?IDATxÚ­–kˆœWÇç¼ï̼3;³³¹Lv³isqÓ¤±¶^HmÕÅ´Il“Ô[Zé'KAm‹P-"((~Šô‚-T¡ª"‚EDcÚ¤)¹¨ÉÖ$›½d“Ý™½¼3ïå\ý©,kB}àáÜžóÿŸç<ç<çÀ)úoÔ«£ÃÕ‹#CkâÍúäî;>ÅÿC†jÑ×^yùÙÅÉóoêKS§í¥‰Sîüè_õß¿/Þ~cãéÿ ü–Mƒ_~â«_š¾4~Âf¯Ò9ŸÅã¾Ûõ³SÇüú5õÉ=Ûw¯œ'¯¶uëÈ}À€1  \šû~–æë*•’ÈâÒÅYÒxždašR(xñÅ4–(ì_‰®ì¸é¦­{šÍæ~àáû÷ÞSÄ_ÿêD;wðõ? Ú‰}w®§{3<•¢gã…ʹ.A–åt»Égïß{O-70>>NrKž=wZAñõ}Uðï!Ïsò\Ó_vAš¦ï¿.Öê®Z¨*bé"'Nœ!7žÊÁ@EÐŒ»xÕEx°k-.O}+3öºA:›ì.”¿ñ±>zƃÀSŽßXâgÇ2ŒÎ‘B¥ çg ·Éþ*1ý‚Uå ®IQ-)Ö:¬ë`óê,7”B’T19›q³•™s6¼î)*HJn«z­ ZòL£µÁÇÝ#B¦[i¦‰;9ÿ¼˜òÚ™ÆëBµ¯lz0âš” ¢µ”›|©++‡Æ??…‚/îìã–¡Q^šÈ¹µ¡3Ç_æ ï4*>v,ÞÚÍngF;ûP>Ÿ±Ò£=Û #ÀÁ};¢Í/½•ðÍ{ûÉçå#]6HŽgšn 4%SÂö[!©NïX?8Ì‘Ÿiu–ºæóé«Áòx„ÅâžËºö¬ïÛ°ISœ3]P¾ h&àÊ ÆÂµènJ߯ ŸÞÿdH$°.€ª +;lùÐHÔ<9wg§?—ÅâÁ-ïÙöÜW²ž…«äô¹¿qôÏÓY˜E†ÑÀ ›>ñ¸Ô$ÍNþæ5ÞŒÞ ßž® pÊc´ÆYG“Y)ër=©†ë†6<¶zíº>õíï•OMÆÈÀ0>³È£O|‹]wÝN® oœ:ÇÄt“[f”+uNþú·¼ï‘í´Zx< ¼õ$*A UJ@)Š~ùäSO7¦:I¦pÎa­£EØûIªýuZ©#V` q²ˆu–BXæãoÝ\Ä*‹Óg<[¤u´™šØ<#„kŠå:³­E”ÊÉs…5–©ËM:Ý”‰™6q'Akûï ^-Fý n¹•tB“%™µÚ[Ÿ CŒ:ýÌß;&6ÏIˆbT©ul@’¤H)‘RÕV±8;ÉLkù….oÿcŒÏÝ{;Ãkë¸m箆÷Î „² Îzzîã¼õÞ‹®}yÊ>ôê(ð@Ïý®Ýr©ûÓ€é©eªWèò±1`WC\íu@D@PéÕ ½<ôldoe¶·ˆ¼· íÕíµXôT.+eoÜ/Ûßw‰L¯í¯õYøŲµX 0XIEND®B`‚rubrica-2.0/pixmaps/16x16/Makefile.in0000644000175000017500000003235710637712670016132 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmaps/16x16 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(icondir)" iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ icondir = $(datadir)/icons/hicolor/16x16/apps icon_DATA = \ ccare.png \ green.png \ operator.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor EXTRA_DIST = \ $(icon_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmaps/16x16/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/16x16/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-iconDATA .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-iconDATA install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-iconDATA install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/pixmaps/16x16/operator.png0000644000175000017500000000070010554703326016405 0ustar seb128seb128‰PNG  IHDRóÿabKGDÿÿÿ ½§“uIDATxÚ’1KBa†ï-¥@Á¦´i‚ö\¡MÉMñ¸ëP“‹8¶ nE.-5äàâ"AÑ q4ÜD‹%i }- ’WKßéÀá<ç|ï÷Â$I:4›ÍB–å«ÈjUÄóó‹PE,3'M £qý¦V«¢iÚ%+Jt»]¬tˆD"¼¾¾X"1Eþ,/TU\±² ì[@är9 …ív§ÓI¥R0è ¾l6[F I/Ëò¼ÍljDâ¨Z­~ÚíöT*%Ö–xêI2™ Çãñ®ßïÿÆÀR€p(2§Óéþp8¼jÀà¿€Ó`0hÑ4M.•J·ÀÝLþð`ßáp3™Ìp1“ƒb±ˆÇã¡Óé`±X ¿ý~ÿ£Ùl~7ºY°ÙlÂd2 ¯×«—«h4Z®ç%ÑÐëõp»ÝÔëu½ÿPUõÉår½¾éÆ´‰ L¸¶þäùâ8F§•*¬¶cwÏC’ÞA•WW¼ë·¯¯³§au¡z§\+ÓôÏܳ±ûi{Uª‰°Â $¤$ðÕÍ;7_‹UL'¨‘B¥ é³ñxÃþR¡$rK9Ñh4|`J‹õëŹ"½A£ VÙñÛ­;ëƒøyLm¹F{·m “¥Zéö•÷¯¼)}É\nQŒüÒ“m0Öp¼Lõ•*jJÙΣÎ!ððL.­.}áÜÃ͇kÐVc¬!Éã ¬³älŽÅ·iµ\ÿþ&p¼'ÓµÎa‡KÓ—l½^•J…ééi …J)|ßg8ÒívÙÜÛdçóÇÖØÀH8ò¯ç‰l$Jo•XYXAskÏFØxÐ`÷—]=ì ·ÇÀÀïvº­öOíbâ’°¹ÓÔ÷¾´:-™ÐÇÇ^i¾äíÿ¶ÏQzDó‡æŸÑÓèK }*àp¸ Tg.̬ϖg¯Ê@Ηkeyù½ËS•ùŠÛ~°­·¾ÙúV§úðë$Xœ“œp ¸¼¼|8YßM 9ßÿƒü ÀÌdDã_1ÆßêIU {ØÄIEND®B`‚rubrica-2.0/pixmaps/22x22/0000755000175000017500000000000010637712737014051 5ustar seb128seb128rubrica-2.0/pixmaps/22x22/Makefile.am0000644000175000017500000000064410554703326016101 0ustar seb128seb128icondir = $(datadir)/icons/hicolor/22x22/apps icon_DATA = gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi EXTRA_DIST = \ $(icon_DATA) rubrica-2.0/pixmaps/22x22/Makefile.in0000644000175000017500000003230310637712670016113 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmaps/22x22 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(icondir)" iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ icondir = $(datadir)/icons/hicolor/22x22/apps icon_DATA = gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor EXTRA_DIST = \ $(icon_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmaps/22x22/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/22x22/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-iconDATA .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-iconDATA install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-iconDATA install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/pixmaps/24x24/0000755000175000017500000000000010637712737014055 5ustar seb128seb128rubrica-2.0/pixmaps/24x24/Makefile.am0000644000175000017500000000070510554703326016103 0ustar seb128seb128icondir = $(datadir)/icons/hicolor/24x24/apps icon_DATA = \ stuffs.png \ university.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi EXTRA_DIST = \ $(icon_DATA) rubrica-2.0/pixmaps/24x24/stuffs.png0000644000175000017500000000302010554703326016060 0ustar seb128seb128‰PNG  IHDRàw=øbKGDÿÿÿ ½§“ pHYs  šœtIMEÔ iK,tEXtCommentCreated with The GIMPïd%ntIDATxÚ¥–{lׯwfvfÖ»kØ5b› ŽÄÁJmŒ›ø‘H m­RˆYQRaUJ›(HHEªÔªTé?ÂDmI[Q©ª”*I›Æ˜bWdqމ!Z[&Þ€»^cƯïkæö#³6¶Z©W:ÒÕ̽÷;çÜï;÷Àÿ?Äñãǵ†††g6mÚôâÑ£G ý\iWsss#ÐpúôéYim]]Ýûúú^ïêêšíîî>_^^þD[[ÛøÂ)å" p8üè±cÇÜH$"#‘ˆloo—l•R*K½ß¶m[YKKËÌáÇå‰'¤eYîþ4@!óÀ´ññD}:ªª¢i‡ªBT›^óg¾ÂÕ=†ùh0,Éf³¿Ù¿¿ZRRB&“ÁëõЦ¦¦=EEE»´|w¤”B‘SU%®iGŽÁ²,b±þ@ðÕ'ŸÞ±§ò¾{«\³Œtº0ýæÿÀK/½ Ži¡PˆíÛ·sêÔ)Ùßß/âñx ðÖmw ;½k^ó|µ—f®ó5$&¦i¬¯p÷>UCÒ-VÖ”–^¿†ŽG8ûQ/µU444ÈöööþÎÎÎ_tuuuìÛ·ŽŽwQBˆÇ^YUý÷-új*ÐI¬.ãÏ)'äÇðŠa}¬½ÃÃdê¡B—hžm¹›ÖÖÖžáááæ‘‘·´´t@jÞùJuUøSOé*neÄ:¡Sdúè‰r93ÃX¦ˆ)[e£ßfàÚUú‡¦y÷|€Ù™9®|ð{ùÎ?ºÿ455õþÒŒähÏ?óÈË?zywÁ ×¡÷â0W}i>.ýšœáá˜ÁgÉ:.[Ã&†'Däâ4›ƒ×ÙºA£c7"ñ„uf)@~ŠÛN…EðøîoqºÈË›Ÿþ‹ÂB¹ “ä²I UåâJE‰ÁL:úl’‡ïòÐÑu•ƺ-ƒç¾¾M# ¼¾·", Ýã.íÁÍìÝÙÌÌÜé/æb…¦-!*×ÂÐåQî_Ÿå¹z“¤ãZ|ÜÕ=jÇr"\ˆ uÏwÄð×1×¶³ª¦)hšÂC5›¹'\ÆÄÄ,c ]W) èø 4TE’ë6^¯çÚ¯^g:îªÂYð“×ÞÈx·¾ÛT¿†®áókŠB&A™%Ÿ&é 2weï¹Ëˆ¢B"iÛ=+•‘¥4”m ë*v2C&#a$ò»n „ׂ5‹kÍ"t ¥r=gÏ]Ž-9ÇY i§P5ij(Š À§‘L äPH ŒŒßª’ŽdÜUI¥³r¥€·ßø¹¸‰œ MGQæî:. 5w#‹W-V¼Gƒ&ç5Vþêêj½¶¶V¹ àÉüT(B(†¡:y±Î{ð¿ßû&1o{„Šõ8®‹GÓÂÀCÑhtc__Ÿº,M„"„aÞÊšª*·ž ÔWÁ‹Àö Ø´€¹T¯W/¶J)+wìØá;yò¤¶ìärNdÐEAQŽ“—âòb¯£ñî»]½ãŠ"ÎϳSN $wíÚ•[@SÕÄW±±\å]%H)B`:¶ZR`¾ˆŽ¤ýÛ÷>³z¤”sÀ 0`YVvEš¶>ÝüÞ™ÞK¿Ü^'5M¯†ªšÿ^p%–˜ë>s!úÏ÷Ï}”´Óq`ˆŸ“·—ÿ¼qéãâƒO¾¼ÿìgƒm~¿ùTÓ··øï(*–5¥Æ-ûo}vOï—=³vês)™b@Ô4ÍÑT*•Z¶#Xîã+miyûL@JÙâºîÁé;—Éæ.7€ `ôæ< ¬¨ñ_ZðÜ4€ÜMs÷éiþÇ%d>¹:IEND®B`‚rubrica-2.0/pixmaps/24x24/Makefile.in0000644000175000017500000003234310637712670016123 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pixmaps/24x24 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(icondir)" iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ icondir = $(datadir)/icons/hicolor/24x24/apps icon_DATA = \ stuffs.png \ university.png gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor EXTRA_DIST = \ $(icon_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pixmaps/24x24/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/24x24/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-iconDATA .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-iconDATA install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-iconDATA install-data-hook: @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. After install, run this:"; \ echo "*** $(gtk_update_icon_cache)"; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/pixmaps/24x24/university.png0000644000175000017500000000177310554703326017004 0ustar seb128seb128‰PNG  IHDRàw=øbKGDÿÿÿ ½§“°IDATxÚÍ–ËKkWÆ'1*FÆ\ŸW´ÆG W+Z$´ƒŠà 3g"V‚@é #éPDÄY°PEPÔ„Qgbí j´Ñh’“¬î1=Ñ«—{;é†ÅÙûÛë|ß~®µáVäs0l¨IEND®B`‚rubrica-2.0/configure0000755000175000017500000322075110637712673013531 0ustar seb128seb128#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for rubrica2 2.0. # # Report bugs to . # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='rubrica2' PACKAGE_TARNAME='rubrica2' PACKAGE_VERSION='2.0' PACKAGE_STRING='rubrica2 2.0' PACKAGE_BUGREPORT='nicolafragale@gmail.com' ac_unique_file="config.h.in" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT ALL_LINGUAS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE DATADIRNAME build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED GREP EGREP LN_S ECHO AR RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GETTEXT_PACKAGE RUBRICA_FILE_FORMAT LIBRAL_CURRENT_VERSION LIBRAL_REVISION_VERSION LIBRAL_COMPAT_VERSION LIBRAL_RELEASE LIBRAL_VERSION LIBRAL_CODE_NAME LIBRAL_INFO_CODE_NAME RUBRICA_NAME RUBRICA_VERSION RUBRICA_CAP_NAME RUBRICA_CODE_NAME RUBRICA_INFO_CODE_NAME FILE_FORMAT LIBRUBRICA_CURRENT_VERSION LIBRUBRICA_REVISION_VERSION LIBRUBRICA_COMPAT_VERSION LIBVCARD_CURRENT_VERSION LIBVCARD_REVISION_VERSION LIBVCARD_COMPAT_VERSION LIBCSV_CURRENT_VERSION LIBCSV_REVISION_VERSION LIBCSV_COMPAT_VERSION DESKTOP_ICON_PATH PKG_CONFIG LIBRAL_CFLAGS LIBRAL_LIBS RUBRICA_CFLAGS RUBRICA_LIBS USE_NLS MSGFMT MSGFMT_OPTS GMSGFMT XGETTEXT CATALOGS CATOBJEXT GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS GCONFTOOL GCONF_SCHEMA_CONFIG_SOURCE GCONF_SCHEMA_FILE_DIR GCONF_SCHEMAS_INSTALL_TRUE GCONF_SCHEMAS_INSTALL_FALSE HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE libral_plugins_dir libral_plugins_gui_dir libral_plugins_pixmaps_dir rubrica_data_dir rubrica_gui_dir rubrica_pixmaps_dir rubrica_icons_dir desktop_icon_path LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP F77 FFLAGS PKG_CONFIG LIBRAL_CFLAGS LIBRAL_LIBS RUBRICA_CFLAGS RUBRICA_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures rubrica2 2.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/rubrica2] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of rubrica2 2.0:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-schemas-install Disable the schemas installation --enable-gtk-doc use gtk-doc to build documentation default=no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --with-gconf-source=sourceaddress Config database for installing schema files. --with-gconf-schema-file-dir=dir Directory for installing schema files. --with-html-dir=PATH path to installed docs Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility LIBRAL_CFLAGS C compiler flags for LIBRAL, overriding pkg-config LIBRAL_LIBS linker flags for LIBRAL, overriding pkg-config RUBRICA_CFLAGS C compiler flags for RUBRICA, overriding pkg-config RUBRICA_LIBS linker flags for RUBRICA, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF rubrica2 configure 2.0 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by rubrica2 $as_me 2.0, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" LIBRAL_CURRENT_VERSION=1 LIBRAL_REVISION_VERSION=0 LIBRAL_COMPAT_VERSION=0 LIBRAL_CODE_NAME=Autonoe LIBRAL_INFO_CODE_NAME='che dona intelligenza ed ispirazione' LIBRAL_VERSION=$PACKAGE_VERSION LIBRUBRICA_CURRENT_VERSION=1 LIBRUBRICA_REVISION_VERSION=1 LIBRUBRICA_COMPAT_VERSION=0 LIBVCARD_CURRENT_VERSION=1 LIBVCARD_REVISION_VERSION=1 LIBVCARD_COMPAT_VERSION=0 LIBCSV_CURRENT_VERSION=1 LIBCSV_REVISION_VERSION=1 LIBCSV_COMPAT_VERSION=0 RUBRICA_NAME=$PACKAGE_NAME RUBRICA_VERSION=$PACKAGE_VERSION RUBRICA_CAP_NAME=Rubrica2 RUBRICA_CODE_NAME=Autonoe RUBRICA_INFO_CODE_NAME='che dona intelligenza ed ispirazione' FILE_FORMAT=4 am__api_version='1.10' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=$RUBRICA_NAME VERSION=$RUBRICA_VERSION cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='rubrica2' VERSION='2.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Checks for programs. DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi case "$am__api_version" in 1.01234) { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;} { (exit 1); exit 1; }; } ;; *) ;; esac if test -n ""; then { echo "$as_me:$LINENO: checking for intltool >= " >&5 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; } INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5 echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;} { (exit 1); exit 1; }; } fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Use the tools built into the package, not the ones that are installed. INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' INTLTOOL_MERGE='$(top_builddir)/intltool-merge' INTLTOOL_UPDATE='$(top_builddir)/intltool-update' # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 echo "${ECHO_T}$INTLTOOL_PERL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$INTLTOOL_PERL"; then { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 echo "$as_me: error: perl not found; required for intltool" >&2;} { (exit 1); exit 1; }; } fi if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 echo "$as_me: error: perl 5.x required for intltool" >&2;} { (exit 1); exit 1; }; } fi if test "x" != "xno-xml"; then { echo "$as_me:$LINENO: checking for XML::Parser" >&5 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } else { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;} { (exit 1); exit 1; }; } fi fi # Extract the first word of "iconv", so it can be a program name with args. set dummy iconv; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_ICONV in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv" ;; esac fi INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV if test -n "$INTLTOOL_ICONV"; then { echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5 echo "${ECHO_T}$INTLTOOL_ICONV" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt" ;; esac fi INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT if test -n "$INTLTOOL_MSGFMT"; then { echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge" ;; esac fi INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE if test -n "$INTLTOOL_MSGMERGE"; then { echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext" ;; esac fi INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT if test -n "$INTLTOOL_XGETTEXT"; then { echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Substitute ALL_LINGUAS so we can use it in po/Makefile # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bind_textdomain_codeset (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then DATADIRNAME=share else DATADIRNAME=lib fi ;; *) DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_config_commands="$ac_config_commands intltool" # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | kfreebsd*-gnu | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 5180 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## -------------------------------------- ## ## Report this to nicolafragale@gmail.com ## ## -------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8019: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8023: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8287: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8291: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8391: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8395: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix3*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 9856 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_CXX=yes else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_CXX='+b $libdir' ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix3*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix3*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; solaris*) case $cc_basename in CC*) # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. postdeps_CXX='-lCstd -lCrun' ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13156: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13160: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13260: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13264: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 13796 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_CXX" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code=" subroutine t\n return\n end\n" # Code to be used in simple link tests lt_simple_link_test_code=" program t\n end\n" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14851: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:14855: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14955: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14959: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix3*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_F77=yes else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 16400 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_F77" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}\n" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17174: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17178: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux*) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17442: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17446: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17546: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:17550: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix3*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_GCJ=yes else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | kfreebsd*-gnu | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; kfreebsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix3*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # find out which ABI we are using libsuff= case "$host_cpu" in x86_64*|s390x*|powerpc64*) echo '#line 19011 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *64-bit*) libsuff=64 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" ;; esac fi rm -rf conftest* ;; esac # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; knetbsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_GCJ" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_RC" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_strerror=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } if test "${ac_cv_header_stdbool_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; # if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. However, doing the test right would require a runtime test, and that would make cross-compilation harder. Let us hope that IBM fixes the xlc bug, and also adds support for this kind of constant expression. In the meantime, this test will reject xlc, which is OK, since our stdbool.h substitute should suffice. We also test this with GCC, where it should work, to detect more quickly whether someone messes up the test in the future. */ char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); # endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdbool_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } { echo "$as_me:$LINENO: checking for _Bool" >&5 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } if test "${ac_cv_type__Bool+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef _Bool ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type__Bool=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type__Bool=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 echo "${ECHO_T}$ac_cv_type__Bool" >&6; } if test $ac_cv_type__Bool = yes; then cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STDBOOL_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_struct_tm=time.h else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\_ACEOF #define TM_IN_SYS_TIME 1 _ACEOF fi for ac_func in localtime_r do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in libintl.h stdlib.h string.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## -------------------------------------- ## ## Report this to nicolafragale@gmail.com ## ## -------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done DESKTOP_ICON_PATH='$(datadir)' GETTEXT_PACKAGE=$RUBRICA_NAME cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define RUBRICA_NAME "$RUBRICA_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define RUBRICA_CAP_NAME "$RUBRICA_CAP_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define RUBRICA_VERSION "$RUBRICA_VERSION" _ACEOF if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for LIBRAL" >&5 echo $ECHO_N "checking for LIBRAL... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$LIBRAL_CFLAGS"; then pkg_cv_LIBRAL_CFLAGS="$LIBRAL_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_LIBRAL_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$LIBRAL_LIBS"; then pkg_cv_LIBRAL_LIBS="$LIBRAL_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_LIBRAL_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBRAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0"` else LIBRAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0"` fi # Put the nasty error message in config.log where it belongs echo "$LIBRAL_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0) were not met: $LIBRAL_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBRAL_CFLAGS and LIBRAL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0) were not met: $LIBRAL_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBRAL_CFLAGS and LIBRAL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBRAL_CFLAGS and LIBRAL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBRAL_CFLAGS and LIBRAL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else LIBRAL_CFLAGS=$pkg_cv_LIBRAL_CFLAGS LIBRAL_LIBS=$pkg_cv_LIBRAL_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi pkg_failed=no { echo "$as_me:$LINENO: checking for RUBRICA" >&5 echo $ECHO_N "checking for RUBRICA... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$RUBRICA_CFLAGS"; then pkg_cv_RUBRICA_CFLAGS="$RUBRICA_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_RUBRICA_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$RUBRICA_LIBS"; then pkg_cv_RUBRICA_LIBS="$RUBRICA_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_RUBRICA_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then RUBRICA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0"` else RUBRICA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0"` fi # Put the nasty error message in config.log where it belongs echo "$RUBRICA_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0) were not met: $RUBRICA_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables RUBRICA_CFLAGS and RUBRICA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0) were not met: $RUBRICA_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables RUBRICA_CFLAGS and RUBRICA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables RUBRICA_CFLAGS and RUBRICA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables RUBRICA_CFLAGS and RUBRICA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else RUBRICA_CFLAGS=$pkg_cv_RUBRICA_CFLAGS RUBRICA_LIBS=$pkg_cv_RUBRICA_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi ALL_LINGUAS="it uk" for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## -------------------------------------- ## ## Report this to nicolafragale@gmail.com ## ## -------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= if test "${ac_cv_header_libintl_h+set}" = set; then { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking libintl.h usability" >&5 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## -------------------------------------- ## ## Report this to nicolafragale@gmail.com ## ## -------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } fi if test $ac_cv_header_libintl_h = yes; then gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_ngettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_ngettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_dgettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_dgettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_bindtextdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } if test $ac_cv_lib_intl_bindtextdomain = yes; then { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } if test $ac_cv_lib_intl_dgettext = yes; then gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dcgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dcgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } if test $ac_cv_lib_intl_dcgettext = yes; then gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done MSGFMT_OPTS= { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; } cat >conftest.foo <<_ACEOF msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" _ACEOF if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5 (msgfmt -c -o /dev/null conftest.foo) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } echo "$as_me: failed input was:" >&5 sed 's/^/| /' conftest.foo >&5 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then CATOBJEXT=.gmo DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bind_textdomain_codeset (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { echo "$as_me:$LINENO: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES # Extract the first word of "gconftool-2", so it can be a program name with args. set dummy gconftool-2; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GCONFTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GCONFTOOL in [\\/]* | ?:[\\/]*) ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no" ;; esac fi GCONFTOOL=$ac_cv_path_GCONFTOOL if test -n "$GCONFTOOL"; then { echo "$as_me:$LINENO: result: $GCONFTOOL" >&5 echo "${ECHO_T}$GCONFTOOL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` else GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE fi # Check whether --with-gconf-source was given. if test "${with_gconf_source+set}" = set; then withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval" fi { echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5 echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; } if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' fi # Check whether --with-gconf-schema-file-dir was given. if test "${with_gconf_schema_file_dir+set}" = set; then withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval" fi { echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5 echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; } # Check whether --enable-schemas-install was given. if test "${enable_schemas_install+set}" = set; then enableval=$enable_schemas_install; case ${enableval} in yes|no) ;; *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-schemas-install" >&5 echo "$as_me: error: bad value ${enableval} for --enable-schemas-install" >&2;} { (exit 1); exit 1; }; } ;; esac fi if test "$enable_schemas_install" != no; then GCONF_SCHEMAS_INSTALL_TRUE= GCONF_SCHEMAS_INSTALL_FALSE='#' else GCONF_SCHEMAS_INSTALL_TRUE='#' GCONF_SCHEMAS_INSTALL_FALSE= fi # Check whether --with-html-dir was given. if test "${with_html_dir+set}" = set; then withval=$with_html_dir; else with_html_dir='${datadir}/gtk-doc/html' fi HTML_DIR="$with_html_dir" # Check whether --enable-gtk-doc was given. if test "${enable_gtk_doc+set}" = set; then enableval=$enable_gtk_doc; else enable_gtk_doc=no fi have_gtk_doc=no if test x$enable_gtk_doc = xyes; then if test -z "$PKG_CONFIG"; then # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then have_gtk_doc=yes fi gtk_doc_min_version=1.3 if test "$have_gtk_doc" = yes; then { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5 echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } have_gtk_doc=no fi fi if test "$have_gtk_doc" != yes; then enable_gtk_doc=no fi fi if test x$enable_gtk_doc = xyes; then ENABLE_GTK_DOC_TRUE= ENABLE_GTK_DOC_FALSE='#' else ENABLE_GTK_DOC_TRUE='#' ENABLE_GTK_DOC_FALSE= fi if test -n "$LIBTOOL"; then GTK_DOC_USE_LIBTOOL_TRUE= GTK_DOC_USE_LIBTOOL_FALSE='#' else GTK_DOC_USE_LIBTOOL_TRUE='#' GTK_DOC_USE_LIBTOOL_FALSE= fi libral_plugins_dir='$(libdir)/libral/plugins' libral_plugins_gui_dir='$(datadir)/libral/plugins/gui' libral_plugins_pixmaps_dir='$(datadir)/libral/plugins/pixmaps' #rubrica_plugins_dir=${libdir}'/rubrica2/plugins' #rubrica_plugins_gui_dir=${libdir}'/rubrica2/plugins/ui' #rubrica_plugins_pixmaps_dir=${libdir}'/rubrica2/plugins/pixmaps' rubrica_data_dir=${datadir}'/rubrica2' rubrica_gui_dir=${datadir}'/rubrica2/interface' rubrica_pixmaps_dir=${datadir}'/pixmaps' rubrica_icons_dir=${datadir}'/icons/hicolor' # rubrica__dir='$()/rubrica' # rubrica__dir='$()/rubrica' # AC_SUBST(rubrica_plugins_dir) # AC_SUBST(rubrica_plugin_gui_dir) # AC_SUBST(rubrica_plugin_pixmaps_dir) desktop_icon_path=@DESKTOP_ICON_PATH@/pixmaps ac_config_files="$ac_config_files Makefile rubrica2.spec rubrica2.desktop rubrica2.schemas rubrica2.keys pixmaps/Makefile pixmaps/16x16/Makefile pixmaps/22x22/Makefile pixmaps/24x24/Makefile pixmaps/48x48/Makefile pixmaps/scalable/Makefile interface/Makefile doc/Makefile po/Makefile.in src/Makefile libral/Makefile libral/plugins/Makefile libral/plugins/csv/Makefile libral/plugins/rubrica/Makefile libral/plugins/vcard/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by rubrica2 $as_me 2.0, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ rubrica2 config.status 2.0 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}' prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}' INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}' INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "rubrica2.spec") CONFIG_FILES="$CONFIG_FILES rubrica2.spec" ;; "rubrica2.desktop") CONFIG_FILES="$CONFIG_FILES rubrica2.desktop" ;; "rubrica2.schemas") CONFIG_FILES="$CONFIG_FILES rubrica2.schemas" ;; "rubrica2.keys") CONFIG_FILES="$CONFIG_FILES rubrica2.keys" ;; "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; "pixmaps/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16x16/Makefile" ;; "pixmaps/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22x22/Makefile" ;; "pixmaps/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/24x24/Makefile" ;; "pixmaps/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48x48/Makefile" ;; "pixmaps/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/scalable/Makefile" ;; "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "libral/Makefile") CONFIG_FILES="$CONFIG_FILES libral/Makefile" ;; "libral/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES libral/plugins/Makefile" ;; "libral/plugins/csv/Makefile") CONFIG_FILES="$CONFIG_FILES libral/plugins/csv/Makefile" ;; "libral/plugins/rubrica/Makefile") CONFIG_FILES="$CONFIG_FILES libral/plugins/rubrica/Makefile" ;; "libral/plugins/vcard/Makefile") CONFIG_FILES="$CONFIG_FILES libral/plugins/vcard/Makefile" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim ALL_LINGUAS!$ALL_LINGUAS$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim DATADIRNAME!$DATADIRNAME$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim SED!$SED$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim CPP!$CPP$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim RUBRICA_FILE_FORMAT!$RUBRICA_FILE_FORMAT$ac_delim LIBRAL_CURRENT_VERSION!$LIBRAL_CURRENT_VERSION$ac_delim LIBRAL_REVISION_VERSION!$LIBRAL_REVISION_VERSION$ac_delim LIBRAL_COMPAT_VERSION!$LIBRAL_COMPAT_VERSION$ac_delim LIBRAL_RELEASE!$LIBRAL_RELEASE$ac_delim LIBRAL_VERSION!$LIBRAL_VERSION$ac_delim LIBRAL_CODE_NAME!$LIBRAL_CODE_NAME$ac_delim LIBRAL_INFO_CODE_NAME!$LIBRAL_INFO_CODE_NAME$ac_delim RUBRICA_NAME!$RUBRICA_NAME$ac_delim RUBRICA_VERSION!$RUBRICA_VERSION$ac_delim RUBRICA_CAP_NAME!$RUBRICA_CAP_NAME$ac_delim RUBRICA_CODE_NAME!$RUBRICA_CODE_NAME$ac_delim RUBRICA_INFO_CODE_NAME!$RUBRICA_INFO_CODE_NAME$ac_delim FILE_FORMAT!$FILE_FORMAT$ac_delim LIBRUBRICA_CURRENT_VERSION!$LIBRUBRICA_CURRENT_VERSION$ac_delim LIBRUBRICA_REVISION_VERSION!$LIBRUBRICA_REVISION_VERSION$ac_delim LIBRUBRICA_COMPAT_VERSION!$LIBRUBRICA_COMPAT_VERSION$ac_delim LIBVCARD_CURRENT_VERSION!$LIBVCARD_CURRENT_VERSION$ac_delim LIBVCARD_REVISION_VERSION!$LIBVCARD_REVISION_VERSION$ac_delim LIBVCARD_COMPAT_VERSION!$LIBVCARD_COMPAT_VERSION$ac_delim LIBCSV_CURRENT_VERSION!$LIBCSV_CURRENT_VERSION$ac_delim LIBCSV_REVISION_VERSION!$LIBCSV_REVISION_VERSION$ac_delim LIBCSV_COMPAT_VERSION!$LIBCSV_COMPAT_VERSION$ac_delim DESKTOP_ICON_PATH!$DESKTOP_ICON_PATH$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim LIBRAL_CFLAGS!$LIBRAL_CFLAGS$ac_delim LIBRAL_LIBS!$LIBRAL_LIBS$ac_delim RUBRICA_CFLAGS!$RUBRICA_CFLAGS$ac_delim RUBRICA_LIBS!$RUBRICA_LIBS$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim CATALOGS!$CATALOGS$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim GMOFILES!$GMOFILES$ac_delim INSTOBJEXT!$INSTOBJEXT$ac_delim INTLLIBS!$INTLLIBS$ac_delim PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim POFILES!$POFILES$ac_delim POSUB!$POSUB$ac_delim MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim GCONFTOOL!$GCONFTOOL$ac_delim GCONF_SCHEMA_CONFIG_SOURCE!$GCONF_SCHEMA_CONFIG_SOURCE$ac_delim GCONF_SCHEMA_FILE_DIR!$GCONF_SCHEMA_FILE_DIR$ac_delim GCONF_SCHEMAS_INSTALL_TRUE!$GCONF_SCHEMAS_INSTALL_TRUE$ac_delim GCONF_SCHEMAS_INSTALL_FALSE!$GCONF_SCHEMAS_INSTALL_FALSE$ac_delim HTML_DIR!$HTML_DIR$ac_delim ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim libral_plugins_dir!$libral_plugins_dir$ac_delim libral_plugins_gui_dir!$libral_plugins_gui_dir$ac_delim libral_plugins_pixmaps_dir!$libral_plugins_pixmaps_dir$ac_delim rubrica_data_dir!$rubrica_data_dir$ac_delim rubrica_gui_dir!$rubrica_gui_dir$ac_delim rubrica_pixmaps_dir!$rubrica_pixmaps_dir$ac_delim rubrica_icons_dir!$rubrica_icons_dir$ac_delim desktop_icon_path!$desktop_icon_path$ac_delim LIBOBJS!$LIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "intltool":C) for file in intltool-extract intltool-merge intltool-update; do sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \ -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \ -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \ -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \ -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ < ${ac_aux_dir}/${file}.in > ${file}.out if cmp -s ${file} ${file}.out 2>/dev/null; then rm -f ${file}.out else mv -f ${file}.out ${file} fi chmod ugo+x ${file} chmod u+w ${file} done ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; "po/stamp-it":C) rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" if test ! -f "po/Makefile"; then { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5 echo "$as_me: error: po/Makefile is not ready." >&2;} { (exit 1); exit 1; }; } fi mv "po/Makefile" "po/Makefile.tmp" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.tmp" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi echo " Configuration: Package name: $PACKAGE Version: $PACKAGE_VERSION Plugins dir: $libral_plugins_dir Plugins gui dir: $libral_plugins_gui_dir Pixmap dir: $rubrica_pixmaps_dir Icons dir: $rubrica_icons_dir Config dir: ${sysconfdir}/gconf/schemas Code name: $RUBRICA_CODE_NAME, $RUBRICA_INFO_CODE_NAME " rubrica-2.0/interface/0000755000175000017500000000000010637712740013543 5ustar seb128seb128rubrica-2.0/interface/Makefile.am0000644000175000017500000000044610620106004015561 0ustar seb128seb128# SUBDIRS = forms main search view gui = \ CompanyCard.glade \ MainWindow.glade \ Menu.glade \ MenuTrash.glade \ NewGroup.glade \ PersonalCard.glade \ Preferences.glade \ Search.glade guidir = $(datadir)/${PACKAGE_NAME}/interface gui_DATA = $(gui) EXTRA_DIST = $(gui_DATA) rubrica-2.0/interface/PersonalCard.glade0000644000175000017500000066350110620111765017121 0ustar seb128seb128 True True Personal card manager False GTK_WIN_POS_CENTER GDK_WINDOW_TYPE_HINT_DIALOG False True True True True True 12 6 True 0 0 <b>Card</b> True False False True True 0 0 False False True 6 True 12 True 0 _Card label True card False True True True * 1 True 0 0 6 rubrica False False 2 False False True 12 True 12 True 0 0 Cate_gories True False False True 1 1 True 12 True True Prevent accidental card deletion _Lock card True True False False True 0 Card _rate True False False 1 True False False 2 False False 2 1 1 False True 0 0 _Card True card tab False False True 12 6 True 0 0 <b>Personal data</b> True False False True True 0 0 False False True 6 True 12 True 0 _First name True fn False False True True True * 1 True 0 0 6 photo False False 2 False False True 5 4 6 6 True 1 2 3 4 True 3 4 3 4 True True * 1 2 1 2 True True * 1 2 2 3 True 0 Prefi_x True prefix 2 3 2 3 GTK_FILL True True * 3 4 True True * 3 4 1 2 True True * 3 4 2 3 True True * 1 2 True 0 0 _Nickname True nick GTK_FILL True 0 _Second name True sn 2 3 GTK_FILL True 0 0 _Last name True ln 1 2 GTK_FILL True 0 _Profession True prof 2 3 1 2 GTK_FILL True 0 0 _Title True title 2 3 GTK_FILL True True True Contact's photo GTK_RELIEF_HALF True 0 6 photo 1 2 4 5 GTK_FILL True 0 P_hoto True photo_bt 4 5 GTK_FILL True 0 _Birthday True 2 3 3 4 GTK_FILL True 0 _Genre True 3 4 False False 1 1 1 1 False True Show calendar 0 0 _Personal data True fn tab 1 False False True 12 6 True 0 0 <b>Contact's assignment</b> True False False True True 0 0 False False True 6 True 12 True 0 _Assignment True role False False True True True * 1 True 0 0 6 role False False 2 False False True 4 4 6 6 True 0 0 O_rganization True org GTK_FILL True 0 0 _Department True dep 1 2 GTK_FILL True True * 1 2 1 2 True 0 0 Collaborator's p_hone True cphone 2 3 3 4 GTK_FILL True True * 3 4 3 4 True 0 0 _Collaborator True helper 3 4 GTK_FILL True True * 1 2 3 4 True True * 3 4 2 3 True 0 0 Manag_er's phone True mphone 2 3 2 3 GTK_FILL True 0 0 Sub de_partment True subdep 2 3 1 2 GTK_FILL True True * 3 4 1 2 True 0 0 _Manager True manager 2 3 GTK_FILL True True * 1 2 2 3 True True * 1 4 False False 1 1 1 2 False True 0 0 A_ssignment True role tab 2 False False True 12 6 True 0 0 <b>Addresses</b> True False False True True 0 0 False False True 12 True 12 True 0 Str_eet True st False False True True True * 1 True 0 0 6 mailbox False False 2 False False True 4 4 12 6 True 1 2 3 4 True True * 1 2 1 2 True True * 1 2 2 3 True True * 3 4 1 2 True True * 3 4 2 3 True True * 1 2 True True * 3 4 True 0 0 _Zip code True zip 2 3 GTK_FILL True 0 0 _Province True prov 2 3 1 2 GTK_FILL True 0 0 C_ountry True country 2 3 2 3 GTK_FILL True 0 0 _Number True num GTK_FILL True 0 0 _City True city 1 2 GTK_FILL True 0 0 _State True state 2 3 GTK_FILL True The delivery address 0 0 _Address type True 3 4 GTK_FILL False False 1 True 12 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True True False True 12 True True gtk-add True False False True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 1 True True gtk-remove True False False 2 False False 1 2 1 1 3 False True 0 0 _Addresses True st tab 3 False False True 12 6 True 0 0 <b>Net addresses</b> True False False True True 0 0 False False True 6 True 13 True 0 Net a_ddress or nickname True net False False True True True * 1 True 0 0 6 net False False 2 False False True 12 True 6 True 0 0 <b>Net address type</b> True False False True True 0 0 False False True 6 True True True True 0 0 0 0 True 2 True 0 0 gtk-network 2 False False True 0 0 _Net url True False False 1 False False True True True web True 0 0 0 0 True 2 True 0 0 2 stock_mail False False True 0 0 _Email True False False 1 False False 1 True True True web True 0 0 0 0 True 2 True 0 0 2 stock_video-conferencing False False True 0 0 E_kiga True False False 1 False False 2 True True True web True 0 0 0 0 True 2 True 0 0 2 internet-group-chat False False True 0 0 Ir_c True False False 1 False False 3 True True True True 0 0 False False True 6 True True True web True 0 0 0 0 True 2 True 0 0 2 im-aim False False True 0 0 a_im True False False 1 False False True True True web True 0 0 0 0 True 2 True 0 0 2 im-msn False False True 0 0 M_sn True False False 1 False False 1 True True True web True 0 0 0 0 True 2 True 0 0 2 im-icq False False True 0 0 ic_q True False False 1 False False 2 True True True web True 0 0 0 0 True 2 True 0 0 2 im-yahoo False False True 0 0 ya_hoo True False False 1 False False 3 True True True web True 0 0 0 0 True 2 True 0 0 2 im-jabber False False True 0 0 ja_bber True False False 1 False False 4 1 True 2 True 0 0 _Messenger True False False label_item False 4 False False 1 1 False False True 6 True 0 0 <b>Net addresses list</b> True False False True True 0 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True False 1 1 1 True 6 True 0 0 True False False True True True gtk-add True False False 1 True True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 2 True True True gtk-remove True False False 3 False False 2 1 1 1 4 False True 0 0 _Net True net tab 4 False False True 12 6 True 0 0 <b>Telephone numbers</b> True False False True True 0 0 False False True 6 True 12 True 0 _Number True tel False False True True True * 1 True 0 0 6 phone False False 2 False False True 12 True True 6 True 0 0 <b>Telephone type</b> True GTK_JUSTIFY_RIGHT False False True True 0 0 False False True 6 True 6 True True True True 0 0 0 0 True 2 True 0 0 gtk-home 2 False False True 0 0 _Home True False False 1 False False False False True 6 True True True home True 0 0 0 0 True 2 True 0 0 2 stock_briefcase False False True 0 0 _Work True False False 1 False False False False 1 True 6 True True True home True 0 0 0 0 True 2 True 0 0 2 stock_send-fax False False True 0 0 _Fax True False False 1 False False False False 2 True 6 True True True home True 0 0 0 0 True 2 True 0 0 2 stock_cell-phone False False True 0 0 _Cellular True False False 1 False False False False 3 True 6 True True True home True 0 0 0 0 True 2 True 0 0 2 stock_database False False True 0 0 _Other True False False 1 False False False False 4 1 False False 1 False False False False True 6 True 0 0 <b>Telephone list</b> True False False True True 0 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True True False 1 1 1 True 6 True 0 0 False False True True True gtk-add True False False 1 True True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 2 True True True gtk-remove True False False 3 False False 2 1 1 1 5 False True 0 0 _Telephones True tel tab 5 False False True 12 6 True 0 0 <b>Notes</b> True False False True True 0 0 False False True 6 True True True True True This contact is married or he/she has got a partner _Contact has a partner True True False 48 48 True 0 0 6 notes False False 1 False False True True 3 2 12 6 True 1 2 2 3 True 1 2 1 2 True 0 0 Partner's _name True spouse GTK_FILL True True * 1 2 True 0 0 Anni_versary True 2 3 GTK_FILL True 0 0 Partner's _birthday True 1 2 GTK_FILL 1 True 2 2 12 6 True 6 True 0 0 _Hobbies and other notes True GTK_JUSTIFY_CENTER notes False False True 0 0 6 hobbies False False 1 GTK_FILL True 6 True 0 0 Public _key True pubkey False False True 0 0 6 keys False False 1 1 2 GTK_FILL True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True 1 2 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True 1 2 1 2 2 1 False False 1 6 False True 0 0 N_otes True spouse_check tab 6 False False 1 True GTK_BUTTONBOX_END True True True gtk-cancel True -6 True True True gtk-ok True -5 1 False GTK_PACK_END rubrica-2.0/interface/MainWindow.glade0000644000175000017500000006072610620111765016620 0ustar seb128seb128 True Rubrica GTK_WIN_POS_CENTER_ALWAYS 850 510 x-office-address-book True True True _File True True gtk-new True True True gtk-open True True True gtk-save True True True gtk-save-as True True True True gtk-quit True True True _Modifica True True gtk-cut True True True gtk-copy True True True gtk-paste True True True True Add a personal card True True Add a company card True True Modify selected card True True Delete selected card True True True gtk-preferences True True True A_iuto True True gtk-dialog-info True True False False True GTK_SHADOW_OUT True True Create a new addressbook New addressbook address-book-new False True Open an addressbook gtk-open False True Save the active addressbook gtk-save False True Print the selected card gtk-print False True Open/Close the trash Trash user-trash False True False False True Show the previous card in the addressbook gtk-go-back False True Show the next card in the addressbook gtk-go-forward False True Show the first card in the addressbook gtk-goto-first False True Show the last card in the addressbook gtk-goto-last False True False False True Create a new card New contact contact-new False False True Delete the selected card gtk-remove False True Modify the selected card gtk-convert False True False False True Quit Rubrica gtk-quit False False 1 True True 12 140 True False True True 340 True 6 6 True 0 0 <b>Addressbooks</b> True False False True True False False True 1 1 False True 6 6 True 0 0 <b>Card's data</b> True False False True True 0 0 False False True 1 1 2 True 3 False False 3 rubrica-2.0/interface/CompanyCard.glade0000644000175000017500000043713610620111765016747 0ustar seb128seb128 True Company card manager False GTK_WIN_POS_CENTER_ON_PARENT GDK_WINDOW_TYPE_HINT_DIALOG True True True True 12 6 True 0 0 <b>Card</b> True False False True True 0 0 False False True 12 True 12 True 0 _Card label True card False True True * 1 True 0 0 6 rubrica False False 2 False False True 12 True 12 True 0 0 Cate_gories True False False True 1 1 True 12 True True _Lock card True True False False True 0 Card _rate True False False 1 True False False 2 False False 2 1 1 False True 0 0 _Card True tab False False True 12 6 True 0 0 <b>Company infos</b> True False False True True 0 0 False False True 6 True 6 True 0 _Company name True company_name False False True True * 1 True 0 6 puzzle False 2 False True 2 2 12 6 True True True Company's logo True 0 0 6 puzzle False False 1 2 1 2 True True codice fiscale o partita iva * 1 2 True 0 0 Co_mpany logo True company_name 1 2 GTK_FILL True 0 0 _Taxpayer number/VAT True iva GTK_FILL 1 1 1 1 False True 0 0 C_ompany data True tab 1 False False True 12 6 True 0 0 <b>Company's contacts</b> True False False True True 0 0 False False True 6 True 0 0 Add cards for contact into company False False True 12 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True True False True 12 True 0 6 contacts False False True True gtk-add True False False 1 True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 2 True True gtk-remove True False False 3 False False 1 1 1 1 2 False True 0 0 Contact_s True tab 2 False False True 12 6 True 0 0 <b>Addresses</b> True False False True True 0 0 False False True 12 True 12 True 0 Str_eet True st False False True True * 1 True 0 0 6 mailbox False False 2 False False True 4 4 12 6 True 0 0 _Address type True 3 4 GTK_FILL True 0 0 _State True state 2 3 GTK_FILL True 0 0 _City True city 1 2 GTK_FILL True 0 0 _Number True num GTK_FILL True 0 0 C_ountry True country 2 3 2 3 GTK_FILL True 0 0 _Province True prov 2 3 1 2 GTK_FILL True 0 0 _Zip code True zip 2 3 GTK_FILL True True * 3 4 True True * 1 2 True True * 3 4 2 3 True True * 3 4 1 2 True True * 1 2 2 3 True True * 1 2 1 2 True 1 2 3 4 False False 1 True 12 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True True False True 12 True True gtk-add True False False True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 1 True True gtk-remove True False False 2 False False 1 2 1 1 3 False True 0 0 _Addresses True tab 3 False False True 12 6 True 0 0 <b>Net addresses</b> True False False True 6 True 0 0 False False True 6 True 12 True 0 Net a_ddress True net False False True True * 1 True 0 0 6 net False False 2 False False True 12 True 6 True 0 0 <b>Net address type</b> True False False True True 0 0 False False True 6 True True True True 0 0 0 0 True 2 True 0 0 gtk-network False False True 0 0 _Net url True False False 1 False False True True True web True 0 0 0 0 True 2 True 0 0 stock_mail False False True 0 0 _Email True False False 1 False False 1 False False 1 False 1 False False True 6 True 0 0 <b>Net addresses list</b> True False False True True 0 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True False 1 1 1 True 6 True 0 0 True False False True True True gtk-add True False False 1 True True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 2 True True True gtk-remove True False False 3 False False 2 1 1 1 4 False True 0 0 _Net True tab 4 False False True 12 6 True 0 0 <b>Telephones</b> True False False True True 0 0 False False True 6 True 12 True 0 _Number True tel False False True True * 1 True 0 0 6 phone False False 2 False False True 12 True True 6 True 0 0 <b>Telephone type</b> True GTK_JUSTIFY_RIGHT False False True True 0 0 False False True 6 True 6 True True True True 0 0 0 0 True 2 True 0 0 operator False False True 0 0 _operator True False False 1 False False False False True 6 True True True operator True 0 0 0 0 True 2 True 0 0 green False False True 0 0 _green True False False 1 False False False False 1 True 6 True True True operator True 0 0 0 0 True 2 True 0 0 3 stock_send-fax False False True 0 0 _fax True False False 1 False False False False 2 True 6 True True True operator True 0 0 0 0 True 2 True 0 0 3 customer False False True 0 0 _customer care True False False 1 False False False False 3 True 6 True True True operator True 0 0 0 0 True 2 True 0 0 3 stuffs False False True 0 0 _other True False False 1 False False False False 4 1 False False 1 False False False False True 6 True 0 0 <b>Telephones list</b> True False False True True 0 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True True False 1 1 1 True 6 True 0 0 False False True True True gtk-add True False False 1 True True True True 0 0 0 0 True 2 True 0 0 gtk-convert False False True 0 0 _Modify True False False 1 False False 2 True True True gtk-remove True False False 3 False False 2 1 1 1 5 False True 0 0 _Telephones True tab 5 False False True 12 6 True 0 0 <b>Notes</b> True False False True True 0 0 False False True 6 True 0 _Company notes True False True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True 1 True 0 6 notes False False 2 1 1 6 False True 0 0 Not_es True tab 6 False False 2 True GTK_BUTTONBOX_END True True True gtk-cancel True -6 True True True gtk-ok True -5 1 False GTK_PACK_END rubrica-2.0/interface/MenuTrash.glade0000644000175000017500000000523210620111765016441 0ustar seb128seb128 True Recovery card True True gtk-undelete 1 0.5 0.5 0 0 True Destroy card True True gtk-clear 1 0.5 0.5 0 0 True True Empty trash True True gtk-delete 1 0.5 0.5 0 0 rubrica-2.0/interface/Preferences.glade0000644000175000017500000014224610620111765017003 0ustar seb128seb128 True Rubrica preferences False True GTK_WIN_POS_CENTER_ON_PARENT stock_addressbook GDK_WINDOW_TYPE_HINT_DIALOG True True 12 6 True True True 12 6 True 0 0 <b>Addressbooks and folder</b> True False False True True 0 0 False False True 6 True 6 True 0 _Save addressbooks in this folder True folder_chooser False False True GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER True 1 False False True True _Load those addressbooks at rubrica's start True True False False 1 True 12 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN True True False True 6 True 0 Ch_oose an addressbook True file_chooser False False True Choose the addressbook that you want open at rubrica's start 1 True True True gtk-add True False False 2 False False 1 2 1 1 False True 0 0 Addressbooks and _folder True tab False False True 12 6 True 0 0 <b>Actions</b> True False False True True 0 0 False False True 6 True 6 True 0 Addressbooks _compression rate True compress False False True True 0 0 9 1 1 10 1 True GTK_UPDATE_IF_VALID 0 addressbooks are not compressed, 9 max compression rate False False 1 False False True True _Save addressbooks after any change True True False False 1 True True Make back_up before overwrite True True False False 2 1 1 1 False False True 0 0 Addressbooks _management True tab 1 False False True 12 6 True 0 0 <b>Appearance</b> True False False True True 0 0 False False True 6 True 6 True 0 Toolbar will sho_w True False False True 1 False False True True Confirm e_xit from rubrica True True False False 1 1 False False 1 True 0 0 <b>Fonts</b> True False False 2 True True 0 0 False False True 6 True 6 True 0 _Data font True fontbutton False True True 1 False False 1 False False 3 2 False True 0 0 A_ppearance True tab 2 False False True 12 6 True 0 0 <b>Urls managers</b> True False False True True 0 0 False False True 6 True 6 True 0 Manage _web urls with True web_combo False False True 1 False False True 6 True 0 0 False False True 0 Command True False False 1 True 2 1 True 6 True 0 Manage _email urls with True email_combo False False True 1 False False 2 True 6 True 0 0 False False True 0 Command True False False 1 True 2 3 True 6 True 0 Manage i_rc urls with True irc_combo False False True 1 False False 4 True 6 True 0 0 False False True 0 Command True False False 1 True 2 5 True 6 True True _Launch Ekiga when telephone number is clicked True True False False False False 6 1 1 3 False True 0 0 _Urls management True tab 3 False False False 2 True GTK_BUTTONBOX_END True True True gtk-close True -7 False GTK_PACK_END rubrica-2.0/interface/Menu.glade0000644000175000017500000004203410620111765015440 0ustar seb128seb128 True gtk-cut True True True gtk-copy True True True gtk-paste True True True True Add a personal card to addressbook Add a personal card True True Add a company card to addressbook Add a company card True True Modify the selected card Modify card True True Delete the selected card Delete card True True True Show cards True True All True Men True Women True True Contacts True True Companies True True with rate True True True none True True few True True normal True True hight True True very hight True True Select the columns to swow in addressbook's view Show columns True True Card True True First name True True Last name True True Profession True True City True True Country True True Web True True Email True True Telephone True True Company True True Assignment True True Choose where perform a search Search on True True Cards True True First names True rm_card True Last names True rm_card True Professions True rm_card True Cities True rm_card True Countries True rm_card True Web urls True rm_card True Emails True rm_card True Telephone numbers True rm_card True Assignments True rm_card True companies True rm_card True True Advanced search rubrica-2.0/interface/Makefile.in0000644000175000017500000003170110637712667015622 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # SUBDIRS = forms main search view VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = interface DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(guidir)" guiDATA_INSTALL = $(INSTALL_DATA) DATA = $(gui_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ gui = \ CompanyCard.glade \ MainWindow.glade \ Menu.glade \ MenuTrash.glade \ NewGroup.glade \ PersonalCard.glade \ Preferences.glade \ Search.glade guidir = $(datadir)/${PACKAGE_NAME}/interface gui_DATA = $(gui) EXTRA_DIST = $(gui_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu interface/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu interface/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-guiDATA: $(gui_DATA) @$(NORMAL_INSTALL) test -z "$(guidir)" || $(MKDIR_P) "$(DESTDIR)$(guidir)" @list='$(gui_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(guiDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(guidir)/$$f'"; \ $(guiDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(guidir)/$$f"; \ done uninstall-guiDATA: @$(NORMAL_UNINSTALL) @list='$(gui_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(guidir)/$$f'"; \ rm -f "$(DESTDIR)$(guidir)/$$f"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(guidir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-guiDATA install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-guiDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-guiDATA install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-guiDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/interface/NewGroup.glade0000644000175000017500000002021010620111765016272 0ustar seb128seb128 True Rubrica group manager False GTK_WIN_POS_CENTER GDK_WINDOW_TYPE_HINT_DIALOG True True 12 6 True 0 0 <b>Add new group</b> True False False True True 0 0 False False True 6 True 12 True group label False False True True * 1 True 12 True 0 group pixmap False False True gtk-missing-image False False 1 True True choose pixmap... True False False 2 1 1 False False 1 False False 2 True GTK_BUTTONBOX_END True True True gtk-cancel True -6 True True True gtk-ok True -5 1 False GTK_PACK_END rubrica-2.0/interface/Search.glade0000644000175000017500000003370110620111765015742 0ustar seb128seb128 True Rubrica search False GTK_WIN_POS_CENTER GDK_WINDOW_TYPE_HINT_DIALOG True 2 True 12 6 True 0 0 <b>Search rules</b> True True True 0 0 False False True 6 True 6 True gtk-find 5 False False True _Search on date True True 1 True 6 True 0 _find string True False False True True * 1 1 True 6 True search on _creation date True True True True search on l_ast change date True True creation 1 True 6 True searching dat_e is True True False False True 1 False 2 True 6 True _date True False True 1 3 True 6 True a_nd date True False False True 1 4 2 False False 1 False False 1 False False 2 True GTK_BUTTONBOX_END True True True gtk-close True -7 True True True gtk-find True -3 1 False GTK_PACK_END rubrica-2.0/NEWS0000644000175000017500000000001210554703327012272 0ustar seb128seb128@VERSION@ rubrica-2.0/missing0000644000175000017500000002466610554703327013214 0ustar seb128seb128#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2003-09-02.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: rubrica-2.0/rubrica2.spec.in0000644000175000017500000000334110555643072014576 0ustar seb128seb128# # based on Dag Wieers rubrica.spec file # %define rel 1 Name: @PACKAGE_NAME@ Summary: Rubrica, an address book for Gnome Environment. Version: @RUBRICA_VERSION@ Release: %rel License: GPL Group: Applications/Productivity Source: http://download.berlios.de/rubrica/%{name}-%{version}.tar.bz2 URL: http://rubrica.berlios.de Vendor: Nicola Fragale Packager: Nicola Fragale BuildRoot: %{_tmppath}/root-%{name}-%{version} Prefix: %{_prefix} Requires: gtk2 >= 2.6, libglade2, libxml2 BuildRequires: gtk2-devel >= 2.6, libglade2-devel, libxml2-devel %description An address book for GNOME Environment. %prep %setup %build %configure \ --disable-install-schemas \ --enable-nls %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" %makeinstall %find_lang %{name} %{__rm} -rf %{buildroot}%{_docdir}/@PACKAGE_NAME@ %post export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null scrollkeeper-update -q %postun scrollkeeper-update -q %clean %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root, 0755) %doc README ChangeLog COPYING AUTHORS NEWS TODO CREDITS %config %{_sysconfdir}/gconf/schemas/*.schemas %{_bindir}/* %{_libdir}/libral.* %{_libdir}/libral/plugins/* %{_datadir}/@PACKAGE_NAME@/interface/ %{_datadir}/icons/hicolor/* %{_datadir}/applications/*.desktop %{_datadir}/mime-info/* %exclude %{_datadir}/icons/hicolor/icon-theme.cache %exclude %{_libdir}/*.a %exclude %{_libdir}/*.la %exclude %{_libdir}/libral/plugins/*.?a %exclude %{_libdir}/libral/plugins/*.la rubrica-2.0/doc/0000755000175000017500000000000010637712737012356 5ustar seb128seb128rubrica-2.0/doc/Makefile.am0000644000175000017500000000000210555616420014371 0ustar seb128seb128 rubrica-2.0/doc/Makefile.in0000644000175000017500000002714610637712667014437 0ustar seb128seb128# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DESKTOP_ICON_PATH = @DESKTOP_ICON_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ FILE_FORMAT = @FILE_FORMAT@ GCONFTOOL = @GCONFTOOL@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ LDFLAGS = @LDFLAGS@ LIBCSV_COMPAT_VERSION = @LIBCSV_COMPAT_VERSION@ LIBCSV_CURRENT_VERSION = @LIBCSV_CURRENT_VERSION@ LIBCSV_REVISION_VERSION = @LIBCSV_REVISION_VERSION@ LIBOBJS = @LIBOBJS@ LIBRAL_CFLAGS = @LIBRAL_CFLAGS@ LIBRAL_CODE_NAME = @LIBRAL_CODE_NAME@ LIBRAL_COMPAT_VERSION = @LIBRAL_COMPAT_VERSION@ LIBRAL_CURRENT_VERSION = @LIBRAL_CURRENT_VERSION@ LIBRAL_INFO_CODE_NAME = @LIBRAL_INFO_CODE_NAME@ LIBRAL_LIBS = @LIBRAL_LIBS@ LIBRAL_RELEASE = @LIBRAL_RELEASE@ LIBRAL_REVISION_VERSION = @LIBRAL_REVISION_VERSION@ LIBRAL_VERSION = @LIBRAL_VERSION@ LIBRUBRICA_COMPAT_VERSION = @LIBRUBRICA_COMPAT_VERSION@ LIBRUBRICA_CURRENT_VERSION = @LIBRUBRICA_CURRENT_VERSION@ LIBRUBRICA_REVISION_VERSION = @LIBRUBRICA_REVISION_VERSION@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVCARD_COMPAT_VERSION = @LIBVCARD_COMPAT_VERSION@ LIBVCARD_CURRENT_VERSION = @LIBVCARD_CURRENT_VERSION@ LIBVCARD_REVISION_VERSION = @LIBVCARD_REVISION_VERSION@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ RUBRICA_CAP_NAME = @RUBRICA_CAP_NAME@ RUBRICA_CFLAGS = @RUBRICA_CFLAGS@ RUBRICA_CODE_NAME = @RUBRICA_CODE_NAME@ RUBRICA_FILE_FORMAT = @RUBRICA_FILE_FORMAT@ RUBRICA_INFO_CODE_NAME = @RUBRICA_INFO_CODE_NAME@ RUBRICA_LIBS = @RUBRICA_LIBS@ RUBRICA_NAME = @RUBRICA_NAME@ RUBRICA_VERSION = @RUBRICA_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ desktop_icon_path = @desktop_icon_path@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libral_plugins_dir = @libral_plugins_dir@ libral_plugins_gui_dir = @libral_plugins_gui_dir@ libral_plugins_pixmaps_dir = @libral_plugins_pixmaps_dir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ rubrica_data_dir = @rubrica_data_dir@ rubrica_gui_dir = @rubrica_gui_dir@ rubrica_icons_dir = @rubrica_icons_dir@ rubrica_pixmaps_dir = @rubrica_pixmaps_dir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/ltmain.sh0000644000175000017500000054666210554703327013445 0ustar seb128seb128# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # RH: define SED for historic ltconfig's generated by Libtool 1.3 [ -z "$SED" ] && SED=sed # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.6 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)" # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` if test "X$win32_nmres" = "Ximport" ; then win32_libid_type="x86 archive import" else win32_libid_type="x86 archive static" fi fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2003 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $EXIT_SUCCESS ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $EXIT_SUCCESS ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $EXIT_SUCCESS ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case "$arg_mode" in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo $srcfile > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi fi build_libtool_libs=no build_old_libs=yes prefer_static_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 exit $EXIT_FAILURE fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-mingw* | *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # gcc -m* arguments should be passed to the linker via $compiler_flags # in order to pass architecture information to the linker # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo # but this is not reliable with gcc because gcc may use -mfoo to # select a different linker, different libraries, etc, while # -Wl,-mfoo simply passes -mfoo to the linker. -m*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" if test "$with_gcc" = "yes" ; then compiler_flags="$compiler_flags $arg" fi continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir status=$? if test "$status" -ne 0 && test ! -d "$output_objdir"; then exit $status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) if test "$deplibs_check_method" != pass_all; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var"; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $dir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5* ) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else convenience="$convenience $dir/$old_library" old_convenience="$old_convenience $dir/$old_library" deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$deplibs $path" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in [0-9]*) ;; *) $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in [0-9]*) ;; *) $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in [0-9]*) ;; *) $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name="`expr $a_deplib : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi generated="$generated $gentop" for xlib in $convenience; do # Extract the objects. case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` xdir="$gentop/$xlib" $show "${rm}r $xdir" $run ${rm}r "$xdir" $show "$mkdir $xdir" $run $mkdir "$xdir" status=$? if test "$status" -ne 0 && test ! -d "$xdir"; then exit $status fi # We will extract separately just the conflicting names and we will no # longer touch any unique names. It is faster to leave these extract # automatically by $AR in one run. $show "(cd $xdir && $AR x $xabs)" $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 $AR t "$xabs" | sort | uniq -cd | while read -r count name do i=1 while test "$i" -le "$count" do # Put our $i before any first dot (extension) # Never overwrite any file name_to="$name" while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" do name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` done $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? i=`expr $i + 1` done done fi libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$save_output-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$save_output-${k}.$objext k=`expr $k + 1` output=$output_objdir/$save_output-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadale object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$save_output-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi generated="$generated $gentop" for xlib in $convenience; do # Extract the objects. case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` xdir="$gentop/$xlib" $show "${rm}r $xdir" $run ${rm}r "$xdir" $show "$mkdir $xdir" $run $mkdir "$xdir" status=$? if test "$status" -ne 0 && test ! -d "$xdir"; then exit $status fi # We will extract separately just the conflicting names and we will no # longer touch any unique names. It is faster to leave these extract # automatically by $AR in one run. $show "(cd $xdir && $AR x $xabs)" $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 $AR t "$xabs" | sort | uniq -cd | while read -r count name do i=1 while test "$i" -le "$count" do # Put our $i before any first dot (extension) # Never overwrite any file name_to="$name" while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" do name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` done $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? i=`expr $i + 1` done done fi reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$output.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' else $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) cwrappersource=`$echo ${objdir}/lt-${output}.c` cwrapper=`$echo ${output}.exe` $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR #define DIR_SEPARATOR '/' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) #define HAVE_DOS_BASED_FILE_SYSTEM #ifndef DIR_SEPARATOR_2 #define DIR_SEPARATOR_2 '\\' #endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); char * basename (const char *name); char * fnqualify(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup ((char *) basename (argv[0])); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = fnqualify(argv[0]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } char * basename (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha (name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return (char *) base; } char * fnqualify(const char *path) { size_t size; char *p; char tmp[LT_PATHMAX + 1]; assert(path != NULL); /* Is it qualified already? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha (path[0]) && path[1] == ':') return xstrdup (path); #endif if (IS_DIR_SEPARATOR (path[0])) return xstrdup (path); /* prepend the current directory */ /* doesn't handle '~' */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ p = XMALLOC(char, size); sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); return p; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \$progdir\\\\\$program \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \$progdir/\$program \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi generated="$generated $gentop" # Add in members from convenience archives. for xlib in $addlibs; do # Extract the objects. case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` xdir="$gentop/$xlib" $show "${rm}r $xdir" $run ${rm}r "$xdir" $show "$mkdir $xdir" $run $mkdir "$xdir" status=$? if test "$status" -ne 0 && test ! -d "$xdir"; then exit $status fi # We will extract separately just the conflicting names and we will no # longer touch any unique names. It is faster to leave these extract # automatically by $AR in one run. $show "(cd $xdir && $AR x $xabs)" $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 $AR t "$xabs" | sort | uniq -cd | while read -r count name do i=1 while test "$i" -le "$count" do # Put our $i before any first dot (extension) # Never overwrite any file name_to="$name" while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" do name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` done $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? i=`expr $i + 1` done done fi oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` done fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # GNU ar 2.10+ was changed to match POSIX; thus no paths are # encoded into archives. This makes 'ar r' malfunction in # this piecewise linking case whenever conflicting object # names appear in distinct ar calls; check, warn and compensate. if (for obj in $save_oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2 AR_FLAGS=cq fi # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg="$nonopt" fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest="$arg" continue fi case $arg in -d) isdir=yes ;; -f) prev="-f" ;; -g) prev="-g" ;; -m) prev="-m" ;; -o) prev="-o" ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest="$arg" continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # To insure that "foo" is sourced, and not "foo.exe", # finese the cygwin/MSYS system by explicitly sourcing "foo." # which disallows the automatic-append-.exe behavior. case $build in *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; *) wrapperdot=${wrapper} ;; esac # If there is no directory component, then add one. case $file in */* | *\\*) . ${wrapperdot} ;; *) . ./${wrapperdot} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # To insure that "foo" is sourced, and not "foo.exe", # finese the cygwin/MSYS system by explicitly sourcing "foo." # which disallows the automatic-append-.exe behavior. case $build in *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; *) wrapperdot=${wrapper} ;; esac # If there is no directory component, then add one. case $file in */* | *\\*) . ${wrapperdot} ;; *) . ./${wrapperdot} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir="/tmp" test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" save_umask=`umask` umask 0077 if $mkdir "$tmpdir"; then umask $save_umask else umask $save_umask $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 continue fi file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyways case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "----------------------------------------------------------------------" $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "----------------------------------------------------------------------" exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" if test "$mode" = uninstall; then if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. fi fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $EXIT_SUCCESS # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: rubrica-2.0/rubrica2.keys0000644000175000017500000000021110637712713014203 0ustar seb128seb128application/x-rubrica _description=Gnome Addressbook manager default_action=application icon_filename=rubrica.png open=rubrica %f rubrica-2.0/rubrica2.desktop.in0000644000175000017500000000061010556175571015316 0ustar seb128seb128[Desktop Entry] Name=Rubrica Addressbook _Name=Rubrica Addressbook Comment=Manage contacts and addresses Comment[it]=Gestore di contatti e indirizzi _Comment=Manage contacts and addresses MimeType=application/x-rubrica Patterns=*.rub;*.RUB; Exec=@PACKAGE_NAME@ Icon=stock_addressbook.png Terminal=false Type=Application Categories=GNOME;Application;Office; StartupNotify=true Encoding=UTF-8 rubrica-2.0/install-sh0000755000175000017500000001572210554703327013615 0ustar seb128seb128#!/bin/sh # # install - install a program, script, or datafile # # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd=$cpprog shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "$0: no input file specified" >&2 exit 1 else : fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d "$dst" ]; then instcmd=: chmodcmd="" else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f "$src" ] || [ -d "$src" ] then : else echo "$0: $src does not exist" >&2 exit 1 fi if [ x"$dst" = x ] then echo "$0: no destination specified" >&2 exit 1 else : fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d "$dst" ] then dst=$dst/`basename "$src"` else : fi fi ## this sed command emulates the dirname command dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp='' while [ $# -ne 0 ] ; do pathcomp=$pathcomp$1 shift if [ ! -d "$pathcomp" ] ; then $mkdirprog "$pathcomp" else : fi pathcomp=$pathcomp/ done fi if [ x"$dir_arg" != x ] then $doit $instcmd "$dst" && if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename "$dst"` else dstfile=`basename "$dst" $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename "$dst"` else : fi # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up temp files at exit. trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 # Move or copy the file name to the temp name $doit $instcmd "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && # Now remove or move aside any old file at destination location. We try this # two ways since rm can't unlink itself on some systems and the destination # file might be busy for other reasons. In this case, the final cleanup # might fail but the new file should still install successfully. { if [ -f "$dstdir/$dstfile" ] then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" fi && # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } rubrica-2.0/CREDITS0000644000175000017500000000011110554703327012613 0ustar seb128seb128I wish to thanks Rubrica 1.1.x contributors Lina Cocomello - bug hunter rubrica-2.0/po/0000755000175000017500000000000010637712740012221 5ustar seb128seb128rubrica-2.0/po/ChangeLog0000644000175000017500000000101310620106030013743 0ustar seb128seb1282002-05-20 gettextize * Makefile.in.in: Upgrade to gettext-0.10.38. 2002-05-13 gettextize * Makefile.in.in: Upgrade to gettext-0.10.38. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. 2002-03-17 gettextize * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. 2002-01-20 gettextize * Makefile.in.in: Upgrade to gettext-0.10.38. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. rubrica-2.0/po/POTFILES.in0000644000175000017500000000211510620106031013753 0ustar seb128seb128[encoding: UTF-8] src/app.c src/browse.c src/calendar.c src/callbacks.c src/cards.c src/cards_view.c src/company_gui.c src/data_view.c src/form.c src/form_address.c src/form_card.c src/form_contact.c src/form_info.c src/form_net.c src/form_notes.c src/form_phone.c src/form_work.c src/groups_cb.c src/groups_view.c src/main.c src/models.c src/personal_gui.c src/popmenu.c src/preferences.c src/search_dialog.c src/search_view.c src/statusbar.c src/tab.c src/themes.c src/trash_view.c src/utils.c src/view.c interface/CompanyCard.glade interface/MainWindow.glade interface/Menu.glade interface/MenuTrash.glade interface/NewGroup.glade interface/PersonalCard.glade interface/Preferences.glade interface/Search.glade libral/abook.c libral/address.c libral/card.c libral/company.c libral/date.c libral/filter.c libral/group.c libral/group_box.c libral/lookup.c libral/manager.c libral/net.c libral/notes.c libral/personal.c libral/plugin.c libral/ref.c libral/rlib.c libral/telephone.c libral/timeout.c libral/utils.c libral/work.c # files added by intltool-prepare rubrica2.keys.in rubrica2.desktop.in rubrica-2.0/po/Makefile.in.in0000644000175000017500000001466210620106031014662 0ustar seb128seb128# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ DATADIRNAME = @DATADIRNAME@ itlocaledir = $(prefix)/$(DATADIRNAME)/locale subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi) POFILES=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS POTFILES = \ #This Gets Replace for some reason CATALOGS=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all $(mkdir_p) $(DESTDIR)$(itlocaledir) if test -n "$(PO_LINGUAS)"; then \ linguas="$(PO_LINGUAS)"; \ else \ linguas="$(ALL_LINGUAS)"; \ fi; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info tags TAGS ID: # Define this as empty until I found a useful application. installcheck: uninstall: if test -n "$(PO_LINGUAS)"; then \ linguas="$(PO_LINGUAS)"; \ else \ linguas="$(ALL_LINGUAS)"; \ fi; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ if test -n "$(PO_LINGUAS)"; then \ linguas="$(PO_LINGUAS)"; \ else \ linguas="$(ALL_LINGUAS)"; \ fi; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in ../config.status POTFILES.in cd .. \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: rubrica-2.0/po/it.po0000644000175000017500000010451510620135177013176 0ustar seb128seb128# msgid "" msgstr "" "Project-Id-Version: Rubrica 2.0rc1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-05-08 19:59+0200\n" "PO-Revision-Date: 2007-05-08 19:58+0200\n" "Last-Translator: <>\n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../src/app.c:55 msgid "all groups" msgstr "tutti i gruppi" #: ../src/app.c:57 msgid "favorites" msgstr "preferiti" #: ../src/app.c:58 msgid "hot contacts" msgstr "importanti" #: ../src/app.c:59 msgid "friends" msgstr "amici" #: ../src/app.c:60 msgid "heart" msgstr "cuore" #: ../src/app.c:61 msgid "relatives" msgstr "parenti" #: ../src/app.c:63 msgid "holidays" msgstr "vacanze" #: ../src/app.c:64 msgid "hobbies" msgstr "passatempi" #: ../src/app.c:65 msgid "sport" msgstr "sport" #: ../src/app.c:67 msgid "bussines" msgstr "affari" #: ../src/app.c:68 msgid "company" msgstr "società" #: ../src/app.c:69 msgid "legal" msgstr "legali" #: ../src/app.c:70 msgid "office" msgstr "ufficio" #: ../src/app.c:71 ../libral/address.c:62 ../libral/telephone.c:42 msgid "work" msgstr "lavoro" #: ../src/app.c:72 msgid "customer" msgstr "clienti" #: ../src/app.c:73 msgid "strategies" msgstr "strategie" #: ../src/app.c:75 msgid "free software" msgstr "software libero" #: ../src/app.c:76 msgid "programmers" msgstr "programmatori" #: ../src/app.c:77 msgid "BSD friends" msgstr "amici BSD" #: ../src/app.c:79 msgid "university" msgstr "università" #: ../src/app.c:292 ../src/app.c:1538 ../src/callbacks.c:310 #: ../src/callbacks.c:343 ../src/cards_view.c:540 ../libral/abook.c:846 msgid "no name" msgstr "senza nome" #: ../src/app.c:381 #, c-format msgid "%d cards found" msgstr "%d schede trovate" #: ../src/app.c:383 #, c-format msgid "%d card found" msgstr "%d scheda trovata" #: ../src/app.c:432 #, c-format msgid "Card %s successfully destroyed" msgstr "La scheda %s è stata distrutta" #: ../src/app.c:596 #, c-format msgid "Can't save the file %s" msgstr "Impossibile salvare il file %s" #: ../src/app.c:602 #, c-format msgid "Can't overwrite the file %s" msgstr "Impossibile sovrascrivere il file %s" #: ../src/app.c:699 #, c-format msgid "" "\n" "Can't find %s in your path" msgstr "" "\n" "Impossibile trovare %s nel tuo path" #: ../src/app.c:710 #, c-format msgid "Launching %s %s. Please wait..." msgstr "Sto lanciando %s %s. Attendere..." #: ../src/app.c:712 #, c-format msgid "" "\n" "Launching %s %s.\n" "Please wait..." msgstr "" "\n" "Sto lanciando %s %s.\n" "Attendere..." #: ../src/app.c:1068 msgid "_Personal card" msgstr "Scheda _personale" #: ../src/app.c:1072 msgid "_Company card" msgstr "Scheda _società" #. Append Trash page in notebook and initialize #. #: ../src/app.c:1247 msgid "Trash" msgstr "Cestino" #: ../src/app.c:1265 msgid "Search results" msgstr "Risultati della ricerca" #: ../src/app.c:1585 ../src/cards_view.c:396 #, c-format msgid "Error loading file '%s': %s" msgstr "Errore durante il caricamento di '%s': %s" #: ../src/calendar.c:137 ../src/calendar.c:451 ../libral/address.c:70 #: ../libral/date.c:238 ../libral/date.c:381 ../libral/notes.c:544 #: ../libral/notes.c:562 ../libral/telephone.c:50 msgid "unknown" msgstr "sconosciuto" #: ../src/callbacks.c:89 ../src/callbacks.c:371 #, c-format msgid "File %s was successfully saved." msgstr "Il file %s è stato salvato" #: ../src/callbacks.c:141 msgid "Do you want exit from rubrica?" msgstr "Si vuole uscire da rubrica?" #: ../src/callbacks.c:160 #, c-format msgid "" "Unsaved data will be lost.\n" "Do you want to close %s without saving?" msgstr "" "I dati non salvati saranno persi.\n" "Vuoi chiudere %s senza salvare?" #: ../src/callbacks.c:198 ../interface/MainWindow.glade.h:12 msgid "Open an addressbook" msgstr "Apri una rubrica" #: ../src/callbacks.c:286 msgid "Save addressbook as..." msgstr "Salva la rubrica come..." #: ../src/callbacks.c:398 msgid "Card cutted" msgstr "Scheda tagliata" #: ../src/callbacks.c:418 msgid "Card copied" msgstr "Scheda copiata" #: ../src/callbacks.c:435 msgid "Card pasted" msgstr "Scheda incollata" #: ../src/callbacks.c:498 msgid "Card moved to trash" msgstr "Scheda spostata nel cestino" #: ../src/callbacks.c:502 msgid "This card is locked. Modify card's property and retry." msgstr "Questa scheda è bloccata. Cambia la proprietà della scheda e riprova" #: ../src/callbacks.c:505 msgid "" "This card is locked.\n" "Modify card's property and retry." msgstr "" "Questa scheda è bloccata.\n" "Cambia la proprietà della scheda e riprova." #: ../src/callbacks.c:517 ../src/callbacks.c:521 msgid "" "You haven't selected any card.\n" "Please select the card that you want to delete" msgstr "" "Non è stata selezionata nessuna scheda.\n" "Selezionare la scheda che si vuole cancellare" #: ../src/callbacks.c:538 msgid "" "\n" "Warning. This addressbook is empty" msgstr "" "\n" "Attenzione. Questa rubrica è vuota" #: ../src/callbacks.c:548 msgid "" "\n" "Warning. You must select a card first" msgstr "" "\n" "Attenzione. Selezionare una scheda" #: ../src/callbacks.c:599 msgid "Rubrica, an addressbook for GNOME environment" msgstr "Rubrica, gestore di indirizzi per GNOME" #: ../src/callbacks.c:601 msgid "Copyright Nicola Fragale " msgstr "Copyright Nicola Fragale " #: ../src/callbacks.c:609 msgid "Rubrica's home page" msgstr "Home page di Rubrica" #: ../src/callbacks.c:626 msgid "Feature not yet implemented" msgstr "Non ancora implementato" #: ../src/cards_view.c:125 ../src/cards_view.c:533 #, c-format msgid "Cards in this addressbook: %-5d Deleted cards: %-5d" msgstr "Schede in questa rubrica: %-5d Schede cancellate: %-5d" #. display card's name #: ../src/cards_view.c:242 ../src/data_view.c:825 ../src/data_view.c:872 #: ../src/models.c:209 ../src/search_view.c:81 ../src/trash_view.c:111 #: ../interface/Menu.glade.h:9 msgid "Card" msgstr "Scheda" #: ../src/cards_view.c:254 msgid "First Name" msgstr "Nome" #: ../src/cards_view.c:267 msgid "Last Name" msgstr "Cognome" #: ../src/cards_view.c:280 ../src/data_view.c:900 ../interface/Menu.glade.h:30 msgid "Profession" msgstr "Professione" #: ../src/cards_view.c:292 ../src/models.c:166 ../interface/Menu.glade.h:13 msgid "City" msgstr "Città" #: ../src/cards_view.c:304 ../interface/Menu.glade.h:18 msgid "Country" msgstr "Nazione" #: ../src/cards_view.c:316 ../src/trash_view.c:121 #: ../interface/Menu.glade.h:38 msgid "Web" msgstr "Web" #: ../src/cards_view.c:328 ../src/models.c:239 ../src/trash_view.c:126 #: ../interface/Menu.glade.h:21 msgid "Email" msgstr "Email" #: ../src/cards_view.c:341 ../src/data_view.c:1176 ../src/models.c:233 #: ../src/trash_view.c:131 ../interface/Menu.glade.h:36 msgid "Telephone" msgstr "Telefono" #: ../src/cards_view.c:354 ../interface/Menu.glade.h:15 msgid "Company" msgstr "Società" #: ../src/cards_view.c:366 ../src/data_view.c:1071 ../src/models.c:227 #: ../interface/Menu.glade.h:7 msgid "Assignment" msgstr "Incarico" #: ../src/data_view.c:833 msgid "Taxpayer number/VAT" msgstr "Codice fiscale/P. IVA" #: ../src/data_view.c:883 msgid "Name" msgstr "Nome" #: ../src/data_view.c:897 msgid "Nickname" msgstr "Soprannome" #: ../src/data_view.c:898 msgid "Title" msgstr "Titolo" #: ../src/data_view.c:899 msgid "Prefix" msgstr "Prefisso" #: ../src/data_view.c:905 msgid "Birthday" msgstr "Data di nascita" #: ../src/data_view.c:928 msgid "Card's groups" msgstr "Gruppi della scheda" #: ../src/data_view.c:963 msgid "Addresses" msgstr "Indirizzi" #: ../src/data_view.c:1068 msgid "Work" msgstr "Lavoro" #: ../src/data_view.c:1072 msgid "Organization" msgstr "Organizzazione" #: ../src/data_view.c:1073 msgid "Department" msgstr "Dipartimento" #: ../src/data_view.c:1074 msgid "Subdepartment" msgstr "Sottodipartimento" #: ../src/data_view.c:1075 msgid "Manager" msgstr "Dirigente" #: ../src/data_view.c:1076 msgid "Manager's telephone" msgstr "Telefono del dirigente" #: ../src/data_view.c:1077 msgid "Collaborator" msgstr "Collaboratore" #: ../src/data_view.c:1078 msgid "Collaborator's telephone" msgstr "Telefono collaboratore" #: ../src/data_view.c:1104 msgid "Net" msgstr "Rete" #: ../src/data_view.c:1223 ../src/data_view.c:1269 msgid "Notes" msgstr "Note" #: ../src/data_view.c:1228 msgid "Contact has a partner" msgstr "Il contatto ha un partner" #: ../src/data_view.c:1231 msgid "partner's name" msgstr "nome del partner" #: ../src/data_view.c:1235 msgid "partner's birthday" msgstr "data di nascita del partner" #: ../src/data_view.c:1241 msgid "anniversary" msgstr "Anniversario" #: ../src/data_view.c:1246 msgid "Public key" msgstr "Chiave pubblica" #: ../src/data_view.c:1247 msgid "Other notes" msgstr "Altre note" #: ../src/form_card.c:52 msgid "None" msgstr "Nessuno" #. R_RATE_NONE #: ../src/form_card.c:53 msgid "Few" msgstr "Poco" #. R_RATE_FEW #: ../src/form_card.c:54 msgid "Normal" msgstr "Normale" #. R_RATE_NORMAL #: ../src/form_card.c:55 msgid "Hight" msgstr "Alto" #. R_RATE_HIGHT #: ../src/form_card.c:56 msgid "Very hight" msgstr "Molto alto" #: ../src/form_contact.c:380 msgid "male" msgstr "uomo" #: ../src/form_contact.c:381 msgid "female" msgstr "donna" #: ../src/groups_cb.c:226 msgid "add ne_w group" msgstr "aggiungi un _gruppo" #: ../src/groups_cb.c:230 msgid "_rename group" msgstr "rinomina il gruppo" #: ../src/groups_cb.c:234 msgid "_remove group" msgstr "_cancella un gruppo" #: ../src/groups_view.c:289 msgid "Belongs" msgstr "Appartiene" #: ../src/groups_view.c:299 msgid "Groups" msgstr "Gruppi" #: ../src/main.c:77 msgid "Rubrica" msgstr "Rubrica" #. tree view #: ../src/models.c:152 msgid "Street" msgstr "Via" #: ../src/models.c:159 ../src/models.c:195 msgid "Number" msgstr "Numero" #: ../src/models.c:173 msgid "Address type" msgstr "Tipo indirizzo" #: ../src/models.c:182 msgid "Net URL" msgstr "Url di rete" #: ../src/models.c:187 ../src/models.c:201 ../src/preferences.c:733 msgid "Type" msgstr "Tipo" #: ../src/models.c:215 ../interface/Menu.glade.h:23 msgid "First name" msgstr "Nome" #: ../src/models.c:221 ../interface/Menu.glade.h:25 msgid "Last name" msgstr "Cognome" #: ../src/preferences.c:103 msgid "Only icons" msgstr "Solo icone" #: ../src/preferences.c:104 msgid "Only text" msgstr "Solo testo" #: ../src/preferences.c:105 msgid "Both icons and text" msgstr "Icone e testo" #: ../src/preferences.c:106 msgid "Use Gnome settings" msgstr "Impostazioni di Gnome" #: ../src/preferences.c:119 ../src/preferences.c:129 ../src/preferences.c:139 msgid "Other" msgstr "Altro" #: ../src/preferences.c:259 msgid "_remove addressbook" msgstr "Rimuovi una rubrica" #: ../src/preferences.c:727 msgid "Addressbook" msgstr "Rubrica" #: ../src/search_dialog.c:41 msgid "is" msgstr "è" #: ../src/search_dialog.c:42 msgid "before of" msgstr "prima di" #: ../src/search_dialog.c:43 msgid "after of" msgstr "dopo di" #: ../src/search_dialog.c:44 msgid "between" msgstr "tra" #: ../src/search_view.c:264 msgid "No items found" msgstr "Nessun elemento trovato" #: ../src/search_view.c:268 msgid "One item found" msgstr "Trovato un elemento" #: ../src/search_view.c:270 #, c-format msgid "Items found: %-5d " msgstr "Elementi trovati: %-5d " #: ../src/statusbar.c:313 msgid "rate:" msgstr "giudizio:" #: ../src/statusbar.c:325 msgid "status:" msgstr "stato:" #: ../src/trash_view.c:97 #, c-format msgid "Cards in Trash: %-5d" msgstr "Schede nel cestino: %-5d" #: ../src/trash_view.c:116 msgid "Info" msgstr "Informazioni" #: ../interface/CompanyCard.glade.h:1 ../interface/MainWindow.glade.h:1 #: ../interface/NewGroup.glade.h:1 ../interface/PersonalCard.glade.h:1 #: ../interface/Preferences.glade.h:2 msgid " " msgstr " " #: ../interface/CompanyCard.glade.h:2 ../interface/PersonalCard.glade.h:2 msgid "Addresses" msgstr "Indirizzi" #: ../interface/CompanyCard.glade.h:3 ../interface/PersonalCard.glade.h:3 msgid "Card" msgstr "Scheda" #: ../interface/CompanyCard.glade.h:4 msgid "Company infos" msgstr "Informazioni società" #: ../interface/CompanyCard.glade.h:5 msgid "Company's contacts" msgstr "Contatti società" #: ../interface/CompanyCard.glade.h:6 ../interface/PersonalCard.glade.h:5 msgid "Net address type" msgstr "Tipi indirizzi di rete" #: ../interface/CompanyCard.glade.h:7 ../interface/PersonalCard.glade.h:6 msgid "Net addresses list" msgstr "Lista indirizzi di rete" #: ../interface/CompanyCard.glade.h:8 ../interface/PersonalCard.glade.h:7 msgid "Net addresses" msgstr "Indirizzi di rete" #: ../interface/CompanyCard.glade.h:9 ../interface/PersonalCard.glade.h:8 msgid "Notes" msgstr "Note" #: ../interface/CompanyCard.glade.h:10 ../interface/PersonalCard.glade.h:12 msgid "Telephone type" msgstr "Tipo telefono" #: ../interface/CompanyCard.glade.h:11 msgid "Telephones list" msgstr "Elenco telefoni" #: ../interface/CompanyCard.glade.h:12 msgid "Telephones" msgstr "Telefoni" #: ../interface/CompanyCard.glade.h:13 msgid "Add cards for contact into company" msgstr "Aggiungi una scheda per il contatto nella società" #: ../interface/CompanyCard.glade.h:14 msgid "C_ompany data" msgstr "Dati _società" #: ../interface/CompanyCard.glade.h:15 ../interface/PersonalCard.glade.h:15 msgid "C_ountry" msgstr "Naz_ione" #: ../interface/CompanyCard.glade.h:16 ../interface/PersonalCard.glade.h:16 msgid "Card _rate" msgstr "Giudizio _scheda" #: ../interface/CompanyCard.glade.h:17 ../interface/PersonalCard.glade.h:17 msgid "Cate_gories" msgstr "Cate_gorie" #: ../interface/CompanyCard.glade.h:18 msgid "Co_mpany logo" msgstr "_Logo società" #: ../interface/CompanyCard.glade.h:19 msgid "Contact_s" msgstr "Contat_ti" #: ../interface/CompanyCard.glade.h:20 msgid "Net a_ddress" msgstr "In_dirizzo di rete" #: ../interface/CompanyCard.glade.h:21 msgid "Not_es" msgstr "No_te" #: ../interface/CompanyCard.glade.h:22 ../interface/PersonalCard.glade.h:33 msgid "Str_eet" msgstr "_Via" #: ../interface/CompanyCard.glade.h:23 ../interface/PersonalCard.glade.h:37 msgid "_Address type" msgstr "Tipo in_dirizzo" #: ../interface/CompanyCard.glade.h:24 ../interface/PersonalCard.glade.h:38 msgid "_Addresses" msgstr "Indiri_zzi" #: ../interface/CompanyCard.glade.h:25 ../interface/PersonalCard.glade.h:41 msgid "_Card" msgstr "Sc_heda" #: ../interface/CompanyCard.glade.h:26 ../interface/PersonalCard.glade.h:42 msgid "_Card label" msgstr "_Etichetta scheda" #: ../interface/CompanyCard.glade.h:27 ../interface/PersonalCard.glade.h:44 msgid "_City" msgstr "_Città" #: ../interface/CompanyCard.glade.h:28 msgid "_Company name" msgstr "_Nome società" #: ../interface/CompanyCard.glade.h:29 msgid "_Company notes" msgstr "_Note società" #: ../interface/CompanyCard.glade.h:30 ../interface/PersonalCard.glade.h:48 msgid "_Email" msgstr "Emai_l" #: ../interface/CompanyCard.glade.h:31 ../interface/PersonalCard.glade.h:56 msgid "_Lock card" msgstr "Scheda _bloccata" #: ../interface/CompanyCard.glade.h:32 ../interface/PersonalCard.glade.h:59 msgid "_Modify" msgstr "_Modifica" #: ../interface/CompanyCard.glade.h:33 ../interface/PersonalCard.glade.h:60 msgid "_Net" msgstr "_Rete" #: ../interface/CompanyCard.glade.h:34 ../interface/PersonalCard.glade.h:61 msgid "_Net url" msgstr "Indiriz_zo di rete" #: ../interface/CompanyCard.glade.h:35 ../interface/PersonalCard.glade.h:63 msgid "_Number" msgstr "Nu_mero" #: ../interface/CompanyCard.glade.h:36 ../interface/PersonalCard.glade.h:67 msgid "_Province" msgstr "Provi_ncia" #: ../interface/CompanyCard.glade.h:37 ../interface/PersonalCard.glade.h:69 msgid "_State" msgstr "_Stato" #. Taxpayer number (codice fiscale) VAT (Value Added tax, Partita IVA) #: ../interface/CompanyCard.glade.h:39 msgid "_Taxpayer number/VAT" msgstr "_Codice fiscale/P. IVA" #: ../interface/CompanyCard.glade.h:40 ../interface/PersonalCard.glade.h:70 msgid "_Telephones" msgstr "Tel_efoni" #: ../interface/CompanyCard.glade.h:41 ../interface/PersonalCard.glade.h:73 msgid "_Zip code" msgstr "_Cap" #: ../interface/CompanyCard.glade.h:42 msgid "_customer care" msgstr "_assistenza clienti" #: ../interface/CompanyCard.glade.h:43 msgid "_fax" msgstr "fa_x" #: ../interface/CompanyCard.glade.h:44 msgid "_green" msgstr "numero _verde" #: ../interface/CompanyCard.glade.h:45 msgid "_operator" msgstr "cen_tralino" #: ../interface/CompanyCard.glade.h:46 msgid "_other" msgstr "altr_o" #: ../interface/MainWindow.glade.h:2 msgid "Addressbooks" msgstr "Rubriche" #: ../interface/MainWindow.glade.h:3 msgid "Card's data" msgstr "Dati del contatto" #: ../interface/MainWindow.glade.h:4 msgid "Add a company card" msgstr "Aggiungi una scheda societaria" #: ../interface/MainWindow.glade.h:5 ../interface/Menu.glade.h:3 msgid "Add a personal card" msgstr "Aggiungi un contatto" #: ../interface/MainWindow.glade.h:6 msgid "Create a new addressbook" msgstr "Crea una nuova rubrica" #: ../interface/MainWindow.glade.h:7 msgid "Create a new card" msgstr "Crea una nuova scheda" #: ../interface/MainWindow.glade.h:8 msgid "Delete selected card" msgstr "Cancella la scheda selezionata" #: ../interface/MainWindow.glade.h:9 ../interface/Menu.glade.h:20 msgid "Delete the selected card" msgstr "Cancella la scheda selezionata" #: ../interface/MainWindow.glade.h:10 msgid "Modify selected card" msgstr "Modifica la scheda selezionata" #: ../interface/MainWindow.glade.h:11 ../interface/Menu.glade.h:29 msgid "Modify the selected card" msgstr "Modifica la scheda selezionata" #: ../interface/MainWindow.glade.h:13 msgid "Open/Close the trash" msgstr "Apri/chiudi il cestino" #: ../interface/MainWindow.glade.h:14 msgid "Print the selected card" msgstr "Stampa la scheda selezionata" #: ../interface/MainWindow.glade.h:15 msgid "Quit Rubrica" msgstr "Esci da rubrica" #: ../interface/MainWindow.glade.h:16 msgid "Save the active addressbook" msgstr "Salva la rubrica attualmente attiva" #: ../interface/MainWindow.glade.h:17 msgid "Show the first card in the addressbook" msgstr "Mostra la prima scheda nella rubrica" #: ../interface/MainWindow.glade.h:18 msgid "Show the last card in the addressbook" msgstr "Mostra l'ultima scheda nella rubrica" #: ../interface/MainWindow.glade.h:19 msgid "Show the next card in the addressbook" msgstr "Mostra la prossima scheda nella rubrica" #: ../interface/MainWindow.glade.h:20 msgid "Show the previous card in the addressbook" msgstr "Mostra la scheda precedente nella rubrica" #: ../interface/Menu.glade.h:1 msgid "Add a company card " msgstr "Aggiungi una scheda societaria" #: ../interface/Menu.glade.h:2 msgid "Add a company card to addressbook" msgstr "Aggiungi una scheda societaria alla rubrica" #: ../interface/Menu.glade.h:4 msgid "Add a personal card to addressbook" msgstr "Aggiungi un contatto alla rubrica" #: ../interface/Menu.glade.h:5 msgid "Advanced search" msgstr "Ricerca avanzata" #: ../interface/Menu.glade.h:6 msgid "All" msgstr "Tutte" #: ../interface/Menu.glade.h:8 msgid "Assignments" msgstr "Incarichi" #: ../interface/Menu.glade.h:10 msgid "Cards" msgstr "Schede" #: ../interface/Menu.glade.h:11 msgid "Choose where perform a search" msgstr "Scegliere dove effettuare la ricerca" #: ../interface/Menu.glade.h:12 msgid "Cities" msgstr "Città" #: ../interface/Menu.glade.h:14 msgid "Companies" msgstr "Compagnie" #: ../interface/Menu.glade.h:16 msgid "Contacts" msgstr "Contatti" #: ../interface/Menu.glade.h:17 msgid "Countries" msgstr "Nazione" #: ../interface/Menu.glade.h:19 msgid "Delete card" msgstr "Cancella la scheda" #: ../interface/Menu.glade.h:22 msgid "Emails" msgstr "Email" #: ../interface/Menu.glade.h:24 msgid "First names" msgstr "Nomi" #: ../interface/Menu.glade.h:26 msgid "Last names" msgstr "Cognomi" #: ../interface/Menu.glade.h:27 msgid "Men" msgstr "Uomini" #: ../interface/Menu.glade.h:28 msgid "Modify card" msgstr "Modifica una scheda" #: ../interface/Menu.glade.h:31 msgid "Professions" msgstr "Professioni" #: ../interface/Menu.glade.h:32 msgid "Search on" msgstr "Cerca su" #: ../interface/Menu.glade.h:33 msgid "Select the columns to swow in addressbook's view" msgstr "Scegliere le colonne da mostrare nella vista rubriche" #: ../interface/Menu.glade.h:34 msgid "Show cards" msgstr "Mostra le schede" #: ../interface/Menu.glade.h:35 msgid "Show columns" msgstr "Mostra le colonne" #: ../interface/Menu.glade.h:37 msgid "Telephone numbers" msgstr "Numeri telefonici" #: ../interface/Menu.glade.h:39 msgid "Web urls" msgstr "Indirizzi web" #: ../interface/Menu.glade.h:40 msgid "Women" msgstr "Donne" #: ../interface/Menu.glade.h:41 msgid "companies" msgstr "compagnie" #: ../interface/Menu.glade.h:42 msgid "few" msgstr "poco" #: ../interface/Menu.glade.h:43 msgid "hight" msgstr "alto" #: ../interface/Menu.glade.h:44 msgid "none" msgstr "nessuno" #: ../interface/Menu.glade.h:45 msgid "normal" msgstr "normale" #: ../interface/Menu.glade.h:46 msgid "very hight" msgstr "molto alto" #: ../interface/Menu.glade.h:47 msgid "with rate" msgstr "con giudizio" #: ../interface/MenuTrash.glade.h:1 msgid "Destroy card" msgstr "Cancella la scheda" #: ../interface/MenuTrash.glade.h:2 msgid "Empty trash" msgstr "Svuota il cestino" #: ../interface/MenuTrash.glade.h:3 msgid "Recovery card" msgstr "Recupera la scheda" #: ../interface/NewGroup.glade.h:2 msgid "Add new group" msgstr "Aggiungi un gruppo" #: ../interface/NewGroup.glade.h:3 msgid "Rubrica group manager" msgstr "Gestore dei gruppi di Rubrica" #: ../interface/NewGroup.glade.h:4 msgid "choose pixmap..." msgstr "scegli un'immagine..." #: ../interface/NewGroup.glade.h:5 msgid "group label" msgstr "etichetta del gruppo" #: ../interface/NewGroup.glade.h:6 msgid "group pixmap" msgstr "immagine del gruppo" #: ../interface/PersonalCard.glade.h:4 msgid "Contact's assignment" msgstr "Incarico del contatto" #: ../interface/PersonalCard.glade.h:9 msgid "Personal data" msgstr "Dati personali" #: ../interface/PersonalCard.glade.h:10 msgid "Telephone list" msgstr "Elenco telefoni" #: ../interface/PersonalCard.glade.h:11 msgid "Telephone numbers" msgstr "Numeri telefonici" #: ../interface/PersonalCard.glade.h:13 msgid "A_ssignment" msgstr "Incaric_o" #: ../interface/PersonalCard.glade.h:14 msgid "Anni_versary" msgstr "Anni_versario" #: ../interface/PersonalCard.glade.h:18 msgid "Collaborator's p_hone" msgstr "Telefono col_laboratore" #: ../interface/PersonalCard.glade.h:19 msgid "E_kiga" msgstr "E_kiga" #: ../interface/PersonalCard.glade.h:20 msgid "Ir_c" msgstr "Ir_c" #: ../interface/PersonalCard.glade.h:21 msgid "M_sn" msgstr "Ms_n" #: ../interface/PersonalCard.glade.h:22 msgid "Manag_er's phone" msgstr "Tele_fono dirigente" #: ../interface/PersonalCard.glade.h:23 msgid "N_otes" msgstr "N_ote" #: ../interface/PersonalCard.glade.h:24 msgid "Net a_ddress or nickname" msgstr "Indirizzo di rete o nickna_me" #: ../interface/PersonalCard.glade.h:25 msgid "O_rganization" msgstr "Or_ganizzazione" #: ../interface/PersonalCard.glade.h:26 msgid "P_hoto" msgstr "_Foto" #: ../interface/PersonalCard.glade.h:27 msgid "Partner's _birthday" msgstr "Data di _nascita del partner" #: ../interface/PersonalCard.glade.h:28 msgid "Partner's _name" msgstr "Nome del _partner" #: ../interface/PersonalCard.glade.h:29 msgid "Prefi_x" msgstr "Pref_isso" #: ../interface/PersonalCard.glade.h:30 msgid "Prevent accidental card deletion" msgstr "Previene una cancellazione accidentale" #: ../interface/PersonalCard.glade.h:31 msgid "Public _key" msgstr "Chiave _pubblica" #: ../interface/PersonalCard.glade.h:32 msgid "Show calendar" msgstr "Mostra il calendario" #: ../interface/PersonalCard.glade.h:34 msgid "Sub de_partment" msgstr "Sotto di_partimento" #: ../interface/PersonalCard.glade.h:35 msgid "The delivery address" msgstr "L'indirizzo a cui consegnare" #: ../interface/PersonalCard.glade.h:36 msgid "This contact is married or he/she has got a partner" msgstr "Il contatto è sposato o ha un compagno" #: ../interface/PersonalCard.glade.h:39 msgid "_Assignment" msgstr "I_ncarico" #: ../interface/PersonalCard.glade.h:40 msgid "_Birthday" msgstr "_Data di nascita" #: ../interface/PersonalCard.glade.h:43 msgid "_Cellular" msgstr "_Cellulare" #: ../interface/PersonalCard.glade.h:45 msgid "_Collaborator" msgstr "Colla_boratore" #: ../interface/PersonalCard.glade.h:46 msgid "_Contact has a partner" msgstr "Il contatto _ha un compagno/a" #: ../interface/PersonalCard.glade.h:47 msgid "_Department" msgstr "Diparti_mento" #: ../interface/PersonalCard.glade.h:49 msgid "_Fax" msgstr "Fa_x" #: ../interface/PersonalCard.glade.h:50 msgid "_First name" msgstr "No_me" #: ../interface/PersonalCard.glade.h:51 msgid "_Genre" msgstr "_Genere" #: ../interface/PersonalCard.glade.h:52 msgid "" "_Hobbies and\n" "other notes " msgstr "Hobb_y e altre note" #: ../interface/PersonalCard.glade.h:54 msgid "_Home" msgstr "_Casa" #: ../interface/PersonalCard.glade.h:55 msgid "_Last name" msgstr "Co_gnome" #: ../interface/PersonalCard.glade.h:57 msgid "_Manager" msgstr "_Dirigente" #: ../interface/PersonalCard.glade.h:58 msgid "_Messenger" msgstr "Me_ssenger" #: ../interface/PersonalCard.glade.h:62 msgid "_Nickname" msgstr "So_prannome" #: ../interface/PersonalCard.glade.h:64 msgid "_Other" msgstr "Altr_o" #: ../interface/PersonalCard.glade.h:65 msgid "_Personal data" msgstr "D_ati personali" #: ../interface/PersonalCard.glade.h:66 msgid "_Profession" msgstr "Pro_fessione" #: ../interface/PersonalCard.glade.h:68 msgid "_Second name" msgstr "_Secondo nome" #: ../interface/PersonalCard.glade.h:71 msgid "_Title" msgstr "Tito_lo" #: ../interface/PersonalCard.glade.h:72 msgid "_Work" msgstr "_Lavoro" #: ../interface/PersonalCard.glade.h:74 msgid "a_im" msgstr "a_im" #: ../interface/PersonalCard.glade.h:75 msgid "ic_q" msgstr "ic_q" #: ../interface/PersonalCard.glade.h:76 msgid "ja_bber" msgstr "_jabber" #: ../interface/PersonalCard.glade.h:77 msgid "ya_hoo" msgstr "_yahoo" #: ../interface/Preferences.glade.h:1 msgid " " msgstr " " #: ../interface/Preferences.glade.h:3 msgid "Actions" msgstr "Azioni" #: ../interface/Preferences.glade.h:4 msgid "Addressbooks and folder" msgstr "Rubriche e cartelle" #: ../interface/Preferences.glade.h:5 msgid "Appearance" msgstr "Aspetto" #: ../interface/Preferences.glade.h:6 msgid "Fonts" msgstr "Caratteri" #: ../interface/Preferences.glade.h:7 msgid "Urls managers" msgstr "Gestione degli url" #: ../interface/Preferences.glade.h:8 msgid "A_ppearance" msgstr "As_petto" #: ../interface/Preferences.glade.h:9 msgid "Addressbooks _compression rate" msgstr "_Livello di compressione delle rubriche" #: ../interface/Preferences.glade.h:10 msgid "Addressbooks _management" msgstr "Gesti_one delle rubriche" #: ../interface/Preferences.glade.h:11 msgid "Addressbooks and _folder" msgstr "Rubriche e _cartelle" #: ../interface/Preferences.glade.h:12 msgid "Ch_oose an addressbook" msgstr "Sce_gli una rubrica" #: ../interface/Preferences.glade.h:13 msgid "Choose the addressbook that you want open at rubrica's start" msgstr "" "_Scegli le rubriche da caricare automaticamente alla patenza di rubrica " #: ../interface/Preferences.glade.h:14 msgid "Command" msgstr "Comando" #: ../interface/Preferences.glade.h:15 msgid "Confirm e_xit from rubrica" msgstr "Confermare l'u_scita da rubrica" #: ../interface/Preferences.glade.h:16 msgid "Make back_up before overwrite" msgstr "Effettua il bac_kup prima di sovrascrivere una rubrica" #: ../interface/Preferences.glade.h:17 msgid "Manage _email urls with" msgstr "Gestisci gli indirizzi _email con" #: ../interface/Preferences.glade.h:18 msgid "Manage _web urls with" msgstr "Gestisci gli indirizzi _web con" #: ../interface/Preferences.glade.h:19 msgid "Manage i_rc urls with" msgstr "Gestisci gli indirizzi di i_rc con" #: ../interface/Preferences.glade.h:20 msgid "Toolbar will sho_w" msgstr "La toolbar _mostra" #: ../interface/Preferences.glade.h:21 msgid "_Data font" msgstr "Carattere per i _dati" #: ../interface/Preferences.glade.h:22 msgid "_Launch Ekiga when telephone number is clicked" msgstr "_Esegui Ekiga quando si seleziona un numero di telefono" #: ../interface/Preferences.glade.h:23 msgid "_Load those addressbooks at rubrica's start" msgstr "Carica queste rubriche auto_maticamente" #: ../interface/Preferences.glade.h:24 msgid "_Save addressbooks after any change" msgstr "_Salva le rubriche dopo ogni modifica" #: ../interface/Preferences.glade.h:25 msgid "_Save addressbooks in this folder" msgstr "_Salva le rubriche in questa cartella" #: ../interface/Preferences.glade.h:26 msgid "_Urls management" msgstr "Gestione degli _url" #: ../interface/Search.glade.h:1 msgid "Search rules" msgstr "Impostazioni della ricerca" #: ../interface/Search.glade.h:2 msgid "Rubrica search" msgstr "Ricerca di rubrica" #: ../interface/Search.glade.h:3 msgid "_Search on date" msgstr "Cerca sulle _date" #: ../interface/Search.glade.h:4 msgid "_date" msgstr "_data" #: ../interface/Search.glade.h:5 msgid "_find string" msgstr "_cerca una stringa" #: ../interface/Search.glade.h:6 msgid "a_nd date" msgstr "e d_ata" #: ../interface/Search.glade.h:7 msgid "search on _creation date" msgstr "Cerca sulla data di _creazione" #: ../interface/Search.glade.h:8 msgid "search on l_ast change date" msgstr "cerca sulla data di ultima modifi_ca" #: ../interface/Search.glade.h:9 msgid "searching dat_e is" msgstr "La da_ta da cercare è" #: ../libral/address.c:60 msgid "preferred" msgstr "favorito" #: ../libral/address.c:61 msgid "residence" msgstr "residenza" #: ../libral/address.c:63 msgid "parcel" msgstr "consegna pacchi" #: ../libral/address.c:64 msgid "postal" msgstr "postale" #: ../libral/address.c:65 msgid "international" msgstr "internazionale" #: ../libral/address.c:66 msgid "domestic" msgstr "interno" #: ../libral/address.c:67 msgid "registered office" msgstr "sede centrale" #: ../libral/address.c:68 msgid "subsidiary company" msgstr "filiale" #: ../libral/address.c:69 ../libral/telephone.c:46 msgid "other" msgstr "altro" #: ../libral/manager.c:187 #, c-format msgid "" "\n" "error loading plugin %s" msgstr "" "\n" "errore durante il caricamento del plugin %s" #: ../libral/plugin.c:310 msgid "Opening plugin" msgstr "Sto caricando il plugin" #: ../libral/plugin.c:321 ../libral/plugin.c:330 #, c-format msgid "" "\n" "Can't get initialization handle: %s" msgstr "" "\n" "Impossibile inizializzare l'handle: %s" #: ../libral/rlib.c:118 ../libral/rlib.c:122 ../libral/rlib.c:126 msgid "" "\n" "Can't initialize r" msgstr "" "\n" "Impossibile inizializzare r" #: ../libral/telephone.c:41 msgid "home" msgstr "casa" #: ../libral/telephone.c:43 msgid "fax" msgstr "fax" #: ../libral/telephone.c:44 msgid "cellphone" msgstr "cellulare" #: ../libral/telephone.c:45 msgid "pager" msgstr "cercapersone" #: ../libral/telephone.c:47 msgid "operator" msgstr "centralino" #: ../libral/telephone.c:48 msgid "green" msgstr "numero verde" #: ../libral/telephone.c:49 msgid "customer care" msgstr "assistenza clienti" #: ../rubrica2.keys.in.h:1 msgid "Gnome Addressbook manager" msgstr "Gestore di indirizzi per Gnome" #: ../rubrica2.desktop.in.h:1 msgid "Manage contacts and addresses" msgstr "Gestore di contatti e indirizzi" #: ../rubrica2.desktop.in.h:2 msgid "Rubrica Addressbook" msgstr "Rubrica" #~ msgid "Card destroyed" #~ msgstr "Scheda distrutta" #~ msgid "" #~ "Registered office\n" #~ "Subsidiary company\n" #~ "Other\n" #~ "Unknow" #~ msgstr "" #~ "Sede legale\n" #~ "Filiale\n" #~ "Altro\n" #~ "Sconosciuto" #~ msgid "" #~ "Pref\n" #~ "Home\n" #~ "Work\n" #~ "Parcel\n" #~ "Postal\n" #~ "Intl\n" #~ "Dom\n" #~ "Compay\n" #~ "Unknown" #~ msgstr "" #~ "Pref\n" #~ "Casa\n" #~ "Lavoro\n" #~ "Parcel\n" #~ "Postale\n" #~ "Intl\n" #~ "Dom\n" #~ "Società\n" #~ "Sconosciuto" #~ msgid "preferred delivery address" #~ msgstr "indirizzo preferito" #~ msgid "residence delivery address" #~ msgstr "residenza" #~ msgid "work delivery address" #~ msgstr "indirizzo di lavoro" #~ msgid "postal delivery address" #~ msgstr "postale" #~ msgid "domestic delivery address" #~ msgstr "domestico" #~ msgid "company delivery address" #~ msgstr "società" #~ msgid "_Find" #~ msgstr "_Trova" #~ msgid "_creation date" #~ msgstr "data c_reazione" #~ msgid "Deleted cards: " #~ msgstr "Schede cancellate" #~ msgid "rank:" #~ msgstr "giudizio:" #~ msgid "Can't read plugin for file: %s" #~ msgstr "Impossibile leggere il plugin per il file: %s" #~ msgid "Card: " #~ msgstr "Scheda: " #~ msgid "Nickname: " #~ msgstr "Soprannome: " #~ msgid "Title: " #~ msgstr "Titolo: " #~ msgid "Prefix: " #~ msgstr "Prefisso: " #~ msgid "Profession: " #~ msgstr "Professione: " #~ msgid "Birthday: " #~ msgstr "Data di nascita: " #~ msgid "Addresses\n" #~ msgstr "Indirizzi\n" #~ msgid "Net\n" #~ msgstr "Rete\n" #~ msgid "Telephone\n" #~ msgstr "Telefono\n" #~ msgid "" #~ "\n" #~ "\tContact has a partner" #~ msgstr "" #~ "\n" #~ "\tIl contatto ha un partner" #~ msgid "" #~ "\n" #~ "\tanniversary: " #~ msgstr "" #~ "\n" #~ "\tanniversario: " #~ msgid "" #~ "\n" #~ "\tPublic key: " #~ msgstr "" #~ "\n" #~ "\tChiave pubblica: " #~ msgid "Set data" #~ msgstr "Imposta la data" #~ msgid "Show all cards that belong to selected group " #~ msgstr "Mostra le schede che appartengono al gruppo selezionato" #~ msgid "C_alendar..." #~ msgstr "C_alendario..." #~ msgid "Results" #~ msgstr "Risultati" #~ msgid "_and" #~ msgstr "_e" #~ msgid "" #~ "is\n" #~ "before\n" #~ "after\n" #~ "between" #~ msgstr "" #~ "è\n" #~ "prima\n" #~ "dopo\n" #~ "tra" #, fuzzy #~ msgid " \n" #~ msgstr " " #~ msgid "Add contact" #~ msgstr "Aggiungi un contatto" #~ msgid "All cards" #~ msgstr "Tutte le schede" #~ msgid "Company cards" #~ msgstr "Schede società" #~ msgid "Men cards" #~ msgstr "Schede maschili" #~ msgid "card ran_k" #~ msgstr "giudi_zio scheda" #~ msgid "_Net addresses" #~ msgstr "Indirizzi di _rete" #~ msgid "_Deletable card" #~ msgstr "Scheda canc_ellabile" #~ msgid "_Telephone" #~ msgstr "_Telefono" #~ msgid "\t%s\n" #~ msgstr "\t%s\n" #~ msgid "Addressb_ook to autoload" #~ msgstr "Rubriche da caricare aut_omaticamente" #, fuzzy #~ msgid "Deleted items: " #~ msgstr "Schede cancellate: " #~ msgid "1 card in this group" #~ msgstr "1 scheda nel gruppo" #~ msgid "\t%s: " #~ msgstr "\t%s: " #~ msgid "_Search" #~ msgstr "_Cerca" #~ msgid "Assigment" #~ msgstr "Incarico" #~ msgid "Show" #~ msgstr "Mostra" #~ msgid "Show assignment column" #~ msgstr "Mostra la colonna degli incarichi" #~ msgid "Show company column" #~ msgstr "Mostra la colonna delle società" #~ msgid "Show country column" #~ msgstr "Mostra la colonna degli stati" #~ msgid "Show email column" #~ msgstr "Mostra la colonna delle email" #~ msgid "Show first name column" #~ msgstr "Mostra colonna dei nomi" rubrica-2.0/po/uk.po0000644000175000017500000011547010620135177013203 0ustar seb128seb128# Copyright (C) 2007 Free Software Foundation, Inc. # Iryna Rtvelishvili , 2007. msgid "" msgstr "" "Project-Id-Version: rubrica-1.0.16\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-05-08 19:59+0200\n" "Last-Translator: Iryna Rtveliashvili \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" #: ../src/app.c:55 msgid "all groups" msgstr "вÑÑ– групи" #: ../src/app.c:57 msgid "favorites" msgstr "улюблені" #: ../src/app.c:58 msgid "hot contacts" msgstr "нагальні зв'Ñзки" #: ../src/app.c:59 msgid "friends" msgstr "друзі" #: ../src/app.c:60 msgid "heart" msgstr "кохані" #: ../src/app.c:61 msgid "relatives" msgstr "родичі" #: ../src/app.c:63 msgid "holidays" msgstr "ÑвÑта" #: ../src/app.c:64 msgid "hobbies" msgstr "захопленнÑ" #: ../src/app.c:65 msgid "sport" msgstr "Ñпорт" #: ../src/app.c:67 msgid "bussines" msgstr "бізнеÑ" #: ../src/app.c:68 msgid "company" msgstr "компаніÑ" #: ../src/app.c:69 msgid "legal" msgstr "юриÑпруденціÑ" #: ../src/app.c:70 msgid "office" msgstr "офіÑ" #: ../src/app.c:71 ../libral/address.c:62 ../libral/telephone.c:42 msgid "work" msgstr "робоÑ‚а" #: ../src/app.c:72 msgid "customer" msgstr "клієнт" #: ../src/app.c:73 msgid "strategies" msgstr "Ñтратегії" #: ../src/app.c:75 msgid "free software" msgstr "вільні програми" #: ../src/app.c:76 msgid "programmers" msgstr "програміÑти" #: ../src/app.c:77 msgid "BSD friends" msgstr "BSD друзі" #: ../src/app.c:79 msgid "university" msgstr "універÑитет" #: ../src/app.c:292 ../src/app.c:1538 ../src/callbacks.c:310 #: ../src/callbacks.c:343 ../src/cards_view.c:540 ../libral/abook.c:846 msgid "no name" msgstr "без імені" #: ../src/app.c:381 #, fuzzy, c-format msgid "%d cards found" msgstr "%d schede in questo gruppo" #: ../src/app.c:383 #, fuzzy, c-format msgid "%d card found" msgstr "Mostra la colonna delle schede" #: ../src/app.c:432 #, fuzzy, c-format msgid "Card %s successfully destroyed" msgstr "Файл %s уÑпішно збережено." #: ../src/app.c:596 #, c-format msgid "Can't save the file %s" msgstr "Ðе можу зберегти файл %s" #: ../src/app.c:602 #, c-format msgid "Can't overwrite the file %s" msgstr "Ðе можу перезапиÑати файл %s" #: ../src/app.c:699 #, c-format msgid "" "\n" "Can't find %s in your path" msgstr "" #: ../src/app.c:710 #, c-format msgid "Launching %s %s. Please wait..." msgstr "" #: ../src/app.c:712 #, c-format msgid "" "\n" "Launching %s %s.\n" "Please wait..." msgstr "" #: ../src/app.c:1068 msgid "_Personal card" msgstr "ОÑобиÑта картка" #: ../src/app.c:1072 msgid "_Company card" msgstr "Картка компанії" #. Append Trash page in notebook and initialize #. #: ../src/app.c:1247 msgid "Trash" msgstr "Cestino" #: ../src/app.c:1265 #, fuzzy msgid "Search results" msgstr "Правила пошуку" #: ../src/app.c:1585 ../src/cards_view.c:396 #, c-format msgid "Error loading file '%s': %s" msgstr "" #: ../src/calendar.c:137 ../src/calendar.c:451 ../libral/address.c:70 #: ../libral/date.c:238 ../libral/date.c:381 ../libral/notes.c:544 #: ../libral/notes.c:562 ../libral/telephone.c:50 msgid "unknown" msgstr "невідомо" #: ../src/callbacks.c:89 ../src/callbacks.c:371 #, c-format msgid "File %s was successfully saved." msgstr "Файл %s уÑпішно збережено." #: ../src/callbacks.c:141 msgid "Do you want exit from rubrica?" msgstr "Ви бажаєте вийти з rubrica?" #: ../src/callbacks.c:160 #, c-format msgid "" "Unsaved data will be lost.\n" "Do you want to close %s without saving?" msgstr "" #: ../src/callbacks.c:198 ../interface/MainWindow.glade.h:12 msgid "Open an addressbook" msgstr "Відкрити адреÑну книгу" #: ../src/callbacks.c:286 msgid "Save addressbook as..." msgstr "Зберегти адреÑну книгу Ñк..." #: ../src/callbacks.c:398 msgid "Card cutted" msgstr "Картку вирізано" #: ../src/callbacks.c:418 msgid "Card copied" msgstr "Картку Ñкопійовано" #: ../src/callbacks.c:435 msgid "Card pasted" msgstr "Картку вÑтавлено" #: ../src/callbacks.c:498 msgid "Card moved to trash" msgstr "Картку відправлено у Ñмітник" #: ../src/callbacks.c:502 msgid "This card is locked. Modify card's property and retry." msgstr "" "Картку неможливо змінити. Змініть влаÑтивоÑті картки та Ñпробуйте знову." #: ../src/callbacks.c:505 msgid "" "This card is locked.\n" "Modify card's property and retry." msgstr "" "Картку неможливо змінити.\n" "Змініть влаÑтивоÑті картки та Ñпробуйте знову." #: ../src/callbacks.c:517 ../src/callbacks.c:521 msgid "" "You haven't selected any card.\n" "Please select the card that you want to delete" msgstr "" "Ви не обрали жодної картки.\n" "Будь лаÑка, оберіть картку Ñку Ви хочете знищити" #: ../src/callbacks.c:538 msgid "" "\n" "Warning. This addressbook is empty" msgstr "" "\n" "ПопередженнÑ: Ñ†Ñ Ð°Ð´Ñ€ÐµÑна книга порожнÑ" #: ../src/callbacks.c:548 msgid "" "\n" "Warning. You must select a card first" msgstr "" "\n" "ПопередженÑ. Ви повинні Ñпочатку обрати картку" #: ../src/callbacks.c:599 msgid "Rubrica, an addressbook for GNOME environment" msgstr "Rubrica, адреÑна книга Ð´Ð»Ñ Ñередовища GNOME" #: ../src/callbacks.c:601 msgid "Copyright Nicola Fragale " msgstr "Copyright Nicola Fragale " #: ../src/callbacks.c:609 msgid "Rubrica's home page" msgstr "Ð”Ð¾Ð¼Ð°ÑˆÐ½Ñ Ñторінка Rubrica" #: ../src/callbacks.c:626 msgid "Feature not yet implemented" msgstr "Цю функціональніÑть ще не реалізовано" #: ../src/cards_view.c:125 ../src/cards_view.c:533 #, fuzzy, c-format msgid "Cards in this addressbook: %-5d Deleted cards: %-5d" msgstr "Картки цієї адреÑної книги: " #. display card's name #: ../src/cards_view.c:242 ../src/data_view.c:825 ../src/data_view.c:872 #: ../src/models.c:209 ../src/search_view.c:81 ../src/trash_view.c:111 #: ../interface/Menu.glade.h:9 msgid "Card" msgstr "Картка" #: ../src/cards_view.c:254 msgid "First Name" msgstr "Ім'Ñ" #: ../src/cards_view.c:267 msgid "Last Name" msgstr "Прізвище" #: ../src/cards_view.c:280 ../src/data_view.c:900 ../interface/Menu.glade.h:30 msgid "Profession" msgstr "ПрофеÑÑ–Ñ" #: ../src/cards_view.c:292 ../src/models.c:166 ../interface/Menu.glade.h:13 msgid "City" msgstr "МіÑто" #: ../src/cards_view.c:304 ../interface/Menu.glade.h:18 msgid "Country" msgstr "Країна" #: ../src/cards_view.c:316 ../src/trash_view.c:121 #: ../interface/Menu.glade.h:38 msgid "Web" msgstr "Web" #: ../src/cards_view.c:328 ../src/models.c:239 ../src/trash_view.c:126 #: ../interface/Menu.glade.h:21 msgid "Email" msgstr "Email" #: ../src/cards_view.c:341 ../src/data_view.c:1176 ../src/models.c:233 #: ../src/trash_view.c:131 ../interface/Menu.glade.h:36 msgid "Telephone" msgstr "Телефон" #: ../src/cards_view.c:354 ../interface/Menu.glade.h:15 msgid "Company" msgstr "КомпаніÑ" #: ../src/cards_view.c:366 ../src/data_view.c:1071 ../src/models.c:227 #: ../interface/Menu.glade.h:7 msgid "Assignment" msgstr "ПоÑада" #: ../src/data_view.c:833 msgid "Taxpayer number/VAT" msgstr "" #: ../src/data_view.c:883 #, fuzzy msgid "Name" msgstr "Ім'Ñ: " #: ../src/data_view.c:897 #, fuzzy msgid "Nickname" msgstr "ПрізвиÑько" #: ../src/data_view.c:898 #, fuzzy msgid "Title" msgstr "ЗваннÑ" #: ../src/data_view.c:899 #, fuzzy msgid "Prefix" msgstr "ЗвертаннÑ" #: ../src/data_view.c:905 #, fuzzy msgid "Birthday" msgstr "День народженнÑ" #: ../src/data_view.c:928 #, fuzzy msgid "Card's groups" msgstr "Групи картки\n" #: ../src/data_view.c:963 #, fuzzy msgid "Addresses" msgstr "ÐдреÑи" #: ../src/data_view.c:1068 msgid "Work" msgstr "Робота" #: ../src/data_view.c:1072 msgid "Organization" msgstr "ОрганізаціÑ" #: ../src/data_view.c:1073 msgid "Department" msgstr "Відділ" #: ../src/data_view.c:1074 msgid "Subdepartment" msgstr "Підрозділ" #: ../src/data_view.c:1075 msgid "Manager" msgstr "Керівник" #: ../src/data_view.c:1076 msgid "Manager's telephone" msgstr "Телефон керівника" #: ../src/data_view.c:1077 msgid "Collaborator" msgstr "Співробітник" #: ../src/data_view.c:1078 msgid "Collaborator's telephone" msgstr "Телефон Ñпівробітника" #: ../src/data_view.c:1104 #, fuzzy msgid "Net" msgstr "Мережа" #: ../src/data_view.c:1223 ../src/data_view.c:1269 msgid "Notes" msgstr "Ðотатки" #: ../src/data_view.c:1228 #, fuzzy msgid "Contact has a partner" msgstr "Має партнера" #: ../src/data_view.c:1231 #, fuzzy msgid "partner's name" msgstr "" "\n" "\tім'Ñ Ð¿Ð°Ñ€Ñ‚Ð½ÐµÑ€Ð°" #: ../src/data_view.c:1235 #, fuzzy msgid "partner's birthday" msgstr "" "\n" "\tдень Ð½Ð°Ñ€Ð¾Ð´Ð¶ÐµÐ½Ð½Ñ Ð¿Ð°Ñ€Ñ‚Ð½ÐµÑ€Ð°: " #: ../src/data_view.c:1241 #, fuzzy msgid "anniversary" msgstr "Роковини" #: ../src/data_view.c:1246 #, fuzzy msgid "Public key" msgstr "Публічний ключ" #: ../src/data_view.c:1247 #, fuzzy msgid "Other notes" msgstr "" "\n" "\tІнші нотатки: " #: ../src/form_card.c:52 msgid "None" msgstr "Ðемає" #. R_RATE_NONE #: ../src/form_card.c:53 msgid "Few" msgstr "Ðизький" #. R_RATE_FEW #: ../src/form_card.c:54 msgid "Normal" msgstr "Ðормальний" # REVIEW: High, not Hight #. R_RATE_NORMAL #: ../src/form_card.c:55 msgid "Hight" msgstr "ВиÑокий" # REVIEW: high, not hight #. R_RATE_HIGHT #: ../src/form_card.c:56 msgid "Very hight" msgstr "Дуже виÑокий" #: ../src/form_contact.c:380 #, fuzzy msgid "male" msgstr "Email" #: ../src/form_contact.c:381 #, fuzzy msgid "female" msgstr "" "чоловік\n" "жінка" #: ../src/groups_cb.c:226 msgid "add ne_w group" msgstr "додати нову групу" #: ../src/groups_cb.c:230 #, fuzzy msgid "_rename group" msgstr "видалити групу" #: ../src/groups_cb.c:234 msgid "_remove group" msgstr "видалити групу" #: ../src/groups_view.c:289 msgid "Belongs" msgstr "Ðалежить" #: ../src/groups_view.c:299 msgid "Groups" msgstr "Групи" #: ../src/main.c:77 msgid "Rubrica" msgstr "Rubrica" #. tree view #: ../src/models.c:152 msgid "Street" msgstr "ВулицÑ" #: ../src/models.c:159 ../src/models.c:195 msgid "Number" msgstr "Ðомер" #: ../src/models.c:173 msgid "Address type" msgstr "Тип адреÑи" #: ../src/models.c:182 msgid "Net URL" msgstr "Інтернет-адреÑа" #: ../src/models.c:187 ../src/models.c:201 ../src/preferences.c:733 msgid "Type" msgstr "Тип" #: ../src/models.c:215 ../interface/Menu.glade.h:23 msgid "First name" msgstr "Ім'Ñ" #: ../src/models.c:221 ../interface/Menu.glade.h:25 msgid "Last name" msgstr "Прізвище" #: ../src/preferences.c:103 msgid "Only icons" msgstr "" #: ../src/preferences.c:104 msgid "Only text" msgstr "" #: ../src/preferences.c:105 msgid "Both icons and text" msgstr "" #: ../src/preferences.c:106 msgid "Use Gnome settings" msgstr "" #: ../src/preferences.c:119 ../src/preferences.c:129 ../src/preferences.c:139 #, fuzzy msgid "Other" msgstr "Інше" #: ../src/preferences.c:259 #, fuzzy msgid "_remove addressbook" msgstr "Оберіть адреÑну книгу" #: ../src/preferences.c:727 #, fuzzy msgid "Addressbook" msgstr "Rubrica" #: ../src/search_dialog.c:41 msgid "is" msgstr "" #: ../src/search_dialog.c:42 msgid "before of" msgstr "" #: ../src/search_dialog.c:43 msgid "after of" msgstr "" #: ../src/search_dialog.c:44 #, fuzzy msgid "between" msgstr "між" #: ../src/search_view.c:264 #, fuzzy msgid "No items found" msgstr "Знайдено:" #: ../src/search_view.c:268 #, fuzzy msgid "One item found" msgstr "Знайдено:" #: ../src/search_view.c:270 #, fuzzy, c-format msgid "Items found: %-5d " msgstr "Знайдено:" #: ../src/statusbar.c:313 #, fuzzy msgid "rate:" msgstr "дата" #: ../src/statusbar.c:325 msgid "status:" msgstr "ÑтатуÑ:" #: ../src/trash_view.c:97 #, fuzzy, c-format msgid "Cards in Trash: %-5d" msgstr "Картки в Ñмітнику: " #: ../src/trash_view.c:116 msgid "Info" msgstr "ІнформаціÑ" #: ../interface/CompanyCard.glade.h:1 ../interface/MainWindow.glade.h:1 #: ../interface/NewGroup.glade.h:1 ../interface/PersonalCard.glade.h:1 #: ../interface/Preferences.glade.h:2 msgid " " msgstr " " #: ../interface/CompanyCard.glade.h:2 ../interface/PersonalCard.glade.h:2 msgid "Addresses" msgstr "ÐдреÑи" #: ../interface/CompanyCard.glade.h:3 ../interface/PersonalCard.glade.h:3 msgid "Card" msgstr "Картка" #: ../interface/CompanyCard.glade.h:4 msgid "Company infos" msgstr "Ð†Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ñ–Ñ Ð¿Ñ€Ð¾ компанію" #: ../interface/CompanyCard.glade.h:5 msgid "Company's contacts" msgstr "ПредÑтавники компанії" #: ../interface/CompanyCard.glade.h:6 ../interface/PersonalCard.glade.h:5 msgid "Net address type" msgstr "Тип мережевої адреÑи" #: ../interface/CompanyCard.glade.h:7 ../interface/PersonalCard.glade.h:6 msgid "Net addresses list" msgstr "СпиÑок мережевих адреÑ" #: ../interface/CompanyCard.glade.h:8 ../interface/PersonalCard.glade.h:7 msgid "Net addresses" msgstr "Мережеві адреÑи" #: ../interface/CompanyCard.glade.h:9 ../interface/PersonalCard.glade.h:8 msgid "Notes" msgstr "Ðотатки" #: ../interface/CompanyCard.glade.h:10 ../interface/PersonalCard.glade.h:12 msgid "Telephone type" msgstr "Тип телефону" #: ../interface/CompanyCard.glade.h:11 msgid "Telephones list" msgstr "СпиÑок телефонів" #: ../interface/CompanyCard.glade.h:12 msgid "Telephones" msgstr "Телефони" #: ../interface/CompanyCard.glade.h:13 msgid "Add cards for contact into company" msgstr "Додати картки предÑтавників компанії" #: ../interface/CompanyCard.glade.h:14 msgid "C_ompany data" msgstr "ВідомоÑти про компанію" #: ../interface/CompanyCard.glade.h:15 ../interface/PersonalCard.glade.h:15 msgid "C_ountry" msgstr "Країна" #: ../interface/CompanyCard.glade.h:16 ../interface/PersonalCard.glade.h:16 #, fuzzy msgid "Card _rate" msgstr "Ранг картки" #: ../interface/CompanyCard.glade.h:17 ../interface/PersonalCard.glade.h:17 msgid "Cate_gories" msgstr "Категорії" #: ../interface/CompanyCard.glade.h:18 msgid "Co_mpany logo" msgstr "Логотип компанії" #: ../interface/CompanyCard.glade.h:19 msgid "Contact_s" msgstr "ОÑоби" #: ../interface/CompanyCard.glade.h:20 msgid "Net a_ddress" msgstr "Мережеві адреÑи" #: ../interface/CompanyCard.glade.h:21 msgid "Not_es" msgstr "Ðотатки" #: ../interface/CompanyCard.glade.h:22 ../interface/PersonalCard.glade.h:33 msgid "Str_eet" msgstr "ВулицÑ" #: ../interface/CompanyCard.glade.h:23 ../interface/PersonalCard.glade.h:37 msgid "_Address type" msgstr "Тип адреÑи" #: ../interface/CompanyCard.glade.h:24 ../interface/PersonalCard.glade.h:38 msgid "_Addresses" msgstr "ÐдреÑи" #: ../interface/CompanyCard.glade.h:25 ../interface/PersonalCard.glade.h:41 msgid "_Card" msgstr "Картка" #: ../interface/CompanyCard.glade.h:26 ../interface/PersonalCard.glade.h:42 msgid "_Card label" msgstr "Ðазва картки" #: ../interface/CompanyCard.glade.h:27 ../interface/PersonalCard.glade.h:44 msgid "_City" msgstr "МіÑто" #: ../interface/CompanyCard.glade.h:28 msgid "_Company name" msgstr "Ðазва компанії" #: ../interface/CompanyCard.glade.h:29 msgid "_Company notes" msgstr "Ðотатки про компанію" #: ../interface/CompanyCard.glade.h:30 ../interface/PersonalCard.glade.h:48 msgid "_Email" msgstr "_Email" #: ../interface/CompanyCard.glade.h:31 ../interface/PersonalCard.glade.h:56 msgid "_Lock card" msgstr "Заблокувати картку" #: ../interface/CompanyCard.glade.h:32 ../interface/PersonalCard.glade.h:59 msgid "_Modify" msgstr "Модифікувати" #: ../interface/CompanyCard.glade.h:33 ../interface/PersonalCard.glade.h:60 msgid "_Net" msgstr "Мережа" #: ../interface/CompanyCard.glade.h:34 ../interface/PersonalCard.glade.h:61 msgid "_Net url" msgstr "Інтернет-адреÑа" #: ../interface/CompanyCard.glade.h:35 ../interface/PersonalCard.glade.h:63 msgid "_Number" msgstr "Ðомер" #: ../interface/CompanyCard.glade.h:36 ../interface/PersonalCard.glade.h:67 msgid "_Province" msgstr "Район" #: ../interface/CompanyCard.glade.h:37 ../interface/PersonalCard.glade.h:69 msgid "_State" msgstr "ОблаÑть" #. Taxpayer number (codice fiscale) VAT (Value Added tax, Partita IVA) #: ../interface/CompanyCard.glade.h:39 msgid "_Taxpayer number/VAT" msgstr "" #: ../interface/CompanyCard.glade.h:40 ../interface/PersonalCard.glade.h:70 msgid "_Telephones" msgstr "Телефони" #: ../interface/CompanyCard.glade.h:41 ../interface/PersonalCard.glade.h:73 msgid "_Zip code" msgstr "Поштовий індекÑ" #: ../interface/CompanyCard.glade.h:42 msgid "_customer care" msgstr "підтримка клієнтів" #: ../interface/CompanyCard.glade.h:43 msgid "_fax" msgstr "факÑ" #: ../interface/CompanyCard.glade.h:44 msgid "_green" msgstr "безкоштовна лініÑ" #: ../interface/CompanyCard.glade.h:45 msgid "_operator" msgstr "оператор" #: ../interface/CompanyCard.glade.h:46 msgid "_other" msgstr "інше" #: ../interface/MainWindow.glade.h:2 msgid "Addressbooks" msgstr "ÐдреÑні книги" #: ../interface/MainWindow.glade.h:3 msgid "Card's data" msgstr "ВідомоÑті картки" #: ../interface/MainWindow.glade.h:4 msgid "Add a company card" msgstr "Додати картку компанії" #: ../interface/MainWindow.glade.h:5 ../interface/Menu.glade.h:3 msgid "Add a personal card" msgstr "Додати оÑобиÑту картку" #: ../interface/MainWindow.glade.h:6 msgid "Create a new addressbook" msgstr "Створити нову адреÑну книгу" #: ../interface/MainWindow.glade.h:7 msgid "Create a new card" msgstr "Створити нову картку" #: ../interface/MainWindow.glade.h:8 msgid "Delete selected card" msgstr "Видалити обрану картку" # REVIEW: is there a difference to the previous line? #: ../interface/MainWindow.glade.h:9 ../interface/Menu.glade.h:20 msgid "Delete the selected card" msgstr "Видалити обрану картку" #: ../interface/MainWindow.glade.h:10 msgid "Modify selected card" msgstr "Змінити обрану картку" # REVIEW: is there a difference to the previous line? #: ../interface/MainWindow.glade.h:11 ../interface/Menu.glade.h:29 msgid "Modify the selected card" msgstr "Змінити обрану картку" #: ../interface/MainWindow.glade.h:13 msgid "Open/Close the trash" msgstr "Відкрити/закрити Ñмітник" #: ../interface/MainWindow.glade.h:14 msgid "Print the selected card" msgstr "Ðадрукувати обрану картку" #: ../interface/MainWindow.glade.h:15 msgid "Quit Rubrica" msgstr "Вийти з Rubrica" #: ../interface/MainWindow.glade.h:16 msgid "Save the active addressbook" msgstr "Зберегти активну адреÑну книгу" #: ../interface/MainWindow.glade.h:17 msgid "Show the first card in the addressbook" msgstr "Показати першу картку в адреÑній книзі" #: ../interface/MainWindow.glade.h:18 msgid "Show the last card in the addressbook" msgstr "Показати оÑтанню картку в адреÑній книзі" #: ../interface/MainWindow.glade.h:19 msgid "Show the next card in the addressbook" msgstr "Показати наÑтупну картку в адреÑній книзі" #: ../interface/MainWindow.glade.h:20 msgid "Show the previous card in the addressbook" msgstr "Показати попередню картку в адреÑній книзі" #: ../interface/Menu.glade.h:1 #, fuzzy msgid "Add a company card " msgstr "Додати картку компанії" #: ../interface/Menu.glade.h:2 msgid "Add a company card to addressbook" msgstr "Додати картку компанії до адреÑної книги" #: ../interface/Menu.glade.h:4 msgid "Add a personal card to addressbook" msgstr "Додати оÑобиÑту картку до адреÑної книги" #: ../interface/Menu.glade.h:5 msgid "Advanced search" msgstr "Розширений пошук" #: ../interface/Menu.glade.h:6 msgid "All" msgstr "" #: ../interface/Menu.glade.h:8 msgid "Assignments" msgstr "ПоÑади" #: ../interface/Menu.glade.h:10 msgid "Cards" msgstr "Картки" #: ../interface/Menu.glade.h:11 msgid "Choose where perform a search" msgstr "Обрати міÑце пошуку" #: ../interface/Menu.glade.h:12 msgid "Cities" msgstr "МіÑта" #: ../interface/Menu.glade.h:14 #, fuzzy msgid "Companies" msgstr "компанії" #: ../interface/Menu.glade.h:16 #, fuzzy msgid "Contacts" msgstr "ОÑоби" #: ../interface/Menu.glade.h:17 msgid "Countries" msgstr "Країни" #: ../interface/Menu.glade.h:19 msgid "Delete card" msgstr "Видалити картку" #: ../interface/Menu.glade.h:22 msgid "Emails" msgstr "Email" #: ../interface/Menu.glade.h:24 msgid "First names" msgstr "Імена" #: ../interface/Menu.glade.h:26 msgid "Last names" msgstr "Прізвища" #: ../interface/Menu.glade.h:27 msgid "Men" msgstr "" #: ../interface/Menu.glade.h:28 msgid "Modify card" msgstr "Змінити картку" #: ../interface/Menu.glade.h:31 msgid "Professions" msgstr "ПрофеÑÑ–Ñ—" #: ../interface/Menu.glade.h:32 msgid "Search on" msgstr "Пошук по" # REVIEW: It should be "show", not "swow" #: ../interface/Menu.glade.h:33 msgid "Select the columns to swow in addressbook's view" msgstr "Відібрати колонки Ð´Ð»Ñ Ð¿Ð¾ÐºÐ°Ð·Ñƒ у переглÑді адреÑної книги" #: ../interface/Menu.glade.h:34 msgid "Show cards" msgstr "Показати картки" #: ../interface/Menu.glade.h:35 msgid "Show columns" msgstr "Показати колонки" #: ../interface/Menu.glade.h:37 msgid "Telephone numbers" msgstr "Ðомери телефонів" #: ../interface/Menu.glade.h:39 msgid "Web urls" msgstr "Інтернет-адреÑи" #: ../interface/Menu.glade.h:40 #, fuzzy msgid "Women" msgstr "Картки жінок" #: ../interface/Menu.glade.h:41 msgid "companies" msgstr "компанії" #: ../interface/Menu.glade.h:42 #, fuzzy msgid "few" msgstr "Ðизький" # REVIEW: High, not Hight #: ../interface/Menu.glade.h:43 #, fuzzy msgid "hight" msgstr "ВиÑокий" #: ../interface/Menu.glade.h:44 #, fuzzy msgid "none" msgstr "Ðемає" #: ../interface/Menu.glade.h:45 #, fuzzy msgid "normal" msgstr "Ðормальний" # REVIEW: high, not hight #: ../interface/Menu.glade.h:46 #, fuzzy msgid "very hight" msgstr "Дуже виÑокий" #: ../interface/Menu.glade.h:47 msgid "with rate" msgstr "" #: ../interface/MenuTrash.glade.h:1 msgid "Destroy card" msgstr "Знищити картку" #: ../interface/MenuTrash.glade.h:2 msgid "Empty trash" msgstr "ОчиÑтити Ñмітник" # REVIEW: There should be "recover", perhaps? *** #: ../interface/MenuTrash.glade.h:3 msgid "Recovery card" msgstr "Відновити картку" #: ../interface/NewGroup.glade.h:2 msgid "Add new group" msgstr "Додати нову групу" #: ../interface/NewGroup.glade.h:3 msgid "Rubrica group manager" msgstr "ÐšÐµÑ€ÑƒÐ²Ð°Ð½Ð½Ñ Ð³Ñ€ÑƒÐ¿Ð°Ð¼Ð¸ Rubrica" #: ../interface/NewGroup.glade.h:4 msgid "choose pixmap..." msgstr "обрати картинку..." #: ../interface/NewGroup.glade.h:5 msgid "group label" msgstr "назва групи" #: ../interface/NewGroup.glade.h:6 msgid "group pixmap" msgstr "картинка групи" #: ../interface/PersonalCard.glade.h:4 msgid "Contact's assignment" msgstr "ПоÑада" #: ../interface/PersonalCard.glade.h:9 msgid "Personal data" msgstr "ОÑобиÑті відомоÑті" #: ../interface/PersonalCard.glade.h:10 msgid "Telephone list" msgstr "СпиÑок телефонів" #: ../interface/PersonalCard.glade.h:11 msgid "Telephone numbers" msgstr "Телефонні номери" #: ../interface/PersonalCard.glade.h:13 msgid "A_ssignment" msgstr "ПоÑада" #: ../interface/PersonalCard.glade.h:14 msgid "Anni_versary" msgstr "Роковини" #: ../interface/PersonalCard.glade.h:18 msgid "Collaborator's p_hone" msgstr "Телефон Ñпівробітника" #: ../interface/PersonalCard.glade.h:19 msgid "E_kiga" msgstr "E_kiga" #: ../interface/PersonalCard.glade.h:20 msgid "Ir_c" msgstr "Ir_c" #: ../interface/PersonalCard.glade.h:21 msgid "M_sn" msgstr "M_sn" #: ../interface/PersonalCard.glade.h:22 msgid "Manag_er's phone" msgstr "Телефон керівника" #: ../interface/PersonalCard.glade.h:23 msgid "N_otes" msgstr "Ðотатки" #: ../interface/PersonalCard.glade.h:24 msgid "Net a_ddress or nickname" msgstr "Інтернет-адреÑа або прізвиÑько" #: ../interface/PersonalCard.glade.h:25 msgid "O_rganization" msgstr "ОрганізаціÑ" #: ../interface/PersonalCard.glade.h:26 msgid "P_hoto" msgstr "Фото" #: ../interface/PersonalCard.glade.h:27 msgid "Partner's _birthday" msgstr "День Ð½Ð°Ñ€Ð¾Ð´Ð¶ÐµÐ½Ð½Ñ Ð¿Ð°Ñ€Ñ‚Ð½ÐµÑ€Ð°" #: ../interface/PersonalCard.glade.h:28 msgid "Partner's _name" msgstr "Ім'Ñ Ð¿Ð°Ñ€Ñ‚Ð½ÐµÑ€Ð°" #: ../interface/PersonalCard.glade.h:29 msgid "Prefi_x" msgstr "ЗвертаннÑ" #: ../interface/PersonalCard.glade.h:30 msgid "Prevent accidental card deletion" msgstr "Запобігти випадковому видаленню картки" #: ../interface/PersonalCard.glade.h:31 msgid "Public _key" msgstr "Публічний ключ" #: ../interface/PersonalCard.glade.h:32 msgid "Show calendar" msgstr "Показати календар" # REVIEW: "Sub department" or "subdepartment"? #: ../interface/PersonalCard.glade.h:34 msgid "Sub de_partment" msgstr "Підрозділ" #: ../interface/PersonalCard.glade.h:35 #, fuzzy msgid "The delivery address" msgstr "Зберегти активну адреÑну книгу" #: ../interface/PersonalCard.glade.h:36 msgid "This contact is married or he/she has got a partner" msgstr "Одружений/одружена або має партнера" #: ../interface/PersonalCard.glade.h:39 msgid "_Assignment" msgstr "ПоÑада" #: ../interface/PersonalCard.glade.h:40 msgid "_Birthday" msgstr "День народженнÑ" #: ../interface/PersonalCard.glade.h:43 msgid "_Cellular" msgstr "Стільниковий телефон" #: ../interface/PersonalCard.glade.h:45 msgid "_Collaborator" msgstr "Співробітник" #: ../interface/PersonalCard.glade.h:46 msgid "_Contact has a partner" msgstr "Має партнера" #: ../interface/PersonalCard.glade.h:47 msgid "_Department" msgstr "Відділ" #: ../interface/PersonalCard.glade.h:49 msgid "_Fax" msgstr "ФакÑ" #: ../interface/PersonalCard.glade.h:50 msgid "_First name" msgstr "Ім'Ñ" # REVIEW: "Genre" or "Gender"? *** #: ../interface/PersonalCard.glade.h:51 msgid "_Genre" msgstr "Стать" #: ../interface/PersonalCard.glade.h:52 msgid "" "_Hobbies and\n" "other notes " msgstr "" "Ð—Ð°Ñ…Ð¾Ð¿Ð»ÐµÐ½Ð½Ñ Ñ‚Ð°\n" "інші нотатки" #: ../interface/PersonalCard.glade.h:54 msgid "_Home" msgstr "Дім" #: ../interface/PersonalCard.glade.h:55 msgid "_Last name" msgstr "Прізвище" #: ../interface/PersonalCard.glade.h:57 msgid "_Manager" msgstr "Керівник" #: ../interface/PersonalCard.glade.h:58 msgid "_Messenger" msgstr "Програма Ð´Ð»Ñ Ð¼Ð¸Ñ‚Ñ‚Ñ”Ð²Ð¸Ñ… повідомлень" #: ../interface/PersonalCard.glade.h:62 msgid "_Nickname" msgstr "ПрізвиÑько" #: ../interface/PersonalCard.glade.h:64 msgid "_Other" msgstr "Інше" #: ../interface/PersonalCard.glade.h:65 msgid "_Personal data" msgstr "ОÑобиÑті відомоÑті" #: ../interface/PersonalCard.glade.h:66 msgid "_Profession" msgstr "ПрофеÑÑ–Ñ" #: ../interface/PersonalCard.glade.h:68 msgid "_Second name" msgstr "Друге ім'Ñ" #: ../interface/PersonalCard.glade.h:71 msgid "_Title" msgstr "ЗваннÑ" #: ../interface/PersonalCard.glade.h:72 msgid "_Work" msgstr "Робота" #: ../interface/PersonalCard.glade.h:74 msgid "a_im" msgstr "a_im" #: ../interface/PersonalCard.glade.h:75 msgid "ic_q" msgstr "ic_q" #: ../interface/PersonalCard.glade.h:76 msgid "ja_bber" msgstr "ja_bber" #: ../interface/PersonalCard.glade.h:77 msgid "ya_hoo" msgstr "ya_hoo" # REVIEW: Is it necessary? #: ../interface/Preferences.glade.h:1 msgid " " msgstr "" #: ../interface/Preferences.glade.h:3 msgid "Actions" msgstr "Дії" # REVIEW: folder or folders? #: ../interface/Preferences.glade.h:4 msgid "Addressbooks and folder" msgstr "ÐдреÑні книги Ñ– теки" #: ../interface/Preferences.glade.h:5 msgid "Appearance" msgstr "Зовнішній виглÑд" #: ../interface/Preferences.glade.h:6 msgid "Fonts" msgstr "Шрифти" #: ../interface/Preferences.glade.h:7 msgid "Urls managers" msgstr "Ð’Ñ–Ð´ÐºÑ€Ð¸Ñ‚Ñ‚Ñ URL адреÑ" #: ../interface/Preferences.glade.h:8 msgid "A_ppearance" msgstr "Зовнішній виглÑд" #: ../interface/Preferences.glade.h:9 msgid "Addressbooks _compression rate" msgstr "Рівень ÑтиÑÐ½ÐµÐ½Ð½Ñ Ð°Ð´Ñ€ÐµÑних книг" #: ../interface/Preferences.glade.h:10 msgid "Addressbooks _management" msgstr "ÐšÐµÑ€ÑƒÐ²Ð°Ð½Ð½Ñ Ð°Ð´Ñ€ÐµÑними книгами" # REVIEW: folder or folders? #: ../interface/Preferences.glade.h:11 msgid "Addressbooks and _folder" msgstr "ÐдреÑні книги Ñ– теки" #: ../interface/Preferences.glade.h:12 msgid "Ch_oose an addressbook" msgstr "Оберіть адреÑну книгу" #: ../interface/Preferences.glade.h:13 msgid "Choose the addressbook that you want open at rubrica's start" msgstr "Оберіть адреÑну книгу, Ñку rubrica повинна відкривати під Ñ‡Ð°Ñ Ð·Ð°Ð¿ÑƒÑку" #: ../interface/Preferences.glade.h:14 msgid "Command" msgstr "Команда" #: ../interface/Preferences.glade.h:15 msgid "Confirm e_xit from rubrica" msgstr "ÐŸÑ–Ð´Ñ‚Ð²ÐµÑ€Ð´Ð¶ÐµÐ½Ð½Ñ Ð²Ð¸Ñ…Ñ–Ð´ з rubrica" #: ../interface/Preferences.glade.h:16 msgid "Make back_up before overwrite" msgstr "Створювати резервну копію перед перезапиÑом" #: ../interface/Preferences.glade.h:17 msgid "Manage _email urls with" msgstr "Відкривати _email-адреÑи за допомогою" #: ../interface/Preferences.glade.h:18 msgid "Manage _web urls with" msgstr "Відкривати _web-адреÑи за допомогою" #: ../interface/Preferences.glade.h:19 msgid "Manage i_rc urls with" msgstr "Відкривати i_rc-адреÑи за допомогою" #: ../interface/Preferences.glade.h:20 msgid "Toolbar will sho_w" msgstr "РÑдок інÑтрументів буде показувати" #: ../interface/Preferences.glade.h:21 msgid "_Data font" msgstr "Шрифт відомоÑтей" #: ../interface/Preferences.glade.h:22 msgid "_Launch Ekiga when telephone number is clicked" msgstr "ЗапуÑкати Ekiga під Ñ‡Ð°Ñ Ð½Ð°Ñ‚Ð¸ÑÐ½ÐµÐ½Ð½Ñ Ð½Ð° номер телефону" #: ../interface/Preferences.glade.h:23 msgid "_Load those addressbooks at rubrica's start" msgstr "Завантажувати ці адреÑні книги під Ñ‡Ð°Ñ Ð·Ð°Ð¿ÑƒÑку rubrica" #: ../interface/Preferences.glade.h:24 msgid "_Save addressbooks after any change" msgstr "Зберігати адреÑні книги піÑÐ»Ñ Ð±ÑƒÐ´ÑŒ-Ñких змін" #: ../interface/Preferences.glade.h:25 msgid "_Save addressbooks in this folder" msgstr "Зберігати адреÑні книги у цій теці" #: ../interface/Preferences.glade.h:26 msgid "_Urls management" msgstr "Ð’Ñ–Ð´ÐºÑ€Ð¸Ñ‚Ñ‚Ñ _URL адреÑ" #: ../interface/Search.glade.h:1 msgid "Search rules" msgstr "Правила пошуку" #: ../interface/Search.glade.h:2 msgid "Rubrica search" msgstr "Пошук у rubrica" #: ../interface/Search.glade.h:3 #, fuzzy msgid "_Search on date" msgstr "Пошук по" #: ../interface/Search.glade.h:4 msgid "_date" msgstr "датою" #: ../interface/Search.glade.h:5 #, fuzzy msgid "_find string" msgstr "Ñ€Ñдками" #: ../interface/Search.glade.h:6 #, fuzzy msgid "a_nd date" msgstr "датою" #: ../interface/Search.glade.h:7 #, fuzzy msgid "search on _creation date" msgstr "датою ÑтвореннÑ" #: ../interface/Search.glade.h:8 #, fuzzy msgid "search on l_ast change date" msgstr "датою оÑтанньої зміни" #: ../interface/Search.glade.h:9 msgid "searching dat_e is" msgstr "" #: ../libral/address.c:60 msgid "preferred" msgstr "" #: ../libral/address.c:61 msgid "residence" msgstr "" #: ../libral/address.c:63 msgid "parcel" msgstr "" #: ../libral/address.c:64 msgid "postal" msgstr "" #: ../libral/address.c:65 msgid "international" msgstr "" #: ../libral/address.c:66 msgid "domestic" msgstr "" #: ../libral/address.c:67 msgid "registered office" msgstr "" #: ../libral/address.c:68 #, fuzzy msgid "subsidiary company" msgstr "Додати компанію" #: ../libral/address.c:69 ../libral/telephone.c:46 #, fuzzy msgid "other" msgstr "інше" #: ../libral/manager.c:187 #, c-format msgid "" "\n" "error loading plugin %s" msgstr "" #: ../libral/plugin.c:310 msgid "Opening plugin" msgstr "Plugin відкриттÑ" #: ../libral/plugin.c:321 ../libral/plugin.c:330 #, c-format msgid "" "\n" "Can't get initialization handle: %s" msgstr "" "\n" "Ðе можу отримати handle ініціалізації: %s" #: ../libral/rlib.c:118 ../libral/rlib.c:122 ../libral/rlib.c:126 msgid "" "\n" "Can't initialize r" msgstr "" "\n" "Ðе можу ініціалізувати r" #: ../libral/telephone.c:41 #, fuzzy msgid "home" msgstr "Дім" #: ../libral/telephone.c:43 #, fuzzy msgid "fax" msgstr "факÑ" #: ../libral/telephone.c:44 #, fuzzy msgid "cellphone" msgstr "Телефон" #: ../libral/telephone.c:45 #, fuzzy msgid "pager" msgstr "Керівник" #: ../libral/telephone.c:47 #, fuzzy msgid "operator" msgstr "оператор" #: ../libral/telephone.c:48 #, fuzzy msgid "green" msgstr "безкоштовна лініÑ" #: ../libral/telephone.c:49 #, fuzzy msgid "customer care" msgstr "підтримка клієнтів" #: ../rubrica2.keys.in.h:1 msgid "Gnome Addressbook manager" msgstr "Програма ÐºÐµÑ€ÑƒÐ²Ð°Ð½Ð½Ñ Ð°Ð´Ñ€ÐµÑною книгою Ð´Ð»Ñ Ñередовища Gnome" #: ../rubrica2.desktop.in.h:1 msgid "Manage contacts and addresses" msgstr "Gestore di contatti e indirizzi" #: ../rubrica2.desktop.in.h:2 msgid "Rubrica Addressbook" msgstr "Rubrica" #, fuzzy #~ msgid "Card destroyed" #~ msgstr "Картку вÑтавлено" # REVIEW: "Company", not "Compay". And what is "Pref" and "Dom"? #~ msgid "" #~ "Pref\n" #~ "Home\n" #~ "Work\n" #~ "Parcel\n" #~ "Postal\n" #~ "Intl\n" #~ "Dom\n" #~ "Compay\n" #~ "Unknown" #~ msgstr "" #~ "Бажана\n" #~ "Дім\n" #~ "Робота\n" #~ "****\n" #~ "Поштове\n" #~ "Міжнародна\n" #~ "Будинок\n" #~ "КомпаніÑ\n" #~ "Ðевідомо" #, fuzzy #~ msgid "work delivery address" #~ msgstr "Оберіть адреÑну книгу" # REVIEW: What it is? #~ msgid "Codice _fiscale" #~ msgstr "Ідентифікаційний податковий номер" #~ msgid "Deleted cards: " #~ msgstr "Знищені картки: " #~ msgid "rank:" #~ msgstr "ранг:" #~ msgid "Can't read plugin for file: %s" #~ msgstr "Ðе могу прочитати плагін Ð´Ð»Ñ Ñ„Ð°Ð¹Ð»Ð°: %s" #~ msgid "Card: " #~ msgstr "Картка: " #~ msgid "Nickname: " #~ msgstr "ПрізвиÑько: " #~ msgid "Title: " #~ msgstr "ЗваннÑ: " #~ msgid "Prefix: " #~ msgstr "ЗвертаннÑ: " #~ msgid "Profession: " #~ msgstr "ПрофеÑÑ–Ñ: " #~ msgid "Birthday: " #~ msgstr "День народженнÑ: " #~ msgid "Addresses\n" #~ msgstr "ÐдреÑи\n" #~ msgid "Net\n" #~ msgstr "Мережа\n" #~ msgid "Telephone\n" #~ msgstr "Телефон\n" #~ msgid "" #~ "\n" #~ "\tContact has a partner" #~ msgstr "" #~ "\n" #~ "\tМає партнера" #~ msgid "" #~ "\n" #~ "\tanniversary: " #~ msgstr "" #~ "\n" #~ "\tроковини: " #~ msgid "" #~ "\n" #~ "\tPublic key: " #~ msgstr "" #~ "\n" #~ "\tПублічний ключ: " # REVIEW: data or date? #~ msgid "Set data" #~ msgstr "Виберіть дату" #~ msgid "Show all cards that belong to selected group " #~ msgstr "Показати вÑÑ– картки, Ñкі належать обраній групі" #~ msgid "Add contact" #~ msgstr "Додати оÑобу" #~ msgid "All cards" #~ msgstr "Ð’ÑÑ– картки" #~ msgid "Company cards" #~ msgstr "Картки компанії" #~ msgid "Men cards" #~ msgstr "Картки чоловіків" #~ msgid "C_alendar..." #~ msgstr "Календар..." #~ msgid "Results" #~ msgstr "Результати" #~ msgid "Search is performed on" #~ msgstr "Пошук виконуєтьÑÑ Ð·Ð°" #~ msgid "_and" #~ msgstr "Ñ–" #~ msgid "_case sensitive search" #~ msgstr "пошук чутливий до регіÑтру" #~ msgid "_name" #~ msgstr "ім'Ñ" #~ msgid "_rank" #~ msgstr "ранг" #~ msgid "card ran_k" #~ msgstr "рангом картки" #~ msgid "search is per_formed on" #~ msgstr "пошук виконуєтьÑÑ Ð·Ð°" # REVIEW: "contains", not "contain" #~ msgid "string contain a su_bstring" #~ msgstr "Ñ€Ñдок міÑтить підрÑдок" #~ msgid "_Net addresses" #~ msgstr "Indirizzi di _rete" #~ msgid "_Deletable card" #~ msgstr "Scheda canc_ellabile" #~ msgid "_Telephone" #~ msgstr "_Telefono" #~ msgid "\t%s\n" #~ msgstr "\t%s\n" #~ msgid "Addressb_ook to autoload" #~ msgstr "Rubriche da caricare aut_omaticamente" #, fuzzy #~ msgid "Deleted items: " #~ msgstr "Schede cancellate: " #~ msgid "1 card in this group" #~ msgstr "1 scheda nel gruppo" #~ msgid "\t%s: " #~ msgstr "\t%s: " #~ msgid "_Search" #~ msgstr "_Cerca" #~ msgid "Assigment" #~ msgstr "Incarico" #~ msgid "Show" #~ msgstr "Mostra" #~ msgid "Show assignment column" #~ msgstr "Mostra la colonna degli incarichi" #~ msgid "Show company column" #~ msgstr "Mostra la colonna delle società" #~ msgid "Show country column" #~ msgstr "Mostra la colonna degli stati" #~ msgid "Show email column" #~ msgstr "Mostra la colonna delle email" #~ msgid "Show first name column" #~ msgstr "Mostra colonna dei nomi" rubrica-2.0/intltool-extract.in0000644000175000017500000005373510554703327015463 0ustar seb128seb128#!@INTLTOOL_PERL@ -w # -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- # # The Intltool Message Extractor # # Copyright (C) 2000-2001, 2003 Free Software Foundation. # # Intltool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Intltool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # # Authors: Kenneth Christiansen # Darin Adler # ## Release information my $PROGRAM = "intltool-extract"; my $PACKAGE = "intltool"; my $VERSION = "0.35.0"; ## Loaded modules use strict; use File::Basename; use Getopt::Long; ## Scalars used by the option stuff my $TYPE_ARG = "0"; my $LOCAL_ARG = "0"; my $HELP_ARG = "0"; my $VERSION_ARG = "0"; my $UPDATE_ARG = "0"; my $QUIET_ARG = "0"; my $SRCDIR_ARG = "."; my $FILE; my $OUTFILE; my $gettext_type = ""; my $input; my %messages = (); my %loc = (); my %count = (); my %comments = (); my $strcount = 0; my $XMLCOMMENT = ""; ## Use this instead of \w for XML files to handle more possible characters. my $w = "[-A-Za-z0-9._:]"; ## Always print first $| = 1; ## Handle options GetOptions ( "type=s" => \$TYPE_ARG, "local|l" => \$LOCAL_ARG, "help|h" => \$HELP_ARG, "version|v" => \$VERSION_ARG, "update" => \$UPDATE_ARG, "quiet|q" => \$QUIET_ARG, "srcdir=s" => \$SRCDIR_ARG, ) or &error; &split_on_argument; ## Check for options. ## This section will check for the different options. sub split_on_argument { if ($VERSION_ARG) { &version; } elsif ($HELP_ARG) { &help; } elsif ($LOCAL_ARG) { &place_local; &extract; } elsif ($UPDATE_ARG) { &place_normal; &extract; } elsif (@ARGV > 0) { &place_normal; &message; &extract; } else { &help; } } sub place_normal { $FILE = $ARGV[0]; $OUTFILE = "$FILE.h"; } sub place_local { $FILE = $ARGV[0]; $OUTFILE = fileparse($FILE, ()); if (!-e "tmp/") { system("mkdir tmp/"); } $OUTFILE = "./tmp/$OUTFILE.h" } sub determine_type { if ($TYPE_ARG =~ /^gettext\/(.*)/) { $gettext_type=$1 } } ## Sub for printing release information sub version{ print <<_EOF_; ${PROGRAM} (${PACKAGE}) $VERSION Copyright (C) 2000, 2003 Free Software Foundation, Inc. Written by Kenneth Christiansen, 2000. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _EOF_ exit; } ## Sub for printing usage information sub help { print <<_EOF_; Usage: ${PROGRAM} [OPTION]... [FILENAME] Generates a header file from an XML source file. It grabs all strings between <_translatable_node> and its end tag in XML files. Read manpage (man ${PROGRAM}) for more info. --type=TYPE Specify the file type of FILENAME. Currently supports: "gettext/glade", "gettext/ini", "gettext/keys" "gettext/rfc822deb", "gettext/schemas", "gettext/scheme", "gettext/xml" -l, --local Writes output into current working directory (conflicts with --update) --update Writes output into the same directory the source file reside (conflicts with --local) --srcdir Root of the source tree -v, --version Output version information and exit -h, --help Display this help and exit -q, --quiet Quiet mode Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") or send email to . _EOF_ exit; } ## Sub for printing error messages sub error{ print STDERR "Try `${PROGRAM} --help' for more information.\n"; exit; } sub message { print "Generating C format header file for translation.\n" unless $QUIET_ARG; } sub extract { &determine_type; &convert; open OUT, ">$OUTFILE"; binmode (OUT) if $^O eq 'MSWin32'; &msg_write; close OUT; print "Wrote $OUTFILE\n" unless $QUIET_ARG; } sub convert { ## Reading the file { local (*IN); local $/; #slurp mode open (IN, "<$SRCDIR_ARG/$FILE") || die "can't open $SRCDIR_ARG/$FILE: $!"; $input = ; } &type_ini if $gettext_type eq "ini"; &type_keys if $gettext_type eq "keys"; &type_xml if $gettext_type eq "xml"; &type_glade if $gettext_type eq "glade"; &type_scheme if $gettext_type eq "scheme"; &type_schemas if $gettext_type eq "schemas"; &type_rfc822deb if $gettext_type eq "rfc822deb"; } sub entity_decode_minimal { local ($_) = @_; s/'/'/g; # ' s/"/"/g; # " s/&/&/g; return $_; } sub entity_decode { local ($_) = @_; s/'/'/g; # ' s/"/"/g; # " s/&/&/g; s/<//g; return $_; } sub escape_char { return '\"' if $_ eq '"'; return '\n' if $_ eq "\n"; return '\\' if $_ eq '\\'; return $_; } sub escape { my ($string) = @_; return join "", map &escape_char, split //, $string; } sub type_ini { ### For generic translatable desktop files ### while ($input =~ /^_.*=(.*)$/mg) { $messages{$1} = []; } } sub type_keys { ### For generic translatable mime/keys files ### while ($input =~ /^\s*_\w+=(.*)$/mg) { $messages{$1} = []; } } sub type_xml { ### For generic translatable XML files ### my $tree = readXml($input); parseTree(0, $tree); } sub print_var { my $var = shift; my $vartype = ref $var; if ($vartype =~ /ARRAY/) { my @arr = @{$var}; print "[ "; foreach my $el (@arr) { print_var($el); print ", "; } print "] "; } elsif ($vartype =~ /HASH/) { my %hash = %{$var}; print "{ "; foreach my $key (keys %hash) { print "$key => "; print_var($hash{$key}); print ", "; } print "} "; } else { print $var; } } # Same syntax as getAttributeString in intltool-merge.in.in, similar logic (look for ## differences comment) sub getAttributeString { my $sub = shift; my $do_translate = shift || 1; my $language = shift || ""; my $translate = shift; my $result = ""; foreach my $e (reverse(sort(keys %{ $sub }))) { my $key = $e; my $string = $sub->{$e}; my $quote = '"'; $string =~ s/^[\s]+//; $string =~ s/[\s]+$//; if ($string =~ /^'.*'$/) { $quote = "'"; } $string =~ s/^['"]//g; $string =~ s/['"]$//g; ## differences from intltool-merge.in.in if ($key =~ /^_/) { $comments{entity_decode($string)} = $XMLCOMMENT if $XMLCOMMENT; $messages{entity_decode($string)} = []; $$translate = 2; } ## differences end here from intltool-merge.in.in $result .= " $key=$quote$string$quote"; } return $result; } # Verbatim copy from intltool-merge.in.in sub getXMLstring { my $ref = shift; my $spacepreserve = shift || 0; my @list = @{ $ref }; my $result = ""; my $count = scalar(@list); my $attrs = $list[0]; my $index = 1; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); while ($index < $count) { my $type = $list[$index]; my $content = $list[$index+1]; if (! $type ) { # We've got CDATA if ($content) { # lets strip the whitespace here, and *ONLY* here $content =~ s/\s+/ /gs if (!$spacepreserve); $result .= $content; } } elsif ( "$type" ne "1" ) { # We've got another element $result .= "<$type"; $result .= getAttributeString(@{$content}[0], 0); # no nested translatable elements if ($content) { my $subresult = getXMLstring($content, $spacepreserve); if ($subresult) { $result .= ">".$subresult . ""; } else { $result .= "/>"; } } else { $result .= "/>"; } } $index += 2; } return $result; } # Verbatim copy from intltool-merge.in.in, except for MULTIPLE_OUTPUT handling removed # Translate list of nodes if necessary sub translate_subnodes { my $fh = shift; my $content = shift; my $language = shift || ""; my $singlelang = shift || 0; my $spacepreserve = shift || 0; my @nodes = @{ $content }; my $count = scalar(@nodes); my $index = 0; while ($index < $count) { my $type = $nodes[$index]; my $rest = $nodes[$index+1]; traverse($fh, $type, $rest, $language, $spacepreserve); $index += 2; } } # Based on traverse() in intltool-merge.in.in sub traverse { my $fh = shift; # unused, to allow us to sync code between -merge and -extract my $nodename = shift; my $content = shift; my $language = shift || ""; my $spacepreserve = shift || 0; if ($nodename && "$nodename" eq "1") { $XMLCOMMENT = $content; } elsif ($nodename) { # element my @all = @{ $content }; my $attrs = shift @all; my $translate = 0; my $outattr = getAttributeString($attrs, 1, $language, \$translate); if ($nodename =~ /^_/) { $translate = 1; $nodename =~ s/^_//; } my $lookup = ''; $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); if ($translate) { $lookup = getXMLstring($content, $spacepreserve); if (!$spacepreserve) { $lookup =~ s/^\s+//s; $lookup =~ s/\s+$//s; } if ($lookup && $translate != 2) { $comments{$lookup} = $XMLCOMMENT if $XMLCOMMENT; $messages{$lookup} = []; } elsif ($translate == 2) { translate_subnodes($fh, \@all, $language, 1, $spacepreserve); } } else { $XMLCOMMENT = ""; my $count = scalar(@all); if ($count > 0) { my $index = 0; while ($index < $count) { my $type = $all[$index]; my $rest = $all[$index+1]; traverse($fh, $type, $rest, $language, $spacepreserve); $index += 2; } } } $XMLCOMMENT = ""; } } # Verbatim copy from intltool-merge.in.in, $fh for compatibility sub parseTree { my $fh = shift; my $ref = shift; my $language = shift || ""; my $name = shift @{ $ref }; my $cont = shift @{ $ref }; while (!$name || "$name" eq "1") { $name = shift @{ $ref }; $cont = shift @{ $ref }; } my $spacepreserve = 0; my $attrs = @{$cont}[0]; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); traverse($fh, $name, $cont, $language, $spacepreserve); } # Verbatim copy from intltool-merge.in.in sub intltool_tree_comment { my $expat = shift; my $data = $expat->original_string(); my $clist = $expat->{Curlist}; my $pos = $#$clist; $data =~ s/^$//s; push @$clist, 1 => $data; } # Verbatim copy from intltool-merge.in.in sub intltool_tree_cdatastart { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; push @$clist, 0 => $expat->original_string(); } # Verbatim copy from intltool-merge.in.in sub intltool_tree_cdataend { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; $clist->[$pos] .= $expat->original_string(); } # Verbatim copy from intltool-merge.in.in sub intltool_tree_char { my $expat = shift; my $text = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; # Use original_string so that we retain escaped entities # in CDATA sections. # if ($pos > 0 and $clist->[$pos - 1] eq '0') { $clist->[$pos] .= $expat->original_string(); } else { push @$clist, 0 => $expat->original_string(); } } # Verbatim copy from intltool-merge.in.in sub intltool_tree_start { my $expat = shift; my $tag = shift; my @origlist = (); # Use original_string so that we retain escaped entities # in attribute values. We must convert the string to an # @origlist array to conform to the structure of the Tree # Style. # my @original_array = split /\x/, $expat->original_string(); my $source = $expat->original_string(); # Remove leading tag. # $source =~ s|^\s*<\s*(\S+)||s; # Grab attribute key/value pairs and push onto @origlist array. # while ($source) { if ($source =~ /^\s*([\w:-]+)\s*[=]\s*["]/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*["]([^"]*)["]||s; push @origlist, $1; push @origlist, '"' . $2 . '"'; } elsif ($source =~ /^\s*([\w:-]+)\s*[=]\s*[']/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*[']([^']*)[']||s; push @origlist, $1; push @origlist, "'" . $2 . "'"; } else { last; } } my $ol = [ { @origlist } ]; push @{ $expat->{Lists} }, $expat->{Curlist}; push @{ $expat->{Curlist} }, $tag => $ol; $expat->{Curlist} = $ol; } # Copied from intltool-merge.in.in and added comment handler. sub readXml { my $xmldoc = shift || return; my $ret = eval 'require XML::Parser'; if(!$ret) { die "You must have XML::Parser installed to run $0\n\n"; } my $xp = new XML::Parser(Style => 'Tree'); $xp->setHandlers(Char => \&intltool_tree_char); $xp->setHandlers(Start => \&intltool_tree_start); $xp->setHandlers(CdataStart => \&intltool_tree_cdatastart); $xp->setHandlers(CdataEnd => \&intltool_tree_cdataend); ## differences from intltool-merge.in.in $xp->setHandlers(Comment => \&intltool_tree_comment); ## differences end here from intltool-merge.in.in my $tree = $xp->parse($xmldoc); #print_var($tree); # Hello thereHowdydo # would be: # [foo, [{}, 1, "comment", head, [{id => "a"}, 0, "Hello ", em, [{}, 0, "there"]], bar, # [{}, 0, "Howdy", ref, [{}]], 0, "do" ] ] return $tree; } sub type_schemas { ### For schemas XML files ### # FIXME: We should handle escaped < (less than) while ($input =~ / \s* (\s*(?:\s*)?(.*?)\s*<\/default>\s*)? (\s*(?:\s*)?(.*?)\s*<\/short>\s*)? (\s*(?:\s*)?(.*?)\s*<\/long>\s*)? <\/locale> /sgx) { my @totranslate = ($3,$6,$9); my @eachcomment = ($2,$5,$8); foreach (@totranslate) { my $currentcomment = shift @eachcomment; next if !$_; s/\s+/ /g; $messages{entity_decode_minimal($_)} = []; $comments{entity_decode_minimal($_)} = $currentcomment if (defined($currentcomment)); } } } sub type_rfc822deb { ### For rfc822-style Debian configuration files ### my $lineno = 1; my $type = ''; while ($input =~ /\G(.*?)(^|\n)(_+)([^:]+):[ \t]*(.*?)(?=\n\S|$)/sg) { my ($pre, $newline, $underscore, $tag, $text) = ($1, $2, $3, $4, $5); while ($pre =~ m/\n/g) { $lineno ++; } $lineno += length($newline); my @str_list = rfc822deb_split(length($underscore), $text); for my $str (@str_list) { $strcount++; $messages{$str} = []; $loc{$str} = $lineno; $count{$str} = $strcount; my $usercomment = ''; while($pre =~ s/(^|\n)#([^\n]*)$//s) { $usercomment = "\n" . $2 . $usercomment; } $comments{$str} = $tag . $usercomment; } $lineno += ($text =~ s/\n//g); } } sub rfc822deb_split { # Debian defines a special way to deal with rfc822-style files: # when a value contain newlines, it consists of # 1. a short form (first line) # 2. a long description, all lines begin with a space, # and paragraphs are separated by a single dot on a line # This routine returns an array of all paragraphs, and reformat # them. # When first argument is 2, the string is a comma separated list of # values. my $type = shift; my $text = shift; $text =~ s/^[ \t]//mg; return (split(/, */, $text, 0)) if $type ne 1; return ($text) if $text !~ /\n/; $text =~ s/([^\n]*)\n//; my @list = ($1); my $str = ''; for my $line (split (/\n/, $text)) { chomp $line; if ($line =~ /^\.\s*$/) { # New paragraph $str =~ s/\s*$//; push(@list, $str); $str = ''; } elsif ($line =~ /^\s/) { # Line which must not be reformatted $str .= "\n" if length ($str) && $str !~ /\n$/; $line =~ s/\s+$//; $str .= $line."\n"; } else { # Continuation line, remove newline $str .= " " if length ($str) && $str !~ /\n$/; $str .= $line; } } $str =~ s/\s*$//; push(@list, $str) if length ($str); return @list; } sub type_glade { ### For translatable Glade XML files ### my $tags = "label|title|text|format|copyright|comments|preview_text|tooltip|message"; while ($input =~ /<($tags)>([^<]+)<\/($tags)>/sg) { # Glade sometimes uses tags that normally mark translatable things for # little bits of non-translatable content. We work around this by not # translating strings that only includes something like label4 or window1. $messages{entity_decode($2)} = [] unless $2 =~ /^(window|label|dialog)[0-9]+$/; } while ($input =~ /(..[^<]*)<\/items>/sg) { for my $item (split (/\n/, $1)) { $messages{entity_decode($item)} = []; } } ## handle new glade files while ($input =~ /<(property|atkproperty)\s+[^>]*translatable\s*=\s*"yes"(?:\s+[^>]*comments\s*=\s*"([^"]*)")?[^>]*>([^<]+)<\/\1>/sg) { $messages{entity_decode($3)} = [] unless $3 =~ /^(window|label)[0-9]+$/; if (defined($2) and !($3 =~ /^(window|label)[0-9]+$/)) { $comments{entity_decode($3)} = entity_decode($2) ; } } while ($input =~ /]*)"\s+description="([^>]+)"\/>/sg) { $messages{entity_decode_minimal($2)} = []; } } sub type_scheme { my ($line, $i, $state, $str, $trcomment, $char); for $line (split(/\n/, $input)) { $i = 0; $state = 0; # 0 - nothing, 1 - string, 2 - translatable string while ($i < length($line)) { if (substr($line,$i,1) eq "\"") { if ($state == 2) { $comments{$str} = $trcomment if ($trcomment); $messages{$str} = []; $str = ''; $state = 0; $trcomment = ""; } elsif ($state == 1) { $str = ''; $state = 0; $trcomment = ""; } else { $state = 1; $str = ''; if ($i>0 && substr($line,$i-1,1) eq '_') { $state = 2; } } } elsif (!$state) { if (substr($line,$i,1) eq ";") { $trcomment = substr($line,$i+1); $trcomment =~ s/^;*\s*//; $i = length($line); } elsif ($trcomment && substr($line,$i,1) !~ /\s|\(|\)|_/) { $trcomment = ""; } } else { if (substr($line,$i,1) eq "\\") { $char = substr($line,$i+1,1); if ($char ne "\"" && $char ne "\\") { $str = $str . "\\"; } $i++; } $str = $str . substr($line,$i,1); } $i++; } } } sub msg_write { my @msgids; if (%count) { @msgids = sort { $count{$a} <=> $count{$b} } keys %count; } else { @msgids = sort keys %messages; } for my $message (@msgids) { my $offsetlines = 1; $offsetlines++ if $message =~ /%/; if (defined ($comments{$message})) { while ($comments{$message} =~ m/\n/g) { $offsetlines++; } } print OUT "# ".($loc{$message} - $offsetlines). " \"$FILE\"\n" if defined $loc{$message}; print OUT "/* ".$comments{$message}." */\n" if defined $comments{$message}; print OUT "/* xgettext:no-c-format */\n" if $message =~ /%/; my @lines = split (/\n/, $message, -1); for (my $n = 0; $n < @lines; $n++) { if ($n == 0) { print OUT "char *s = N_(\""; } else { print OUT " \""; } print OUT escape($lines[$n]); if ($n < @lines - 1) { print OUT "\\n\"\n"; } else { print OUT "\");\n"; } } } } rubrica-2.0/rubrica2.desktop0000644000175000017500000000060210637712713014705 0ustar seb128seb128[Desktop Entry] Name=Rubrica Addressbook _Name=Rubrica Addressbook Comment=Manage contacts and addresses Comment[it]=Gestore di contatti e indirizzi _Comment=Manage contacts and addresses MimeType=application/x-rubrica Patterns=*.rub;*.RUB; Exec=rubrica2 Icon=stock_addressbook.png Terminal=false Type=Application Categories=GNOME;Application;Office; StartupNotify=true Encoding=UTF-8 rubrica-2.0/configure.in0000644000175000017500000001253710637712434014124 0ustar seb128seb128############################################################ # # Rubrica # # copyright Nicola Fragale (nicolafragale@libero.it) # # this software is released under the term of GNU GPL 2.0 # see the file COPYING for more details # ############################################################ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(rubrica2, 2.0, nicolafragale@gmail.com) AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADER([config.h]) LIBRAL_CURRENT_VERSION=1 LIBRAL_REVISION_VERSION=0 LIBRAL_COMPAT_VERSION=0 LIBRAL_CODE_NAME=Autonoe LIBRAL_INFO_CODE_NAME='che dona intelligenza ed ispirazione' LIBRAL_VERSION=$PACKAGE_VERSION LIBRUBRICA_CURRENT_VERSION=1 LIBRUBRICA_REVISION_VERSION=1 LIBRUBRICA_COMPAT_VERSION=0 LIBVCARD_CURRENT_VERSION=1 LIBVCARD_REVISION_VERSION=1 LIBVCARD_COMPAT_VERSION=0 LIBCSV_CURRENT_VERSION=1 LIBCSV_REVISION_VERSION=1 LIBCSV_COMPAT_VERSION=0 RUBRICA_NAME=$PACKAGE_NAME RUBRICA_VERSION=$PACKAGE_VERSION RUBRICA_CAP_NAME=Rubrica2 RUBRICA_CODE_NAME=Autonoe RUBRICA_INFO_CODE_NAME='che dona intelligenza ed ispirazione' FILE_FORMAT=4 AM_INIT_AUTOMAKE($RUBRICA_NAME, $RUBRICA_VERSION) AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip]) # Checks for programs. AC_PROG_INTLTOOL AC_PROG_LIBTOOL AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB AC_HEADER_STDBOOL AC_C_CONST AC_STRUCT_TM AC_CHECK_FUNCS([localtime_r]) AC_CHECK_HEADERS([libintl.h stdlib.h string.h]) DESKTOP_ICON_PATH='$(datadir)' dnl ================================================================ dnl Gettext stuff. dnl ================================================================ GETTEXT_PACKAGE=$RUBRICA_NAME AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", Package for GettText) AC_SUBST(GETTEXT_PACKAGE) AC_SUBST(RUBRICA_FILE_FORMAT) AC_SUBST(LIBRAL_CURRENT_VERSION) AC_SUBST(LIBRAL_REVISION_VERSION) AC_SUBST(LIBRAL_COMPAT_VERSION) AC_SUBST(LIBRAL_RELEASE) AC_SUBST(LIBRAL_VERSION) AC_SUBST(LIBRAL_CODE_NAME) AC_SUBST(LIBRAL_INFO_CODE_NAME) AC_SUBST(RUBRICA_NAME) AC_SUBST(RUBRICA_VERSION) AC_SUBST(RUBRICA_CAP_NAME) AC_SUBST(RUBRICA_CODE_NAME) AC_SUBST(RUBRICA_INFO_CODE_NAME) AC_SUBST(FILE_FORMAT) AC_SUBST(LIBRUBRICA_CURRENT_VERSION) AC_SUBST(LIBRUBRICA_REVISION_VERSION) AC_SUBST(LIBRUBRICA_COMPAT_VERSION) AC_SUBST(LIBVCARD_CURRENT_VERSION) AC_SUBST(LIBVCARD_REVISION_VERSION) AC_SUBST(LIBVCARD_COMPAT_VERSION) AC_SUBST(LIBCSV_CURRENT_VERSION) AC_SUBST(LIBCSV_REVISION_VERSION) AC_SUBST(LIBCSV_COMPAT_VERSION) AC_SUBST(DESKTOP_ICON_PATH) AC_DEFINE_UNQUOTED(RUBRICA_NAME, "$RUBRICA_NAME", The program name) AC_DEFINE_UNQUOTED(RUBRICA_CAP_NAME, "$RUBRICA_CAP_NAME", The program name with capital initial letter) AC_DEFINE_UNQUOTED(RUBRICA_VERSION, "$RUBRICA_VERSION", The program version) dnl dnl Start of pkg-config checks dnl PKG_CHECK_MODULES(LIBRAL, gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0) AC_SUBST(LIBRAL_LIBS) AC_SUBST(LIBRAL_CFLAGS) PKG_CHECK_MODULES(RUBRICA, gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0) AC_SUBST(RUBRICA_LIBS) AC_SUBST(RUBRICA_CFLAGS) dnl Add the languages which your application supports here. ALL_LINGUAS="it uk" AM_GLIB_GNU_GETTEXT AC_PATH_PROG(GCONFTOOL, gconftool-2, no) AM_GCONF_SOURCE_2 dnl ======================================================= dnl Check for gtk-doc. dnl ======================================================= GTK_DOC_CHECK(1.3) dnl ------------------------------- dnl Setup LibRAL Plugin directories dnl ------------------------------- libral_plugins_dir='$(libdir)/libral/plugins' libral_plugins_gui_dir='$(datadir)/libral/plugins/gui' libral_plugins_pixmaps_dir='$(datadir)/libral/plugins/pixmaps' AC_SUBST(libral_plugins_dir) AC_SUBST(libral_plugins_gui_dir) AC_SUBST(libral_plugins_pixmaps_dir) dnl ------------------------ dnl ------------------------ dnl Setup Plugin directories dnl ------------------------ #rubrica_plugins_dir=${libdir}'/rubrica2/plugins' #rubrica_plugins_gui_dir=${libdir}'/rubrica2/plugins/ui' #rubrica_plugins_pixmaps_dir=${libdir}'/rubrica2/plugins/pixmaps' rubrica_data_dir=${datadir}'/rubrica2' rubrica_gui_dir=${datadir}'/rubrica2/interface' rubrica_pixmaps_dir=${datadir}'/pixmaps' rubrica_icons_dir=${datadir}'/icons/hicolor' # rubrica__dir='$()/rubrica' # rubrica__dir='$()/rubrica' dnl ------------------------ # AC_SUBST(rubrica_plugins_dir) # AC_SUBST(rubrica_plugin_gui_dir) # AC_SUBST(rubrica_plugin_pixmaps_dir) AC_SUBST(rubrica_data_dir) AC_SUBST(rubrica_gui_dir) AC_SUBST(rubrica_pixmaps_dir) AC_SUBST(rubrica_icons_dir) dnl ------------------------ desktop_icon_path=@DESKTOP_ICON_PATH@/pixmaps AC_SUBST(desktop_icon_path) AC_OUTPUT([ Makefile rubrica2.spec rubrica2.desktop rubrica2.schemas rubrica2.keys pixmaps/Makefile pixmaps/16x16/Makefile pixmaps/22x22/Makefile pixmaps/24x24/Makefile pixmaps/48x48/Makefile pixmaps/scalable/Makefile interface/Makefile doc/Makefile po/Makefile.in src/Makefile libral/Makefile libral/plugins/Makefile libral/plugins/csv/Makefile libral/plugins/rubrica/Makefile libral/plugins/vcard/Makefile ]) echo " Configuration: Package name: $PACKAGE Version: $PACKAGE_VERSION Plugins dir: $libral_plugins_dir Plugins gui dir: $libral_plugins_gui_dir Pixmap dir: $rubrica_pixmaps_dir Icons dir: $rubrica_icons_dir Config dir: ${sysconfdir}/gconf/schemas Code name: $RUBRICA_CODE_NAME, $RUBRICA_INFO_CODE_NAME " rubrica-2.0/compile0000644000175000017500000000532610554703327013163 0ustar seb128seb128#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. # Copyright 1999, 2000 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Usage: # compile PROGRAM [ARGS]... # `-o FOO.o' is removed from the args passed to the actual compile. prog=$1 shift ofile= cfile= args= while test $# -gt 0; do case "$1" in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we do something ugly here. ofile=$2 shift case "$ofile" in *.o | *.obj) ;; *) args="$args -o $ofile" ofile= ;; esac ;; *.c) cfile=$1 args="$args $1" ;; *) args="$args $1" ;; esac shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$prog" $args fi # Name of file we expect compiler to create. cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'` # Create the lock directory. # Note: use `[/.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d while true; do if mkdir $lockdir > /dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir $lockdir; exit 1" 1 2 15 # Run the compile. "$prog" $args status=$? if test -f "$cofile"; then mv "$cofile" "$ofile" fi rmdir $lockdir exit $status rubrica-2.0/rubrica2.schemas.in0000644000175000017500000002122110557745506015273 0ustar seb128seb128 /schemas/apps/rubrica2/file_format /apps/rubrica2/file_format rubrica int @FILE_FORMAT@ rubrica file format /schemas/apps/rubrica2/width /apps/rubrica2/width rubrica int 600 main window's default width /schemas/apps/rubrica2/heigth /apps/rubrica2/heigth rubrica int 500 main window's default heigth /schemas/apps/rubrica2/paned /apps/rubrica2/paned rubrica int 350 /schemas/apps/rubrica2/crypt /apps/rubrica2/crypt rubrica string never Crypt rubrica's addressbooks (.rub): TODO valid values (cryptographic algoritms) are: never, TODO /schemas/apps/rubrica2/file/folder /apps/rubrica2/file/folder rubrica string ~/.rubrica2 rubrica's default folder /schemas/apps/rubrica2/file/load_files /apps/rubrica2/file/load_files rubrica boolean false Load addressbooks on startup /schemas/apps/rubrica2/file/files /apps/rubrica2/file/files rubrica list Files that rubrica will open at startup /schemas/apps/rubrica2/file/compression_rate /apps/rubrica2/file/compression_rate rubrica int 0 Addressbook compression rate. Possible value are in the range [0,9], 0 addressbook isn't compressed, 9 max compression rate /schemas/apps/rubrica2/file/autosave /apps/rubrica2/file/autosave rubrica bool false Addressbooks will be autosaved after any change /schemas/apps/rubrica2/file/make_backup /apps/rubrica2/file/make_backup rubrica bool true Rubrica will make a backup of addressbooks before overwrite them /schemas/apps/rubrica2/display/card /apps/rubrica2/display/card rubrica bool true show card column /schemas/apps/rubrica2/display/first_name /apps/rubrica2/display/first_name rubrica bool true show first name column /schemas/apps/rubrica2/display/last_name /apps/rubrica2/display/last_name rubrica bool true show last name column /schemas/apps/rubrica2/display/profession /apps/rubrica2/display/profession rubrica bool false show profession column /schemas/apps/rubrica2/display/city /apps/rubrica2/display/city rubrica bool false show city column /schemas/apps/rubrica2/display/country /apps/rubrica2/display/country rubrica bool false show country column /schemas/apps/rubrica2/display/web /apps/rubrica2/display/web rubrica bool true show web column /schemas/apps/rubrica2/display/email /apps/rubrica2/display/email rubrica bool true show email column /schemas/apps/rubrica2/display/telephone /apps/rubrica2/display/telephone rubrica bool true show telephone column /schemas/apps/rubrica2/display/company /apps/rubrica2/display/company rubrica bool false show company column /schemas/apps/rubrica2/display/assignment /apps/rubrica2/display/assignment rubrica bool false show assignment column /schemas/apps/rubrica2/search/performed_on /apps/rubrica2/search/performed_on rubrica string last name field where search is performed on: valid values are: card, first name, last name, profession, city, country, web, emails, telephone, assignment, company /schemas/apps/rubrica2/appearance/toolbar_style /apps/rubrica2/appearance/toolbar_style rubrica string only_icons Toolbar appearence /schemas/apps/rubrica2/appearance/confirm_exit /apps/rubrica2/appearance/confirm_exit rubrica bool false Confirm exit from rubrica /schemas/apps/rubrica2/appearance/enable_tooltips /apps/rubrica2/appearance/enable_tooltips rubrica bool true Enable/disable the tooltips /schemas/apps/rubrica2/urls_manager/browser /apps/rubrica2/urls_manager/browser rubrica string firefox Browser that manages the urls. valid values are: epiphany, firefox, galeon, konqueror, mozilla, opera, other /schemas/apps/rubrica2/urls_manager/emailer /apps/rubrica2/urls_manager/emailer rubrica string thunderbird Emailer that manages the urls. valid values are: balsa, evolution, mozilla, thunderbird, other /schemas/apps/rubrica2/urls_manager/irc /apps/rubrica2/urls_manager/irc rubrica string gaim The irc client that manages the urls. valid values are: gabber, gaim, gajim, gadu, gossip, other rubrica-2.0/config.sub0000644000175000017500000007301510554703327013570 0ustar seb128seb128#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2003-06-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit 0;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k \ | m32r | m68000 | m68k | m88k | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | msp430 \ | ns16k | ns32k \ | openrisc | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | s390 | s390x \ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* \ | m32r-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | msp430-* \ | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | s390-* | s390x-* \ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; crds | unos) basic_machine=m68k-crds ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; mmix*) basic_machine=mmix-knuth os=-mmixware ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nv1) basic_machine=nv1-cray os=-unicosmp ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; or32 | or32-*) basic_machine=or32-unknown os=-coff ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sh64) basic_machine=sh64-unknown ;; sparc | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-ibm) os=-aix ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -ptx*) vendor=sequent ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: rubrica-2.0/depcomp0000755000175000017500000003305210554703327013162 0ustar seb128seb128#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 rubrica-2.0/intltool-update.in0000644000175000017500000006663510554703327015276 0ustar seb128seb128#!@INTLTOOL_PERL@ -w # -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- # # The Intltool Message Updater # # Copyright (C) 2000-2003 Free Software Foundation. # # Intltool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 published by the Free Software Foundation. # # Intltool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # # Authors: Kenneth Christiansen # Maciej Stachowiak # Darin Adler ## Release information my $PROGRAM = "intltool-update"; my $VERSION = "0.35.0"; my $PACKAGE = "intltool"; ## Loaded modules use strict; use Getopt::Long; use Cwd; use File::Copy; use File::Find; ## Scalars used by the option stuff my $HELP_ARG = 0; my $VERSION_ARG = 0; my $DIST_ARG = 0; my $POT_ARG = 0; my $HEADERS_ARG = 0; my $MAINTAIN_ARG = 0; my $REPORT_ARG = 0; my $VERBOSE = 0; my $GETTEXT_PACKAGE = ""; my $OUTPUT_FILE = ""; my @languages; my %varhash = (); my %po_files_by_lang = (); # Regular expressions to categorize file types. # FIXME: Please check if the following is correct my $xml_support = "xml(?:\\.in)*|". # http://www.w3.org/XML/ (Note: .in is not required) "ui|". # Bonobo specific - User Interface desc. files "lang|". # ? "glade2?(?:\\.in)*|". # Glade specific - User Interface desc. files (Note: .in is not required) "scm(?:\\.in)*|". # ? (Note: .in is not required) "oaf(?:\\.in)+|". # DEPRECATED: Replaces by Bonobo .server files "etspec|". # ? "server(?:\\.in)+|". # Bonobo specific "sheet(?:\\.in)+|". # ? "schemas(?:\\.in)+|". # GConf specific "pong(?:\\.in)+|". # DEPRECATED: PONG is not used [by GNOME] any longer. "kbd(?:\\.in)+"; # GOK specific. my $ini_support = "icon(?:\\.in)+|". # http://www.freedesktop.org/Standards/icon-theme-spec "desktop(?:\\.in)+|". # http://www.freedesktop.org/Standards/menu-spec "caves(?:\\.in)+|". # GNOME Games specific "directory(?:\\.in)+|". # http://www.freedesktop.org/Standards/menu-spec "soundlist(?:\\.in)+|". # GNOME specific "keys(?:\\.in)+|". # GNOME Mime database specific "theme(?:\\.in)+|". # http://www.freedesktop.org/Standards/icon-theme-spec "service(?:\\.in)+"; # DBus specific my $buildin_gettext_support = "c|y|cs|cc|cpp|c\\+\\+|h|hh|gob|py"; ## Always flush buffer when printing $| = 1; ## Sometimes the source tree will be rooted somewhere else. my $SRCDIR = "."; my $POTFILES_in; $SRCDIR = $ENV{"srcdir"} if $ENV{"srcdir"}; $POTFILES_in = "<$SRCDIR/POTFILES.in"; my $devnull = ($^O eq 'MSWin32' ? 'NUL:' : '/dev/null'); ## Handle options GetOptions ( "help" => \$HELP_ARG, "version" => \$VERSION_ARG, "dist|d" => \$DIST_ARG, "pot|p" => \$POT_ARG, "headers|s" => \$HEADERS_ARG, "maintain|m" => \$MAINTAIN_ARG, "report|r" => \$REPORT_ARG, "verbose|x" => \$VERBOSE, "gettext-package|g=s" => \$GETTEXT_PACKAGE, "output-file|o=s" => \$OUTPUT_FILE, ) or &Console_WriteError_InvalidOption; &Console_Write_IntltoolHelp if $HELP_ARG; &Console_Write_IntltoolVersion if $VERSION_ARG; my $arg_count = ($DIST_ARG > 0) + ($POT_ARG > 0) + ($HEADERS_ARG > 0) + ($MAINTAIN_ARG > 0) + ($REPORT_ARG > 0); &Console_Write_IntltoolHelp if $arg_count > 1; # --version and --help don't require a module name my $MODULE = $GETTEXT_PACKAGE || &FindPackageName || "unknown"; if ($POT_ARG) { &GenerateHeaders; &GeneratePOTemplate; } elsif ($HEADERS_ARG) { &GenerateHeaders; } elsif ($MAINTAIN_ARG) { &FindLeftoutFiles; } elsif ($REPORT_ARG) { &GenerateHeaders; &GeneratePOTemplate; &Console_Write_CoverageReport; } elsif ((defined $ARGV[0]) && $ARGV[0] =~ /^[a-z]/) { my $lang = $ARGV[0]; ## Report error if the language file supplied ## to the command line is non-existent &Console_WriteError_NotExisting("$SRCDIR/$lang.po") if ! -s "$SRCDIR/$lang.po"; if (!$DIST_ARG) { print "Working, please wait..." if $VERBOSE; &GenerateHeaders; &GeneratePOTemplate; } &POFile_Update ($lang, $OUTPUT_FILE); &Console_Write_TranslationStatus ($lang, $OUTPUT_FILE); } else { &Console_Write_IntltoolHelp; } exit; ######### sub Console_Write_IntltoolVersion { print <<_EOF_; ${PROGRAM} (${PACKAGE}) $VERSION Written by Kenneth Christiansen, Maciej Stachowiak, and Darin Adler. Copyright (C) 2000-2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _EOF_ exit; } sub Console_Write_IntltoolHelp { print <<_EOF_; Usage: ${PROGRAM} [OPTION]... LANGCODE Updates PO template files and merge them with the translations. Mode of operation (only one is allowed): -p, --pot generate the PO template only -s, --headers generate the header files in POTFILES.in -m, --maintain search for left out files from POTFILES.in -r, --report display a status report for the module -d, --dist merge LANGCODE.po with existing PO template Extra options: -g, --gettext-package=NAME override PO template name, useful with --pot -o, --output-file=FILE write merged translation to FILE -x, --verbose display lots of feedback --help display this help and exit --version output version information and exit Examples of use: ${PROGRAM} --pot just create a new PO template ${PROGRAM} xy create new PO template and merge xy.po with it Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") or send email to . _EOF_ exit; } sub echo_n { my $str = shift; my $ret = `echo "$str"`; $ret =~ s/\n$//; # do we need the "s" flag? return $ret; } sub POFile_DetermineType ($) { my $type = $_; my $gettext_type; my $xml_regex = "(?:" . $xml_support . ")"; my $ini_regex = "(?:" . $ini_support . ")"; my $buildin_regex = "(?:" . $buildin_gettext_support . ")"; if ($type =~ /\[type: gettext\/([^\]].*)]/) { $gettext_type=$1; } elsif ($type =~ /schemas(\.in)+$/) { $gettext_type="schemas"; } elsif ($type =~ /glade2?(\.in)*$/) { $gettext_type="glade"; } elsif ($type =~ /scm(\.in)*$/) { $gettext_type="scheme"; } elsif ($type =~ /keys(\.in)+$/) { $gettext_type="keys"; } # bucket types elsif ($type =~ /$xml_regex$/) { $gettext_type="xml"; } elsif ($type =~ /$ini_regex$/) { $gettext_type="ini"; } elsif ($type =~ /$buildin_regex$/) { $gettext_type="buildin"; } else { $gettext_type="unknown"; } return "gettext\/$gettext_type"; } sub TextFile_DetermineEncoding ($) { my $gettext_code="ASCII"; # All files are ASCII by default my $filetype=`file $_ | cut -d ' ' -f 2`; if ($? eq "0") { if ($filetype =~ /^(ISO|UTF)/) { chomp ($gettext_code = $filetype); } elsif ($filetype =~ /^XML/) { $gettext_code="UTF-8"; # We asume that .glade and other .xml files are UTF-8 } } return $gettext_code; } sub isNotValidMissing { my ($file) = @_; return if $file =~ /^\{arch\}\/.*$/; return if $file =~ /^$varhash{"PACKAGE"}-$varhash{"VERSION"}\/.*$/; } sub FindLeftoutFiles { my (@buf_i18n_plain, @buf_i18n_xml, @buf_i18n_xml_unmarked, @buf_i18n_ini, @buf_potfiles, @buf_potfiles_ignore, @buf_allfiles, @buf_allfiles_sorted, @buf_potfiles_sorted ); ## Search and find all translatable files find sub { push @buf_i18n_plain, "$File::Find::name" if /\.($buildin_gettext_support)$/; push @buf_i18n_xml, "$File::Find::name" if /\.($xml_support)$/; push @buf_i18n_ini, "$File::Find::name" if /\.($ini_support)$/; push @buf_i18n_xml_unmarked, "$File::Find::name" if /\.(schemas(\.in)+)$/; }, ".."; open POTFILES, $POTFILES_in or die "$PROGRAM: there's no POTFILES.in!\n"; @buf_potfiles = grep !/^(#|\s*$)/, ; close POTFILES; foreach (@buf_potfiles) { s/^\[.*]\s*//; } print "Searching for missing translatable files...\n" if $VERBOSE; ## Check if we should ignore some found files, when ## comparing with POTFILES.in foreach my $ignore ("POTFILES.skip", "POTFILES.ignore") { (-s $ignore) or next; if ("$ignore" eq "POTFILES.ignore") { print "The usage of POTFILES.ignore is deprecated. Please consider moving the\n". "content of this file to POTFILES.skip.\n"; } print "Found $ignore: Ignoring files...\n" if $VERBOSE; open FILE, "<$ignore" or die "ERROR: Failed to open $ignore!\n"; while () { push @buf_potfiles_ignore, $_ unless /^(#|\s*$)/; } close FILE; @buf_potfiles = (@buf_potfiles_ignore, @buf_potfiles); } foreach my $file (@buf_i18n_plain) { my $in_comment = 0; my $in_macro = 0; open FILE, "<$file"; while () { # Handle continued multi-line comment. if ($in_comment) { next unless s-.*\*/--; $in_comment = 0; } # Handle continued macro. if ($in_macro) { $in_macro = 0 unless /\\$/; next; } # Handle start of macro (or any preprocessor directive). if (/^\s*\#/) { $in_macro = 1 if /^([^\\]|\\.)*\\$/; next; } # Handle comments and quoted text. while (m-(/\*|//|\'|\")-) # \' and \" keep emacs perl mode happy { my $match = $1; if ($match eq "/*") { if (!s-/\*.*?\*/--) { s-/\*.*--; $in_comment = 1; } } elsif ($match eq "//") { s-//.*--; } else # ' or " { if (!s-$match([^\\]|\\.)*?$match-QUOTEDTEXT-) { warn "mismatched quotes at line $. in $file\n"; s-$match.*--; } } } if (/\.GetString ?\(QUOTEDTEXT/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { ## Remove the first 3 chars and add newline push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } if (/_\(QUOTEDTEXT/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { ## Remove the first 3 chars and add newline push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } } close FILE; } foreach my $file (@buf_i18n_xml) { open FILE, "<$file"; while () { # FIXME: share the pattern matching code with intltool-extract if (/\s_[-A-Za-z0-9._:]+\s*=\s*\"([^"]+)\"/ || /<_[^>]+>/ || /translatable=\"yes\"/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } } close FILE; } foreach my $file (@buf_i18n_ini) { open FILE, "<$file"; while () { if (/_(.*)=/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } } close FILE; } foreach my $file (@buf_i18n_xml_unmarked) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } } @buf_allfiles_sorted = sort (@buf_allfiles); @buf_potfiles_sorted = sort (@buf_potfiles); my %in2; foreach (@buf_potfiles_sorted) { $in2{$_} = 1; } my @result; foreach (@buf_allfiles_sorted) { if (!exists($in2{$_})) { push @result, $_ } } my @buf_potfiles_notexist; foreach (@buf_potfiles_sorted) { chomp (my $dummy = $_); if ("$dummy" ne "" and ! -f "../$dummy") { push @buf_potfiles_notexist, $_; } } ## Save file with information about the files missing ## if any, and give information about this procedure. if (@result + @buf_potfiles_notexist > 0) { if (@result) { print "\n" if $VERBOSE; unlink "missing"; open OUT, ">missing"; print OUT @result; close OUT; warn "\e[1mThe following files contain translations and are currently not in use. Please\e[0m\n". "\e[1mconsider adding these to the POTFILES.in file, located in the po/ directory.\e[0m\n\n"; print STDERR @result, "\n"; warn "If some of these files are left out on purpose then please add them to\n". "POTFILES.skip instead of POTFILES.in. A file \e[1m'missing'\e[0m containing this list\n". "of left out files has been written in the current directory.\n"; } if (@buf_potfiles_notexist) { unlink "notexist"; open OUT, ">notexist"; print OUT @buf_potfiles_notexist; close OUT; warn "\n" if ($VERBOSE or @result); warn "\e[1mThe following files do not exist anymore:\e[0m\n\n"; warn @buf_potfiles_notexist, "\n"; warn "Please remove them from POTFILES.in or POTFILES.skip. A file \e[1m'notexist'\e[0m\n". "containing this list of absent files has been written in the current directory.\n"; } } ## If there is nothing to complain about, notify the user else { print "\nAll files containing translations are present in POTFILES.in.\n" if $VERBOSE; } } sub Console_WriteError_InvalidOption { ## Handle invalid arguments print STDERR "Try `${PROGRAM} --help' for more information.\n"; exit 1; } sub GenerateHeaders { my $EXTRACT = "@INTLTOOL_EXTRACT@"; chomp $EXTRACT; $EXTRACT = $ENV{"INTLTOOL_EXTRACT"} if $ENV{"INTLTOOL_EXTRACT"}; ## Generate the .h header files, so we can allow glade and ## xml translation support if (! -x "$EXTRACT") { print STDERR "\n *** The intltool-extract script wasn't found!" ."\n *** Without it, intltool-update can not generate files.\n"; exit; } else { open (FILE, $POTFILES_in) or die "$PROGRAM: POTFILES.in not found.\n"; while () { chomp; next if /^\[\s*encoding/; ## Find xml files in POTFILES.in and generate the ## files with help from the extract script my $gettext_type= &POFile_DetermineType ($1); if (/\.($xml_support|$ini_support)$/ || /^\[/) { s/^\[[^\[].*]\s*//; my $filename = "../$_"; if ($VERBOSE) { system ($EXTRACT, "--update", "--srcdir=$SRCDIR", "--type=$gettext_type", $filename); } else { system ($EXTRACT, "--update", "--type=$gettext_type", "--srcdir=$SRCDIR", "--quiet", $filename); } } } close FILE; } } # # Generate .pot file from POTFILES.in # sub GeneratePOTemplate { my $XGETTEXT = $ENV{"XGETTEXT"} || "@INTLTOOL_XGETTEXT@"; my $XGETTEXT_ARGS = $ENV{"XGETTEXT_ARGS"} || ''; chomp $XGETTEXT; if (! -x $XGETTEXT) { print STDERR " *** xgettext is not found on this system!\n". " *** Without it, intltool-update can not extract strings.\n"; exit; } print "Building $MODULE.pot...\n" if $VERBOSE; open INFILE, $POTFILES_in; unlink "POTFILES.in.temp"; open OUTFILE, ">POTFILES.in.temp" or die("Cannot open POTFILES.in.temp for writing"); my $gettext_support_nonascii = 0; # checks for GNU gettext >= 0.12 my $dummy = `$XGETTEXT --version --from-code=UTF-8 >$devnull 2>$devnull`; if ($? == 0) { $gettext_support_nonascii = 1; } else { # urge everybody to upgrade gettext print STDERR "WARNING: This version of gettext does not support extracting non-ASCII\n". " strings. That means you should install a version of gettext\n". " that supports non-ASCII strings (such as GNU gettext >= 0.12),\n". " or have to let non-ASCII strings untranslated. (If there is any)\n"; } my $encoding = "ASCII"; my $forced_gettext_code; my @temp_headers; my $encoding_problem_is_reported = 0; while () { next if (/^#/ or /^\s*$/); chomp; my $gettext_code; if (/^\[\s*encoding:\s*(.*)\s*\]/) { $forced_gettext_code=$1; } elsif (/\.($xml_support|$ini_support)$/ || /^\[/) { s/^\[.*]\s*//; print OUTFILE "../$_.h\n"; push @temp_headers, "../$_.h"; $gettext_code = &TextFile_DetermineEncoding ("../$_.h") if ($gettext_support_nonascii and not defined $forced_gettext_code); } else { if ($SRCDIR eq ".") { print OUTFILE "../$_\n"; } else { print OUTFILE "$SRCDIR/../$_\n"; } $gettext_code = &TextFile_DetermineEncoding ("../$_") if ($gettext_support_nonascii and not defined $forced_gettext_code); } next if (! $gettext_support_nonascii); if (defined $forced_gettext_code) { $encoding=$forced_gettext_code; } elsif (defined $gettext_code and "$encoding" ne "$gettext_code") { if ($encoding eq "ASCII") { $encoding=$gettext_code; } elsif ($gettext_code ne "ASCII") { # Only report once because the message is quite long if (! $encoding_problem_is_reported) { print STDERR "WARNING: You should use the same file encoding for all your project files,\n". " but $PROGRAM thinks that most of the source files are in\n". " $encoding encoding, while \"$_\" is (likely) in\n". " $gettext_code encoding. If you are sure that all translatable strings\n". " are in same encoding (say UTF-8), please \e[1m*prepend*\e[0m the following\n". " line to POTFILES.in:\n\n". " [encoding: UTF-8]\n\n". " and make sure that configure.in/ac checks for $PACKAGE >= 0.27 .\n". "(such warning message will only be reported once.)\n"; $encoding_problem_is_reported = 1; } } } } close OUTFILE; close INFILE; unlink "$MODULE.pot"; my @xgettext_argument=("$XGETTEXT", "--add-comments", "--directory\=\.", "--output\=$MODULE\.pot", "--files-from\=\.\/POTFILES\.in\.temp"); my $XGETTEXT_KEYWORDS = &FindPOTKeywords; push @xgettext_argument, $XGETTEXT_KEYWORDS; my $MSGID_BUGS_ADDRESS = &FindMakevarsBugAddress; push @xgettext_argument, "--msgid-bugs-address\=$MSGID_BUGS_ADDRESS" if $MSGID_BUGS_ADDRESS; push @xgettext_argument, "--from-code\=$encoding" if ($gettext_support_nonascii); push @xgettext_argument, $XGETTEXT_ARGS if $XGETTEXT_ARGS; my $xgettext_command = join ' ', @xgettext_argument; # intercept xgettext error message print "Running $xgettext_command\n" if $VERBOSE; my $xgettext_error_msg = `$xgettext_command 2>\&1`; my $command_failed = $?; unlink "POTFILES.in.temp"; print "Removing generated header (.h) files..." if $VERBOSE; unlink foreach (@temp_headers); print "done.\n" if $VERBOSE; if (! $command_failed) { if (! -e "$MODULE.pot") { print "None of the files in POTFILES.in contain strings marked for translation.\n" if $VERBOSE; } else { print "Wrote $MODULE.pot\n" if $VERBOSE; } } else { if ($xgettext_error_msg =~ /--from-code/) { # replace non-ASCII error message with a more useful one. print STDERR "ERROR: xgettext failed to generate PO template file because there is non-ASCII\n". " string marked for translation. Please make sure that all strings marked\n". " for translation are in uniform encoding (say UTF-8), then \e[1m*prepend*\e[0m the\n". " following line to POTFILES.in and rerun $PROGRAM:\n\n". " [encoding: UTF-8]\n\n"; } else { print STDERR "$xgettext_error_msg"; if (-e "$MODULE.pot") { # is this possible? print STDERR "ERROR: xgettext failed but still managed to generate PO template file.\n". " Please consult error message above if there is any.\n"; } else { print STDERR "ERROR: xgettext failed to generate PO template file. Please consult\n". " error message above if there is any.\n"; } } exit (1); } } sub POFile_Update { -f "$MODULE.pot" or die "$PROGRAM: $MODULE.pot does not exist.\n"; my $MSGMERGE = $ENV{"MSGMERGE"} || "@INTLTOOL_MSGMERGE@"; my ($lang, $outfile) = @_; print "Merging $SRCDIR/$lang.po with $MODULE.pot..." if $VERBOSE; my $infile = "$SRCDIR/$lang.po"; $outfile = "$SRCDIR/$lang.po" if ($outfile eq ""); # I think msgmerge won't overwrite old file if merge is not successful system ("$MSGMERGE", "-o", $outfile, $infile, "$MODULE.pot"); } sub Console_WriteError_NotExisting { my ($file) = @_; ## Report error if supplied language file is non-existing print STDERR "$PROGRAM: $file does not exist!\n"; print STDERR "Try '$PROGRAM --help' for more information.\n"; exit; } sub GatherPOFiles { my @po_files = glob ("./*.po"); @languages = map (&POFile_GetLanguage, @po_files); foreach my $lang (@languages) { $po_files_by_lang{$lang} = shift (@po_files); } } sub POFile_GetLanguage ($) { s/^(.*\/)?(.+)\.po$/$2/; return $_; } sub Console_Write_TranslationStatus { my ($lang, $output_file) = @_; my $MSGFMT = $ENV{"MSGFMT"} || "@INTLTOOL_MSGFMT@"; $output_file = "$SRCDIR/$lang.po" if ($output_file eq ""); system ("$MSGFMT", "-o", "$devnull", "--verbose", $output_file); } sub Console_Write_CoverageReport { my $MSGFMT = $ENV{"MSGFMT"} || "@INTLTOOL_MSGFMT@"; &GatherPOFiles; foreach my $lang (@languages) { print "$lang: "; &POFile_Update ($lang, ""); } print "\n\n * Current translation support in $MODULE \n\n"; foreach my $lang (@languages) { print "$lang: "; system ("$MSGFMT", "-o", "$devnull", "--verbose", "$SRCDIR/$lang.po"); } } sub SubstituteVariable { my ($str) = @_; # always need to rewind file whenever it has been accessed seek (CONF, 0, 0); # cache each variable. varhash is global to we can add # variables elsewhere. while () { if (/^(\w+)=(.*)$/) { ($varhash{$1} = $2) =~ s/^["'](.*)["']$/$1/; } } if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/) { my $rest = $3; my $untouched = $1; my $sub = ""; # Ignore recursive definitions of variables $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\${?$2}?/; return SubstituteVariable ("$untouched$sub$rest"); } # We're using Perl backticks ` and "echo -n" here in order to # expand any shell escapes (such as backticks themselves) in every variable return echo_n ($str); } sub CONF_Handle_Open { my $base_dirname = getcwd(); $base_dirname =~ s@.*/@@; my ($conf_in, $src_dir); if ($base_dirname =~ /^po(-.+)?$/) { if (-f "Makevars") { my $makefile_source; local (*IN); open (IN, ") { if (/^top_builddir[ \t]*=/) { $src_dir = $_; $src_dir =~ s/^top_builddir[ \t]*=[ \t]*([^ \t\n\r]*)/$1/; chomp $src_dir; if (-f "$src_dir" . "/configure.ac") { $conf_in = "$src_dir" . "/configure.ac" . "\n"; } else { $conf_in = "$src_dir" . "/configure.in" . "\n"; } last; } } close IN; $conf_in || die "Cannot find top_builddir in Makevars."; } elsif (-f "../configure.ac") { $conf_in = "../configure.ac"; } elsif (-f "../configure.in") { $conf_in = "../configure.in"; } else { my $makefile_source; local (*IN); open (IN, ") { if (/^top_srcdir[ \t]*=/) { $src_dir = $_; $src_dir =~ s/^top_srcdir[ \t]*=[ \t]*([^ \t\n\r]*)/$1/; chomp $src_dir; $conf_in = "$src_dir" . "/configure.in" . "\n"; last; } } close IN; $conf_in || die "Cannot find top_srcdir in Makefile."; } open (CONF, "<$conf_in"); } else { print STDERR "$PROGRAM: Unable to proceed.\n" . "Make sure to run this script inside the po directory.\n"; exit; } } sub FindPackageName { my $version; my $domain = &FindMakevarsDomain; my $name = $domain || "untitled"; &CONF_Handle_Open; my $conf_source; { local (*IN); open (IN, "<&CONF") || return $name; seek (IN, 0, 0); local $/; # slurp mode $conf_source = ; close IN; } # priority for getting package name: # 1. GETTEXT_PACKAGE # 2. first argument of AC_INIT (with >= 2 arguments) # 3. first argument of AM_INIT_AUTOMAKE (with >= 2 argument) # /^AM_INIT_AUTOMAKE\([\s\[]*([^,\)\s\]]+)/m # the \s makes this not work, why? if ($conf_source =~ /^AM_INIT_AUTOMAKE\(([^,\)]+),([^,\)]+)/m) { ($name, $version) = ($1, $2); $name =~ s/[\[\]\s]//g; $version =~ s/[\[\]\s]//g; $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/); $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/); $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/); $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/); } if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)/m) { ($name, $version) = ($1, $2); $name =~ s/[\[\]\s]//g; $version =~ s/[\[\]\s]//g; $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/); $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/); $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/); $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/); } # \s makes this not work, why? $name = $1 if $conf_source =~ /^GETTEXT_PACKAGE=\[?([^\n\]]+)/m; # m4 macros AC_PACKAGE_NAME, AC_PACKAGE_VERSION etc. have same value # as corresponding $PACKAGE_NAME, $PACKAGE_VERSION etc. shell variables. $name =~ s/\bAC_PACKAGE_/\$PACKAGE_/g; $name = $domain if $domain; $name = SubstituteVariable ($name); $name =~ s/^["'](.*)["']$/$1/; return $name if $name; } sub FindPOTKeywords { my $keywords = "--keyword\=\_ --keyword\=N\_ --keyword\=U\_ --keyword\=Q\_"; my $varname = "XGETTEXT_OPTIONS"; my $make_source; { local (*IN); open (IN, "; close IN; } $keywords = $1 if $make_source =~ /^$varname[ ]*=\[?([^\n\]]+)/m; return $keywords; } sub FindMakevarsDomain { my $domain = ""; my $makevars_source; { local (*IN); open (IN, "; close IN; } $domain = $1 if $makevars_source =~ /^DOMAIN[ ]*=\[?([^\n\]\$]+)/m; $domain =~ s/^\s+//; $domain =~ s/\s+$//; return $domain; } sub FindMakevarsBugAddress { my $address = ""; my $makevars_source; { local (*IN); open (IN, "; close IN; } $address = $1 if $makevars_source =~ /^MSGID_BUGS_ADDRESS[ ]*=\[?([^\n\]\$]+)/m; $address =~ s/^\s+//; $address =~ s/\s+$//; return $address; } rubrica-2.0/rubrica2.spec0000644000175000017500000000330110637712713014165 0ustar seb128seb128# # based on Dag Wieers rubrica.spec file # %define rel 1 Name: rubrica2 Summary: Rubrica, an address book for Gnome Environment. Version: 2.0 Release: %rel License: GPL Group: Applications/Productivity Source: http://download.berlios.de/rubrica/%{name}-%{version}.tar.bz2 URL: http://rubrica.berlios.de Vendor: Nicola Fragale Packager: Nicola Fragale BuildRoot: %{_tmppath}/root-%{name}-%{version} Prefix: %{_prefix} Requires: gtk2 >= 2.6, libglade2, libxml2 BuildRequires: gtk2-devel >= 2.6, libglade2-devel, libxml2-devel %description An address book for GNOME Environment. %prep %setup %build %configure \ --disable-install-schemas \ --enable-nls %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" %makeinstall %find_lang %{name} %{__rm} -rf %{buildroot}%{_docdir}/rubrica2 %post export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null scrollkeeper-update -q %postun scrollkeeper-update -q %clean %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root, 0755) %doc README ChangeLog COPYING AUTHORS NEWS TODO CREDITS %config %{_sysconfdir}/gconf/schemas/*.schemas %{_bindir}/* %{_libdir}/libral.* %{_libdir}/libral/plugins/* %{_datadir}/rubrica2/interface/ %{_datadir}/icons/hicolor/* %{_datadir}/applications/*.desktop %{_datadir}/mime-info/* %exclude %{_datadir}/icons/hicolor/icon-theme.cache %exclude %{_libdir}/*.a %exclude %{_libdir}/*.la %exclude %{_libdir}/libral/plugins/*.?a %exclude %{_libdir}/libral/plugins/*.la