gnoemoe-2.2.0/0000755000175000017500000000000010517753114012154 5ustar jessejessegnoemoe-2.2.0/m4/0000755000175000017500000000000010517753111012471 5ustar jessejessegnoemoe-2.2.0/m4/intltool.m40000644000175000017500000002367710517752433014624 0ustar jessejesse## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- ## Copyright (C) 2001 Eazel, Inc. ## Author: Maciej Stachowiak ## Kenneth Christiansen ## ## 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. 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) 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], ...) gnoemoe-2.2.0/po/0000755000175000017500000000000010517753114012572 5ustar jessejessegnoemoe-2.2.0/po/ChangeLog0000644000175000017500000000046710410766740014354 0ustar jessejesse2005-07-11 Jesse van den Kieboom * Added/Fixed Dutch (nl) translations 2004-13-12 Jesse van den Kieboom * Added/Fixed Dutch (nl) translations 2004-09-10 Jesse van den Kieboom * Added Dutch (nl) translations gnoemoe-2.2.0/po/Makefile.in.in0000644000175000017500000001466210517752433015260 0ustar jessejesse# 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: gnoemoe-2.2.0/po/POTFILES.in0000644000175000017500000000201210422706321014333 0ustar jessejesse# List of source files containing translatable strings. [encoding: UTF-8] gnoemoe/gm-app.c gnoemoe/gm-net.c gnoemoe/gm-scripts.c gnoemoe/gm-ui.h gnoemoe/gm-world.c gnoemoe/dialogs/gm-scripts-dialog.c gnoemoe/dialogs/gm-triggers-dialog.c gnoemoe/dialogs/gm-world-info-dialog.c gnoemoe/dialogs/gm-world-logs-dialog.c gnoemoe/dialogs/gm-world-properties-dialog.c gnoemoe/dialogs/gm-worlds-list-dialog.c gnoemoe/dialogs/gm-open-world-dialog.c gnoemoe/dialogs/gm-preferences-dialog.c gnoemoe/dialogs/gm-world-paste-dialog.c gnoemoe/widgets/gm-world-view.c gnoemoe/widgets/gm-editor-view.c gnoemoe/widgets/gm-app-view.c gnoemoe/widgets/gm-log-view.c gnoemoe/widgets/gm-world-text-view.c gnoemoe/widgets/gm-worlds-view.c gnoemoe/mcp/gm-mcp-userlist-view.c gnoemoe/mcp/gm-mcp-icecrew-userlist.c gnoemoe/mcp/gm-mcp-vmoo-userlist.c gnoemoe/parser/parser.y ui/gm-scripts.glade ui/gm-preferences.glade ui/gm-worlds-list.glade ui/gm-world-properties.glade ui/gm-triggers.glade ui/gm-world-info.glade ui/gm-world-logs.glade ui/gm-world-paste.glade gnoemoe-2.2.0/po/nl.po0000644000175000017500000012142310517752023013544 0ustar jessejesse# GnoeMoe Gnome MOO Client. # Copyright (C) 2004 # This file is distributed under the same license as the gnoemoe package. # Jesse van den Kieboom, 2004. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: gnoemoe 0.8.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2006-10-25 23:16+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Jesse van den Kieboom \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../gnoemoe/gm-app.c:30 msgid "" "Enable debugging. Specify multiple debug levels with a comma seperated list. " "Available levels: default, mcp, all" msgstr "" "Debuggen. Specificeer meerdere debug niveau's door middel van een komma " "gescheiden lijst.Beschikbare niveau's: default, mcp, all" #: ../gnoemoe/gm-app.c:32 msgid "DBGGLEVEL" msgstr "DBGNIVEAU" #: ../gnoemoe/gm-app.c:33 msgid "Show application version" msgstr "Toon applicatie versie" #: ../gnoemoe/gm-app.c:35 msgid "" "Load specified worlds. Specify multiple worlds with a comma separated list" msgstr "" "Laadt gespecifieerde werelden. Specificeer meerdere werelden door middel van " "een komma gescheiden lijst" #: ../gnoemoe/gm-app.c:37 msgid "WORLDS" msgstr "WERELDEN" #: ../gnoemoe/gm-app.c:38 msgid "Recover from previous session (used with gnome session)" msgstr "" "Herstel van de vorige opgeslagen sessie (wordt gebruikt door gnome sessies)" #: ../gnoemoe/gm-app.c:508 #, c-format msgid "" "GnoeMoe Application: there is no application directory, this is very bad!!!\n" msgstr "GnoeMoe Applicatie: er is geen applicatie map, dit is heel erg!!!\n" #: ../gnoemoe/gm-app.c:540 #, c-format msgid "Current version of GnoeMoe is %s\n" msgstr "Huidige versie van GnoeMoe is %s\n" #: ../gnoemoe/gm-net.c:263 ../gnoemoe/widgets/gm-world-view.c:872 #, c-format msgid "Connection lost... (%s)" msgstr "Connectie verloren... (%s)" #: ../gnoemoe/gm-net.c:317 msgid "Could not make connection..." msgstr "Kon geen verbinding maken..." #: ../gnoemoe/gm-net.c:503 msgid "No addresses available" msgstr "Geen adressen beschikbaar" #: ../gnoemoe/gm-net.c:623 msgid "Not connected" msgstr "Niet verbonden" #: ../gnoemoe/gm-net.c:719 msgid "Connect timeout (5)" msgstr "Verbinden timeout (5)" #: ../gnoemoe/gm-scripts.c:328 #, c-format msgid "Error in execution: %s" msgstr "Error bij het uitvoeren van: %s" #: ../gnoemoe/gm-scripts.c:335 msgid "Ruby backtrace:" msgstr "Ruby backtrace:" #: ../gnoemoe/gm-scripts.c:341 #, c-format msgid "\tfrom %s" msgstr "\tuit %s" #: ../gnoemoe/gm-scripts.c:400 #, c-format msgid "Run script '%s' from '%s' (%s)" msgstr "Script '%s' uit '%s' (%s) uitvoeren" #: ../gnoemoe/gm-scripts.c:404 #, c-format msgid "Run script '%s' from '%s' ()" msgstr "Script '%s' uit '%s' () uitvoeren" #: ../gnoemoe/gm-scripts.c:448 #, c-format msgid "Registering functions from '%s'" msgstr "Functies registreren uit '%s'" #: ../gnoemoe/gm-scripts.c:509 #, c-format msgid "File `%s' is not a valid ruby file" msgstr "Bestand `%s' is geen geldig ruby bestand" #: ../gnoemoe/gm-scripts.c:522 #, c-format msgid "File `%s' already loaded" msgstr "Bestand `%s' is al toegevoegd" #: ../gnoemoe/gm-scripts.c:532 #, c-format msgid "File `%s' added" msgstr "Bestand `%s' toegevoegd" #: ../gnoemoe/gm-scripts.c:855 #, c-format msgid "Register function '%s' from '%s'" msgstr "Registreer functie '%s' uit '%s" #: ../gnoemoe/gm-scripts.c:863 #, c-format msgid "Script '%s' is already defined" msgstr "Script '%s' is al gedefinieerd" #. Toplevel #: ../gnoemoe/gm-ui.h:19 msgid "_World" msgstr "_Wereld" #: ../gnoemoe/gm-ui.h:20 msgid "_Edit" msgstr "_Bewerken" #: ../gnoemoe/gm-ui.h:21 msgid "_View" msgstr "_Beeld" #: ../gnoemoe/gm-ui.h:22 msgid "_Help" msgstr "_Hulp" #. World menu #: ../gnoemoe/gm-ui.h:25 msgid "New World..." msgstr "Nieuwe Wereld..." #: ../gnoemoe/gm-ui.h:26 msgid "Create a new world" msgstr "Maak een nieuwe wereld" #: ../gnoemoe/gm-ui.h:27 msgid "Open World..." msgstr "Open Wereld..." #: ../gnoemoe/gm-ui.h:28 msgid "Open an existing world" msgstr "Open een bestaande wereld" #: ../gnoemoe/gm-ui.h:31 msgid "Quit the program" msgstr "Sluit het programma af" #. Edit menu #: ../gnoemoe/gm-ui.h:34 msgid "Worlds..." msgstr "Werelden..." #: ../gnoemoe/gm-ui.h:35 msgid "Edit worlds" msgstr "Bewerk werelden" #: ../gnoemoe/gm-ui.h:37 msgid "Configure the application" msgstr "Configureer de applicatie" #: ../gnoemoe/gm-ui.h:39 ../gnoemoe/dialogs/gm-scripts-dialog.c:375 #: ../ui/gm-scripts.glade.h:4 msgid "Scripts" msgstr "Scripts" #: ../gnoemoe/gm-ui.h:40 msgid "Edit scripts" msgstr "Bewerk scripts" #: ../gnoemoe/gm-ui.h:44 msgid "About this application" msgstr "Over deze applicatie" #. View menu #: ../gnoemoe/gm-ui.h:50 msgid "_Toolbar" msgstr "_Werkbalk" #: ../gnoemoe/gm-ui.h:51 msgid "Show or hide the toolbar" msgstr "Toon of verberg de werkbalk" #: ../gnoemoe/gm-ui.h:52 msgid "_Userlist" msgstr "_Gebruikerslijst" #: ../gnoemoe/gm-ui.h:53 msgid "Show or hide the world userlist" msgstr "Toon of verberg de wereld gebruikerslijst" #: ../gnoemoe/gm-ui.h:58 msgid "E_ditor" msgstr "E_ditor" #. Editor toolbar #: ../gnoemoe/gm-ui.h:60 msgid "Save" msgstr "Opslaan" #: ../gnoemoe/gm-ui.h:61 msgid "Save editor contents" msgstr "Sla editor inhoud op" #: ../gnoemoe/gm-ui.h:63 msgid "Save and close" msgstr "Opslaan en sluiten" #: ../gnoemoe/gm-ui.h:64 msgid "Save editor contents and close editor" msgstr "Sla editor inhoud op en sluit editor" #: ../gnoemoe/gm-ui.h:67 msgid "Check code" msgstr "Controleer code" #: ../gnoemoe/gm-ui.h:68 msgid "Check code for warnings and errors" msgstr "Controleer code op waarschuwingen en fouten" #: ../gnoemoe/gm-ui.h:71 msgid "Close" msgstr "Sluiten" #: ../gnoemoe/gm-ui.h:72 msgid "Close current editor" msgstr "Sluit de huidige wereld" #. File menu #: ../gnoemoe/gm-ui.h:79 ../gnoemoe/widgets/gm-app-view.c:877 msgid "Connect" msgstr "Verbinden" #: ../gnoemoe/gm-ui.h:80 ../gnoemoe/widgets/gm-app-view.c:878 msgid "Connect the current world" msgstr "Maak verbinding met de huidige wereld" #: ../gnoemoe/gm-ui.h:83 msgid "Close current world" msgstr "Sluit de huidige wereld" #: ../gnoemoe/gm-ui.h:84 ../ui/gm-world-paste.glade.h:3 msgid "Paste" msgstr "Plakken" #: ../gnoemoe/gm-ui.h:85 msgid "Paste text to the current world" msgstr "Plak tekst naar de huidige wereld" #: ../gnoemoe/gm-ui.h:87 ../gnoemoe/dialogs/gm-world-logs-dialog.c:28 msgid "Logs" msgstr "Logs" #: ../gnoemoe/gm-ui.h:88 msgid "View current world logs" msgstr "Bekijk logs van de huidige wereld" #: ../gnoemoe/gm-ui.h:90 msgid "In_fo" msgstr "In_fo" #: ../gnoemoe/gm-ui.h:91 msgid "View current world info" msgstr "Bekijk info van de huidige wereld" #: ../gnoemoe/gm-ui.h:95 msgid "Cut the selection" msgstr "Knip de selectie" #: ../gnoemoe/gm-ui.h:97 msgid "Copy the selection" msgstr "Kopieër de selectie" #: ../gnoemoe/gm-ui.h:99 msgid "Paste the clipboard" msgstr "Plak het klembord" #: ../gnoemoe/gm-ui.h:100 msgid "Current world..." msgstr "Huidige wereld..." #: ../gnoemoe/gm-ui.h:101 ../gnoemoe/gm-ui.h:117 msgid "Edit the current world" msgstr "Bewerk de huidige wereld" #: ../gnoemoe/gm-ui.h:104 msgid "Search for text" msgstr "Zoeken naar tekst" #: ../gnoemoe/gm-ui.h:105 msgid "Find Ne_xt" msgstr "V_olgende zoeken" #: ../gnoemoe/gm-ui.h:106 msgid "Search forwards for the same text" msgstr "Voorwaarts zoeken naar dezelfde tekst" #: ../gnoemoe/gm-ui.h:108 msgid "_Replace..." msgstr "Ve_rvangen..." #: ../gnoemoe/gm-ui.h:109 msgid "Search for and replace text" msgstr "Zoeken naar en vervangen van tekst" #. Toolbar #: ../gnoemoe/gm-ui.h:113 ../ui/gm-world-properties.glade.h:28 #: ../ui/gm-triggers.glade.h:5 msgid "Triggers" msgstr "Triggers" #: ../gnoemoe/gm-ui.h:114 msgid "Edit the current world triggers" msgstr "Bewerk de huidige wereld triggers" #: ../gnoemoe/gm-ui.h:116 msgid "Properties" msgstr "Eigenschappen" #: ../gnoemoe/gm-world.c:1305 msgid "Could not save editor text, world is not connected at the moment" msgstr "Kon editor tekst niet opslaan, wereld is op het moment niet verbonden" #: ../gnoemoe/gm-world.c:1342 msgid "Reconnecting in 3 seconds..." msgstr "Opnieuw verbinden in 3 seconden..." #: ../gnoemoe/dialogs/gm-scripts-dialog.c:30 msgid "" "=begin\n" "\t\n" "\t<copyright>\n" "\n" "\tRegister functions in the register_functions method defined below.\n" "\tRegister functions with $scripts.register(<name>, <description>[, " "<alias>])\n" "=end\n" "\n" "def register_functions\n" "\t$scripts.register(\"myscript\", \"use /myscript\")\n" "end\n" "\n" "def myscript(argstr)\n" "\t# Insert code here\n" "end\n" msgstr "" "=begin\n" "\t<titel>\n" "\t<copyright>\n" "\n" "\tRegistreer functies in de register_functions methode hier beneden.\n" "\tRegistreer functies met $scripts.register(<naam>, <beschrijving>[, " "<alias>])\n" "=end\n" "\n" "def register_functions\n" "\t$scripts.register(\"mijnscript\", \"gebruik /mijnscript\")\n" "end\n" "\n" "def mijnscript(argstr)\n" "\t# Code hier invoegen\n" "end\n" #: ../gnoemoe/dialogs/gm-scripts-dialog.c:146 msgid "Saved " msgstr "Opgeslagen " #: ../gnoemoe/dialogs/gm-scripts-dialog.c:162 msgid "Saving failed: " msgstr "Opslaan mislukt: " #: ../gnoemoe/dialogs/gm-scripts-dialog.c:211 msgid "Loaded " msgstr "Ingeladen " #: ../gnoemoe/dialogs/gm-scripts-dialog.c:224 #: ../gnoemoe/dialogs/gm-scripts-dialog.c:673 msgid "New <untitled>" msgstr "Nieuw <naamloos>" #: ../gnoemoe/dialogs/gm-scripts-dialog.c:339 #: ../gnoemoe/dialogs/gm-scripts-dialog.c:461 msgid "User" msgstr "Gebruiker" #: ../gnoemoe/dialogs/gm-scripts-dialog.c:341 #: ../gnoemoe/dialogs/gm-scripts-dialog.c:458 #: ../gnoemoe/dialogs/gm-scripts-dialog.c:743 msgid "Share" msgstr "Gedeeld" #: ../gnoemoe/dialogs/gm-scripts-dialog.c:486 msgid "Filename" msgstr "Bestandsnaam" #: ../gnoemoe/dialogs/gm-scripts-dialog.c:813 msgid "Changed " msgstr "Veranderd " #: ../gnoemoe/dialogs/gm-scripts-dialog.c:815 msgid "Changed <untitled>" msgstr "Veranderd <niet opgeslagen>" #: ../gnoemoe/dialogs/gm-scripts-dialog.c:842 msgid "Save file" msgstr "Bestand opslaan" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:104 ../ui/gm-preferences.glade.h:18 msgid "Black" msgstr "Zwart" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:105 ../ui/gm-preferences.glade.h:48 msgid "Red" msgstr "Rood" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:106 ../ui/gm-preferences.glade.h:34 msgid "Green" msgstr "Groen" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:107 ../ui/gm-preferences.glade.h:62 msgid "Yellow" msgstr "Geel" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:108 ../ui/gm-preferences.glade.h:20 msgid "Blue" msgstr "Blauw" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:109 ../ui/gm-preferences.glade.h:45 msgid "Purple" msgstr "Paars" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:110 ../ui/gm-preferences.glade.h:24 msgid "Cyan" msgstr "Cyaan" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:111 ../ui/gm-preferences.glade.h:60 msgid "White" msgstr "Wit" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:116 msgid "Contains" msgstr "Bevat:" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:117 msgid "Not contains" msgstr "Bevat niet" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:118 msgid "Begins with" msgstr "Begint met" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:119 msgid "Not begins with" msgstr "Begint niet met" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:120 msgid "Ends with" msgstr "Eindigt met" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:121 msgid "Not ends with" msgstr "Eindigt niet met" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:122 msgid "Matches" msgstr "Matched" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:123 msgid "Not matches" msgstr "Matched niet" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:128 msgid "Online" msgstr "Verbonden" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:129 msgid "Offline" msgstr "Niet verbonden" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:130 #: ../gnoemoe/mcp/gm-mcp-icecrew-userlist.c:942 msgid "Idle" msgstr "Luieren" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:131 msgid "No longer idle" msgstr "Niet langer inactief" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:132 #: ../gnoemoe/mcp/gm-mcp-icecrew-userlist.c:938 msgid "Away" msgstr "Afwezig" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:133 msgid "No longer away" msgstr "Niet langer afwezig" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:138 msgid "Highlight line" msgstr "Markeer regel" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:140 msgid "Highlight match" msgstr "Markeer match" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:142 #: ../gnoemoe/dialogs/gm-triggers-dialog.c:156 msgid "Beep" msgstr "Beep" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:143 #: ../gnoemoe/dialogs/gm-triggers-dialog.c:157 msgid "Play sound" msgstr "Geluid afspelen" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:145 #: ../gnoemoe/dialogs/gm-triggers-dialog.c:159 msgid "Notify" msgstr "Notificeren" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:147 #: ../gnoemoe/dialogs/gm-triggers-dialog.c:161 msgid "Run script" msgstr "Script uitvoeren" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:150 #: ../gnoemoe/dialogs/gm-triggers-dialog.c:164 msgid "Run" msgstr "Uitvoeren" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:328 msgid "Please fill in a trigger name" msgstr "Vul alstublieft een trigger naam in" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:338 msgid "Please specify at least one condition" msgstr "Specificeer alstublieft ten minste één conditie" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:347 msgid "Please specify at least one action" msgstr "Specificeer alstublieft ten minste één actie" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:387 msgid "" "<b>Player event</b>\n" "Player events are triggered on userlist activity" msgstr "" "<b>Speler event</b>\n" "Speler events worden getriggered door\n" "spelerlijst activiteit" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:393 msgid "" "<b>World event</b>\n" "World events are triggered on incoming lines of text" msgstr "" "<b>Wereld event</b>\n" "Wereld events worden getriggered door\n" "binnenkomende regels tekst" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:693 msgid "Select a event type first" msgstr "Selecteer eerst een event type" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:833 msgid "Select file" msgstr "Selecteer bestand" #: ../gnoemoe/dialogs/gm-triggers-dialog.c:871 msgid "Browse" msgstr "Bladeren" #: ../gnoemoe/dialogs/gm-world-info-dialog.c:26 #: ../gnoemoe/dialogs/gm-world-info-dialog.c:88 #: ../gnoemoe/dialogs/gm-world-info-dialog.c:105 #: ../gnoemoe/widgets/gm-worlds-view.c:96 #: ../gnoemoe/widgets/gm-worlds-view.c:98 msgid "<i>unspecified</i>" msgstr "<i>niet gespecificeerd</i>" #: ../gnoemoe/dialogs/gm-world-info-dialog.c:56 ../ui/gm-world-info.glade.h:10 msgid "World info" msgstr "Wereld info" #: ../gnoemoe/dialogs/gm-world-info-dialog.c:139 #, c-format msgid "Could not open link: %s" msgstr "Kon link niet openen: %s" #: ../gnoemoe/dialogs/gm-world-logs-dialog.c:121 #, c-format msgid "Couldn't open the log directory: %s" msgstr "Kon log directory niet openen: %s" #: ../gnoemoe/dialogs/gm-world-logs-dialog.c:129 msgid "There are no log files for this world" msgstr "Er zijn geen log bestanden voor deze wereld" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:38 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:51 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:72 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:95 msgid "Western" msgstr "Westers" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:39 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:73 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:93 msgid "Central European" msgstr "Centraal-Europees" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:40 msgid "South European" msgstr "Zuid-Europees" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:41 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:49 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:100 msgid "Baltic" msgstr "Baltisch" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:42 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:74 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:81 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:83 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:84 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:94 msgid "Cyrillic" msgstr "Cyrillisch" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:43 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:77 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:99 msgid "Arabic" msgstr "Arabisch" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:44 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:96 msgid "Greek" msgstr "Grieks" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:45 msgid "Hebrew Visual" msgstr "Hebreeuws visueel" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:46 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:76 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:98 msgid "Hebrew" msgstr "Hebreeuws" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:47 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:75 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:97 msgid "Turkish" msgstr "Turks" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:48 msgid "Nordic" msgstr "Noors" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:50 msgid "Celtic" msgstr "Celtisch" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:52 msgid "Romanian" msgstr "Roemeens" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:53 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:54 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:55 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:56 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:57 msgid "Unicode" msgstr "Unicode" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:58 msgid "Armenian" msgstr "Armeens" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:59 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:60 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:65 msgid "Chinese Traditional" msgstr "Chinees-traditioneel" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:61 msgid "Cyrillic/Russian" msgstr "Cyrillisch/Russisch" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:63 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:79 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:87 msgid "Japanese" msgstr "Japans" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:64 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:80 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:82 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:90 msgid "Korean" msgstr "Koreaans" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:66 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:67 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:68 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:70 msgid "Chinese Simplified" msgstr "Chinees-vereenvoudigd" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:69 msgid "Georgian" msgstr "Georgisch" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:85 msgid "Cyrillic/Ukrainian" msgstr "Cyrillisch/Oekraïens" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:88 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:91 #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:101 msgid "Vietnamese" msgstr "Vietnamees" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:89 msgid "Thai" msgstr "Thais" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:180 #, c-format msgid "" "<b>%s</b>\n" "Conditions: %d\n" "Actions: %d" msgstr "" "<b>%s</b>\n" "Condities: %d\n" "Acties: %d" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:405 msgid "World properties - " msgstr "Wereld eigenschappen - " #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:575 #, c-format msgid "Name can not be %s because a world with that name already exists." msgstr "Naam kan niet %s zijn omdat er al een wereld bestaat met die naam." #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:594 msgid "Host can not be empty, please fill in a host." msgstr "Host kan niet leeg zijn, vul alsjeblieft een host in." #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:741 msgid "Select a trigger to edit first" msgstr "Selecteer eerst een trigger om te bewerken" #: ../gnoemoe/dialogs/gm-world-properties-dialog.c:758 msgid "First select a trigger to remove" msgstr "Selecteer eerst een trigger om te verwijderen" #: ../gnoemoe/dialogs/gm-worlds-list-dialog.c:155 #, c-format msgid "The world %s is still open. Do you want to close and remove the world?" msgstr "" "De wereld %s is nog steeds open. Wil je de wereld sluiten en verwijderen?" #: ../gnoemoe/dialogs/gm-worlds-list-dialog.c:174 msgid "You first need to select a world to delete." msgstr "Je moet eerst de wereld die je wilt verwijderen selecteren." #: ../gnoemoe/dialogs/gm-worlds-list-dialog.c:199 msgid "You first need to select a world to modify." msgstr "Je moet eerst de wereld die je wilt wijzigen selecteren!" #: ../gnoemoe/dialogs/gm-worlds-list-dialog.c:255 #: ../gnoemoe/dialogs/gm-open-world-dialog.c:110 msgid "You first need to select a world to connect to." msgstr "Je moet eerst de wereld waarmee je wilt verbinden selecteren." #: ../gnoemoe/dialogs/gm-worlds-list-dialog.c:330 msgid "You first need to select a world to duplicate." msgstr "Je moet eerst de wereld die je wilt dupliceren selecteren!" #: ../gnoemoe/dialogs/gm-preferences-dialog.c:117 msgid "Default" msgstr "Standaard" #: ../gnoemoe/dialogs/gm-preferences-dialog.c:118 msgid "White on black" msgstr "Wit op zwart" #: ../gnoemoe/dialogs/gm-preferences-dialog.c:119 msgid "Rxvt" msgstr "Rxvt" #: ../gnoemoe/dialogs/gm-preferences-dialog.c:120 msgid "XTerm" msgstr "XTerm" #: ../gnoemoe/dialogs/gm-preferences-dialog.c:121 msgid "Linux" msgstr "Linux" #: ../gnoemoe/dialogs/gm-preferences-dialog.c:122 msgid "User defined" msgstr "Gebruiker gedefinieerd" #: ../gnoemoe/dialogs/gm-world-paste-dialog.c:268 msgid "The current world is not connected" msgstr "De huidige wereld is niet verbonden" #: ../gnoemoe/dialogs/gm-world-paste-dialog.c:271 msgid "Please specify a command to be send" msgstr "Specificeer alstublieft een commando om te versturen" #: ../gnoemoe/widgets/gm-world-view.c:308 msgid "Welcome to GnoeMoe, explorer of new worlds!" msgstr "Welkom bij GnoeMoe, verkenner van nieuwe werelden!" #: ../gnoemoe/widgets/gm-world-view.c:482 ../ui/gm-world-properties.glade.h:29 msgid "World" msgstr "Wereld" #: ../gnoemoe/widgets/gm-world-view.c:869 #, c-format msgid "Connect failed: %s" msgstr "Connectie faalde: %s" #: ../gnoemoe/widgets/gm-world-view.c:875 #, c-format msgid "Error: %s" msgstr "Fout: %s" #: ../gnoemoe/widgets/gm-world-view.c:891 #, c-format msgid "Trying %s port %s" msgstr "Probeer %s poort %s" #: ../gnoemoe/widgets/gm-world-view.c:895 #, c-format msgid "Connecting to %s port %s" msgstr "Verbinding maken naar %s poort %s" #: ../gnoemoe/widgets/gm-world-view.c:899 msgid "Connected" msgstr "Verbonden" #: ../gnoemoe/widgets/gm-world-view.c:904 msgid "Disconnected" msgstr "Verbinding verbroken" #: ../gnoemoe/widgets/gm-world-view.c:909 msgid "Disconnecting" msgstr "Verbinding verbreken" #: ../gnoemoe/widgets/gm-editor-view.c:326 msgid "<b>Errors</b>" msgstr "<b>Fouten</b>" #: ../gnoemoe/widgets/gm-editor-view.c:344 msgid "<b>Warnings</b>" msgstr "<b>Waarschuwingen</b>" #: ../gnoemoe/widgets/gm-editor-view.c:442 #, c-format msgid "<u>Line %d</u>: %s\n" msgstr "<u>Regel %d</u>: %s\n" #: ../gnoemoe/widgets/gm-editor-view.c:447 #, c-format msgid "<u>Line %d:%d</u>: %s\n" msgstr "<u>Regel %d:%d</u>: %s\n" #: ../gnoemoe/widgets/gm-editor-view.c:513 msgid "There is 1 error" msgstr "Er is 1 fout" #: ../gnoemoe/widgets/gm-editor-view.c:515 #, c-format msgid "There are %d errors" msgstr "Er zijn %d fouten" #: ../gnoemoe/widgets/gm-editor-view.c:540 msgid "There is 1 warning" msgstr "Er is 1 waarschuwing" #: ../gnoemoe/widgets/gm-editor-view.c:542 msgid " and 1 warning" msgstr " en 1 waarschuwing" #: ../gnoemoe/widgets/gm-editor-view.c:546 #, c-format msgid "There are %d warnings" msgstr "Er zijn %d waarschuwingen" #: ../gnoemoe/widgets/gm-editor-view.c:549 #, c-format msgid " and %d warnings" msgstr " en %d waarschuwingen" #: ../gnoemoe/widgets/gm-editor-view.c:581 msgid "There are no errors" msgstr "Er zijn geen fouten" #: ../gnoemoe/widgets/gm-editor-view.c:617 msgid "No errors are found" msgstr "Er zijn geen fouten gevonden" #: ../gnoemoe/widgets/gm-app-view.c:414 msgid "Open" msgstr "Openen" #: ../gnoemoe/widgets/gm-app-view.c:462 msgid "Find:" msgstr "Zoek:" #: ../gnoemoe/widgets/gm-app-view.c:475 msgid "Replace:" msgstr "Vervangen:" #: ../gnoemoe/widgets/gm-app-view.c:491 msgid "Find next" msgstr "Zoek volgende" #: ../gnoemoe/widgets/gm-app-view.c:504 msgid "Search backwards" msgstr "Zoek achterwaarts" #: ../gnoemoe/widgets/gm-app-view.c:511 msgid "Match case" msgstr "Hoofdlettergevoelig" #: ../gnoemoe/widgets/gm-app-view.c:530 msgid "Replace" msgstr "Vervangen" #: ../gnoemoe/widgets/gm-app-view.c:535 msgid "Replace all" msgstr "Alles vervangen" #: ../gnoemoe/widgets/gm-app-view.c:616 msgid "GnoeMoe Gnome MOO Client" msgstr "GnoeMoe Gnome MOO Client" #: ../gnoemoe/widgets/gm-app-view.c:881 msgid "Disconnect" msgstr "Verbinding verbreken" #: ../gnoemoe/widgets/gm-app-view.c:882 msgid "Disconnect the current world" msgstr "Verbreek verbinding met de huidige wereld" #: ../gnoemoe/widgets/gm-app-view.c:921 #, c-format msgid "" "Activity in:\n" "%s (%d)" msgstr "" "Activiteit in :\n" "%s (%d)" #: ../gnoemoe/widgets/gm-app-view.c:1019 msgid "Open world " msgstr "Open wereld " #: ../gnoemoe/widgets/gm-log-view.c:109 msgid "Filter: " msgstr "Filter: " #: ../gnoemoe/widgets/gm-log-view.c:115 ../ui/gm-preferences.glade.h:36 #: ../ui/gm-world-properties.glade.h:14 msgid "Incoming" msgstr "Binnenkomend" #: ../gnoemoe/widgets/gm-log-view.c:123 ../ui/gm-preferences.glade.h:43 #: ../ui/gm-world-properties.glade.h:22 msgid "Outgoing" msgstr "Uitgaand" #: ../gnoemoe/widgets/gm-log-view.c:131 ../ui/gm-preferences.glade.h:55 #: ../ui/gm-world-properties.glade.h:27 msgid "Status" msgstr "Status" #: ../gnoemoe/widgets/gm-log-view.c:140 ../ui/gm-preferences.glade.h:38 #: ../ui/gm-world-properties.glade.h:18 msgid "Mcp incoming" msgstr "Mcp binnenkomend" #: ../gnoemoe/widgets/gm-log-view.c:149 ../ui/gm-preferences.glade.h:39 #: ../ui/gm-world-properties.glade.h:19 msgid "Mcp outgoing" msgstr "Mcp uitgaand" #: ../gnoemoe/widgets/gm-log-view.c:158 ../ui/gm-preferences.glade.h:40 #: ../ui/gm-world-properties.glade.h:20 msgid "Mcp status" msgstr "Mcp status" #: ../gnoemoe/widgets/gm-world-text-view.c:464 msgid "_Copy Link Address" msgstr "Koppelingsadres _kopiëren" #: ../gnoemoe/widgets/gm-world-text-view.c:470 msgid "_Open Link" msgstr "Koppeling _openen" #: ../gnoemoe/widgets/gm-worlds-view.c:95 msgid "" "</b>\n" "<small>Server: " msgstr "" "</b>\n" "<small>Server: " #: ../gnoemoe/widgets/gm-worlds-view.c:97 msgid "" "\n" "Player: " msgstr "" "\n" "Speler: " #: ../gnoemoe/widgets/gm-worlds-view.c:135 msgid "Logo" msgstr "Logo" #: ../gnoemoe/widgets/gm-worlds-view.c:141 #: ../gnoemoe/mcp/gm-mcp-userlist-view.c:306 ../ui/gm-preferences.glade.h:41 msgid "Name" msgstr "Naam" #: ../gnoemoe/mcp/gm-mcp-userlist-view.c:254 #, c-format msgid "Players: %d, active: %d" msgstr "Spelers: %d, actief: %d" #: ../gnoemoe/mcp/gm-mcp-userlist-view.c:300 msgid "I" msgstr "I" #: ../gnoemoe/mcp/gm-mcp-icecrew-userlist.c:934 msgid "Available" msgstr "Beschikbaar" #: ../gnoemoe/mcp/gm-mcp-icecrew-userlist.c:940 msgid "Busy" msgstr "Bezig" #: ../gnoemoe/parser/parser.y:306 msgid "Unreachable EXCEPT clause" msgstr "Onbereikbare EXCEPT clause" #: ../gnoemoe/parser/parser.y:308 msgid "Too many EXCEPT clauses (max. 255)" msgstr "Te veel EXCEPT clauses (max. 255)" #: ../gnoemoe/parser/parser.y:420 msgid "Illegal context for `$' expression." msgstr "Illegale context voor `$' expressie." #: ../gnoemoe/parser/parser.y:433 msgid "Empty list in scattering assignment." msgstr "Lege lijst in meervoudige toekenning." #: ../gnoemoe/parser/parser.y:440 msgid "Illegal expression on left side of assignment." msgstr "Illegale expressie aan linkerkant van toekenning." #: ../gnoemoe/parser/parser.y:465 msgid "Unknown built-in function: " msgstr "Onbekende ingebouwde functie: " #: ../gnoemoe/parser/parser.y:787 msgid "End of program while in a comment" msgstr "Einde van programma terwijl binnen een stuk commentaar" #: ../gnoemoe/parser/parser.y:807 msgid "Malformed object number" msgstr "Ongelding object nummer" #: ../gnoemoe/parser/parser.y:863 msgid "Malformed floating-point literal" msgstr "Ongeldige floating-point literal" #: ../gnoemoe/parser/parser.y:882 msgid "Floating-point literal out of range" msgstr "Floating-point literal buiten bereik" #: ../gnoemoe/parser/parser.y:910 msgid "Renaming old use of new keyword: " msgstr "Hernoemen oud gebruik van nieuw sleutelwoord: " #: ../gnoemoe/parser/parser.y:927 msgid "Missing quote" msgstr "Mis quoot" #: ../gnoemoe/parser/parser.y:978 msgid "Scattering assignment targets must be simple variables." msgstr "Meervoudige toekenningsdoelen moeten simpele variabelen zijn." #: ../gnoemoe/parser/parser.y:994 msgid "More than one `@' target in scattering assignment." msgstr "Meer dan één `@' doel in meervoudige toekenning." #: ../gnoemoe/parser/parser.y:1002 msgid "Too many targets in scattering assignment." msgstr "Te veel doelen in meervoudige toekenning." #: ../gnoemoe/parser/parser.y:1067 msgid "No enclosing loop for `break' statement" msgstr "Geen omsluitende loop voor `break' statement" #: ../gnoemoe/parser/parser.y:1069 msgid "No enclosing loop for `continue' statement" msgstr "Geen omsluitende loop voor `continue' statement" #. #. * $Log: parser.y,v $ #. * Revision 1.1.1.1 2004/02/26 13:13:58 jesse #. * Initial import into CVS #. * #. * Revision 1.8.1fa 2004/01/02 #. * my_getc, changed char c to unsigned; #. * #. * Revision 1.2 1998/12/14 13:18:45 nop #. * Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims #. * #. * Revision 1.1.1.1 1997/03/03 03:45:02 nop #. * LambdaMOO 1.8.0p5 #. * #. * Revision 2.11 1996/05/12 21:28:37 pavel #. * Removed non-backward-compatible parse error for negating a non-numeric #. * literal. Made certain aspects of floating-point literal parsing be #. * language-version-dependent, to maintain backward compatibility with DBs #. * written by pre-float servers. Release 1.8.0p5. #. * #. * Revision 2.10 1996/04/19 01:26:38 pavel #. * Fixed potential memory smash when `$' expression occurs in an illegal #. * context. Release 1.8.0p4. #. * #. * Revision 2.9 1996/03/10 01:08:01 pavel #. * Removed bogus `call_function("foo", ...)' --> `foo(...)' conversion. #. * Fixed line numbers of renamed-variable warnings. Release 1.8.0. #. * #. * Revision 2.8 1996/02/18 23:14:54 pavel #. * Liberalized parsing of floating-point numbers to accept `3.' and `3.e1'. #. * Changed parsing to replace call_function("foo", @args) with foo(@args) if #. * foo is a known function. Release 1.8.0beta3. #. * #. * Revision 2.7 1996/02/11 00:46:01 pavel #. * Liberalized parsing of floating-point literals to accept `.02' and the #. * like. Fixed a bug where `1E6' and the like would be parsed as an integer. #. * Release 1.8.0beta2. #. * #. * Revision 2.6 1996/02/08 06:32:48 pavel #. * Added support for floating-point literals, exponentiation expression, named #. * WHILE loops, and BREAK and CONTINUE statements. Generalized support for #. * version-dependent compilation. Renamed TYPE_NUM to TYPE_INT. Removed use #. * of ungetch() method on Parser_Client. Updated copyright notice for 1996. #. * Release 1.8.0beta1. #. * #. * Revision 2.5 1996/01/16 07:17:05 pavel #. * Add support for scattering assignment. Release 1.8.0alpha6. #. * #. * Revision 2.4 1996/01/11 07:50:49 pavel #. * Added missing #include "my-string.h". Release 1.8.0alpha5. #. * #. * Revision 2.3 1995/12/31 00:09:40 pavel #. * Removed unused tokens tRAISE and tFORLIST (huh?). Added `$' expression. #. * Release 1.8.0alpha4. #. * #. * Revision 2.2 1995/12/28 00:43:25 pavel #. * Added some support for MOO-compilation warnings. Changed `unknown built-in #. * function' error into a warning with recovery. Changed identifier-renaming #. * log message into a warning. Release 1.8.0alpha3. #. * #. * Revision 2.1 1995/12/11 08:01:26 pavel #. * Added support for `$foo(...)' syntax. Release 1.8.0alpha2. #. * #. * Revision 2.0 1995/11/30 04:48:11 pavel #. * New baseline version, corresponding to release 1.8.0alpha1. #. * #. * Revision 1.13 1992/10/23 23:03:47 pavel #. * Added copyright notice. #. * #. * Revision 1.12 1992/10/23 22:21:43 pavel #. * Eliminated all uses of the useless macro NULL. #. * #. * Revision 1.11 1992/10/21 03:02:35 pavel #. * Converted to use new automatic configuration system. #. * #. * Revision 1.10 1992/08/31 22:25:51 pjames #. * Changed some `char *'s to `const char *' #. * #. * Revision 1.9 1992/08/28 23:18:38 pjames #. * Added ASGN_RANGE parsing code. Fixed tiny memory leak. #. * #. * Revision 1.8 1992/08/28 16:16:52 pjames #. * Changed `ak_dealloc_string()' to `free_str()'. #. * #. * Revision 1.7 1992/08/12 01:49:58 pjames #. * Negative literals are now accepted (instead of negated positive literals). #. * #. * Revision 1.6 1992/08/10 16:55:59 pjames #. * Updated #includes. #. * #. * Revision 1.5 1992/07/30 21:22:08 pjames #. * Removed max_stack calculations (moved to vector.c). #. * #. * Revision 1.4 1992/07/29 18:05:12 pjames #. * $$ no longer = NULL when there is an illegal left hand side of an #. * expression. #. * #. * Revision 1.3 1992/07/27 18:12:41 pjames #. * Changed name of ct_env to var_names and const_env to literals. #. * Modified call to vectorize to use new argument format. #. * Assignment statements now check left hand side properly for allowable #. * expressions, and now frees memory from reused expressions. #. * #. * Revision 1.2 1992/07/21 00:05:16 pavel #. * Added rcsid_<filename-root> declaration to hold the RCS ident. string. #. * #. * Revision 1.1 1992/07/20 23:23:12 pavel #. * Initial RCS-controlled version. #. #: ../ui/gm-scripts.glade.h:1 msgid "Console" msgstr "Console" #: ../ui/gm-scripts.glade.h:2 ../ui/gm-preferences.glade.h:27 msgid "Editor" msgstr "Editor" #: ../ui/gm-scripts.glade.h:3 msgid "Overview" msgstr "Overzicht" #: ../ui/gm-preferences.glade.h:1 msgid "<b>Application</b>" msgstr "<b>Applicatie</b>" #: ../ui/gm-preferences.glade.h:2 msgid "<b>Background</b>" msgstr "<b>Achtergrond</b>" #: ../ui/gm-preferences.glade.h:3 msgid "<b>Default</b>" msgstr "<b>Standaard</b>" #: ../ui/gm-preferences.glade.h:4 msgid "<b>Font</b>" msgstr "<b>Lettertype</b>" #: ../ui/gm-preferences.glade.h:5 msgid "<b>Foreground</b>" msgstr "<b>Voorgrond</b>" #: ../ui/gm-preferences.glade.h:6 msgid "<b>Internal editor</b>" msgstr "<b>Interne editor</b>" #: ../ui/gm-preferences.glade.h:7 ../ui/gm-world-properties.glade.h:4 msgid "<b>Log format</b>" msgstr "<b>Log formaat</b>" #: ../ui/gm-preferences.glade.h:8 ../ui/gm-world-properties.glade.h:5 msgid "<b>Log types</b>" msgstr "<b>Log types</b>" #: ../ui/gm-preferences.glade.h:9 ../ui/gm-world-properties.glade.h:6 msgid "<b>Logging</b>" msgstr "<b>Loggen</b>" #: ../ui/gm-preferences.glade.h:10 msgid "<b>Player state</b>" msgstr "<b>Speler staat</b>" #: ../ui/gm-preferences.glade.h:11 msgid "<b>Schemes</b>" msgstr "<b>Schema's</b>" #: ../ui/gm-preferences.glade.h:12 msgid "<b>Sort</b>" msgstr "<b>Sorteren</b>" #: ../ui/gm-preferences.glade.h:13 msgid "<b>Text</b>" msgstr "<b>Tekst</b>" #: ../ui/gm-preferences.glade.h:14 ../ui/gm-world-properties.glade.h:8 msgid "Add log type before each line" msgstr "Log type invoegen voor elke regel" #: ../ui/gm-preferences.glade.h:15 ../ui/gm-world-properties.glade.h:9 msgid "Add timestamp before each line" msgstr "Tijd invoegen voor elke regel" #: ../ui/gm-preferences.glade.h:16 msgid "Background" msgstr "Achtergrond" #: ../ui/gm-preferences.glade.h:17 msgid "Background:" msgstr "Achtergrond:" #: ../ui/gm-preferences.glade.h:19 msgid "Black High" msgstr "Zwart Fel" #: ../ui/gm-preferences.glade.h:21 msgid "Blue High" msgstr "Blauw Fel" #: ../ui/gm-preferences.glade.h:22 msgid "Check syntax automatically" msgstr "Automatisch syntax controleren" #: ../ui/gm-preferences.glade.h:23 msgid "Colors" msgstr "Kleuren" #: ../ui/gm-preferences.glade.h:25 msgid "Cyan High" msgstr "Cyaan Fel" #: ../ui/gm-preferences.glade.h:26 msgid "Disable all logging" msgstr "Loggen overal uitschakelen" #: ../ui/gm-preferences.glade.h:28 msgid "Embed editor into GnoeMoe (implies terminal)" msgstr "Geëmbedde editor (impliceert terminal)" #: ../ui/gm-preferences.glade.h:29 msgid "Font" msgstr "Lettertype" #: ../ui/gm-preferences.glade.h:30 msgid "Font description:" msgstr "Lettertype beschrijving:" #: ../ui/gm-preferences.glade.h:31 msgid "Foreground" msgstr "Voorgrond" #: ../ui/gm-preferences.glade.h:32 msgid "Foreground High" msgstr "Voorgrond Fel" #: ../ui/gm-preferences.glade.h:33 msgid "Foreground:" msgstr "Voorgrond:" #: ../ui/gm-preferences.glade.h:35 msgid "Green High" msgstr "Groen Fel" #: ../ui/gm-preferences.glade.h:37 ../ui/gm-world-properties.glade.h:17 msgid "Logging" msgstr "Loggen" #: ../ui/gm-preferences.glade.h:42 msgid "Needs terminal" msgstr "Terminal nodig" #: ../ui/gm-preferences.glade.h:44 msgid "Preferences" msgstr "Voorkeuren" #: ../ui/gm-preferences.glade.h:46 msgid "Purple High" msgstr "Paars Fel" #: ../ui/gm-preferences.glade.h:47 msgid "Rank, name" msgstr "Rang, naam" #: ../ui/gm-preferences.glade.h:49 msgid "Red High" msgstr "Rood Fel" #: ../ui/gm-preferences.glade.h:50 msgid "Select scheme:" msgstr "Selecteer schema:" #: ../ui/gm-preferences.glade.h:51 msgid "Show object number" msgstr "Toon object nummer" #: ../ui/gm-preferences.glade.h:52 msgid "Show player status message" msgstr "Toon speler status bericht" #: ../ui/gm-preferences.glade.h:53 msgid "State, name" msgstr "Staat, naam" #: ../ui/gm-preferences.glade.h:54 msgid "State, rank, name" msgstr "Staat, rang, naam" #: ../ui/gm-preferences.glade.h:56 msgid "Use alternative editor" msgstr "Gebruik alternatieve editor" #: ../ui/gm-preferences.glade.h:57 msgid "Use state icon" msgstr "Gebruik staat icoon" #: ../ui/gm-preferences.glade.h:58 msgid "Use system font" msgstr "Gebruik systeem lettertype" #: ../ui/gm-preferences.glade.h:59 msgid "Userlist" msgstr "Gebruikerslijst" #: ../ui/gm-preferences.glade.h:61 msgid "White High" msgstr "Wit Fel" #: ../ui/gm-preferences.glade.h:63 msgid "Yellow High" msgstr "Geel Fel" #: ../ui/gm-worlds-list.glade.h:1 msgid "Edit Worlds" msgstr "Bewerk Werelden" #: ../ui/gm-worlds-list.glade.h:2 msgid "_Connect" msgstr "_Verbinden" #: ../ui/gm-worlds-list.glade.h:3 msgid "_Duplicate" msgstr "_Dupliceren" #: ../ui/gm-world-properties.glade.h:1 msgid "<b>Automatic login</b>" msgstr "<b>Automatisch inloggen</b>" #: ../ui/gm-world-properties.glade.h:2 msgid "<b>General</b>" msgstr "<b>Algemeen</b>" #: ../ui/gm-world-properties.glade.h:3 msgid "<b>Language</b>" msgstr "<b>Taal</b>" #: ../ui/gm-world-properties.glade.h:7 msgid "<b>Server</b>" msgstr "<b>Server</b>" #: ../ui/gm-world-properties.glade.h:10 msgid "Automatic login" msgstr "Automatisch inloggen" #: ../ui/gm-world-properties.glade.h:11 msgid "Automatic reconnect" msgstr "Automatisch opnieuw verbinden" #: ../ui/gm-world-properties.glade.h:12 msgid "Character encoding:" msgstr "Tekencodering:" #: ../ui/gm-world-properties.glade.h:13 msgid "Host:" msgstr "Host:" #: ../ui/gm-world-properties.glade.h:15 msgid "Language" msgstr "Taal" #: ../ui/gm-world-properties.glade.h:16 msgid "Load on startup" msgstr "Laden bij opstarten" #: ../ui/gm-world-properties.glade.h:21 ../ui/gm-triggers.glade.h:4 msgid "Name:" msgstr "Naam:" #: ../ui/gm-world-properties.glade.h:23 msgid "Override application logging settings" msgstr "Overheers applicatie loggen instellingen" #: ../ui/gm-world-properties.glade.h:24 msgid "Password:" msgstr "Wachtwoord:" #: ../ui/gm-world-properties.glade.h:25 msgid "Player name:" msgstr "Speler naam:" #: ../ui/gm-world-properties.glade.h:26 msgid "Port:" msgstr "Poort:" #: ../ui/gm-world-properties.glade.h:30 msgid "World properties" msgstr "Wereld eigenschappen" #: ../ui/gm-triggers.glade.h:1 msgid "Actions:" msgstr "Acties:" #: ../ui/gm-triggers.glade.h:2 msgid "Choose which type of event you want to create a trigger for." msgstr "Kies voor welk type event je een trigger wilt aanmaken." #: ../ui/gm-triggers.glade.h:3 msgid "Conditions:" msgstr "Condities:" #: ../ui/gm-world-info.glade.h:1 msgid "<b>Administrator</b>" msgstr "<b>Beheerder</b>" #: ../ui/gm-world-info.glade.h:2 msgid "<b>Character set:</b>" msgstr "<b>Karakterset:</b>" #: ../ui/gm-world-info.glade.h:3 msgid "<b>Email:</b>" msgstr "<b>Email:</b>" #: ../ui/gm-world-info.glade.h:4 msgid "<b>Homepage:</b>" msgstr "<b>Hoofdpagina:</b>" #: ../ui/gm-world-info.glade.h:5 msgid "<b>Language:</b>" msgstr "<b>Taal:</b>" #: ../ui/gm-world-info.glade.h:6 msgid "<b>Location:</b>" msgstr "<b>Locatie:</b>" #: ../ui/gm-world-info.glade.h:7 msgid "<b>Name:</b>" msgstr "<b>Naam:</b>" #: ../ui/gm-world-info.glade.h:8 msgid "<b>System:</b>" msgstr "<b>Systeem:</b>" #: ../ui/gm-world-info.glade.h:9 msgid "<b>World</b>" msgstr "<b>Wereld</b>" #: ../ui/gm-world-logs.glade.h:1 msgid "Select log file to open" msgstr "Selecteer log bestand om te openen" #: ../ui/gm-world-paste.glade.h:1 msgid "Command:" msgstr "Commando:" #: ../ui/gm-world-paste.glade.h:2 msgid "End with:" msgstr "Eindigen met:" #: ../ui/gm-world-paste.glade.h:4 msgid "To:" msgstr "Naar:" ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/README��������������������������������������������������������������������������������0000644�0001750�0001750�00000004020�10517751707�013036� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������General Information =================== This is version 2.2.0 of gnoemoe. gnoemoe is a Gnome MOO Client. GnoeMoe is a full featured Gnome MOO (MUD Object Oriented) Client which aims at integrating in the Gnome desktop as nice as possible adhering the Gnome philosophy. It aims to be simple and easy to use. Some of the main features are: Ansi, Multiworld (tabs), Builtin editor, Ruby script extensions, MCP 2.1. Some of the features gnoemoe currently has: Full ansi support (including blink/fastblink, crossout, double underline, faint, ...) * Multiple worlds (tabbed) * Internal editor * Internal editor automatic syntax checking * External editor support (edit with your favourite editor!) * Automatic login, automatic reconnect * Color schemes * Scripting using the Ruby language * MCP 2.1 * dns-org-mud-moo-simpleedit * dns-com-awns-status * dns-com-vmoo-userlist * dns-com-vmoo-client * dns-icecrew-nl-mcpreset * dns-icecrew-nl-playerdb * dns-icecrew-nl-userlist * dns-com-awns-ping * Logging * Multiline input * Notification area docking * Triggers * Smart autoscroll gnoemoe is released under the GNU General Public License (GPL) version 2, see the file 'COPYING' for more information. The official web site is: https://trac.luon.net/gnoemoe You can download the latest gnoemoe tarball from the web site: http://www.icecrew.nl/software/gnoemoe/download/gnoemoe-2.2.0.tar.gz Installation ============ gnoemoe requires: * GTK+-2.8.x * GtkSourceView 1.2.0 * GNOME 2.12.x libraries (including gnome-vfs, glade) * libnotify * Ruby * Vte Simple install procedure: % gzip -cd gnoemoe-2.2.0.tar.gz | tar xvf - # unpack the sources % cd gnoemoe-2.2.0 # change to the toplevel directory % ./configure # run the `configure' script % make # build gnoemoe [ Become root if necessary ] % make install # install gnoemoe See the file 'INSTALL' for more detailed information. ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/configure.ac��������������������������������������������������������������������������0000644�0001750�0001750�00000015106�10517751742�014452� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(gnoemoe, 2.2.0, http://www.icecrew.nl/software/gnoemoe) AC_CONFIG_SRCDIR(gnoemoe/gm-app.c) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_ISC_POSIX AC_STDC_HEADERS AC_PROG_CC AC_PROG_YACC AM_PROG_LIBTOOL AM_PROG_CC_STDC AC_HEADER_STDC AM_PROG_LIBTOOL AC_PROG_INTLTOOL([0.31]) AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4") AC_PROG_INSTALL AC_PROG_MAKE_SET # AC_PATH_PROG(GCONFTOOL, gconftool-2) AM_GCONF_SOURCE_2 GETTEXT_PACKAGE=gnoemoe AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) ALL_LINGUAS="nl" AM_GLIB_GNU_GETTEXT AC_PROG_YACC PKG_CHECK_MODULES(PACKAGE, [ gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 ]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) AC_ARG_ENABLE(parser, [ --disable-parser disable use of the moo code parser in the editor], parseren=$enableval, parseren=yes) if test "_$parseren" = "_yes"; then AC_DEFINE([HAVE_PARSER], 1, [MOO code parser is enabled]) AM_CONDITIONAL(HAS_PARSER, true) parsermsg="enjoy parsing" dnl Check for perfect hash function generator AC_CHECK_PROG([GPERF],[gperf],[gperf]) else AM_CONDITIONAL(HAS_PARSER, false) parsermsg="(user disabled)" fi AC_ARG_ENABLE(ruby, [ --disable-ruby disable use of the ruby scripting support], rubyen=$enableval, rubyen=yes) #---------------------------------------------------------------- # Look for Ruby #---------------------------------------------------------------- if test "_$rubyen" = "_yes"; then RUBYBIN= AC_ARG_WITH(ruby,[ --with-ruby=path Set location of Ruby executable],[ RUBYBIN="$withval"], [RUBYBIN=]) # First figure out what the name of Ruby is if test -z "$RUBYBIN"; then AC_CHECK_PROGS(RUBY, ruby) else RUBY="$RUBYBIN" fi AC_MSG_CHECKING(for Ruby header files) if test -n "$RUBY"; then RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG[["archdir"]] || $archdir') 2>/dev/null` if test "$RUBYDIR" != ""; then dirs="$RUBYDIR" RUBY_CFLAGS=none for i in $dirs; do if test -r $i/ruby.h; then AC_MSG_RESULT($i) RUBY_CFLAGS="-idirafter $i" break; fi done if test "$RUBY_CFLAGS" = none; then AC_MSG_RESULT(could not locate ruby.h, disabling ruby support) rubymsg="(no headers found, install ruby-dev)" rubyen="no" fi # Find library and path for linking. AC_MSG_CHECKING(for Ruby library) RUBYLIB="" rb_libdir=`($RUBY -rrbconfig -e 'print Config::CONFIG[["libdir"]]') 2>/dev/null` rb_bindir=`($RUBY -rrbconfig -e 'print Config::CONFIG[["bindir"]]') 2>/dev/null` dirs="$dirs $rb_libdir $rb_bindir" rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG[["LIBRUBY_A"]]') 2>/dev/null` RUBY_LIBS=`($RUBY -rrbconfig -e ' c = Config::CONFIG if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x if c[["LIBRUBY"]] == c[["LIBRUBY_A"]] link = c[["LIBRUBYARG_STATIC"]] else link = c[["LIBRUBYARG_SHARED"]] end else # 1.6.x link = "-l" + c[["RUBY_INSTALL_NAME"]] end puts link') 2>/dev/null` if test "$rb_libruby" != ""; then for i in $dirs; do if (test -r $i/$rb_libruby;) then RUBYLIB="$i" break; fi done fi if test "$RUBYLIB" = ""; then AC_MSG_RESULT(not found... disabling ruby support) rubymsg="(libs not found)" rubyen="no" else AC_MSG_RESULT($RUBY_LIBS in $RUBYLIB) fi else AC_MSG_RESULT(unable to determine ruby configuration, disabling ruby support) rubymsg="(unable to determine configuration)" rubyen="no" fi else AC_MSG_RESULT(not found.. disabling ruby support) rubymsg="(no headers found, install ruby-dev)" rubyen="no" fi fi if test "_$rubyen" == "_no"; then RUBY_CFLAGS="" RUBY_LIBS="" AM_CONDITIONAL(HAS_RUBY, false) else rubymsg="enjoy scripting :)" AC_DEFINE([HAVE_RUBY], 1, [Ruby scripting is enabled]) AM_CONDITIONAL(HAS_RUBY, true) fi AC_SUBST(RUBY_CFLAGS) AC_SUBST(RUBY_LIBS) # Look for libnotify LIBNOTIFY_REQUIRED=0.3.2 AC_ARG_ENABLE(libnotify, AC_HELP_STRING([--disable-libnotify], [Disable libnotify support]),, enable_libnotify=auto) if test "x$enable_libnotify" != "xno"; then PKG_CHECK_MODULES(NOTIFY, libnotify >= $LIBNOTIFY_REQUIRED, have_libnotify=yes, have_libnotify=no) if test "x$have_libnotify" = "xno" -a "x$enable_libnotify" = "xyes"; then AC_MSG_ERROR([libnotify support explicitly requested, but libnotify couldn't be found]) fi if test "x$have_libnotify" = "xyes"; then enable_libnotify=yes fi fi AM_CONDITIONAL(USE_NOTIFY, test x"$enable_libnotify" = xyes) if test x$enable_libnotify = xyes ; then # Find out the version of LIBNOTIFY we're using libnotify_version=`pkg-config --modversion libnotify` LIBNOTIFY_VERSION_MAJOR=`echo $libnotify_version | awk -F. '{print $1}'` LIBNOTIFY_VERSION_MINOR=`echo $libnotify_version | awk -F. '{print $2}'` LIBNOTIFY_VERSION_MICRO=`echo $libnotify_version | awk -F. '{print $3}'` if test "z$LIBNOTIFY_VERSION_MAJOR" = "z"; then LIBNOTIFY_VERSION_MAJOR="0" fi if test "z$LIBNOTIFY_VERSION_MINOR" = "z"; then LIBNOTIFY_VERSION_MINOR="0" fi if test "z$LIBNOTIFY_VERSION_MICRO" = "z"; then LIBNOTIFY_VERSION_MICRO="0" fi echo "Your libnotify version is $LIBNOTIFY_VERSION_MAJOR,$LIBNOTIFY_VERSION_MINOR,$LIBNOTIFY_VERSION_MICRO." NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MAJOR=$LIBNOTIFY_VERSION_MAJOR" NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MINOR=$LIBNOTIFY_VERSION_MINOR" NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MICRO=$LIBNOTIFY_VERSION_MICRO" AC_DEFINE(HAVE_NOTIFY, 1, [Define if libnotify support is enabled]) AC_SUBST(NOTIFY_CFLAGS) AC_SUBST(NOTIFY_LIBS) fi AC_OUTPUT([ Makefile pixmaps/Makefile pixmaps/userlist/Makefile pixmaps/ice-userlist/Makefile pixmaps/tray/Makefile gnoemoe/Makefile gnoemoe/parser/Makefile po/Makefile.in scripts/Makefile ui/Makefile data/Makefile ]) echo echo Building with ruby ............. : $rubyen $rubymsg echo Building with parser ........... : $parseren $parsermsg echo Building with libnotify ........ : $have_libnotify $libnotify_version echo Install prefix ................. : $prefix echo Install share .................. : $datadir ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/aclocal.m4����������������������������������������������������������������������������0000644�0001750�0001750�00001046524�10517752436�014036� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 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. # 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. 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 <drepper@cygnus.com>, 1995, 1996 # # Modified to never use included libintl. # Owen Taylor <otaylor@redhat.com>, 12/15/1998 # # Major rework to remove unused code # Owen Taylor <otaylor@redhat.com>, 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 # # Modified to require ngettext # Matthias Clasen <mclasen@redhat.com> 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 <locale.h>], [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 <locale.h> 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 [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 <libintl.h> ], [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 <libintl.h> ], [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) 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" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix 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" 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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 48 Debian 1.5.22-4 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 <<EOF [$]* EOF exit 0 fi # 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 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 <<EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #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<name>.so # instead of lib<name>.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 ;; 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* | k*bsd*-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' 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 # 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)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $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' ;; netbsdelf*-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='NetBSD ld.elf_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 <<EOF 1>&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 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_PROG_LD_GNU ])# AC_PROG_LD # AC_PROG_LD_GNU # -------------- AC_DEFUN([AC_PROG_LD_GNU], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac]) with_gnu_ld=$lt_cv_prog_gnu_ld ])# AC_PROG_LD_GNU # AC_PROG_LD_RELOAD_FLAG # ---------------------- # find reload flag for linker # -- PORTME Some linkers may need a different reload flag. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, [lt_cv_ld_reload_flag='-r']) 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 ])# AC_PROG_LD_RELOAD_FLAG # AC_DEPLIBS_CHECK_METHOD # ----------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], [AC_CACHE_CHECK([how to recognise dependent libraries], lt_cv_deplibs_check_method, [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* | 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* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) 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 <jrb3@best.com> 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* | 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* | k*bsd*-gnu) 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* | netbsdelf*-gnu) 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 <<EOF int a; void foo (void) { a = 0; } EOF ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; EOF ],[$1],[F77],[cat > conftest.$ac_ext <<EOF subroutine foo implicit none integer*4 a a=0 return end EOF ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF public class foo { private int a; public void bar (void) { a = 0; } }; EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); 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 "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${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 "$_LT_AC_TAGVAR(postdeps, $1)"; then _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${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 "$_LT_AC_TAGVAR(predep_objects, $1)"; then _LT_AC_TAGVAR(predep_objects, $1)="$p" else _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then _LT_AC_TAGVAR(postdep_objects, $1)="$p" else _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken ifelse([$1],[CXX], [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. _LT_AC_TAGVAR(predep_objects,$1)= _LT_AC_TAGVAR(postdep_objects,$1)= _LT_AC_TAGVAR(postdeps,$1)= ;; 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. _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' ;; esac ;; esac ]) case " $_LT_AC_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac ])# AC_LIBTOOL_POSTDEP_PREDEP # AC_LIBTOOL_LANG_F77_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_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77]) AC_LANG_PUSH(Fortran 77) _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_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 # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$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. _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" CC=${F77-"f77"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) 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]) _LT_AC_TAGVAR(GCC, $1)="$G77" _LT_AC_TAGVAR(LD, $1)="$LD" 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" ])# AC_LIBTOOL_LANG_F77_CONFIG # AC_LIBTOOL_LANG_GCJ_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_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], [AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$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. _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" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 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_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_GCJ_CONFIG # AC_LIBTOOL_LANG_RC_CONFIG # ------------------------- # Ensure that the configuration vars for the Windows resource 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_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) AC_DEFUN([_LT_AC_LANG_RC_CONFIG], [AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$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. _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" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_RC_CONFIG # AC_LIBTOOL_CONFIG([TAGNAME]) # ---------------------------- # If TAGNAME is not passed, then create an initial libtool script # with a default configuration from the untagged config vars. Otherwise # add code to config.status for appending the configuration named by # TAGNAME from the matching tagged config vars. AC_DEFUN([AC_LIBTOOL_CONFIG], [# 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 \ _LT_AC_TAGVAR(compiler, $1) \ _LT_AC_TAGVAR(CC, $1) \ _LT_AC_TAGVAR(LD, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ _LT_AC_TAGVAR(old_archive_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ _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) \ _LT_AC_TAGVAR(archive_cmds, $1) \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ _LT_AC_TAGVAR(postinstall_cmds, $1) \ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ _LT_AC_TAGVAR(no_undefined_flag, $1) \ _LT_AC_TAGVAR(export_symbols_cmds, $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_automatic, $1) \ _LT_AC_TAGVAR(module_cmds, $1) \ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ _LT_AC_TAGVAR(exclude_expsyms, $1) \ _LT_AC_TAGVAR(include_expsyms, $1); do case $var in _LT_AC_TAGVAR(old_archive_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ _LT_AC_TAGVAR(archive_cmds, $1) | \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ _LT_AC_TAGVAR(module_cmds, $1) | \ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 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 ifelse([$1], [], [cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" AC_MSG_NOTICE([creating $ofile])], [cfgfile="$ofile"]) cat <<__EOF__ >> "$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 <gord@gnu.ai.mit.edu>, 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* | k*bsd*-gnu) 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 <<EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $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 <<EOF > 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 <<EOF >> 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* | 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* | k*bsd*-gnu) 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* | netbsdelf*-gnu) ;; 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* | k*bsd*-gnu) 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' ;; linux* | k*bsd*-gnu) _LT_AC_TAGVAR(link_all_deplibs, $1)=no ;; *) _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 <<EOF 1>&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 <kc5tja@dolphin.openprojects.net> 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 <jrb3@best.com> 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* | k*bsd*-gnu) 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 _LT_AC_TAGVAR(link_all_deplibs, $1)=no else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) 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 <<EOF 1>&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* | 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* | netbsdelf*-gnu) 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 <windows.h> # #undef WIN32_LEAN_AND_MEAN # #include <stdio.h> # # #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 <cygwin/cygwin_dll.h> # 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 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_MSG_RESULT([$SED]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. # # 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 ])], [$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 <http://www.freedesktop.org/software/pkgconfig>.])], [$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 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. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # 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` ]) # Copyright (C) 1996, 1997, 1999, 2000, 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 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 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 7 # 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]) AC_SUBST([$1_FALSE]) 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 # 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 # 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], 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/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]) ]) # 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /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"]) ]) # 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 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 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 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.58])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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 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 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 ]) ]) # 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-"$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])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 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 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # 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, 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_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 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 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 whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # 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="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # 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 <conftest.tar]) grep GrepMe conftest.dir/file >/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 m4_include([m4/intltool.m4]) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/Makefile.am���������������������������������������������������������������������������0000644�0001750�0001750�00000000421�10416206370�014200� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Process this file with automake to produce Makefile.in SUBDIRS = gnoemoe po pixmaps scripts ui data DISTCLEANFILES = \ intltool-extract \ intltool-merge \ intltool-update EXTRA_DIST = \ autogen.sh \ intltool-extract.in \ intltool-merge.in \ intltool-update.in �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/Makefile.in���������������������������������������������������������������������������0000644�0001750�0001750�00000052462�10517752445�014240� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \ INSTALL NEWS config.guess config.sub depcomp install-sh \ ltmain.sh missing mkinstalldirs subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-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); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = gnoemoe po pixmaps scripts ui data DISTCLEANFILES = \ intltool-extract \ intltool-merge \ intltool-update EXTRA_DIST = \ autogen.sh \ intltool-extract.in \ intltool-merge.in \ intltool-update.in all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) 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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # 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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @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) mkdir $(distdir) $(mkdir_p) $(distdir)/m4 $(distdir)/po @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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" \ 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 $(SHELL) $(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) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(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 '1{h;s/./=/g;p;x;}' -e '$${p;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 config.h 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) -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-exec-am: install-info: install-info-recursive install-man: 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-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-libtool clean-recursive \ 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-recursive distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am uninstall-info-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: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/config.h.in���������������������������������������������������������������������������0000644�0001750�0001750�00000004207�10517752441�014204� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* config.h.in. Generated from configure.ac by autoheader. */ /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Gettext package */ #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 <dlfcn.h> 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 <inttypes.h> header file. */ #undef HAVE_INTTYPES_H /* Define if your <locale.h> file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the <locale.h> header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H /* Define if libnotify support is enabled */ #undef HAVE_NOTIFY /* MOO code parser is enabled */ #undef HAVE_PARSER /* Ruby scripting is enabled */ #undef HAVE_RUBY /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the <stdlib.h> header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the <strings.h> header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the <string.h> header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the <sys/stat.h> header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the <sys/types.h> header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H /* 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 /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/configure�����������������������������������������������������������������������������0000755�0001750�0001750�00003170317�10517752441�014101� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.60 for gnoemoe 2.2.0. # # Report bugs to <http://www.icecrew.nl/software/gnoemoe>. # # 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 Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 /usr/bin/posix$PATH_SEPARATOR/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 # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh : (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 # Find out whether ``test -x'' works. Don't use a zero-byte file, as # systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then as_executable_p="test -x" else as_executable_p=: fi rm -f conf$$.file # 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 <<EOF $* EOF exit 0 fi # 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 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 </dev/null 6>&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='gnoemoe' PACKAGE_TARNAME='gnoemoe' PACKAGE_VERSION='2.2.0' PACKAGE_STRING='gnoemoe 2.2.0' PACKAGE_BUGREPORT='http://www.icecrew.nl/software/gnoemoe' ac_unique_file="gnoemoe/gm-app.c" # Factoring default headers for most tests. ac_includes_default="\ #include <stdio.h> #if HAVE_SYS_TYPES_H # include <sys/types.h> #endif #if HAVE_SYS_STAT_H # include <sys/stat.h> #endif #if STDC_HEADERS # include <stdlib.h> # include <stddef.h> #else # if HAVE_STDLIB_H # include <stdlib.h> # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include <memory.h> # endif # include <string.h> #endif #if HAVE_STRINGS_H # include <strings.h> #endif #if HAVE_INTTYPES_H # include <inttypes.h> #endif #if HAVE_STDINT_H # include <stdint.h> #endif #if HAVE_UNISTD_H # include <unistd.h> #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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP GREP EGREP YACC YFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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 ACLOCAL_AMFLAGS GCONF_SCHEMA_CONFIG_SOURCE GCONF_SCHEMA_FILE_DIR GCONF_SCHEMAS_INSTALL_TRUE GCONF_SCHEMAS_INSTALL_FALSE GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GLIB_GENMARSHAL HAS_PARSER_TRUE HAS_PARSER_FALSE GPERF RUBY HAS_RUBY_TRUE HAS_RUBY_FALSE RUBY_CFLAGS RUBY_LIBS NOTIFY_CFLAGS NOTIFY_LIBS USE_NOTIFY_TRUE USE_NOTIFY_FALSE LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS CPPFLAGS CPP YACC YFLAGS CXX CXXFLAGS CCC CXXCPP F77 FFLAGS PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS NOTIFY_CFLAGS NOTIFY_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 gnoemoe 2.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/gnoemoe] --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 gnoemoe 2.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] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --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 --disable-parser disable use of the moo code parser in the editor --disable-ruby disable use of the ruby scripting support --disable-libnotify Disable libnotify support 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-ruby=path Set location of Ruby executable Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor YACC The `Yet Another C Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. 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 PACKAGE_CFLAGS C compiler flags for PACKAGE, overriding pkg-config PACKAGE_LIBS linker flags for PACKAGE, overriding pkg-config NOTIFY_CFLAGS C compiler flags for NOTIFY, overriding pkg-config NOTIFY_LIBS linker flags for NOTIFY, 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 <http://www.icecrew.nl/software/gnoemoe>. _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 gnoemoe configure 2.2.0 generated by GNU Autoconf 2.60 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 gnoemoe $as_me 2.2.0, which was generated by GNU Autoconf 2.60. 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 case m4 in [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;; *) ac_macro_dir=$srcdir/m4 ;; esac test -d "$ac_macro_dir" || { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5 echo "$as_me: error: cannot find macro directory \`m4'" >&2;} { (exit 1); exit 1; }; } am__api_version="1.9" 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_executable_p "$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 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi 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_executable_p "$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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && 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 # 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=gnoemoe VERSION=2.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-"$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_executable_p "$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_executable_p "$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="\${SHELL} \$(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 -' ac_config_headers="$ac_config_headers config.h" { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE 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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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 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 { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } # 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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: 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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 <stdarg.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> /* 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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/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 { 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 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 <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> 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 <limits.h> #else # include <assert.h> #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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 <ac_nonexistent.h> _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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> 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 <limits.h> #else # include <assert.h> #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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 <ac_nonexistent.h> _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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 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_executable_p "$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_executable_p "$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" { 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 <stdlib.h> #include <stdarg.h> #include <string.h> #include <float.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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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 <string.h> _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 <stdlib.h> _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 <ctype.h> #include <stdlib.h> #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 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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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: 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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 <stdarg.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> /* 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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/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 for ac_prog in 'bison -y' byacc 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_YACC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_YACC="$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 YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { echo "$as_me:$LINENO: result: $YACC" >&5 echo "${ECHO_T}$YACC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" # 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 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; } # 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 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$lt_cv_path_LD" if test -n "$LD"; then { echo "$as_me:$LINENO: result: $LD" >&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 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&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* | 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* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) 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 5946 "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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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" # 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 http://www.icecrew.nl/software/gnoemoe ## ## ----------------------------------------------------- ## _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_executable_p "$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_executable_p "$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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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: 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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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/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 <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> 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 <limits.h> #else # include <assert.h> #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; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 <ac_nonexistent.h> _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; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> 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 <limits.h> #else # include <assert.h> #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; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 <ac_nonexistent.h> _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; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 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_executable_p "$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 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 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_executable_p "$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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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* | k*bsd*-gnu) 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 <<EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} EOF 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 # 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 <<EOF > 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 <<EOF >> 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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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 <<EOF 1>&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 <<EOF 1>&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:8460: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8464: \$? = $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* | k*bsd*-gnu) 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:8728: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8732: \$? = $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:8832: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8836: \$? = $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 <<EOF 1>&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 <kc5tja@dolphin.openprojects.net> 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 <jrb3@best.com> 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* | k*bsd*-gnu) 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 link_all_deplibs=no else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) 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 <<EOF 1>&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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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* | 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* | netbsdelf*-gnu) 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<name>.so # instead of lib<name>.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 ;; 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* | k*bsd*-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' 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 # 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)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $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' ;; netbsdelf*-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='NetBSD ld.elf_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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <limits.h> declares shl_load. For example, HP-UX 11i <limits.h> 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 <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <limits.h> declares dlopen. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <<EOF #line 11273 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #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 <<EOF #line 11373 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #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 <gord@gnu.ai.mit.edu>, 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 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$lt_cv_path_LD" if test -n "$LD"; then { echo "$as_me:$LINENO: result: $LD" >&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 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <jrb3@best.com> 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* | 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* | k*bsd*-gnu) 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* | netbsdelf*-gnu) 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 <<EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; EOF 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 # 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* | 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* | k*bsd*-gnu) 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* | netbsdelf*-gnu) ;; 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:13741: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13745: \$? = $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:13845: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13849: \$? = $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' ;; linux* | k*bsd*-gnu) link_all_deplibs_CXX=no ;; *) 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<name>.so # instead of lib<name>.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 ;; 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* | k*bsd*-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' 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 # 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)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $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' ;; netbsdelf*-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='NetBSD ld.elf_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* | k*bsd*-gnu) 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:15406: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15410: \$? = $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:15510: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15514: \$? = $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 <<EOF 1>&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 <kc5tja@dolphin.openprojects.net> 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 <jrb3@best.com> 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* | k*bsd*-gnu) 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 link_all_deplibs_F77=no else ld_shlibs_F77=no fi ;; netbsd* | netbsdelf*-gnu) 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 <<EOF 1>&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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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* | 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* | netbsdelf*-gnu) 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<name>.so # instead of lib<name>.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 ;; 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* | k*bsd*-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' 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 # 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)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $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' ;; netbsdelf*-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='NetBSD ld.elf_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:17729: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17733: \$? = $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* | k*bsd*-gnu) 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:17997: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18001: \$? = $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:18101: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18105: \$? = $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 <<EOF 1>&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 <kc5tja@dolphin.openprojects.net> 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 <jrb3@best.com> 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* | k*bsd*-gnu) 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 link_all_deplibs_GCJ=no else ld_shlibs_GCJ=no fi ;; netbsd* | netbsdelf*-gnu) 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 <<EOF 1>&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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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* | 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* | netbsdelf*-gnu) 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<name>.so # instead of lib<name>.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 ;; 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* | k*bsd*-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' 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 # 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)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $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' ;; netbsdelf*-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='NetBSD ld.elf_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=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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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: 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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 <stdarg.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> /* 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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/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 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc { 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 <stdlib.h> #include <stdarg.h> #include <string.h> #include <float.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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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 <string.h> _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 <stdlib.h> _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 <ctype.h> #include <stdlib.h> #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 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 "0.31"; then { echo "$as_me:$LINENO: checking for intltool >= 0.31" >&5 echo $ECHO_N "checking for intltool >= 0.31... $ECHO_C" >&6; } INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.31 | 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 0.31 or later." >&5 echo "$as_me: error: Your intltool is too old. You need intltool 0.31 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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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 ac_config_commands="$ac_config_commands intltool" ACLOCAL_AMFLAGS="$ACLOCAL_FLAGS -I m4" # 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_executable_p "$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 ${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 # AC_PATH_PROG(GCONFTOOL, gconftool-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 # 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 GETTEXT_PACKAGE=gnoemoe cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF ALL_LINGUAS="nl" 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 http://www.icecrew.nl/software/gnoemoe ## ## ----------------------------------------------------- ## _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 <locale.h> 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <libintl.h> _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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s conftest.$ac_objext' { (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 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 <libintl.h> _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; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_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 http://www.icecrew.nl/software/gnoemoe ## ## ----------------------------------------------------- ## _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 <libintl.h> 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <libintl.h> 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> 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 <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> 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 <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> 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 <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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 # 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_executable_p "$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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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 <limits.h> declares bind_textdomain_codeset. For example, HP-UX 11i <limits.h> 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 <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { ac_try='test -s 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 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$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$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 for ac_prog in 'bison -y' byacc 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_YACC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_YACC="$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 YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { echo "$as_me:$LINENO: result: $YACC" >&5 echo "${ECHO_T}$YACC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" 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_executable_p "$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_executable_p "$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 PACKAGE" >&5 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_CFLAGS"; then pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 \"") >&5 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte 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 "$PACKAGE_LIBS"; then pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 \"") >&5 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte 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 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 "` else PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 "` fi # Put the nasty error message in config.log where it belongs echo "$PACKAGE_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 ) were not met: $PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_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.8.0 gdk-pixbuf-2.0 libgnome-2.0 libglade-2.0 gtksourceview-1.0 gnome-vfs-2.0 libgnomeui-2.0 vte libxml-2.0 ) were not met: $PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 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 PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi # Extract the first word of "glib-genmarshal", so it can be a program name with args. set dummy glib-genmarshal; 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_GLIB_GENMARSHAL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GLIB_GENMARSHAL in [\\/]* | ?:[\\/]*) ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GLIB_GENMARSHAL="$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 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL if test -n "$GLIB_GENMARSHAL"; then { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Check whether --enable-parser was given. if test "${enable_parser+set}" = set; then enableval=$enable_parser; parseren=$enableval else parseren=yes fi if test "_$parseren" = "_yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_PARSER 1 _ACEOF if true; then HAS_PARSER_TRUE= HAS_PARSER_FALSE='#' else HAS_PARSER_TRUE='#' HAS_PARSER_FALSE= fi parsermsg="enjoy parsing" # Extract the first word of "gperf", so it can be a program name with args. set dummy gperf; 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_GPERF+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$GPERF"; then ac_cv_prog_GPERF="$GPERF" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_GPERF="gperf" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi GPERF=$ac_cv_prog_GPERF if test -n "$GPERF"; then { echo "$as_me:$LINENO: result: $GPERF" >&5 echo "${ECHO_T}$GPERF" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else if false; then HAS_PARSER_TRUE= HAS_PARSER_FALSE='#' else HAS_PARSER_TRUE='#' HAS_PARSER_FALSE= fi parsermsg="(user disabled)" fi # Check whether --enable-ruby was given. if test "${enable_ruby+set}" = set; then enableval=$enable_ruby; rubyen=$enableval else rubyen=yes fi #---------------------------------------------------------------- # Look for Ruby #---------------------------------------------------------------- if test "_$rubyen" = "_yes"; then RUBYBIN= # Check whether --with-ruby was given. if test "${with_ruby+set}" = set; then withval=$with_ruby; RUBYBIN="$withval" else RUBYBIN= fi # First figure out what the name of Ruby is if test -z "$RUBYBIN"; then for ac_prog in ruby 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_RUBY+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RUBY"; then ac_cv_prog_RUBY="$RUBY" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RUBY="$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 RUBY=$ac_cv_prog_RUBY if test -n "$RUBY"; then { echo "$as_me:$LINENO: result: $RUBY" >&5 echo "${ECHO_T}$RUBY" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$RUBY" && break done else RUBY="$RUBYBIN" fi { echo "$as_me:$LINENO: checking for Ruby header files" >&5 echo $ECHO_N "checking for Ruby header files... $ECHO_C" >&6; } if test -n "$RUBY"; then RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG["archdir"] || $archdir') 2>/dev/null` if test "$RUBYDIR" != ""; then dirs="$RUBYDIR" RUBY_CFLAGS=none for i in $dirs; do if test -r $i/ruby.h; then { echo "$as_me:$LINENO: result: $i" >&5 echo "${ECHO_T}$i" >&6; } RUBY_CFLAGS="-idirafter $i" break; fi done if test "$RUBY_CFLAGS" = none; then { echo "$as_me:$LINENO: result: could not locate ruby.h" >&5 echo "${ECHO_T}could not locate ruby.h" >&6; } rubymsg="(no headers found, install ruby-dev)" rubyen="no" fi # Find library and path for linking. { echo "$as_me:$LINENO: checking for Ruby library" >&5 echo $ECHO_N "checking for Ruby library... $ECHO_C" >&6; } RUBYLIB="" rb_libdir=`($RUBY -rrbconfig -e 'print Config::CONFIG["libdir"]') 2>/dev/null` rb_bindir=`($RUBY -rrbconfig -e 'print Config::CONFIG["bindir"]') 2>/dev/null` dirs="$dirs $rb_libdir $rb_bindir" rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG["LIBRUBY_A"]') 2>/dev/null` RUBY_LIBS=`($RUBY -rrbconfig -e ' c = Config::CONFIG if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x if c["LIBRUBY"] == c["LIBRUBY_A"] link = c["LIBRUBYARG_STATIC"] else link = c["LIBRUBYARG_SHARED"] end else # 1.6.x link = "-l" + c["RUBY_INSTALL_NAME"] end puts link') 2>/dev/null` if test "$rb_libruby" != ""; then for i in $dirs; do if (test -r $i/$rb_libruby;) then RUBYLIB="$i" break; fi done fi if test "$RUBYLIB" = ""; then { echo "$as_me:$LINENO: result: not found... disabling ruby support" >&5 echo "${ECHO_T}not found... disabling ruby support" >&6; } rubymsg="(libs not found)" rubyen="no" else { echo "$as_me:$LINENO: result: $RUBY_LIBS in $RUBYLIB" >&5 echo "${ECHO_T}$RUBY_LIBS in $RUBYLIB" >&6; } fi else { echo "$as_me:$LINENO: result: unable to determine ruby configuration" >&5 echo "${ECHO_T}unable to determine ruby configuration" >&6; } rubymsg="(unable to determine configuration)" rubyen="no" fi else { echo "$as_me:$LINENO: result: not found.. disabling ruby support" >&5 echo "${ECHO_T}not found.. disabling ruby support" >&6; } rubymsg="(no headers found, install ruby-dev)" rubyen="no" fi fi if test "_$rubyen" == "_no"; then RUBY_CFLAGS="" RUBY_LIBS="" if false; then HAS_RUBY_TRUE= HAS_RUBY_FALSE='#' else HAS_RUBY_TRUE='#' HAS_RUBY_FALSE= fi else rubymsg="enjoy scripting :)" cat >>confdefs.h <<\_ACEOF #define HAVE_RUBY 1 _ACEOF if true; then HAS_RUBY_TRUE= HAS_RUBY_FALSE='#' else HAS_RUBY_TRUE='#' HAS_RUBY_FALSE= fi fi # Look for libnotify LIBNOTIFY_REQUIRED=0.3.2 # Check whether --enable-libnotify was given. if test "${enable_libnotify+set}" = set; then enableval=$enable_libnotify; else enable_libnotify=auto fi if test "x$enable_libnotify" != "xno"; then pkg_failed=no { echo "$as_me:$LINENO: checking for NOTIFY" >&5 echo $ECHO_N "checking for NOTIFY... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$NOTIFY_CFLAGS"; then pkg_cv_NOTIFY_CFLAGS="$NOTIFY_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_NOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= $LIBNOTIFY_REQUIRED" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$NOTIFY_LIBS"; then pkg_cv_NOTIFY_LIBS="$NOTIFY_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnotify >= \$LIBNOTIFY_REQUIRED\"") >&5 ($PKG_CONFIG --exists --print-errors "libnotify >= $LIBNOTIFY_REQUIRED") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_NOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= $LIBNOTIFY_REQUIRED" 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 NOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_REQUIRED"` else NOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= $LIBNOTIFY_REQUIRED"` fi # Put the nasty error message in config.log where it belongs echo "$NOTIFY_PKG_ERRORS" >&5 have_libnotify=no elif test $pkg_failed = untried; then have_libnotify=no else NOTIFY_CFLAGS=$pkg_cv_NOTIFY_CFLAGS NOTIFY_LIBS=$pkg_cv_NOTIFY_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } have_libnotify=yes fi if test "x$have_libnotify" = "xno" -a "x$enable_libnotify" = "xyes"; then { { echo "$as_me:$LINENO: error: libnotify support explicitly requested, but libnotify couldn't be found" >&5 echo "$as_me: error: libnotify support explicitly requested, but libnotify couldn't be found" >&2;} { (exit 1); exit 1; }; } fi if test "x$have_libnotify" = "xyes"; then enable_libnotify=yes fi fi if test x"$enable_libnotify" = xyes; then USE_NOTIFY_TRUE= USE_NOTIFY_FALSE='#' else USE_NOTIFY_TRUE='#' USE_NOTIFY_FALSE= fi if test x$enable_libnotify = xyes ; then # Find out the version of LIBNOTIFY we're using libnotify_version=`pkg-config --modversion libnotify` LIBNOTIFY_VERSION_MAJOR=`echo $libnotify_version | awk -F. '{print $1}'` LIBNOTIFY_VERSION_MINOR=`echo $libnotify_version | awk -F. '{print $2}'` LIBNOTIFY_VERSION_MICRO=`echo $libnotify_version | awk -F. '{print $3}'` if test "z$LIBNOTIFY_VERSION_MAJOR" = "z"; then LIBNOTIFY_VERSION_MAJOR="0" fi if test "z$LIBNOTIFY_VERSION_MINOR" = "z"; then LIBNOTIFY_VERSION_MINOR="0" fi if test "z$LIBNOTIFY_VERSION_MICRO" = "z"; then LIBNOTIFY_VERSION_MICRO="0" fi echo "Your libnotify version is $LIBNOTIFY_VERSION_MAJOR,$LIBNOTIFY_VERSION_MINOR,$LIBNOTIFY_VERSION_MICRO." NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MAJOR=$LIBNOTIFY_VERSION_MAJOR" NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MINOR=$LIBNOTIFY_VERSION_MINOR" NOTIFY_CFLAGS="$NOTIFY_CFLAGS -DLIBNOTIFY_VERSION_MICRO=$LIBNOTIFY_VERSION_MICRO" cat >>confdefs.h <<\_ACEOF #define HAVE_NOTIFY 1 _ACEOF fi ac_config_files="$ac_config_files Makefile pixmaps/Makefile pixmaps/userlist/Makefile pixmaps/ice-userlist/Makefile pixmaps/tray/Makefile gnoemoe/Makefile gnoemoe/parser/Makefile po/Makefile.in scripts/Makefile ui/Makefile data/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 "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi 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 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 ac_config_commands="$ac_config_commands po/stamp-it" 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 "${HAS_PARSER_TRUE}" && test -z "${HAS_PARSER_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HAS_PARSER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HAS_PARSER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAS_PARSER_TRUE}" && test -z "${HAS_PARSER_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HAS_PARSER\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HAS_PARSER\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAS_RUBY_TRUE}" && test -z "${HAS_RUBY_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HAS_RUBY\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HAS_RUBY\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAS_RUBY_TRUE}" && test -z "${HAS_RUBY_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HAS_RUBY\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HAS_RUBY\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${USE_NOTIFY_TRUE}" && test -z "${USE_NOTIFY_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"USE_NOTIFY\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"USE_NOTIFY\" 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 Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 # Find out whether ``test -x'' works. Don't use a zero-byte file, as # systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then as_executable_p="test -x" else as_executable_p=: fi rm -f conf$$.file # 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 gnoemoe $as_me 2.2.0, which was generated by GNU Autoconf 2.60. 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, 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 <bug-autoconf@gnu.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ gnoemoe config.status 2.2.0 configured by $0, generated by GNU Autoconf 2.60, 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' _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" ;; "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; "pixmaps/userlist/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/userlist/Makefile" ;; "pixmaps/ice-userlist/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/ice-userlist/Makefile" ;; "pixmaps/tray/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/tray/Makefile" ;; "gnoemoe/Makefile") CONFIG_FILES="$CONFIG_FILES gnoemoe/Makefile" ;; "gnoemoe/parser/Makefile") CONFIG_FILES="$CONFIG_FILES gnoemoe/parser/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; "ui/Makefile") CONFIG_FILES="$CONFIG_FILES ui/Makefile" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/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 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 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim MAINT!$MAINT$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 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 CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim YACC!$YACC$ac_delim YFLAGS!$YFLAGS$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 LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$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 <conf$$subs.sed rm -f conf$$subs.sed cat >>$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 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 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 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$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 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim CATALOGS!$CATALOGS$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim DATADIRNAME!$DATADIRNAME$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 PKG_CONFIG!$PKG_CONFIG$ac_delim PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim HAS_PARSER_TRUE!$HAS_PARSER_TRUE$ac_delim HAS_PARSER_FALSE!$HAS_PARSER_FALSE$ac_delim GPERF!$GPERF$ac_delim RUBY!$RUBY$ac_delim HAS_RUBY_TRUE!$HAS_RUBY_TRUE$ac_delim HAS_RUBY_FALSE!$HAS_RUBY_FALSE$ac_delim RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim RUBY_LIBS!$RUBY_LIBS$ac_delim NOTIFY_CFLAGS!$NOTIFY_CFLAGS$ac_delim NOTIFY_LIBS!$NOTIFY_LIBS$ac_delim USE_NOTIFY_TRUE!$USE_NOTIFY_TRUE$ac_delim USE_NOTIFY_FALSE!$USE_NOTIFY_FALSE$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; 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 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 <conf$$subs.sed rm -f conf$$subs.sed cat >>$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 _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 $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /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 echo Building with ruby ............. : $rubyen $rubymsg echo Building with parser ........... : $parseren $parsermsg echo Building with libnotify ........ : $have_libnotify $libnotify_version echo Install prefix ................. : $prefix echo Install share .................. : $datadir �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ABOUT-NLS�����������������������������������������������������������������������������0000644�0001750�0001750�00000235235�10513470151�013406� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������1 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. 1.1 Quick configuration advice ============================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. 1.2 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. If not, the included GNU `gettext' library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will, respectively, bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might not be desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.3 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.4 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. 1.5 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of July 2006. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo +----------------------------------------------------+ GNUnet | [] | a2ps | [] [] [] [] [] | aegis | () | ant-phone | () | anubis | [] | ap-utils | | aspell | [] [] [] [] | bash | [] [] [] | batchelor | [] | bfd | | bibshelf | [] | binutils | [] | bison | [] [] | bison-runtime | [] | bluez-pin | [] [] [] [] [] | cflow | [] | clisp | [] [] | console-tools | [] [] | coreutils | [] [] [] [] | cpio | | cpplib | [] [] [] | cryptonit | [] | darkstat | [] () [] | dialog | [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] [] | fetchmail | [] [] () [] | fileutils | [] [] | findutils | [] [] [] | flex | [] [] [] | fslint | [] | gas | | gawk | [] [] [] | gbiff | [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] | gimp-print | [] [] [] [] | gip | [] | gliv | [] | glunarclock | [] | gmult | [] [] | gnubiff | () | gnucash | () () [] | gnucash-glossary | [] () | gnuedu | | gnulib | [] [] [] [] [] [] | gnunet-gtk | | gnutls | | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | | gpe-edit | [] | gpe-filemanager | | gpe-go | [] | gpe-login | [] [] | gpe-ownerinfo | [] [] | gpe-package | | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] [] | gpe-todo | | gphoto2 | [] [] [] [] | gprof | [] [] | gpsdrive | () () | gramadoir | [] [] | grep | [] [] [] [] [] [] | gretl | | gsasl | | gss | | gst-plugins | [] [] [] [] | gst-plugins-base | [] [] [] | gst-plugins-good | [] [] [] [] [] [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | [] () | gtkam | [] [] [] | gtkorphan | [] [] | gtkspell | [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] | id-utils | [] [] | impost | | indent | [] [] [] | iso_3166 | [] [] | iso_3166_1 | [] [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] | iso_4217 | [] | iso_639 | [] [] | jpilot | [] | jtag | | jwhois | | kbd | [] [] [] [] | keytouch | | keytouch-editor | | keytouch-keyboa... | | latrine | () | ld | [] | leafpad | [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] | libgpewidget | [] [] [] | libgpg-error | [] | libgphoto2 | [] [] | libgphoto2_port | [] [] | libgsasl | | libiconv | [] [] | libidn | [] [] | lifelines | [] () | lilypond | [] | lingoteach | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailutils | [] | make | [] [] | man-db | [] () [] [] | minicom | [] [] [] | mysecretdiary | [] [] | nano | [] [] () [] | nano_1_0 | [] () [] [] | opcodes | [] | parted | | pilot-qof | [] | psmisc | [] | pwdutils | | python | | qof | | radius | [] | recode | [] [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] | sh-utils | [] [] | shared-mime-info | [] [] [] | sharutils | [] [] [] [] [] [] | shishi | | silky | | skencil | [] () | sketch | [] () | solfege | | soundtracker | [] [] | sp | [] | stardict | [] | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] | texinfo | [] [] [] | textutils | [] [] [] | tin | () () | tp-robot | [] | tuxpaint | [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | vorbis-tools | [] [] [] [] | wastesedge | () | wdiff | [] [] [] [] | wget | [] [] | xchat | [] [] [] [] [] | xkeyboard-config | | xpad | [] [] | +----------------------------------------------------+ af am ar az be bg bs ca cs cy da de el en en_GB eo 11 0 1 2 8 21 1 42 43 2 62 99 18 1 16 16 es et eu fa fi fr ga gl gu he hi hr hu id is it +--------------------------------------------------+ GNUnet | | a2ps | [] [] [] () | aegis | | ant-phone | [] | anubis | [] | ap-utils | [] [] | aspell | [] [] [] | bash | [] [] [] | batchelor | [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] [] [] | bison | [] [] [] [] [] [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | cflow | | clisp | [] [] | console-tools | | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cpplib | [] [] | cryptonit | [] | darkstat | [] () [] [] [] | dialog | [] [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] [] | enscript | [] [] [] | error | [] [] [] [] [] | fetchmail | [] | fileutils | [] [] [] [] [] [] | findutils | [] [] [] [] | flex | [] [] [] | fslint | [] | gas | [] [] | gawk | [] [] [] [] | gbiff | [] | gcal | [] [] | gcc | [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] | gimp-print | [] [] | gip | [] [] [] | gliv | () | glunarclock | [] [] [] | gmult | [] [] [] | gnubiff | () () | gnucash | () () () | gnucash-glossary | [] [] | gnuedu | [] | gnulib | [] [] [] [] [] [] [] [] | gnunet-gtk | | gnutls | | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] | gpe-conf | [] | gpe-contacts | [] [] | gpe-edit | [] [] [] [] | gpe-filemanager | [] | gpe-go | [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] | gphoto2 | [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | () () [] () | gramadoir | [] [] | grep | [] [] [] [] [] [] [] [] [] [] [] [] | gretl | [] [] [] | gsasl | [] | gss | [] | gst-plugins | [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] [] | gstreamer | [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | id-utils | [] [] [] [] [] | impost | [] [] | indent | [] [] [] [] [] [] [] [] [] [] | iso_3166 | [] [] [] | iso_3166_1 | [] [] [] [] [] [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] [] | iso_639 | [] [] [] [] [] | jpilot | [] [] | jtag | [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | latrine | [] [] [] | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] | libgpewidget | [] [] [] [] [] | libgpg-error | | libgphoto2 | [] [] [] | libgphoto2_port | [] [] | libgsasl | [] [] | libiconv | [] | libidn | [] [] | lifelines | () | lilypond | [] | lingoteach | [] [] [] | lynx | [] [] [] | m4 | [] [] [] [] | mailutils | [] [] | make | [] [] [] [] [] [] [] [] | man-db | () | minicom | [] [] [] [] | mysecretdiary | [] [] [] | nano | [] () [] [] [] [] | nano_1_0 | [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pilot-qof | | psmisc | [] [] [] | pwdutils | | python | | qof | | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] | sed | [] [] [] [] [] | sh-utils | [] [] [] [] [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] [] | shishi | | silky | [] | skencil | [] [] | sketch | [] [] | solfege | [] | soundtracker | [] [] [] | sp | [] | stardict | [] | system-tools-ba... | [] [] [] [] [] [] [] [] | tar | [] [] [] [] [] [] | texinfo | [] [] | textutils | [] [] [] [] [] | tin | [] () | tp-robot | [] [] [] [] | tuxpaint | [] [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux | [] [] [] [] [] [] [] | vorbis-tools | [] [] | wastesedge | () | wdiff | [] [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] [] | xchat | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | xpad | [] [] [] | +--------------------------------------------------+ es et eu fa fi fr ga gl gu he hi hr hu id is it 89 21 16 2 41 119 61 14 1 8 1 6 61 30 0 53 ja ko ku ky lg lt lv mk mn ms mt nb ne nl nn no +--------------------------------------------------+ GNUnet | | a2ps | () [] [] () | aegis | () | ant-phone | [] | anubis | [] [] [] | ap-utils | [] | aspell | [] [] | bash | [] | batchelor | [] [] | bfd | | bibshelf | [] | binutils | | bison | [] [] [] | bison-runtime | [] [] [] | bluez-pin | [] [] [] | cflow | | clisp | [] | console-tools | | coreutils | [] | cpio | | cpplib | [] | cryptonit | [] | darkstat | [] [] | dialog | [] [] | diffutils | [] [] [] | doodle | | e2fsprogs | [] | enscript | [] | error | [] | fetchmail | [] [] | fileutils | [] [] | findutils | [] | flex | [] [] | fslint | [] [] | gas | | gawk | [] [] | gbiff | [] | gcal | | gcc | | gettext-examples | [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] | gimp-print | [] [] | gip | [] [] | gliv | [] | glunarclock | [] [] | gmult | [] [] | gnubiff | | gnucash | () () | gnucash-glossary | [] | gnuedu | | gnulib | [] [] [] [] | gnunet-gtk | | gnutls | | gpe-aerial | [] | gpe-beam | [] | gpe-calendar | [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | [] | gpe-edit | [] [] | gpe-filemanager | [] | gpe-go | [] [] | gpe-login | [] [] | gpe-ownerinfo | [] | gpe-package | [] | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | [] [] | gprof | | gpsdrive | () () () | gramadoir | () | grep | [] [] [] | gretl | | gsasl | [] | gss | | gst-plugins | [] | gst-plugins-base | | gst-plugins-good | [] | gstreamer | [] | gtick | [] | gtkam | [] | gtkorphan | [] | gtkspell | [] [] | gutenprint | | hello | [] [] [] [] [] [] [] [] | id-utils | [] | impost | | indent | [] [] | iso_3166 | [] | iso_3166_1 | [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] | iso_639 | [] [] | jpilot | () () () | jtag | | jwhois | [] | kbd | [] | keytouch | [] | keytouch-editor | | keytouch-keyboa... | | latrine | [] | ld | | leafpad | [] [] | libc | [] [] [] [] [] | libexif | | libextractor | | libgpewidget | [] | libgpg-error | | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | [] | libiconv | | libidn | [] [] | lifelines | [] | lilypond | | lingoteach | [] | lynx | [] [] | m4 | [] [] | mailutils | | make | [] [] [] | man-db | () | minicom | [] | mysecretdiary | [] | nano | [] [] [] | nano_1_0 | [] [] [] | opcodes | [] | parted | [] [] | pilot-qof | | psmisc | [] [] [] | pwdutils | | python | | qof | | radius | | recode | [] | rpm | [] [] | screem | [] | scrollkeeper | [] [] [] [] | sed | [] [] | sh-utils | [] [] | shared-mime-info | [] [] [] [] [] | sharutils | [] [] | shishi | | silky | [] | skencil | | sketch | | solfege | | soundtracker | | sp | () | stardict | [] [] | system-tools-ba... | [] [] [] [] | tar | [] [] [] | texinfo | [] [] [] | textutils | [] [] [] | tin | | tp-robot | [] | tuxpaint | [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] | vorbis-tools | [] | wastesedge | [] | wdiff | [] [] | wget | [] [] | xchat | [] [] [] [] | xkeyboard-config | [] | xpad | [] [] [] | +--------------------------------------------------+ ja ko ku ky lg lt lv mk mn ms mt nb ne nl nn no 40 24 2 1 1 3 1 2 3 21 0 15 1 101 5 3 nso or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta +------------------------------------------------------+ GNUnet | | a2ps | () [] [] [] [] [] [] | aegis | () () | ant-phone | [] [] | anubis | [] [] [] | ap-utils | () | aspell | [] [] | bash | [] [] [] | batchelor | [] [] | bfd | | bibshelf | [] | binutils | [] [] | bison | [] [] [] [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] [] | cflow | [] | clisp | [] | console-tools | [] | coreutils | [] [] [] [] | cpio | [] [] [] | cpplib | [] | cryptonit | [] [] | darkstat | [] [] [] [] [] [] | dialog | [] [] [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | error | [] [] [] [] | fetchmail | [] [] [] | fileutils | [] [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] [] [] | fslint | [] [] [] [] | gas | | gawk | [] [] [] [] | gbiff | [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gimp-print | [] [] | gip | [] [] [] [] | gliv | [] [] [] [] | glunarclock | [] [] [] [] [] [] | gmult | [] [] [] [] | gnubiff | () | gnucash | () [] | gnucash-glossary | [] [] [] | gnuedu | | gnulib | [] [] [] [] [] | gnunet-gtk | [] | gnutls | [] [] | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-calendar | [] [] [] [] [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] [] [] [] [] [] | gpe-filemanager | [] [] | gpe-go | [] [] [] [] [] [] | gpe-login | [] [] [] [] [] [] [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] | gphoto2 | [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] | grep | [] [] [] [] [] [] [] [] | gretl | [] | gsasl | [] [] | gss | [] [] [] | gst-plugins | [] [] [] [] | gst-plugins-base | [] | gst-plugins-good | [] [] [] [] | gstreamer | [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] [] | id-utils | [] [] [] [] | impost | [] | indent | [] [] [] [] [] [] | iso_3166 | [] [] [] [] [] [] | iso_3166_1 | [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] [] [] [] | iso_4217 | [] [] [] [] | iso_639 | [] [] [] [] | jpilot | | jtag | [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | latrine | [] [] | ld | [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] [] | libgpewidget | [] [] [] [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] | libiconv | | libidn | [] [] () | lifelines | [] [] | lilypond | | lingoteach | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailutils | [] [] [] [] | make | [] [] [] [] | man-db | [] [] | minicom | [] [] [] [] [] | mysecretdiary | [] [] [] [] | nano | [] [] | nano_1_0 | [] [] [] [] | opcodes | [] [] | parted | [] | pilot-qof | [] | psmisc | [] [] | pwdutils | [] [] | python | | qof | [] | radius | [] [] | recode | [] [] [] [] [] [] [] | rpm | [] [] [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sh-utils | [] [] [] | shared-mime-info | [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | silky | [] | skencil | [] [] [] | sketch | [] [] [] | solfege | [] | soundtracker | [] [] | sp | | stardict | [] [] [] | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] [] | textutils | [] [] [] | tin | () | tp-robot | [] | tuxpaint | [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | vorbis-tools | [] [] | wastesedge | | wdiff | [] [] [] [] [] [] | wget | [] [] [] [] | xchat | [] [] [] [] [] [] [] | xkeyboard-config | [] [] | xpad | [] [] [] | +------------------------------------------------------+ nso or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta 0 2 3 58 31 53 5 76 72 5 42 48 12 51 130 2 tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu +---------------------------------------------------+ GNUnet | [] | 2 a2ps | [] [] [] | 19 aegis | | 0 ant-phone | [] [] | 6 anubis | [] [] [] | 11 ap-utils | () [] | 4 aspell | [] [] [] | 14 bash | [] | 11 batchelor | [] [] | 9 bfd | | 1 bibshelf | [] | 7 binutils | [] [] [] | 9 bison | [] [] [] | 19 bison-runtime | [] [] [] | 16 bluez-pin | [] [] [] [] [] [] | 28 cflow | [] [] | 4 clisp | | 6 console-tools | [] [] | 5 coreutils | [] [] | 17 cpio | [] [] [] | 9 cpplib | [] [] [] [] | 11 cryptonit | | 5 darkstat | [] () () | 15 dialog | [] [] [] [] [] | 30 diffutils | [] [] [] [] | 28 doodle | [] | 6 e2fsprogs | [] [] | 10 enscript | [] [] [] | 16 error | [] [] [] [] | 18 fetchmail | [] [] | 12 fileutils | [] [] [] | 18 findutils | [] [] [] | 17 flex | [] [] | 15 fslint | [] | 9 gas | [] | 3 gawk | [] [] | 15 gbiff | [] | 5 gcal | [] | 5 gcc | [] [] [] | 6 gettext-examples | [] [] [] [] [] [] | 26 gettext-runtime | [] [] [] [] [] [] | 28 gettext-tools | [] [] [] [] [] | 19 gimp-print | [] [] | 12 gip | [] [] | 12 gliv | [] [] | 8 glunarclock | [] [] [] | 15 gmult | [] [] [] [] | 15 gnubiff | [] | 1 gnucash | () | 2 gnucash-glossary | [] [] | 9 gnuedu | [] | 2 gnulib | [] [] [] [] [] | 28 gnunet-gtk | | 1 gnutls | | 2 gpe-aerial | [] [] | 14 gpe-beam | [] [] | 14 gpe-calendar | [] [] [] [] | 19 gpe-clock | [] [] [] [] | 20 gpe-conf | [] [] | 14 gpe-contacts | [] [] | 10 gpe-edit | [] [] [] [] | 19 gpe-filemanager | [] | 5 gpe-go | [] [] | 14 gpe-login | [] [] [] [] [] | 20 gpe-ownerinfo | [] [] [] [] | 20 gpe-package | [] | 5 gpe-sketchbook | [] [] | 16 gpe-su | [] [] [] | 19 gpe-taskmanager | [] [] [] | 19 gpe-timesheet | [] [] [] [] | 18 gpe-today | [] [] [] [] [] | 20 gpe-todo | [] | 6 gphoto2 | [] [] [] [] | 20 gprof | [] [] | 11 gpsdrive | | 4 gramadoir | [] | 7 grep | [] [] [] [] | 33 gretl | | 4 gsasl | [] [] | 6 gss | [] | 5 gst-plugins | [] [] [] | 15 gst-plugins-base | [] [] [] | 9 gst-plugins-good | [] [] [] | 18 gstreamer | [] [] [] | 17 gtick | [] | 11 gtkam | [] | 13 gtkorphan | [] | 7 gtkspell | [] [] [] [] [] [] | 26 gutenprint | | 3 hello | [] [] [] [] [] | 39 id-utils | [] [] | 14 impost | [] | 4 indent | [] [] [] [] | 25 iso_3166 | [] [] [] | 15 iso_3166_1 | [] [] | 20 iso_3166_2 | | 2 iso_3166_3 | [] [] | 9 iso_4217 | [] [] | 14 iso_639 | [] | 14 jpilot | [] [] [] [] | 7 jtag | [] | 3 jwhois | [] [] [] | 13 kbd | [] [] | 12 keytouch | [] | 4 keytouch-editor | | 2 keytouch-keyboa... | | 2 latrine | [] [] | 8 ld | [] [] [] [] | 8 leafpad | [] [] [] [] | 23 libc | [] [] [] | 23 libexif | [] | 4 libextractor | [] | 5 libgpewidget | [] [] [] | 19 libgpg-error | [] | 4 libgphoto2 | [] | 8 libgphoto2_port | [] [] [] | 11 libgsasl | [] | 8 libiconv | [] | 4 libidn | [] [] | 10 lifelines | | 4 lilypond | | 2 lingoteach | [] | 6 lynx | [] [] [] | 15 m4 | [] [] [] | 18 mailutils | [] | 8 make | [] [] [] | 20 man-db | [] | 6 minicom | [] | 14 mysecretdiary | [] [] | 12 nano | [] [] | 15 nano_1_0 | [] [] [] | 18 opcodes | [] [] | 10 parted | [] [] [] | 10 pilot-qof | [] | 3 psmisc | [] | 10 pwdutils | [] | 3 python | | 0 qof | [] | 2 radius | [] | 6 recode | [] [] [] | 25 rpm | [] [] [] [] | 14 screem | [] | 2 scrollkeeper | [] [] [] [] | 26 sed | [] [] [] | 22 sh-utils | [] | 15 shared-mime-info | [] [] [] [] | 23 sharutils | [] [] [] | 23 shishi | | 1 silky | [] | 4 skencil | [] | 7 sketch | | 6 solfege | | 2 soundtracker | [] [] | 9 sp | [] | 3 stardict | [] [] [] [] | 11 system-tools-ba... | [] [] [] [] [] [] [] | 37 tar | [] [] [] [] | 19 texinfo | [] [] [] | 15 textutils | [] [] [] | 17 tin | | 1 tp-robot | [] [] [] | 10 tuxpaint | [] [] [] | 16 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux | [] [] [] | 20 vorbis-tools | [] [] | 11 wastesedge | | 1 wdiff | [] [] | 22 wget | [] [] [] | 19 xchat | [] [] [] [] | 28 xkeyboard-config | [] [] [] [] | 11 xpad | [] [] [] | 14 +---------------------------------------------------+ 77 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu 172 domains 0 1 1 78 39 0 135 13 1 50 3 54 0 2054 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If July 2006 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. 1.6 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `translation@iro.umontreal.ca' to make the `.pot' files available to the translation teams. �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/AUTHORS�������������������������������������������������������������������������������0000644�0001750�0001750�00000000156�10410766740�013227� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Jesse van den Kieboom <troplosti@orcaweb.cjb.net> Sjoerd Simons <sjoerd@luon.net> (Debian package maintainer) ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/COPYING�������������������������������������������������������������������������������0000644�0001750�0001750�00000047223�10452307612�013213� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 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. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 St, Fifth Floor, Boston, MA 02110-1301 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. <signature of Ty Coon>, 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. These files are subject to the licence below (only when configured without --disable-parser): gnoemoe/parser/ ast.c, ast.h, functions.c, functions.h, keywords.gperf, keywords.h, list.c, list.h, numbers.c, numbers.h, parsen.h, parser.y, pconfig.h, storage.c, storage.h, streams.c, streams.h, structures.h, sym_table.c, sym_table.h, tokens.h, utils.c, utils.h, version.c, version.h Copyright (c) 1992, 1995, 1996 Xerox Corporation. All rights reserved. Portions of this code were written by Stephen White, aka ghond. Use and copying of this software and preparation of derivative works based upon this software are permitted. Any distribution of this software or derivative works must comply with all applicable United States export control laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. Any person obtaining a copy of this software is requested to send their name and post office or electronic mail address to: Pavel Curtis Xerox PARC 3333 Coyote Hill Rd. Palo Alto, CA 94304 Pavel@Xerox.Com These files are subject to the licence below: gnoemoe/widgets/ eggnotificationbubble.c, eggnotificationbubble.h, eggtrayicon.c, eggtrayicon.h Copyright (C) 2005 Colin Walters <walters@verbum.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ChangeLog�����������������������������������������������������������������������������0000644�0001750�0001750�00000110023�10517752003�013717� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������2006-25-10 Jesse van den Kieboom <jesse@icecrew.nl> * configure.ac: * NEWS: * README: gnoemoe 2.2.0 released 2006-01-10 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-ui.h: added accelerator F9 to Show/Hide userlist 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * po/nl.po: updated translations * gnoemoe/gm-app.c: * gnoemoe/mcp/gm-mcp-userlist-view.c: * gnoemoe/gm-ui.h: * gnoemoe/widgets/gm-app-view.c * gnoemoe/widgets/gm-commands.[ch]: * ui/gm-ui.xml: Add menu items for showing/hiding the toolbar and userlist (fixes #10) 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/dialogs/gm-preferences-dialog.c: * gnoemoe/gm-color-table.c: * gnoemoe/gm-color-table.h: Added Rxvt, XTerm and Linux color schemes (fixes #1) 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/mcp/gm-mcp-icecrew-serverinfo.c: actually set the world charset to use (fixes #11) 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * ui/gm-world-properties.glade: fix lower port limit (patch by piotr.skamruk@gmail.com) (fixes #8) 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/dialog/gm-world-paste-dialog.c: close dialog after pasting (fixes #4) * ui/gm-world-paste.glade: make labels right aligned 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-app-view.c: Only store window size when the window isn't maximized (so restoring to original size after maximizing actually works). Set default size when no size has been stored yet (fixes #7) 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-app.c: make sure the main view is destroyed (otherwise the main view still holds references to the opened worlds which then don't get properly finalized). Therefore not properly saving command input history etc. Added proper finalization on SIGINT * gnoemoe/gm-scripts.c: fixed indentation * gnoemoe/dialogs/gm-preferences-dialog.c: added color table saving when dialog gets destroyed 2006-29-09 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-world-text-view.c: Fixed blinking problem (closes: #6) 2006-16-08 Jesse van den Kieboom <jesse@icecrew.nl> * configure.ac: * NEWS: * README: gnoemoe 2.1.0 released 2006-15-08 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-pixbuf.c: fixed save/close stock icon when there is no save 24x24 theme icon 2006-15-08 Jesse van den Kieboom <jesse@icecrew.nl> * data/gnoemoe.1: added manpage 2006-12-08 Jesse van den Kieboom <jesse@icecrew.nl> * configure.ac: * COPYING * gnoemoe/gm-app.c: * gnoemoe/dialogs/gm-preferences-dialog.c: * gnoemoe/gm-ui.h: * gnoemoe/widgets/gm-app-view.c: * gnoemoe/widgets/gm-editor-view.c: * gnoemoe/widgets/gm-commands.c: * gnoemoe/Makefile.am: * ui/gm-preferences.glade: * ui/gm-ui.xml: Made the code parser compile time optional * README: fixed indentation * po/Makefile.in.in: new and improved 2006-12-08 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-options.h: return false when loading fails 2006-12-08 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-world.c: set world name from path when options couldn't be succesfully loaded * gnoemoe/gm-editor.c: allways write \n (also on last line) * gnoemoe/gm-options.c: set file path even if it couldn't be loaded so that when there is no options file it will be saved correctly. return false when loading fails * gnoemoe/widgets/gm-external-view.c: use default gnome terminal when terminal is needed * gnoemoe/widgets/gm-world-tab.c: fix tab close buttons 2006-12-08 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-support.c: fixed the tab close button * gnoemoe/gm-pixbuf.c: fixed warning on creating save close button 2006-18-06 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-world.c: added static to functions, added flushing history to disk * gnoemoe/dialogs/gm-world-paste-dialog.c: fixed sending with empty 'to' field * gnoemoe/widgets/gm-world-text-view.c: fixed blinking 2006-23-04 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.10 * gnoemoe/mcp/gm-cell-renderer-text.c: fixed font sizes for smaller fonts 2006-23-04 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.9 * po/POTFILES.in: added gnoemoe/dialogs/gm-world-paste-dialog.c and ui/gm-world-paste.glade * po/nl.po: added translations * ui/Makefile.am: * ui/gm-ui.xml: * ui/gm-world-paste.glade: new paste dialog * gnoemoe/mcp/Makefile.include: added gm-cell-renderer-text.[ch] * gnoemoe/mcp/gm-cell-renderer-text.[ch]: new cell renderer for rendering userlist * gnoemoe/mcp/gm-mcp-vmoo-client.c: update metrics in timeout so to reduce the number of updates when resizing * gnoemoe/mcp/gm-mcp-icecrew-serverinfo.c: max version set to 1.0 (1.0 does not actively request the info because it will be send on initialization). Set menu item invisible instead of insensitive when there is no info available * gnoemoe/mcp/gm-mcp-icecrew-userlist.c: fixed menu item substitution * gnoemoe/mcp/gm-mcp-vmoo-userlist.c: removed support for status because it doesn't really support it * gm-mcp-userlist-view.[ch]: moved column constants to header. Render items with new gm-cell-renderer-text. * gnoemoe/mcp/gm-mcp-icecrew-playerdb.[ch]: made gm_mcp_icecrew_playerdb_players public * gnoemoe/dialogs/Makefile.include: added gm-world-paste-dialog * gnoemoe/dialogs/gm-world-paste-dialog.[ch]: new paste dialog * gnoemoe/dialogs/gm-world-properties-dialog.c: * gnoemoe/dialogs/gm-world-logs-dialog.c: fixed leaking tree stores * gnoemoe/widgets/Makefile.include: added gm-commands.[ch] * gnoemoe/widgets/gm-commands.[ch]: new file for handling action activation (removed from gm-app-view) * gnoemoe/widgets/gm-world-view.c: fixed userlist size restore * gnoemoe/widgets/gm-app-view.c: removed action handlers * gnoemoe/gm-support.[ch]: added gm_find_child * gnoemoe/gm-world.c: removed debug message * gnoemoe/gm-ui.h: changed actions to gm-commands 2006-09-04 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.8 * sripts/run.rb: fixed run scripts * gnoemoe/mcp/gm-mcp-userlist-view.c: italic status messages 2006-09-04 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.7 * gnoemoe/gm-world.c: fix not logging LOG_OUT * po/nl.po: added translation * pixmaps/gnoemoe-logo.svg: moved here * pixmaps/gnoemoe-logo.png: added for debian menu entry * data/gnoemoe.1: manpage provided by Paul van Tilburg 2006-09-04 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.6 * gnoemoe/gm-world.c: do not log LOG_OUT when not logged in * gnoemoe/mcp/gm-mcp-session.[ch]: added initialized function 2006-08-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-editor.c: improved editor name generation, no longer open files O_EXCL * gnoemoe/gm-world.[ch]: added editors list getter * gnoemoe/gm-string.c: fixed char_remove * gnoemoe/mcp/gm-mcp-userlist-view.c: remove debug message * gnoemoe/mcp/gm-mcp-mud-moo-simpleedit.c: remove signal handlers on finalization 2006-07-04 Jesse van den Kieboom <jesse@icecrew.nl> * configure.ac: * gnoemoe/mcp/gm-mcp-vmoo-client.c: remove IVERSION 2006-07-04 Jesse van den Kieboom <jesse@icecrew.nl> * ui/gm-world-properties.glade: added logging * ui/gm-preferences.glade: added userlist * data/Makefile.am: commented schema file * data/gnoemoe.schemas.in: removed empty line * po/nl.po: added translations * po/POTFILES.in: added gm-mcp-vmoo-userlist * scripts/run.rb: improved scripts by Paul van Tilburg 2006-07-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-app.c: added default userlist options, added default logging options * gnoemoe/gm-world.[ch]: fixed const, added gm_world_status, world specific log settings * gnoemoe/gm-scripts.c: added World.status function * gnoemoe/gm-pixbuf.c: added NULL filename checks 2006-07-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/mcp/gm-mcp-icecrew-playerdb.c: max version to 1.1 * gnoemoe/mcp/gm-mcp.c: fixed version check * gnoemoe/mcp/gm-mcp-userlist-view.[ch]: added status message, fixed sorting, added number of players * gnoemoe/mcp/gm-mcp-vmoo-userlist.[ch]: * gnoemoe/mcp/gm-mcp-icecrew-userlist.[ch]: implement iuserlist * gnoemoe/mcp/gm-iuserlist.[ch]: added signals, added functions 2006-07-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/dialogs/gm-scripts-dialog.c: added theme * gnoemoe/dialogs/gm-world-properties-dialog.c: added logging * gnoemoe/dialogs/gm-preferences-dialog.c: added userlist 2006-07-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-world-view.c: use gm_world_status * gnoemoe/widgets/gm-world-input-view.c: fixed size after activate * gnoemoe/widgets/gm-editor-view.c: custom style scheme * gnoemoe/widgets/gm-app-view.c: fix ctrl cycle 2006-01-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/dialogs/gm-open-world-dialog.c: close dialog on world activation * gnoemoe/widgets/gm-text-scroller.c: removed debug message * po/POTFILES.in: added gm-mcp-icecrew-userlist.c * po/nl.po: added translations 2006-01-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/mcp/gm-mcp-userlist-view.c: * gnoemoe/mcp/gm-mcp-iuserlist.[ch]: * gnoemoe/mcp/gm-mcp-vmoo-userlist.[ch]: * gnoemoe/mcp/gm-mcp-icecrew-userlist.[ch]: added basic support for displaying status messages in the userlist 2006-01-04 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-log-view.c: * gnoemoe/widgets/gm-source-style-scheme.[ch]: * gnoemoe/widgets/gm-editor-view.c: * gnoemoe/widgets/gm-world-input-view.c: * gnoemoe/widgets/Makefile.include: * gnoemoe/gm-support.[ch]: added color table support for all widgets 2006-31-03 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-support.[ch]: added find parent function * gnoemoe/widgets/gm-world-view.c: improved tab showing * gnoemoe/widgets/gm-text-scroller.c: fixed end scroll when textview changes size * po/nl.po: added new translations * gnoemoe/gm-world.c: fixed world saving * gnoemoe/gm-pixbuf.[ch]: added custom stock icons 2006-31-03 Jesse van den Kieboom <jesse@icecrew.nl> * ui/gm-ui.xml: * ui/gm-world-properties.glade: * gnoemoe/widgets/gm-editor-view.[ch]: * gnoemoe/widgets/gm-app-view.[ch]: * gnoemoe/gm-ui.h: * gnoemoe/dialogs/gm-world-properties-dialog.[ch]: * gnoemoe/mcp/gm-mcp-icecrew-serverinfo.c: updated ui, added toolbar, moved editor buttons to the toolbar, added an editor menu 2006-30-03 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-app-view.c: added position saving when hiding with the notification icon 2006-29-03 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/gm-options.[ch]: * gnoemoe/gm-app.c: * gnoemoe/gm-world.c: * gnoemoe/gm-color-table.c: * gnoemoe/gm-triggers.c: convert option files to xml format 2006-29-03 Jesse van den Kieboom <jesse@icecrew.nl> * configure.ac: fixed gettext translation languages * gnoemoe/gm-ui.h: * ui/gm-ui.xml: added Open World item * gnoemoe/gm-support.[ch]: added return value for dialogs * po/nl.po: added translations * po/POTFILES.in: added ui/gm-open-world.glade, added gnoemoe/dialogs/gm-open-world-dialog.c, added gnoemoe/widgets/gm-worlds-view.c * ui/gm-open-world.glade: new, open world dialog * ui/*.glade: removed separator from dialogs 2006-29-03 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-worlds-view.[ch]: new widget for displaying a list of available worlds * gnoemoe/widgets/gm-app-view.[ch]: added Open World menu action * gnoemoe/dialogs/gm-preferences-dialog.c: * gnoemoe/dialogs/gm-world-info-dialog.c: * gnoemoe/dialogs/gm-world-properties-dialog.c: * gnoemoe/dialogs/gm-triggers-dialog.c: * gnoemoe/dialogs/gm-scripts-dialog.c: * gnoemoe/dialogs/gm-world-logs-dialog.c: added xml loading failure safeguard * gnoemoe/dialogs/gm-open-world-dialog.[ch]: new dialog for opening worlds * gnoemoe/dialogs/gm-worlds-list-dialog.c: make use of the new worlds-view widget 2006-24-03 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.5 * README: update urls * COPYING: added lambdamoo copyright * configure.ac: fixed ruby variables, updated libnotify version * gnoemoe/Makefile.am: fixed ruby variables * gnoemoe/gm-app.c: added gobject properties 2006-23-03 Jesse van den Kieboom <jesse@icecrew.nl> * gnoemoe/widgets/gm-world-tab.c: fixed tab close button image size * gnoemoe/widgets/gm-world-text-view.c: fixed link hand cursor * gnoemoe/widgets/gm-world-view.c: fixed tab hiding * gnoemoe/gm-world.c: added gobject properties * gnoemoe/gm-net-state.h: added GM_NET_STATE_END 2006-20-02 Jesse van den Kieboom <jesse@icecrew.nl> * widgets/eggtrayicon.[ch], widgets/gm-app-view.c: added libnotify support 2006-15-02 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.4 * gm-app.c: fixed crash on --version 2006-06-02 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.3 * widgets/gm-app-view.c: fixed updating title * widgets/gm-world-input-view.c: fixed selective history * widgets/gm-world-view.c: only show tabs when needed (temporary 100% cpu fix, added page scrolling * widgets/gm-text-scroller.[ch]: added page scrolling * dialogs/gm-world-logs-dialog.c: fixed segv on error * gm-support.[ch]: added conversion from utf8 * gm-world.c: fixed conversion to server charset, added directory checking, removed tmp directory removal * gm-string.c: fixed g_list_append return value warning * README: has contents now * ui/gm-world-logs.glade: hide by default * INSTALL: new contents 2006-10-01 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.1 * gm-world/gm-support: fixed character conversion on sending * widget/gm-text-scroller.[ch]: added pageup/pagedown scrolling 2006-10-01 Jesse van den Kieboom <jesse@icecrew.nl> * widgets/gm-text-scroller.c: fixed jumpy scrolling, fixed size change scrolling * gm-color-table.c: fixed color schemes, fixed segv when created with no options file * dialogs/gm-preferences-dialog.c: fixed schemes * widgets/gm-app-view.c: fixed tray creation/finalization, fixed resizing when showed from tray 2006-08-01 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 2.0.0 * The whole internal structure is brand new, there isn't much that stayed the same, new features include: * Ctrl-Scroll change font size * Url dragging * Improved charset fallback * MOO verb syntax checker * Color schemes * Blink/Fastblink ANSI 2005-15-06 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 0.9.1 * if_scripts: Fixed write perms checking * if_main: beautified about dialog 2005-14-06 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 0.9.0 2005-14-06 Jesse van den Kieboom <jesse@icecrew.nl> * mcp/mcp_userlist: added userlist events for triggering * mcp/mcp_ice_userlist mcp/mcp_ice_serverinfo: added loading of image alternatives (following specs), fixed invalid uri detection * if_triggers: added entrycompletion for scripts instead of dropdown * if_main: searching now happens while-you-type finding the first match and coloring the background red (like ff) if none found. added drag-and-drop tabs (live moving) * world: added inverse ansi, added invisible ansi * if_world: improved keeping text window end scrolled * if_world_listing: list shows world info (server and player) and uses a custom icon when provided by dns-nl-icecrew-serverinfo. load on startup is moved to if_world_properties * if_world_properties: load on startup is now provided by this dialog rather than by if_world_listing 2005-07-06 Jesse van den Kieboom <jesse@icecrew.nl> * if_scripts: fixed crashing when one time opened * scripts/music: added copyright for Simon Gijsen * if_main: added basic searching firefox style. searches can take place in worlds, editors and logs 2005-07-06 Jesse van den Kieboom <jesse@icecrew.nl> * ui/: seperated interfaces over several single glade files. * mcp/mcp_ice_serverinfo: added serverinfo mcp package (see http://www.icecrew.nl/software/mcp for specs) * triggers if_triggers world if_world_properties: added trigger support. gnoemoe now handles two types of triggers for all sorts of events. Check it out. * world: removed stale functions, removed transparent background fixed default charset loading, fixed/improved activity updates, added reconnect foolproof (fixes problems with multiple autoreconnects), added basic searching * debug: loglevel 0 now goes to stdout, > 0 goes to stderr 2005-06-06 Jesse van den Kieboom <jesse@icecrew.nl> * net: added connect timeout * if_main world: added log opening support * if_mcpconsole: fixed crashing, mcp console window is now reintroduced * if_main: added serverinfo window, improved notification area stuff. It's now just a notification icon, showing when there is activity and interactive in combination with triggers. added log opening dialog * if_ editor: fixed some memory leaks (no severe ones) 2005-01-06 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 0.8.2 * Fixed dutch translations * net.c: Fixed connecting weirdness * if_scripts.c: Fixed ruby mime type 2005-10-05 Jesse van den Kieboom <jesse@icecrew.nl> * if_world.c: Added sending of empty lines * editor.c gnoe_pixbuf.c world.c: Fixed possible GError problems 2005-27-03 Jesse van den Kieboom <jesse@icecrew.nl> * scripts/music.rb: Added xmms function (by Simon Gijsen) 2005-18-01 Jesse van den Kieboom <jesse@icecrew.nl> * if_world_properties.c if_worlds_listing.c script.c support.c world.c: Changed all declarations to be at the top of a function (patch for FreeBSD 4.x by Pav Lucistnik) * if_world.c world.c: Changed int to gsize (patch for OSX by Christian Luijten) * if_world_properties.c: Moved encodings declaration from header to source file (patch for OSX by Christian Luijten) 2004-29-12 Jesse van den Kieboom <jesse@icecrew.nl> * world.c: added sane default charset (ISO-8859-15) * support.c: Added trailing / in url regexp (e.g. http://www.icecrew.nl/) 2004-14-12 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 0.8.1 * Makefile.am: fixed intltool problems * gnoemoe.desktop: changed icon to svg (which it already should have been, the png version doesn't get installed!) 2004-13-12 Jesse van den Kieboom <jesse@icecrew.nl> * VERSION CHANGED TO 0.8.0 * po: Added/Fixed Dutch (nl) translations * if_main.c: changed GnoeMoe GTK+ MOO Client to GnoeMoe Gnome MOO Client * if_world_properties.c: fixed bacause typo 2004-13-12 Jesse van den Kieboom <jesse@icecrew.nl> * support.c: added a remote file fetcher function which uses gnomevfs to async fetch files from a remote system * mcp_ice_userlist.c: added ranks and states messages which handle remote rank and state icons * world.c: fixed creation of tags with bold enabled while bold-colors was set * if_scripts.c: fixed segmentation fault when loading a second script in the editor (curEdit wasn't reset to NULL, free didn't like it) * gnoe_pixbuf.c: added test for loading icons with absolute paths 2004-21-10 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * mcp_ice_userlist.c: the P_NAME property now also has a signal connected so name changes will be detected by the userlist 2004-21-10 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * world.c: fixed color problems (adding of to much tags and bold problems) * configure.in: fixed regexp include problem when ruby enabled 2004-13-10 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * Added url matching, underlining and action-taking in the world * Added notification tray icon (when GnoeMoe is hidden and new text is added to a world the icon will blink showing there is activity in one of the worlds, the tooltip will indicate which worlds and how many lines). Blinking is only done when GnoeMoe is hidden which can be achieved by clicking on the icon or by activating the Hide GnoeMoe menu item (in the popup menu of the notification icon). Same goes for re-showing GnoeMoe * Added application icon state. The application icon will now show there is activity in worlds by changing its icon. This only happens when GnoeMoe is not the top-level activated window 2004-10-10 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.7.1 * Fixed compile error 2004-09-10 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.7.0 * No more Run menu * Added NL translation (dutch) * if_worlds_listing.c: fixed SEGV on duplicating world 2004-09-10 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * main.c: Added --load option for loading worlds from the commandline Improved gnoe_pixbuf initializing and finalizing Fixed scripts initializing to happen before world auto loading * world.c: Moved userlist API to the world to abstract it from the mcp modules * widgets/mcp_ping: Removed the lagmeter * gnoe_pixbuf: Added initializing/finalizing, removed external librsvg * src/Makefile.am: Mcp packages now reside in mcp/ 2004-08-04 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * script.c: scripts directories are now monitored via GnomeVFS to automagically update changes in scripts * if_main.c: window title now shows active world 2004-08-04 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.6.4 * world.c: fixed auto-reconnect fixed on_disconnect script function call which could crash on unloading a world * net.c: fixed auto-reconnect * if_mcpconsole.c: added world loaded check for if_mcpconsole_add * editor.c: fixed crash on editor_fini * if_main.c: added editor switch accelerators (Ctrl-<num>) 2004-07-28 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.6.3 * logo: newly very improved logo, veeeery nice one, by Simon Gijsen * pixmaps/userlist/default.map: fixed inhabitant/inhabitant+ switch 2004-07-28 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * userlist.c: improved sorting * gnoe_pixbuf.c: database of pixbufs, normal files as well as svg's * script.c: added host and port functions to world class improved connect function of world class * net.c: fixed setting of net status flag on disconnect before calling world_disconnected 2004-07-27 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.6.2 * userlist.c: now using svg image mapping for icons * pixmaps/userlist: contains new svg image containing all the userlist icons and 1 map file for mapping the svg to nameble icons * script.c: added script function description support WARNING: ALL SCRIPTS MUST!! HAVE A DESCRIPTION NOW, USERS NEED TO CHANGE THIS IN THEIR OWN SCRIPTS * world.c: fixed wrong month in logging * script.c: added auto-creation of USER scripts directory 2004-07-19 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.6.1 * pixmaps/icons: improved new icons from Simon Gijsen * gnoemoe.glade: fixed width resize on long input 2004-07-19 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * editor.c: fixed font unref stupid * gnoemoe.glade: fixed window width stretching 2004-07-19 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.6.0 * scripts/misc.rb: added sendall script * scripts/editing.rb: added editing scripts (/e, /de, /me, /ne, /he) * gnoemoe.glade: added mcpconsole interface, added scripts interface * configure.in: added ruby checking and compile status 2004-07-19 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * userlist.c: improved scroll handler timeout to be removed when the userlist is destroyed * packages.c/mcp.c: added callbacks to log messages to the mcpconsole * if_world_properties.c: fixed renaming problem (the dir wouldn't get renamed and thus the world got duplicated) * editor.c: added unref of font description 2004-07-17 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * if_scripts.c: added, interface for manipulating and viewing scripts (editor/console/overview/flush&reload) * world.c: improved userlist width saving/restoring * world.c: added on_connect, on_login, on_disconnect script calls * world.c: added mcp text buffer * if_mcpconsole.c: added, interface for viewing mcp messages 2004-07-16 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * script.c: added input method for world class (this gives the opportunity for recursion) * script.c: added connect method for world class * script.c: added disconnect method for world class * script.c: added quit method for world class * script.c: improved function run * script.c: added flush&reload function * script.c: added script function aliassing 2004-07-14 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.5.0 * script.c: added open method for client class * script.c: added connected? method for world class * script.c: added shared scripts dir * scripts/*: added some scripts * configure.in/Makefile.am: added installation of scripts 2004-07-14 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * world.c: added some documentation * world.c: added main_process_input function * script.c/script.h: added, GnoeMoe now has ruby scripting support * main.c: added main_get_app_path function 2004-07-12 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.4.3 * if_world.c: added world settings saving on destroy needed for userlist width saving 2004-07-09 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * pixmap.c: added function to set alpha channel of a pixbuf * world.c/if_world.c/if_preferences.c/main.c/gnoemoe/glade: added background transparancy 2004-07-07 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.4.2 * if_main.c: changed Ctrl-<num> to Alt-<num> (used for tab switching) to match other gnome apps * net.c: disconnect on sendline fail 2004-07-06 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * net.c: improved connecting (its now non-blocking) 2004-07-03 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.4.1 * packages.c: fixed (added) decimal point conversion in negotiate package 2004-07-02 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.4 * world.c/world.h: added update_character_metrics function, calculates character width (changes when font changes, is used to calculate linelen etc.) * packages.c: improved linelen calculation, its now more accurate * support.h/support.c: added function for length calculation of char ** * main.c/if_main.c: added window metrics saving/restoring * if_preferences.c/editor.c: added builtin editor colors/styles configuration 2004-07-01 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * support.h: added documentation * support.c: added functions for decimal point conversion (used mainly by mcp version number conversions) * mcp.c/packages.c: added decimal point conversion for package versions and mcp versions (needed cause some locales use . and some use ,) 2004-06-29 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * world.h/world.c: added documentation for all functions/enums/structs * world.c: removed functions world_get_by_index, world_paste added high color support for bold text * ansi.h: added bold color definitions, added documentation * editor.c: added editor_init and editor_fini functions to setup the editor environment and to finish the editor environment all editors will now use the same GtkSourceLanguage (which is stored from within editors_init) * if_world.c: fixed Pageup/Pagedown key bindings to be ignored when Ctrl or Shift is pressed * gnoemoe.glade: added editor color configuration in dlgPreferences 2004-06-24 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.3.1 * gnoemoe.glade: removed Properties/Close/Quit/Preferences button (Dis)Connect label changed to Connect fixed half sized toolbar 2004-06-24 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.3.0 * gnoemoe.glade: added buttons for easy access to world functions * if_world.c/if_main.c: added functions to handle new buttons ( world - connect/disconnect/properties/close main - preferences/quit * if_world.c/if_world.h: added world_connected function which is now called from net_do_connect. Autologin now resides in this new function * if_main.c: added accelerators for cycling through pages (F6/Shift F6) removed F4 accelerator for connect/disconnect for now set appropriate sensitivity of world tool buttons (depends whether a world or a terminal is active) * if_world_properties.c/if_world_properties.h: added option for charset selection * world.c/world.h/editor.c/if_world.c: added better scroll to bottom functions in world.c/world.h editor.c and if_world.c make use of these functions to keep scrolling sticky * main.c: changed colors to be more natural to the eye 2004-06-24 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * if_world.c: added pageup/pagedown for world text view 2004-06-21 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * all.c/all.h: reformatted * all.c/all.h: removed profiles, color/font can now be configured in preferences 2004-06-21 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * world.c: fixed focussing of input widget on world activation (added doEvents()) * world.c/support.c: replaced \e by \x1B * if_world.c: removed dos newlines * if_main.c: added enable/disable of cut/copy/paste menu items (disabled for terminal tabs, enabled for world tabs) 2004-06-21 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * if_main.c: implemented cut/copy/paste menu items * if_world.c/world.c: better implementation for saving userlist width (now saving hpane position) * if_world.c: changed active state base color for userlist and textview (they are unfocus-able but its nicer to have the same selection colors as if they can actually focus) * userlist.c/pixmaps/icons: changed icons from xpm to png 2004-06-21 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * gnoemoe.glade: replaced input entry widget by textview widget (for multiline input purposes) reorganised world view layout * if_world.c/world.c: replaced input entry widget by textview widget (for multiline input purposes) * editor.c: fixed charset conversion for saving editor file (from current locale to UTF-8) * world.c: fixed userlist width saving shrinks userlist by 3 pixels 2004-06-20 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * VERSION CHANGED TO 0.2.4 2004-06-17 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * net.c: fixed 100% CPU problem, removal of channel watch 2004-06-17 Jesse van den Kieboom <troplosti@orcaweb.cjb.met> * editor.c/support.c/world.c: function to let the main loop process GUI events is now in support.c * userlist.c: fixed scrolling problem (scroll to top on user add if it was already scrolled to the top) 2004-06-17 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * editor.c: corrected charset conversion, now converting to current locale for external editors (which use files), and to UTF-8 for the internal editor, fixed signal connecting. signals for save/save&close/close buttons were also tried for VTE editors, wrong! * pixmaps: cleaned up unused pixmaps, removed different logo size pixmaps * gnoemoe.glade: use 48x48 for icon 2004-06-17 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * Makefile.am: added install of moo.lang file, needed to enable code highlighting in gtksourceview * moo.lang: added * world.c: the input entry now will use the same font as the main text window will do 2004-06-17 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * Makefile.am: Removed $(DESTDIR) * pixmaps/Makefile.am: Removed $(DESTDIR) * pixmaps/icons/Makefile.am: Removed $(DESTDIR) 2004-06-16 Jesse van den Kieboom <troplosti@orcaweb.cjb.net> * Logo: added gnoemoe logo * Makefile.am: distributed makefile for pixmaps and pixmaps/icons to seperate Makefile.am's, pixmaps are now installed in pimaps subdir, added gnoemoe-logo.png as logo, * gnoemoe.glade: removed main status bar, fixed all pixmaps to point to pixmaps/.... * interface: added warning/info/error dialogs to inform user for faulty actions (or not yet implemented actions) * all: added gnome support, gnoemoe now accepts session saving and it uses the gnome command parsing * net.c: world_send_line now blocks if it can't send all the data at once * if_world.c: input widget now has monospace font * world.c: added logging * main.c: removed save_size option * if_world_properties_listing: fixed SEGV problem when adding a new world * pixmaps: added gnoemoe_logo_about.png for the aboutbox * Makefile.am: Added gnoemoe.glade (after removing it) �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/INSTALL�������������������������������������������������������������������������������0000644�0001750�0001750�00000022406�10410766740�013212� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 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=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PREFIX', the package will use PREFIX 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=DIR' 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 causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Here is a another example: /bin/bash ./configure CONFIG_SHELL=/bin/bash Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent configuration-related scripts to be executed by `/bin/bash'. `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. ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/NEWS����������������������������������������������������������������������������������0000644�0001750�0001750�00000001017�10517752236�012656� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������============== gnoemoe 2.2.0 ============== New features and fixes ====================== - Fixed setting the correct character encoding by mcp - Fixed closing the paste dialog after pasting - Fixed saving color settings - Fixed blinking (again) - Added show/hide userlist - Added Rxvt, XTerm and Linux color schemes ============== gnoemoe 2.1.0 ============== New features and fixes ====================== - Fixed blinking - Fixed tab close button - Fixed pasting dialog - Fixed loading settings - Fixed save/close button �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/config.guess��������������������������������������������������������������������������0000755�0001750�0001750�00000126051�10517752445�014507� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2006-02-23' # 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., 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. # Originally written by Per Bothner <per@bothner.com>. # Please send patches to <config-patches@gnu.org>. 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 <config-patches@gnu.org>." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 "$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 ; set_cc_for_build= ;' # 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 # 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 ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # 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 Pn.n version is a patched version. # 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/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; 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 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; 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 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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 ;; 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 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; 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 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # 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 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include <stdio.h> /* 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 && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; 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 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????: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 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; 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 ;; *: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 <sys/systemcfg.h> main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi 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 ;; *: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 ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 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 <stdlib.h> #include <unistd.h> 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 eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <unistd.h> 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 && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS_NT-*:*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[345]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[345]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 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 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; 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 | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; 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 | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; 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 ;; 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 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; 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 ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # 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 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <features.h> #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; 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 ;; 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 ;; 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 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; 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 ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. 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 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` echo ${UNAME_MACHINE}-pc-isc$UNAME_REL elif /bin/uname -X 2>/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 ;; 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 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; 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 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*: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 | S7501*:*: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; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *: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 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says <Richard.M.Bartel@ccMail.Census.GOV> echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; 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 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *: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 ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *: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 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; 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 <<EOF #ifdef _SEQUENT_ # include <sys/types.h> # include <sys/utsname.h> #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 <sys/param.h> 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\n"); 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 <sys/param.h> # 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 && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # 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 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 <<EOF $0: unable to guess system type This script, last modified $timestamp, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess and http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub If the version you run ($0) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/config.sub����������������������������������������������������������������������������0000755�0001750�0001750�00000077130�10517752445�014155� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2006-02-23' # 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., 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. # Please send patches to <config-patches@gnu.org>. 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 <config-patches@gnu.org>." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 ;; * ) 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* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-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 | -knuth | -cray) 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 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -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/'` ;; -sco5v6*) # 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] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m32c) 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) ;; ms1) basic_machine=mt-unknown ;; # 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-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | 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-* | iq2000-* \ | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; m32c-*) ;; # 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 ;; abacus) basic_machine=abacus-unknown ;; 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 ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; 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 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; 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 ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; 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 ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; 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 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-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 ;; tpf) basic_machine=s390x-ibm os=-tpf ;; 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 ;; xbox) basic_machine=i686-pc os=-mingw32 ;; 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 ;; mmix) basic_machine=mmix-knuth ;; 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 ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | 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* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -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* | -linux-newlib* | -linux-uclibc* \ | -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* | -dragonfly* \ | -skyos* | -haiku* | -rdos*) # 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* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -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 ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -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 ;; -tpf*) os=-tpf ;; -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 ;; -zvmoe) os=-zvmoe ;; -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 ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-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 ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -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 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/depcomp�������������������������������������������������������������������������������0000755�0001750�0001750�00000037100�10517752444�013537� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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., 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. # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to <bug-automake@gnu.org>. EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac 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 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 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 # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done 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 -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [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 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/install-sh����������������������������������������������������������������������������0000755�0001750�0001750�00000022021�10517752443�014161� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # 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}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$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 $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # 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 test -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 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ltmain.sh�����������������������������������������������������������������������������0000644�0001750�0001750�00000600157�10445575420�014007� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# 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, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 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. 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" # 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.22 Debian 1.5.22-4" TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" # 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 # 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 <<EOF $* EOF exit $EXIT_SUCCESS fi default_mode= help="Try \`$progname --help' for more information." magic="%%%MAGIC variable%%%" mkdir="mkdir" mv="mv -f" rm="rm -f" # 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' # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr SP2NL='tr \040 \012' NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system SP2NL='tr \100 \n' NL2SP='tr \r\n \100\100' ;; esac # NLS nuisances. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). # We save the old values to restore during execute mode. if test "${LC_ALL+set}" = set; then save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL fi if test "${LANG+set}" = set; then save_LANG="$LANG"; LANG=C; export LANG fi # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then $echo "$modename: not configured to build any kind of library" 1>&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= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # 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 /{s,.*,import,;p;q;};}'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac 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 } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # 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) 2005 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 $? ;; --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 $? ;; --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 $? ;; --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 preserve_args="$preserve_args --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 case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # 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, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them 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 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." 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 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $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 <<EOF # $libobj - a libtool object file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # Name of the PIC object. EOF # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi if test ! -d "${xdir}$objdir"; then $show "$mkdir ${xdir}$objdir" $run $mkdir ${xdir}$objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then exit $exit_status fi fi if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi $run $rm "$lobj" "$output_obj" $show "$command" if $run eval "$command"; then : else test -n "$output_obj" && $run $rm $removelist exit $EXIT_FAILURE fi if test "$need_locks" = warn && test "X`cat $lockfile 2>/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 <<EOF pic_object='$objdir/$objname' EOF # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi else # No PIC object so indicate it doesn't exist in the libtool # object file. test -z "$run" && cat >> ${libobj}T <<EOF pic_object=none EOF fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" $run $rm "$obj" "$output_obj" $show "$command" if $run eval "$command"; then : else $run $rm $removelist exit $EXIT_FAILURE fi if test "$need_locks" = warn && test "X`cat $lockfile 2>/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 <<EOF # Name of the non-PIC object. non_pic_object='$objname' EOF else # 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 <<EOF # Name of the non-PIC object. non_pic_object=none EOF fi $run $mv "${libobj}T" "${libobj}" # Unlock the critical section if it was locked if test "$need_locks" != no; then $run $rm "$lockfile" fi exit $EXIT_SUCCESS ;; # libtool link mode link | relink) modename="$modename: link" case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args="$nonopt" base_compile="$nonopt $@" compile_command="$nonopt" finalize_command="$nonopt" compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= notinst_path= # paths that contain not-installed libtool libraries precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -all-static | -static) if test "X$arg" = "X-all-static"; then if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built fi build_libtool_libs=no build_old_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 else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" 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 ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $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 ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" 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 absdir="$dir" notinst_path="$notinst_path $dir" 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*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # 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 ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -pg pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ -t[45]*|-txscale*|@*) # 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" compiler_flags="$compiler_flags $arg" 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 else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" 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 exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $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 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%" test "X$link_all_deplibs" != Xno && libs="$libs $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 compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 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) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; 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' or unhandled argument \`$deplib'" 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 avoidtemprpath= # 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 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi 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" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; 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 use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_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.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) 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 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 *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; 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" ;; *) $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 ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be 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="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$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* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # 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 <<EOF int main() { return 0; } EOF $rm conftest $LTCC $LTCFLAGS -o conftest conftest.c $deplibs if test "$?" -eq 0 ; then ldd_output=`ldd conftest` for i in $deplibs; do name=`expr $i : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" -ne "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) newdeplibs="$newdeplibs $i" i="" ;; esac fi if test -n "$i" ; then libname=`eval \\$echo \"$libname_spec\"` deplib_matches=`eval \\$echo \"$library_names_spec\"` set dummy $deplib_matches deplib_match=$2 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then newdeplibs="$newdeplibs $i" else droppeddeps=yes $echo $echo "*** Warning: dynamic linker does not accept needed library $i." $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 I believe you do not have" $echo "*** because a test_compile did reveal that the linker did not use it for" $echo "*** its dynamic dependency list that programs get resolved with at runtime." fi fi else newdeplibs="$newdeplibs $i" fi done else # Error occurred in the first compile. Let's try to salvage # the situation: Compile a separate program for each library. for i in $deplibs; do name=`expr $i : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" != "0"; then $rm conftest $LTCC $LTCFLAGS -o conftest conftest.c $i # Did it work? if test "$?" -eq 0 ; then ldd_output=`ldd conftest` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) newdeplibs="$newdeplibs $i" i="" ;; esac fi if test -n "$i" ; then libname=`eval \\$echo \"$libname_spec\"` deplib_matches=`eval \\$echo \"$library_names_spec\"` set dummy $deplib_matches deplib_match=$2 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then newdeplibs="$newdeplibs $i" else droppeddeps=yes $echo $echo "*** Warning: dynamic linker does not accept needed library $i." $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 a test_compile did reveal that the linker did not use this one" $echo "*** as a dynamic dependency that programs can get resolved with at runtime." fi fi else droppeddeps=yes $echo $echo "*** Warning! Library $i is needed by this library but I was not able to" $echo "*** make it link in! You will probably need to install it or some" $echo "*** library that it depends on before this library will be fully" $echo "*** functional. Installing it before continuing would be even better." fi else newdeplibs="$newdeplibs $i" fi done fi ;; file_magic*) set dummy $deplibs_check_method file_magic_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 "$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 # 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 # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # 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" linknames= 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=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break 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" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" 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" : ".*" 2>/dev/null` && 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 output_la=`$echo "X$output" | $Xsed -e "$basename"` # 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/$output_la-${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" : ".*" 2>/dev/null` && 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/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${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 reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${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" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_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 $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi 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" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" 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 # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" 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*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; 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/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac 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 >/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. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ 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 $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -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. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` else 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}%"` fi ;; * ) 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}%"` ;; esac ;; *) $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" exit_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 $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* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <<EOF /* $cwrappersource - temporary wrapper executable 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 executable should never be moved out of the build directory. If it is, it will not operate correctly. Currently, it simply execs the wrapper *script* "/bin/sh $output", but could eventually absorb all of the scripts functionality and exec $objdir/$outputname directly. */ EOF cat >> $cwrappersource<<"EOF" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <malloc.h> #include <stdarg.h> #include <assert.h> #include <string.h> #include <ctype.h> #include <sys/stat.h> #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 '/' # define PATH_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 # ifndef PATH_SEPARATOR_2 # define PATH_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 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(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 (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <<EOF newargz[0] = (char *) xstrdup("$SHELL"); EOF cat >> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* 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; for (i=0; i<argc+1; i++) { DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]); ; } EOF case $host_os in mingw*) cat >> $cwrappersource <<EOF execv("$SHELL",(char const **)newargz); EOF ;; *) cat >> $cwrappersource <<EOF execv("$SHELL",newargz); EOF ;; esac cat >> $cwrappersource <<"EOF" return 127; } 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 ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } 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 $LTCFLAGS -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. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 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" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" 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 # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi 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 # 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" : ".*" 2>/dev/null` && 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" | 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) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -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. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $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" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_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= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; 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= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` 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 anyway 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 "X----------------------------------------------------------------------" | $Xsed $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 "X----------------------------------------------------------------------" | $Xsed 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" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) 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. ;; esac 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 <bug-libtool@gnu.org>." 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 $? # 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 disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/missing�������������������������������������������������������������������������������0000755�0001750�0001750�00000025406�10517752443�013566� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 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., 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. 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 ;; -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 <bug-automake@gnu.org>." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) 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) 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) 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*) 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) 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) 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) 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." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # 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: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/mkinstalldirs�������������������������������������������������������������������������0000755�0001750�0001750�00000006622�10517752445�014776� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2005-06-29.22 # Original author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>. errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to <bug-automake@gnu.org>." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # 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 # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue 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 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: ��������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/autogen.sh����������������������������������������������������������������������������0000755�0001750�0001750�00000001126�10410766740�014156� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` test -z "$srcdir" && srcdir=. PKG_NAME="gnoemoe" (test -f $srcdir/configure.ac \ && test -f $srcdir/README \ && test -d $srcdir/gnoemoe) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level $PKG_NAME directory" exit 1 } which gnome-autogen.sh || { echo "You need to install gnome-common from the GNOME CVS" exit 1 } ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" REQUIRED_AUTOMAKE_VERSION=1.8 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/intltool-extract.in�������������������������������������������������������������������0000644�0001750�0001750�00000053735�10517752433�016040� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!@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 <kenneth@gnu.org> # Darin Adler <darin@bentspoon.com> # ## 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 <xml-i18n-tools\@gnome.org>. _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 = <IN>; } &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; 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 . "</$type>"; } 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; $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); # <foo><!-- comment --><head id="a">Hello <em>there</em></head><bar>Howdy<ref/></bar>do</foo> # 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 =~ / <locale\ name="C">\s* (<default>\s*(?:<!--([^>]*?)-->\s*)?(.*?)\s*<\/default>\s*)? (<short>\s*(?:<!--([^>]*?)-->\s*)?(.*?)\s*<\/short>\s*)? (<long>\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>(..[^<]*)<\/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 =~ /<atkaction\s+action_name="([^>]*)"\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"; } } } } �����������������������������������gnoemoe-2.2.0/intltool-merge.in���������������������������������������������������������������������0000644�0001750�0001750�00000104623�10517752433�015456� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!@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 <mjs@noisehavoc.org> # Kenneth Christiansen <kenneth@gnu.org> # Darin Adler <darin@bentspoon.com> # # Proper XML UTF-8'ification written by Cyrille Chepelov <chepelov@calixo.net> # ## 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 <xml-i18n-tools\@gnome.org>. _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 (<CHARSET_ALIAS>) { 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 (<IN_PO_FILE>) { ## 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 = <CACHE>; } 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 (<PO_FILE>) { $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/</</g; return $_; } # entity_encode: (string) # # Encode the given string to XML format (encode '<' etc). sub entity_encode { my ($pre_encoded) = @_; my @list_of_chars = unpack ('C*', $pre_encoded); # with UTF-8 we only encode minimalistic return join ('', map (&entity_encode_int_minimalist, @list_of_chars)); } sub entity_encode_int_minimalist { return """ if $_ == 34; return "&" if $_ == 38; return "'" if $_ == 39; return "<" if $_ == 60; return chr $_; } sub entity_encoded_translation { my ($lang, $string) = @_; my $translation = $translations{$lang, $string}; return $string if !$translation; return entity_encode ($translation); } ## XML (bonobo-activation specific) merge code sub ba_merge_translations { my $source; { local $/; # slurp mode open INPUT, "<$FILE" or die "can't open $FILE: $!"; $source = <INPUT>; 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 . "</$type>"; } 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 = "<root>$fragment</root>"; 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 "</$nodename>"; 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 "</$nodename>"; } } 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 "</$nodename>"; } } } } 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 "</$nodename>"; } 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); # <foo><head id="a">Hello <em>there</em></head><bar>Howdy<ref/></bar>do</foo> # 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{<?xml version="1.0" encoding="UTF-8"?>\n}; { local $/; open DOCINPUT, "<${FILE}" or die; $source = <DOCINPUT>; close DOCINPUT; } if ($source =~ /(<!DOCTYPE.*\[.*\]\s*>)/s) { print $fh "$1\n"; } elsif ($source =~ /(<!DOCTYPE[^>]*>)/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 (<INPUT>) { 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 (<INPUT>) { 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 = <INPUT>; 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 <foo/>. $source =~ s|<\s*_($w+)\s*/>|<$1/>|g; while ($source =~ s/ (.*?) (\s+)(<locale\ name="C">(\s*) (<default>\s*(?:<!--[^>]*?-->\s*)?(.*?)\s*<\/default>)?(\s*) (<short>\s*(?:<!--[^>]*?-->\s*)?(.*?)\s*<\/short>)?(\s*) (<long>\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<locale name=\"$lang\">"; print OUTPUT "$default_spaces"; if ($default_translation) { $default_translation = entity_encode($default_translation); print OUTPUT "<default>$default_translation</default>"; } print OUTPUT "$short_spaces"; if ($short_translation) { $short_translation = entity_encode($short_translation); print OUTPUT "<short>$short_translation</short>"; } print OUTPUT "$long_spaces"; if ($long_translation) { $long_translation = entity_encode($long_translation); print OUTPUT "<long>$long_translation</long>"; } print OUTPUT "$locale_end_spaces</locale>"; } } 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 = <INPUT>; 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; } �������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/intltool-update.in��������������������������������������������������������������������0000644�0001750�0001750�00000066635�10517752433�015653� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!@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 <kenneth@gnu.org> # Maciej Stachowiak # Darin Adler <darin@bentspoon.com> ## 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 <xml-i18n-tools\@gnome.org>. _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*$)/, <POTFILES>; 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 (<FILE>) { 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 (<FILE>) { # 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 (<FILE>) { # 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 (<FILE>) { 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 (<FILE>) { 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 (<INFILE>) { 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 (<CONF>) { 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, "<Makevars") || die "can't open Makevars: $!"; while (<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, "<Makefile") || return; while (<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 = <IN>; 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, "<Makevars") || (open(IN, "<Makefile.in.in") && ($varname = "XGETTEXT_KEYWORDS")) || return $keywords; seek (IN, 0, 0); local $/; # slurp mode $make_source = <IN>; close IN; } $keywords = $1 if $make_source =~ /^$varname[ ]*=\[?([^\n\]]+)/m; return $keywords; } sub FindMakevarsDomain { my $domain = ""; my $makevars_source; { local (*IN); open (IN, "<Makevars") || return $domain; seek (IN, 0, 0); local $/; # slurp mode $makevars_source = <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, "<Makevars") || return undef; seek (IN, 0, 0); local $/; # slurp mode $makevars_source = <IN>; close IN; } $address = $1 if $makevars_source =~ /^MSGID_BUGS_ADDRESS[ ]*=\[?([^\n\]\$]+)/m; $address =~ s/^\s+//; $address =~ s/\s+$//; return $address; } ���������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�013605� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/����������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753113�015226� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/Makefile.include������������������������������������������������������0000644�0001750�0001750�00000001457�10416445652�020323� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Process this file with automake to produce Makefile.in dialogsdir = dialogs gnoemoe_SOURCES += \ $(dialogsdir)/gm-world-info-dialog.c $(dialogsdir)/gm-world-info-dialog.h \ $(dialogsdir)/gm-world-logs-dialog.c $(dialogsdir)/gm-world-logs-dialog.h \ $(dialogsdir)/gm-world-paste-dialog.c \ $(dialogsdir)/gm-world-paste-dialog.h \ $(dialogsdir)/gm-world-properties-dialog.c \ $(dialogsdir)/gm-world-properties-dialog.h \ $(dialogsdir)/gm-worlds-list-dialog.c \ $(dialogsdir)/gm-worlds-list-dialog.h \ $(dialogsdir)/gm-scripts-dialog.c $(dialogsdir)/gm-scripts-dialog.h \ $(dialogsdir)/gm-preferences-dialog.c \ $(dialogsdir)/gm-preferences-dialog.h \ $(dialogsdir)/gm-triggers-dialog.c $(dialogsdir)/gm-triggers-dialog.h \ $(dialogsdir)/gm-open-world-dialog.c \ $(dialogsdir)/gm-open-world-dialog.h �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-info-dialog.c������������������������������������������������0000644�0001750�0001750�00000010337�10412337511�021306� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <gtk/gtk.h> #include <glade/glade.h> #include <libgnome/libgnome.h> #include "gm-world-info-dialog.h" #include "gm-world.h" #include "gm-support.h" #include "gm-pixbuf.h" #include "gm-debug.h" #define GM_WORLD_INFO_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-world-info.glade" gboolean on_gm_world_info_dialog_url_button_release(GtkWidget *button, GdkEventButton *event, gchar *link); /* Private */ void gm_world_info_dialog_set_label(GtkLabel *label, gchar *text) { if (text) { gtk_label_set_markup(label, text); } else { gtk_label_set_markup(label, _("<i>unspecified</i>")); } } void gm_world_info_dialog_event_box_cursor(GtkWidget *widget) { GdkCursor *cursor = gdk_cursor_new(GDK_HAND2); gdk_window_set_cursor(widget->window, cursor); gdk_cursor_destroy(cursor); } /* Public */ GtkDialog * gm_world_info_dialog_new(GmWorldInfo const *world_info) { GladeXML *xml; GtkWidget *dlg, *widget; gchar *tmp; xml = glade_xml_new(GM_WORLD_INFO_DIALOG_XML, "gm_world_info_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_WORLD_INFO_DIALOG_XML); return NULL; } dlg = glade_xml_get_widget(xml, "gm_world_info_dialog"); if (world_info->name) { tmp = g_strconcat(world_info->name, " - ", _("World info"), NULL); gtk_window_set_title(GTK_WINDOW(dlg), tmp); g_free(tmp); } gm_world_info_dialog_set_label(GTK_LABEL(glade_xml_get_widget(xml, "label_world_name")), world_info->name); gm_world_info_dialog_set_label(GTK_LABEL(glade_xml_get_widget(xml, "label_name")), world_info->admin); gm_world_info_dialog_set_label(GTK_LABEL(glade_xml_get_widget(xml, "label_location")), world_info->location); gm_world_info_dialog_set_label(GTK_LABEL(glade_xml_get_widget(xml, "label_system")), world_info->system); gm_world_info_dialog_set_label(GTK_LABEL(glade_xml_get_widget(xml, "label_characterset")), world_info->charset); gm_world_info_dialog_set_label(GTK_LABEL(glade_xml_get_widget(xml, "label_language")), world_info->language); if (world_info->homepage) { tmp = g_strconcat("<u><span color=\"#0000ff\">", world_info->homepage, "</span></u>", NULL); glade_xml_signal_connect_data(xml, "on_label_homepage_button_release", G_CALLBACK(on_gm_world_info_dialog_url_button_release), NULL); widget = glade_xml_get_widget(xml, "label_homepage"); gtk_label_set_markup(GTK_LABEL(widget), tmp); g_free(tmp); gm_world_info_dialog_event_box_cursor(glade_xml_get_widget(xml, "event_box_homepage")); } else { gtk_label_set_markup(GTK_LABEL(glade_xml_get_widget(xml, "label_homepage")), _("<i>unspecified</i>")); } if (world_info->contact) { tmp = g_strconcat("<u><span color=\"#0000ff\">", world_info->contact, "</span></u>", NULL); glade_xml_signal_connect_data(xml, "on_label_email_button_release", G_CALLBACK(on_gm_world_info_dialog_url_button_release), "mailto:"); widget = glade_xml_get_widget(xml, "label_email"); gtk_label_set_markup(GTK_LABEL(widget), tmp); g_free(tmp); gm_world_info_dialog_event_box_cursor(glade_xml_get_widget(xml, "event_box_email")); } else { gtk_label_set_markup(GTK_LABEL(glade_xml_get_widget(xml, "label_email")), _("<i>unspecified</i>")); } if (world_info->logo) { gtk_image_set_from_pixbuf(GTK_IMAGE(glade_xml_get_widget(xml, "image_logo")), gm_pixbuf_get(world_info->logo)); } glade_xml_signal_connect(xml, "on_gm_world_info_dialog_delete", G_CALLBACK(gtk_widget_destroy)); glade_xml_signal_connect_data(xml, "on_button_close_clicked", G_CALLBACK(gm_widget_destroy_data), dlg); gtk_widget_show_all(dlg); g_object_unref(xml); return GTK_DIALOG(dlg); } /* Callbacks */ gboolean on_gm_world_info_dialog_url_button_release(GtkWidget *label, GdkEventButton *event, gchar *prefix) { GError *err = NULL; gchar *tmp, *link; if (prefix != NULL) { link = g_strconcat(prefix, gtk_label_get_text(GTK_LABEL(label)), NULL); } else { link = g_strdup(gtk_label_get_text(GTK_LABEL(label))); } if (!gnome_url_show(link, &err)) { tmp = g_strdup_printf(_("Could not open link: %s"), err->message); gm_error_dialog(tmp, NULL); g_free(tmp); g_error_free(err); } g_free(link); return FALSE; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-info-dialog.h������������������������������������������������0000644�0001750�0001750�00000000565�10410766737�021333� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_INFO_DIALOG_H__ #define __GM_WORLD_INFO_DIALOG_H__ typedef struct _GmWorldInfo { gchar *name; gchar *homepage; gchar *location; gchar *admin; gchar *contact; gchar *charset; gchar *language; gchar *system; gchar *logo; } GmWorldInfo; GtkDialog *gm_world_info_dialog_new(GmWorldInfo const *world_info); #endif /* __GM_WORLD_INFO_DIALOG_H__ */ �������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-logs-dialog.c������������������������������������������������0000644�0001750�0001750�00000007360�10416744070�021327� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <gtk/gtk.h> #include <glade/glade.h> #include "gm-world.h" #include "gm-support.h" #include "gm-debug.h" #define GM_WORLD_LOGS_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-world-logs.glade" void on_gm_world_logs_dialog_row_activated(GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, GtkDialog *dlg); /* Public */ void gm_world_logs_dialog_build_tree_view(GtkTreeView *tree_view) { GtkTreeModel *model, *smodel; GtkCellRenderer *renderer; GtkTreeViewColumn *column; model = GTK_TREE_MODEL(gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_STRING)); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Logs"), renderer, "text", 1, NULL); gtk_tree_view_append_column(tree_view, column); smodel = gtk_tree_model_sort_new_with_model(model); g_object_unref(model); gtk_tree_view_column_set_sort_column_id(column, 0); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(smodel), 0, GTK_SORT_DESCENDING); gtk_tree_view_set_model(tree_view, GTK_TREE_MODEL(smodel)); g_object_unref(smodel); } gint gm_world_logs_dialog_fill(GmWorld *world, GtkTreeView *view, GtkTreeModel *model, GError **err) { gint res = 0; gchar *path, *tmp, *tmp2; gchar const *fname; GDir *dir; GtkTreeIter iter; FILE *f; long fsize; /* Fill it in */ path = g_strdup_printf("%s/logs/", gm_world_path(world)); dir = g_dir_open(path, 0, err); if (dir) { while ((fname = g_dir_read_name(dir)) != NULL) { ++res; tmp = g_strconcat(path, fname, NULL); f = fopen(tmp, "r"); if (f) { fseek(f, 0, SEEK_END); fsize = ftell(f); fclose(f); g_free(tmp); tmp = gnome_vfs_format_file_size_for_display(fsize); tmp2 = g_strconcat(fname, " (", tmp, ")", NULL); gtk_list_store_prepend(GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, 0, fname, 1, tmp2, -1); g_free(tmp2); } g_free(tmp); } g_dir_close(dir); g_free(path); return res; } else { g_free(path); return -1; } } GtkDialog * gm_world_logs_dialog_new(GmWorld *world, GtkTreeView **view) { GladeXML *xml; GtkDialog *dlg; GError *err = NULL; gint res; gchar *tmp; GtkTreeModel *model, *smodel; GtkTreeIter iter; xml = glade_xml_new(GM_WORLD_LOGS_DIALOG_XML, "gm_world_logs_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_WORLD_LOGS_DIALOG_XML); return NULL; } dlg = GTK_DIALOG(glade_xml_get_widget(xml, "gm_world_logs_dialog")); *view = GTK_TREE_VIEW(glade_xml_get_widget(xml, "tree_view_files")); gm_world_logs_dialog_build_tree_view(*view); smodel = gtk_tree_view_get_model(*view); model = gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT( smodel)); res = gm_world_logs_dialog_fill(world, *view, model, &err); if (res == -1) { tmp = g_strdup_printf(_("Couldn't open the log directory: %s"), err->message); gm_error_dialog(tmp, NULL); g_error_free(err); g_free(tmp); gtk_widget_destroy(GTK_WIDGET(dlg)); dlg = NULL; } else if (res == 0) { gm_info_dialog(_("There are no log files for this world"), NULL); gtk_widget_destroy(GTK_WIDGET(dlg)); dlg = NULL; } else { if (gtk_tree_model_get_iter_first(smodel, &iter)) { gtk_tree_selection_select_iter(gtk_tree_view_get_selection(*view), &iter); } glade_xml_signal_connect_data(xml, "on_tree_view_files_row_activated", G_CALLBACK(on_gm_world_logs_dialog_row_activated), dlg); } g_object_unref(xml); return dlg; } /* Callbacks */ void on_gm_world_logs_dialog_row_activated(GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, GtkDialog *dlg) { gtk_dialog_response(dlg, GTK_RESPONSE_OK); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-logs-dialog.h������������������������������������������������0000644�0001750�0001750�00000000345�10410766737�021340� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_LOGS_DIALOG_H__ #define __GM_WORLD_LOGS_DIALOG_H__ #include <gtk/gtk.h> #include "gm-world.h" GtkDialog *gm_world_logs_dialog_new(GmWorld *world, GtkTreeView **view); #endif /* __GM_WORLD_LOGS_DIALOG_H__ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-paste-dialog.c�����������������������������������������������0000644�0001750�0001750�00000021561�10507211646�021475� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <string.h> #include <gtk/gtk.h> #include <glade/glade.h> #include "gm-support.h" #include "gm-debug.h" #include "gm-app.h" #include "gm-world-paste-dialog.h" #include "widgets/gm-world-view.h" #include "mcp/gm-mcp-userlist-view.h" typedef struct _GmWorldPasteDialog { GladeXML *xml; GtkWidget *dialog; GmAppView *view; GtkTreeModel *model; } GmWorldPasteDialog; static void on_gm_world_paste_dialog_response(GtkDialog *dialog, gint response, gpointer user_data); static void on_gm_world_paste_dialog_active_world_changed(GmAppView *view, GmWorldView *world_view); static GmWorldPasteDialog *gm_world_paste_dialog_instance; static GtkWidget * gm_world_paste_dialog_widget(gchar *name) { return glade_xml_get_widget(gm_world_paste_dialog_instance->xml, name); } #define GM_WORLD_PASTE_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE \ "/ui/gm-world-paste.glade" static gchar const *commands[] = { "@paste", "@chanpaste", NULL }; static void gm_world_paste_dialog_init_command() { GtkComboBox *combo_box = GTK_COMBO_BOX( gm_world_paste_dialog_widget("combo_box_command")); gchar const **command; for (command = commands; *command; ++command) { gtk_combo_box_append_text(combo_box, *command); } gtk_combo_box_set_active(combo_box, 0); } static void gm_world_paste_dialog_remove_model(gpointer data, GObject *model, gboolean is_last_ref) { GtkWidget *widget; if (is_last_ref) { widget = gm_world_paste_dialog_widget("combo_box_to"); gtk_combo_box_set_model(GTK_COMBO_BOX(widget), NULL); gm_world_paste_dialog_instance->model = NULL; } } static void gm_world_paste_dialog_fill_to() { GtkWidget *widget = gm_world_paste_dialog_widget("combo_box_to"); GmWorldView *view = gm_app_view_active_world_view( gm_world_paste_dialog_instance->view); GtkWidget *paned = GTK_WIDGET(gm_world_view_hpaned(view)); GtkWidget *tree_view = gm_find_child(paned, GTK_TYPE_TREE_VIEW); GtkTreeModel *model; GtkTreeModel *sorted; if (gm_world_paste_dialog_instance->model != NULL) { g_object_ref(gm_world_paste_dialog_instance->model); g_object_remove_toggle_ref( G_OBJECT(gm_world_paste_dialog_instance->model), gm_world_paste_dialog_remove_model, NULL); } gtk_combo_box_set_model(GTK_COMBO_BOX(widget), NULL); if (tree_view == NULL) { gm_world_paste_dialog_instance->model = NULL; return; } model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree_view)); if (GTK_IS_TREE_MODEL_SORT(model)) { model = gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(model)); } g_object_add_toggle_ref(G_OBJECT(model), gm_world_paste_dialog_remove_model, NULL); g_object_unref(G_OBJECT(model)); gm_world_paste_dialog_instance->model = model; sorted = gtk_tree_model_sort_new_with_model(model); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(sorted), GM_USERLIST_NAME, GTK_SORT_ASCENDING); gtk_combo_box_set_model(GTK_COMBO_BOX(widget), sorted); if (gtk_combo_box_entry_get_text_column( GTK_COMBO_BOX_ENTRY(widget)) == -1) { gtk_combo_box_entry_set_text_column(GTK_COMBO_BOX_ENTRY(widget), GM_USERLIST_NAME); } } static void gm_world_paste_dialog_init_to() { GtkWidget *widget = gm_world_paste_dialog_widget("combo_box_to"); GtkCellRenderer *cell; cell = gtk_cell_renderer_pixbuf_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(widget), cell, FALSE); gtk_cell_layout_add_attribute(GTK_CELL_LAYOUT(widget), cell, "pixbuf", GM_USERLIST_ICON); gtk_cell_layout_reorder(GTK_CELL_LAYOUT(widget), cell, 0); gm_world_paste_dialog_fill_to(); } static void gm_world_paste_dialog_init_text() { GtkWidget *widget = gm_world_paste_dialog_widget("text_view_text"); GtkClipboard *clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY); gchar *text = gtk_clipboard_wait_for_text(clipboard); if (text != NULL) { gtk_text_buffer_set_text(gtk_text_view_get_buffer( GTK_TEXT_VIEW(widget)), text, -1); } g_free(text); } static void gm_world_paste_dialog_init_end_with() { gtk_entry_set_text(GTK_ENTRY(gm_world_paste_dialog_widget( "entry_end_with")), "."); } void gm_world_paste_dialog_run(GmAppView *view) { GladeXML *xml; if (gm_world_paste_dialog_instance) { if (view != gm_world_paste_dialog_instance->view) { g_signal_handlers_disconnect_by_func(view, G_CALLBACK(on_gm_world_paste_dialog_active_world_changed), NULL); g_signal_connect(view, "active_world_changed", G_CALLBACK(on_gm_world_paste_dialog_active_world_changed), NULL); } gm_world_paste_dialog_fill_to(); gtk_widget_show(gm_world_paste_dialog_instance->dialog); gtk_window_present(GTK_WINDOW(gm_world_paste_dialog_instance->dialog)); return; } xml = glade_xml_new(GM_WORLD_PASTE_DIALOG_XML, "gm_world_paste_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_WORLD_PASTE_DIALOG_XML); return; } gm_world_paste_dialog_instance = g_new0(GmWorldPasteDialog, 1); gm_world_paste_dialog_instance->xml = xml; gm_world_paste_dialog_instance->view = view; gm_world_paste_dialog_instance->dialog = gm_world_paste_dialog_widget("gm_world_paste_dialog"); gtk_window_set_transient_for(GTK_WINDOW( gm_world_paste_dialog_instance->dialog), GTK_WINDOW(view)); g_signal_connect(gm_world_paste_dialog_instance->dialog, "response", G_CALLBACK(on_gm_world_paste_dialog_response), NULL); g_signal_connect(view, "active_world_changed", G_CALLBACK(on_gm_world_paste_dialog_active_world_changed), NULL); gtk_widget_show(gm_world_paste_dialog_instance->dialog); gm_world_paste_dialog_init_command(); gm_world_paste_dialog_init_to(); gm_world_paste_dialog_init_text(); gm_world_paste_dialog_init_end_with(); } static void gm_world_paste_dialog_send_text(GmWorld *world, gchar const *end_with) { GtkTextView *text_view = GTK_TEXT_VIEW( gm_world_paste_dialog_widget("text_view_text")); GtkTextBuffer *buffer = gtk_text_view_get_buffer(text_view); GtkTextIter start, end; gchar *text; gchar **lines, **ptr; gchar *escape = NULL; gtk_text_buffer_get_bounds(buffer, &start, &end); text = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); lines = g_strsplit(text, "\n", -1); if (end_with) { escape = g_strconcat(end_with, end_with, NULL); } for (ptr = lines; *ptr; ++ptr) { if (escape != NULL && strcmp(end_with, *ptr) == 0) { gm_world_sendln(world, escape); } else { gm_world_sendln(world, *ptr); } } g_strfreev(lines); g_free(text); g_free(escape); } static gchar * gm_world_paste_get_to() { GtkComboBox *combo = GTK_COMBO_BOX( gm_world_paste_dialog_widget("combo_box_to")); gint active = gtk_combo_box_get_active(combo); gchar *text; gint id; GtkTreeModel *model = gtk_combo_box_get_model(combo); GtkTreeIter iter; if (!gtk_combo_box_get_active_iter(combo, &iter) || active == -1) { text = gtk_combo_box_get_active_text(combo); } else { gtk_tree_model_get(model, &iter, GM_USERLIST_ID, &id, -1); text = g_strdup_printf("#%d", id); } return text; } static void gm_world_paste_dialog_do_paste() { GmWorld *world = gm_app_view_active_world( gm_world_paste_dialog_instance->view); gchar *command = gtk_combo_box_get_active_text(GTK_COMBO_BOX( gm_world_paste_dialog_widget("combo_box_command"))); gchar *to = gm_world_paste_get_to(); gchar *cmd; gchar const *end_with; if (!gm_world_connected(world)) { gm_error_dialog(_("The current world is not connected"), GTK_WINDOW(gm_world_paste_dialog_instance->dialog)); } else if (command == NULL) { gm_error_dialog(_("Please specify a command to be send"), GTK_WINDOW(gm_world_paste_dialog_instance->dialog)); } else { if (to && *to != '\0') { cmd = g_strconcat(command, " ", to, NULL); } else { cmd = g_strdup(command); } gm_world_sendln(world, cmd); g_free(cmd); end_with = gtk_entry_get_text(GTK_ENTRY( gm_world_paste_dialog_widget("entry_end_with"))); gm_world_paste_dialog_send_text(world, end_with); if (end_with) { gm_world_sendln(world, end_with); } } g_free(command); g_free(to); } // Callbacks static void on_gm_world_paste_dialog_response(GtkDialog *dialog, gint response, gpointer user_data) { if (response == GTK_RESPONSE_APPLY) gm_world_paste_dialog_do_paste(); if (gm_world_paste_dialog_instance->model != NULL) { g_object_ref(gm_world_paste_dialog_instance->model); g_object_remove_toggle_ref( G_OBJECT(gm_world_paste_dialog_instance->model), gm_world_paste_dialog_remove_model, NULL); } g_signal_handlers_disconnect_by_func( gm_world_paste_dialog_instance->view, G_CALLBACK(on_gm_world_paste_dialog_active_world_changed), NULL); g_object_unref(gm_world_paste_dialog_instance->xml); gtk_widget_destroy(gm_world_paste_dialog_instance->dialog); g_free(gm_world_paste_dialog_instance); gm_world_paste_dialog_instance = NULL; } static void on_gm_world_paste_dialog_active_world_changed(GmAppView *view, GmWorldView *world_view) { gm_world_paste_dialog_fill_to(); } �����������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-paste-dialog.h�����������������������������������������������0000644�0001750�0001750�00000000275�10416441423�021476� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_PASTE_DIALOG__ #define __GM_WORLD_PASTE_DIALOG__ #include "widgets/gm-app-view.h" void gm_world_paste_dialog_run(GmAppView *view); #endif /* __GM_WORLD_PASTE_DIALOG */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-properties-dialog.c������������������������������������������0000644�0001750�0001750�00000057410�10416744231�022557� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include <glade/glade.h> #include "gm-world-properties-dialog.h" #include "gm-triggers-dialog.h" #include "gm-triggers.h" #include "gm-support.h" #include "gm-app.h" #include "gm-debug.h" #include "gm-options.h" #include "gm-pixbuf.h" typedef struct _GmWorldPropertiesDialog { GtkWidget *dialog; GtkWidget *combo_box_charset; GtkWidget *tree_view_triggers; GladeXML *xml; GmWorld *world; gboolean is_new; gulong handler_id; } GmWorldPropertiesDialog; static const encoding encodings[] = { {"ISO-8859-1", N_("Western")}, {"ISO-8859-2", N_("Central European")}, {"ISO-8859-3", N_("South European")}, {"ISO-8859-4", N_("Baltic")}, {"ISO-8859-5", N_("Cyrillic")}, {"ISO-8859-6", N_("Arabic")}, {"ISO-8859-7", N_("Greek")}, {"ISO-8859-8", N_("Hebrew Visual")}, {"ISO-8859-8-I", N_("Hebrew")}, {"ISO-8859-9", N_("Turkish")}, {"ISO-8859-10", N_("Nordic")}, {"ISO-8859-13", N_("Baltic")}, {"ISO-8859-14", N_("Celtic")}, {"ISO-8859-15", N_("Western")}, {"ISO-8859-16", N_("Romanian")}, {"UTF-7", N_("Unicode")}, {"UTF-8", N_("Unicode")}, {"UTF-16", N_("Unicode")}, {"UCS-2", N_("Unicode")}, {"UCS-4", N_("Unicode")}, {"ARMSCII-8", N_("Armenian")}, {"BIG5", N_("Chinese Traditional")}, {"BIG5-HKSCS", N_("Chinese Traditional")}, {"CP866", N_("Cyrillic/Russian")}, {"EUC-JP", N_("Japanese")}, {"EUC-KR", N_("Korean")}, {"EUC-TW", N_("Chinese Traditional")}, {"GB18030", N_("Chinese Simplified")}, {"GB2312", N_("Chinese Simplified")}, {"GBK", N_("Chinese Simplified")}, {"GEORGIAN-ACADEMY", N_("Georgian")}, {"HZ", N_("Chinese Simplified")}, {"IBM850", N_("Western")}, {"IBM852", N_("Central European")}, {"IBM855", N_("Cyrillic")}, {"IBM857", N_("Turkish")}, {"IBM862", N_("Hebrew")}, {"IBM864", N_("Arabic")}, {"ISO-2022-JP", N_("Japanese")}, {"ISO-2022-KR", N_("Korean")}, {"ISO-IR-111", N_("Cyrillic")}, {"JOHAB", N_("Korean")}, {"KOI8R", N_("Cyrillic")}, {"KOI8-R", N_("Cyrillic")}, {"KOI8U", N_("Cyrillic/Ukrainian")}, {"SHIFT_JIS", N_("Japanese")}, {"TCVN", N_("Vietnamese")}, {"TIS-620", N_("Thai")}, {"UHC", N_("Korean")}, {"VISCII", N_("Vietnamese")}, {"WINDOWS-1250", N_("Central European")}, {"WINDOWS-1251", N_("Cyrillic")}, {"WINDOWS-1252", N_("Western")}, {"WINDOWS-1253", N_("Greek")}, {"WINDOWS-1254", N_("Turkish")}, {"WINDOWS-1255", N_("Hebrew")}, {"WINDOWS-1256", N_("Arabic")}, {"WINDOWS-1257", N_("Baltic")}, {"WINDOWS-1258", N_("Vietnamese")} }; static GList *gm_world_properties_dialog_open = NULL; void gm_world_properties_dialog_run_dialog(GmWorldPropertiesDialog *properties); void on_button_add_trigger_clicked(GtkButton *button, GmWorldPropertiesDialog *properties); void on_button_edit_trigger_clicked(GtkButton *button, GmWorldPropertiesDialog *properties); void on_button_delete_trigger_clicked(GtkButton *button, GmWorldPropertiesDialog *properties); void on_tree_view_triggers_row_activated(GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, GmWorldPropertiesDialog *properties); void on_gm_world_properties_dialog_app_world_removed(GmApp *app, GmWorld *world, GmWorldPropertiesDialog *properties); void on_gm_world_properties_dialog_check_button_logging_override_toggled( GtkToggleButton *button, GmWorldPropertiesDialog *properties); void on_gm_world_properties_dialog_response(GtkDialog *dialog, gint response, GmWorldPropertiesDialog *properties); GtkWidget * gm_world_properties_dialog_widget(GmWorldPropertiesDialog *properties, gchar *name) { return glade_xml_get_widget(properties->xml, name); } void gm_world_properties_dialog_populate_charsets( GmWorldPropertiesDialog *properties) { int i; const gchar *select = gm_options_get(gm_world_options(properties->world), "charset"); gchar text[255]; GtkListStore *store; GtkComboBoxEntry *combo = GTK_COMBO_BOX_ENTRY(properties->combo_box_charset); store = gtk_list_store_new(1, G_TYPE_STRING); gtk_combo_box_set_model(GTK_COMBO_BOX(combo), GTK_TREE_MODEL(store)); gtk_combo_box_entry_set_text_column(combo, 0); for (i = 0; i < (int)(sizeof(encodings) / sizeof(encoding)); i++) { sprintf(text, "%s - %s", encodings[i].charset, _(encodings[i].name)); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), text); if (strcasecmp(encodings[i].charset, select) == 0) { gtk_entry_set_text(GTK_ENTRY(GTK_BIN(combo)->child), text); } } g_object_unref(store); } void gm_world_properties_dialog_remove_trigger(GmWorldPropertiesDialog *properties, GtkTreeIter *iter) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view)); gtk_list_store_remove(store, iter); if (gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL) == 0) { gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "button_edit_trigger"), FALSE); gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "button_delete_trigger"), FALSE); } } void gm_world_properties_dialog_update_trigger(GmWorldPropertiesDialog *properties, GtkTreeIter *iter, GmTrigger *t) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view)); gchar *text; text = g_strdup_printf(_("<b>%s</b>\nConditions: %d\nActions: %d"), t->name, g_list_length(t->conditions), g_list_length(t->actions)); gtk_list_store_set(store, iter, 1, text, 2, t, -1); switch (t->event) { case TT_OUTPUT: gtk_list_store_set(store, iter, 0, gm_pixbuf_get_at_size("world.svg", 32, 32), -1); break; case TT_USERS: gtk_list_store_set(store, iter, 0, gm_pixbuf_get_at_size("ice-userlist/programmer.svg", 32, 32), -1); break; default: break; } g_free(text); } void gm_world_properties_dialog_add_trigger(GmWorldPropertiesDialog *properties, GmTrigger *t) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view)); GtkTreeIter iter; gtk_list_store_append(store, &iter); gm_world_properties_dialog_update_trigger(properties, &iter, t); gtk_tree_selection_select_iter(gtk_tree_view_get_selection(tree_view), &iter); gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "button_edit_trigger"), TRUE); gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "button_delete_trigger"), TRUE); } void gm_world_properties_dialog_populate_tree_view_triggers( GmWorldPropertiesDialog *properties) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkListStore *store = gtk_list_store_new(3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER); GtkCellRenderer *renderer; GtkTreeViewColumn *column; const GList *item; GmTrigger *t; gtk_tree_view_set_model(GTK_TREE_VIEW(tree_view), GTK_TREE_MODEL(store)); renderer = gtk_cell_renderer_pixbuf_new(); column = gtk_tree_view_column_new_with_attributes(NULL, renderer, "pixbuf", 0, NULL); gtk_tree_view_column_set_min_width(column, 40); gtk_tree_view_append_column(tree_view, column); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(NULL, renderer, "markup", 1, NULL); gtk_tree_view_append_column(tree_view, column); for (item = gm_triggers_list(gm_world_triggers(properties->world)); item; item = item->next) { t = gm_trigger_dup((GmTrigger *)(item->data)); gm_world_properties_dialog_add_trigger(properties, t); } if (gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL) == 0) { gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "button_edit_trigger"), FALSE); gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "button_delete_trigger"), FALSE); } g_object_unref(store); } GmWorldPropertiesDialog * gm_world_properties_dialog_find(GmWorld *world) { GmWorldPropertiesDialog *result = NULL; GList *item; for (item = gm_world_properties_dialog_open; item; item = item->next) { result = (GmWorldPropertiesDialog *)(item->data); if (result->world == world) { return result; } } return NULL; } static gchar const *logging_button_names[] = { "logging_in", "logging_out", "logging_status", "logging_mcp_in", "logging_mcp_out", "logging_mcp_status", "logging_add_timestamp", "logging_add_log_type", NULL }; void gm_world_properties_dialog_init_logging(GmWorldPropertiesDialog *properties) { GtkWidget *check; gchar *name; GmOptions *options = gm_world_options(properties->world); gchar const **entry; check = gm_world_properties_dialog_widget(properties, "check_button_logging_override"); glade_xml_signal_connect_data(properties->xml, "on_check_button_logging_override_toggled", G_CALLBACK( on_gm_world_properties_dialog_check_button_logging_override_toggled ), properties); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_override")); gtk_toggle_button_toggled(GTK_TOGGLE_BUTTON(check)); for (entry = logging_button_names; *entry; ++entry) { name = g_strconcat("check_button_", *entry, NULL); check = gm_world_properties_dialog_widget(properties, name); g_free(name); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, *entry)); } } void gm_world_properties_dialog_initialize(GmWorldPropertiesDialog *properties) { GmOptions *options = gm_world_options(properties->world); const gchar *logo; gtk_entry_set_text(GTK_ENTRY(gm_world_properties_dialog_widget(properties, "entry_name")), gm_options_get(options, "name")); gtk_entry_set_text(GTK_ENTRY(gm_world_properties_dialog_widget(properties, "entry_host")), gm_options_get(options, "host")); gtk_spin_button_set_value(GTK_SPIN_BUTTON(gm_world_properties_dialog_widget( properties, "spin_button_port")), (double)(gm_options_get_int( options, "port"))); gtk_entry_set_text(GTK_ENTRY(gm_world_properties_dialog_widget(properties, "entry_player_name")), gm_options_get(options, "player_name")); gtk_entry_set_text(GTK_ENTRY(gm_world_properties_dialog_widget(properties, "entry_password")), gm_options_get(options, "password")); gtk_entry_set_invisible_char(GTK_ENTRY(gm_world_properties_dialog_widget( properties, "entry_password")), 0x25CF); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_world_properties_dialog_widget(properties, "check_button_auto_reconnect")), gm_options_get_int(options, "reconnect")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_world_properties_dialog_widget(properties, "check_button_auto_load")), gm_options_get_int(options, "autoload")); gm_world_properties_dialog_populate_charsets(properties); gm_world_properties_dialog_populate_tree_view_triggers(properties); gm_world_properties_dialog_init_logging(properties); glade_xml_signal_connect_data(properties->xml, "on_button_add_trigger_clicked", G_CALLBACK(on_button_add_trigger_clicked), properties); glade_xml_signal_connect_data(properties->xml, "on_button_edit_trigger_clicked", G_CALLBACK(on_button_edit_trigger_clicked), properties); glade_xml_signal_connect_data(properties->xml, "on_button_delete_trigger_clicked", G_CALLBACK(on_button_delete_trigger_clicked), properties); glade_xml_signal_connect_data(properties->xml, "on_tree_view_triggers_row_activated", G_CALLBACK(on_tree_view_triggers_row_activated), properties); logo = gm_options_get(options, "logo"); if (logo != NULL) { gtk_window_set_icon(GTK_WINDOW(properties->dialog), gm_pixbuf_get(logo)); } else { gtk_window_set_icon(GTK_WINDOW(properties->dialog), gm_pixbuf_get("world.svg")); } } #define GM_WORLD_PROPERTIES_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE \ "/ui/gm-world-properties.glade" void gm_world_properties_dialog_run_priv(GmWorld *world, gboolean is_new) { GmWorldPropertiesDialog *properties = gm_world_properties_dialog_find(world); gchar *title; GladeXML *xml; if (properties) { gtk_widget_show(properties->dialog); gtk_window_present(GTK_WINDOW(properties->dialog)); return; } xml = glade_xml_new(GM_WORLD_PROPERTIES_DIALOG_XML, "gm_world_properties_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_WORLD_PROPERTIES_DIALOG_XML); return; } properties = g_new0(GmWorldPropertiesDialog, 1); gm_world_properties_dialog_open = g_list_append( gm_world_properties_dialog_open, properties); properties->is_new = is_new; properties->world = world; properties->xml = xml; title = g_strconcat(_("World properties - "), gm_world_name(world), NULL); properties->dialog = gm_world_properties_dialog_widget(properties, "gm_world_properties_dialog"); properties->tree_view_triggers = gm_world_properties_dialog_widget( properties, "tree_view_triggers"); properties->combo_box_charset = gm_world_properties_dialog_widget( properties, "combo_box_charset"); gtk_window_set_title(GTK_WINDOW(properties->dialog), title); g_free(title); gm_world_properties_dialog_initialize(properties); if (!properties->is_new) { // Connect signal so we can close the dialog when a world gets removed properties->handler_id = g_signal_connect(gm_app_instance(), "world_removed", G_CALLBACK(on_gm_world_properties_dialog_app_world_removed), properties); } else { properties->handler_id = 0; } gm_world_properties_dialog_run_dialog(properties); } void gm_world_properties_dialog_run(GmWorld *world) { gm_world_properties_dialog_run_priv(world, FALSE); } void gm_world_properties_dialog_run_new(GmWorld *world) { if (!world) { world = gm_world_new(NULL); } gm_world_properties_dialog_run_priv(world, TRUE); } void gm_world_properties_dialog_run_triggers(GmWorld *world) { GmWorldPropertiesDialog *dialog; GtkWidget *widget; GtkNotebook *notebook; gm_world_properties_dialog_run_priv(world, FALSE); dialog = gm_world_properties_dialog_find(world); widget = gm_world_properties_dialog_widget(dialog, "hbox_triggers"); notebook = GTK_NOTEBOOK(gm_world_properties_dialog_widget(dialog, "notebook_main")); gtk_notebook_set_current_page(notebook, gtk_notebook_page_num(notebook, widget)); } gchar * gm_world_properties_dialog_get_charset(gchar *charset) { gchar *ch; int i; for (i = 0; i < (int)(sizeof(encodings) / sizeof(encoding)); i++) { ch = g_strconcat(encodings[i].charset, " - ", _(encodings[i].name), NULL); if (g_strcasecmp(charset, ch) == 0) { g_free(ch); return g_strdup(encodings[i].charset); } g_free(ch); } return g_strdup(charset); } void gm_world_properties_dialog_free_triggers(GmWorldPropertiesDialog *properties) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkTreeModel *store = gtk_tree_view_get_model(tree_view); GtkTreeIter iter; GmTrigger *t; if (gtk_tree_model_get_iter_first(store, &iter)) { do { gtk_tree_model_get(store, &iter, 2, &t, -1); gm_trigger_free(t); } while (gtk_tree_model_iter_next(store, &iter)); } } void gm_world_properties_dialog_set_triggers(GmWorldPropertiesDialog *properties) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkTreeModel *store = gtk_tree_view_get_model(tree_view); GtkTreeIter iter; GmTrigger *t; GmTriggers *triggers = gm_world_triggers(properties->world); gm_triggers_clear(triggers); if (gtk_tree_model_get_iter_first(store, &iter)) { do { gtk_tree_model_get(store, &iter, 2, &t, -1); gm_triggers_add(triggers, t); } while (gtk_tree_model_iter_next(store, &iter)); } } void gm_world_properties_dialog_set_logging(GmWorldPropertiesDialog *properties) { GmOptions *options = gm_world_options(properties->world); gchar const **entry; gchar *name; GtkWidget *check; check = gm_world_properties_dialog_widget(properties, "check_button_logging_override"); gm_options_set_int(options, "logging_override", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check))); for (entry = logging_button_names; *entry; ++entry) { name = g_strconcat("check_button_", *entry, NULL); check = gm_world_properties_dialog_widget(properties, name); g_free(name); gm_options_set_int(options, *entry, gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(check))); } } gboolean gm_world_properties_dialog_check_values(GmWorldPropertiesDialog *properties) { GmWorld *same_world; GmOptions *options = gm_world_options(properties->world); GtkWidget *dialog; GtkEntry *entry_name = GTK_ENTRY(gm_world_properties_dialog_widget( properties, "entry_name")); gchar *name = g_strdup(gtk_entry_get_text(entry_name)); GtkEntry *entry_host = GTK_ENTRY(gm_world_properties_dialog_widget( properties, "entry_host")); gchar *host = g_strdup(gtk_entry_get_text(entry_host)); g_strstrip(name); g_strstrip(host); same_world = gm_app_world_by_name(gm_app_instance(), name); if (strlen(name) == 0) { dialog = gtk_message_dialog_new(GTK_WINDOW(properties->dialog), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "Name can not be empty, please fill in a name."); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); gtk_notebook_set_current_page(GTK_NOTEBOOK( gm_world_properties_dialog_widget(properties, "notebook_main")), 0); gtk_widget_grab_focus(GTK_WIDGET(entry_name)); g_free(name); g_free(host); return FALSE; } if (same_world && same_world != properties->world) { dialog = gtk_message_dialog_new(GTK_WINDOW(properties->dialog), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Name can not be %s because a world with that name " "already exists."), name); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); gtk_notebook_set_current_page(GTK_NOTEBOOK( gm_world_properties_dialog_widget(properties, "notebook_main")), 0); gtk_widget_grab_focus(GTK_WIDGET(entry_name)); g_free(name); g_free(host); return FALSE; } if (strlen(host) == 0) { dialog = gtk_message_dialog_new(GTK_WINDOW(properties->dialog), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Host can not be empty, please fill in a host.")); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); gtk_notebook_set_current_page(GTK_NOTEBOOK( gm_world_properties_dialog_widget(properties, "notebook_main")), 0); gtk_widget_grab_focus(GTK_WIDGET(entry_host)); g_free(name); g_free(host); return FALSE; } gm_world_properties_dialog_set_triggers(properties); gm_world_properties_dialog_set_logging(properties); gm_options_set(options, "host", host); gm_options_set_int(options, "port", gtk_spin_button_get_value_as_int( GTK_SPIN_BUTTON(gm_world_properties_dialog_widget(properties, "spin_button_port")))); gm_options_set_int(options, "reconnect", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(gm_world_properties_dialog_widget(properties, "check_button_auto_reconnect")))); gm_options_set_int(options, "autoload", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(gm_world_properties_dialog_widget(properties, "check_button_auto_load")))); gm_options_set(options, "player_name", (gchar *)gtk_entry_get_text( GTK_ENTRY(gm_world_properties_dialog_widget(properties, "entry_player_name")))); gm_options_set(options, "password", (gchar *)gtk_entry_get_text( GTK_ENTRY(gm_world_properties_dialog_widget(properties, "entry_password")))); gm_options_set(options, "charset", gm_world_properties_dialog_get_charset( (gchar *)gtk_entry_get_text(GTK_ENTRY(GTK_BIN( properties->combo_box_charset)->child)))); // Only change the name when it has actually changed, when the name // changes the options and triggers are automatically saved to the new // world location if (gm_options_get(options, "name") == NULL || strcmp(name, gm_options_get(options, "name")) != 0) { gm_options_set(options, "name", name); } else { // Now we need to save the options and triggers ourselfs gm_options_save(options); gm_triggers_save(gm_world_triggers(properties->world)); } g_free(name); g_free(host); return TRUE; } void gm_world_properties_dialog_run_dialog(GmWorldPropertiesDialog *properties) { g_signal_connect(properties->dialog, "response", G_CALLBACK(on_gm_world_properties_dialog_response), properties); gtk_widget_show(GTK_WIDGET(properties->dialog)); } /* CALLBACKS */ void on_gm_world_properties_dialog_response(GtkDialog *dialog, gint response, GmWorldPropertiesDialog *properties) { gboolean is_okay = TRUE; switch (response) { case GTK_RESPONSE_OK: is_okay = gm_world_properties_dialog_check_values(properties); break; default: gm_world_properties_dialog_free_triggers(properties); break; } if (!is_okay) { return; } if (properties->is_new) { if (response == GTK_RESPONSE_OK) { gm_app_add_world(gm_app_instance(), properties->world); } else { g_object_unref(properties->world); } } gtk_widget_destroy(properties->dialog); if (properties->handler_id > 0) { g_signal_handler_disconnect(gm_app_instance(), properties->handler_id); } g_object_unref(properties->xml); gm_world_properties_dialog_open = g_list_remove( gm_world_properties_dialog_open, properties); g_free(properties); } void on_button_add_trigger_clicked(GtkButton *button, GmWorldPropertiesDialog *properties) { GmTrigger *trigger = gm_triggers_dialog_run_new(properties->world, NULL); if (trigger != NULL) { gm_world_properties_dialog_add_trigger(properties, trigger); } } GmTrigger * gm_world_properties_dialog_selected_trigger(GmWorldPropertiesDialog *properties, GtkTreeIter *iter) { GtkTreeView *tree_view = GTK_TREE_VIEW(properties->tree_view_triggers); GtkTreeModel *model = gtk_tree_view_get_model(tree_view); GmTrigger *result = NULL; if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(tree_view), &model, iter)) { gtk_tree_model_get(model, iter, 2, &result, -1); } return result; } void on_button_edit_trigger_clicked(GtkButton *button, GmWorldPropertiesDialog *properties) { GtkTreeIter iter; GmTrigger *trigger, *newt; trigger = gm_world_properties_dialog_selected_trigger(properties, &iter); if (trigger) { newt = gm_triggers_dialog_run(properties->world, trigger); if (newt) { gm_world_properties_dialog_update_trigger(properties, &iter, trigger); } } else { gm_error_dialog(_("Select a trigger to edit first"), GTK_WINDOW(properties->dialog)); } } void on_button_delete_trigger_clicked(GtkButton *button, GmWorldPropertiesDialog *properties) { GtkTreeIter iter; GmTrigger *trigger; trigger = gm_world_properties_dialog_selected_trigger(properties, &iter); if (trigger) { gm_world_properties_dialog_remove_trigger(properties, &iter); gm_trigger_free(trigger); } else { gm_error_dialog(_("First select a trigger to remove"), GTK_WINDOW(properties->dialog)); } } void on_tree_view_triggers_row_activated(GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, GmWorldPropertiesDialog *properties) { on_button_edit_trigger_clicked(NULL, properties); } void on_gm_world_properties_dialog_app_world_removed(GmApp *app, GmWorld *world, GmWorldPropertiesDialog *properties) { if (properties->world == world) { gtk_dialog_response(GTK_DIALOG(properties->dialog), GTK_RESPONSE_CLOSE); } } void on_gm_world_properties_dialog_check_button_logging_override_toggled( GtkToggleButton *button, GmWorldPropertiesDialog *properties) { gboolean active = gtk_toggle_button_get_active(button); gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "frame_log_types"), active); gtk_widget_set_sensitive(gm_world_properties_dialog_widget(properties, "frame_log_format"), active); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-world-properties-dialog.h������������������������������������������0000644�0001750�0001750�00000000647�10413044742�022561� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_PROPERTIES_DIALOG__ #define __GM_WORLD_PROPERTIES_DIALOG__ #include <gtk/gtk.h> #include "gm-world.h" typedef struct _encoding { const gchar *charset; const gchar *name; } encoding; void gm_world_properties_dialog_run(GmWorld *world); void gm_world_properties_dialog_run_new(GmWorld *world); void gm_world_properties_dialog_run_triggers(GmWorld *world); #endif /* __GM_WORLD_PROPERTIES_DIALOG__ */ �����������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-worlds-list-dialog.c�����������������������������������������������0000644�0001750�0001750�00000023477�10412344722�021524� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include <libgnomeui/libgnomeui.h> #include <glade/glade.h> #include "gm-support.h" #include "gm-debug.h" #include "gm-app.h" #include "gm-worlds-list-dialog.h" #include "gm-world-properties-dialog.h" #include "gm-pixbuf.h" #include "widgets/gm-worlds-view.h" typedef struct _GmWorldsListDialog { GladeXML *xml; GtkWidget *dialog; } GmWorldsListDialog; void on_gm_worlds_list_dialog_button_delete_clicked(GtkButton * utton, gpointer user_data); void on_gm_worlds_list_dialog_button_new_clicked(GtkButton *button, gpointer user_data); void on_gm_worlds_list_dialog_button_modify_clicked(GtkButton *button, gpointer user_data); void on_gm_worlds_list_dialog_button_duplicate_clicked(GtkButton *button, gpointer user_data); void on_gm_worlds_list_dialog_button_connect_clicked(GtkButton *button, gpointer user_data); void on_gm_worlds_list_dialog_tree_view_worlds_key_press(GtkWidget *widget, GdkEventKey *event, gpointer user_data); void on_gm_worlds_list_dialog_tree_view_worlds_row_activated( GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data); void on_gm_worlds_list_dialog_response(GtkDialog *dialog, gint response, gpointer user_data); static GmWorldsListDialog *gm_worlds_list_dialog_instance; GtkWidget * gm_worlds_list_dialog_widget(gchar *name) { return glade_xml_get_widget(gm_worlds_list_dialog_instance->xml, name); } #define GM_WORLDS_LIST_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE \ "/ui/gm-worlds-list.glade" GtkWidget * gm_worlds_list_dialog_create_tree_view(gchar *widget_name, gchar *string1, gchar *string2, gint int1, gint int2) { GtkWidget *tree_view = gm_worlds_view_new(); g_signal_connect(tree_view, "key-press-event", G_CALLBACK(on_gm_worlds_list_dialog_tree_view_worlds_key_press), NULL); g_signal_connect(tree_view, "row-activated", G_CALLBACK(on_gm_worlds_list_dialog_tree_view_worlds_row_activated), NULL); gtk_widget_show(GTK_WIDGET(tree_view)); return GTK_WIDGET(tree_view); } void gm_worlds_list_dialog_run() { GladeXML *xml; if (gm_worlds_list_dialog_instance) { gtk_widget_show(gm_worlds_list_dialog_instance->dialog); gtk_window_present(GTK_WINDOW(gm_worlds_list_dialog_instance->dialog)); return; } xml = glade_xml_new(GM_WORLDS_LIST_DIALOG_XML, "gm_worlds_list_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_WORLDS_LIST_DIALOG_XML); return; } gm_worlds_list_dialog_instance = g_new0(GmWorldsListDialog, 1); gm_worlds_list_dialog_instance->xml = xml; glade_xml_signal_connect(xml, "on_button_delete_clicked", G_CALLBACK(on_gm_worlds_list_dialog_button_delete_clicked)); glade_xml_signal_connect(xml, "on_button_new_clicked", G_CALLBACK(on_gm_worlds_list_dialog_button_new_clicked)); glade_xml_signal_connect(xml, "on_button_modify_clicked", G_CALLBACK(on_gm_worlds_list_dialog_button_modify_clicked)); glade_xml_signal_connect(xml, "on_button_duplicate_clicked", G_CALLBACK(on_gm_worlds_list_dialog_button_duplicate_clicked)); glade_xml_signal_connect(xml, "on_button_connect_clicked", G_CALLBACK(on_gm_worlds_list_dialog_button_connect_clicked)); gm_worlds_list_dialog_instance->dialog = gm_worlds_list_dialog_widget("gm_worlds_list_dialog"); gtk_window_set_icon(GTK_WINDOW(gm_worlds_list_dialog_instance->dialog), gm_pixbuf_get("world.svg")); g_signal_connect(gm_worlds_list_dialog_instance->dialog, "response", G_CALLBACK(on_gm_worlds_list_dialog_response), NULL); gtk_widget_show(gm_worlds_list_dialog_instance->dialog); } static void gm_worlds_list_dialog_delete_selected_worlds() { GtkTreeView *tree_view = GTK_TREE_VIEW( gm_worlds_list_dialog_widget("tree_view_worlds")); GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); GtkTreeSelection *selection = gtk_tree_view_get_selection(tree_view); GtkTreeIter iter; GList *paths = gtk_tree_selection_get_selected_rows(selection, &model); GList *refs = NULL; GList *node = NULL; gchar *message; gpointer proxy = g_object_newv(G_TYPE_OBJECT, 0, NULL); GmWorld *world; for (node = paths; node; node = node->next) { refs = g_list_append(refs, gtk_tree_row_reference_new_proxy(proxy, model, node->data)); gtk_tree_path_free(node->data); } g_list_free(paths); if (refs) { for (node = refs; node; node = node->next) { GtkTreePath *path = gtk_tree_row_reference_get_path(node->data); gtk_tree_model_get_iter(model, &iter, path); gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &world, -1); if (!(world && gm_world_loaded(world))) { gm_app_remove_world(gm_app_instance(), world); } else { message = g_strdup_printf(_ ("The world %s is still open. Do you want to close " "and remove the world?"), gm_world_name(world)); if (gm_question_dialog(message, GTK_WINDOW(gm_worlds_list_dialog_instance->dialog)) == GTK_RESPONSE_YES) { gm_world_unload(world); gm_app_remove_world(gm_app_instance(), world); } g_free(message); } gtk_tree_row_reference_deleted(proxy, path); gtk_tree_path_free(path); gtk_tree_row_reference_free(node->data); } } else { gm_error_dialog(_("You first need to select a world to delete."), GTK_WINDOW(gm_worlds_list_dialog_instance->dialog)); } g_list_free(refs); g_object_unref(proxy); } void gm_worlds_list_dialog_modify_world() { GtkTreeView *tree_view = GTK_TREE_VIEW( gm_worlds_list_dialog_widget("tree_view_worlds")); GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); GtkTreeSelection *selection = gtk_tree_view_get_selection(tree_view); GtkTreeIter iter; GList *first_path = gtk_tree_selection_get_selected_rows(selection, &model); GmWorld *world; if (first_path) { gtk_tree_model_get_iter(model, &iter, first_path->data); gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &world, -1); gm_world_properties_dialog_run(world); } else { gm_error_dialog(_("You first need to select a world to modify."), GTK_WINDOW(gm_worlds_list_dialog_instance->dialog)); } g_list_free(first_path); } GList * gm_worlds_list_dialog_selected_path() { GtkTreeView *tree_view = GTK_TREE_VIEW( gm_worlds_list_dialog_widget("tree_view_worlds")); GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); GtkTreeSelection *selection = gtk_tree_view_get_selection(tree_view); return gtk_tree_selection_get_selected_rows(selection, &model); } GmWorld * gm_worlds_list_dialog_selected_world() { GtkTreeView *tree_view = GTK_TREE_VIEW( gm_worlds_list_dialog_widget("tree_view_worlds")); GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); GtkTreeIter iter; GList *first_path = gm_worlds_list_dialog_selected_path(); GmWorld *world = NULL; if (first_path) { gtk_tree_model_get_iter(model, &iter, first_path->data); gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &world, -1); } g_list_free(first_path); return world; } void gm_worlds_list_dialog_connect_world() { GtkTreeView *tree_view = GTK_TREE_VIEW( gm_worlds_list_dialog_widget("tree_view_worlds")); GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); GList *first_path = gm_worlds_list_dialog_selected_path(); GList *path; GmWorld *world; GtkTreeIter iter; if (first_path) { for (path = first_path; path; path = path->next) { gtk_tree_model_get_iter(model, &iter, first_path->data); gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &world, -1); gm_world_load(world); } } else { gm_error_dialog( _("You first need to select a world to connect to."), GTK_WINDOW(gm_worlds_list_dialog_instance->dialog)); } g_list_free(first_path); } // Callbacks void on_gm_worlds_list_dialog_response(GtkDialog *dialog, gint response, gpointer user_data) { g_object_unref(gm_worlds_list_dialog_instance->xml); gtk_widget_destroy(gm_worlds_list_dialog_instance->dialog); g_free(gm_worlds_list_dialog_instance); gm_worlds_list_dialog_instance = NULL; } void on_gm_worlds_list_dialog_button_delete_clicked(GtkButton *button, gpointer user_data) { gm_worlds_list_dialog_delete_selected_worlds(); } void on_gm_worlds_list_dialog_tree_view_worlds_key_press(GtkWidget *widget, GdkEventKey *event, gpointer user_data) { switch (event->keyval) { case GDK_D: case GDK_d: gm_worlds_list_dialog_delete_selected_worlds(); break; case GDK_O: case GDK_o: break; case GDK_N: case GDK_n: gm_world_properties_dialog_run_new(NULL); break; case GDK_M: case GDK_m: gm_worlds_list_dialog_modify_world(); break; } } void on_gm_worlds_list_dialog_tree_view_worlds_row_activated( GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data) { gm_worlds_list_dialog_modify_world(); } void on_gm_worlds_list_dialog_button_new_clicked(GtkButton *button, gpointer user_data) { gm_world_properties_dialog_run_new(NULL); } void on_gm_worlds_list_dialog_button_modify_clicked(GtkButton *button, gpointer user_data) { gm_worlds_list_dialog_modify_world(); } void on_gm_worlds_list_dialog_button_duplicate_clicked(GtkButton *button, gpointer user_data) { GmWorld *world = gm_worlds_list_dialog_selected_world(); GmWorld *new_world; if (world) { // now duplicate the world new_world = gm_world_dup(world); // Yeah we got some world, now show the props! gm_world_properties_dialog_run_new(new_world); } else { gm_error_dialog( _("You first need to select a world to duplicate."), GTK_WINDOW(gm_worlds_list_dialog_instance->dialog)); } } void on_gm_worlds_list_dialog_button_connect_clicked(GtkButton *button, gpointer user_data) { gm_worlds_list_dialog_connect_world(); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-worlds-list-dialog.h�����������������������������������������������0000644�0001750�0001750�00000000215�10412333633�021511� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLDS_LIST_DIALOG__ #define __GM_WORLDS_LIST_DIALOG__ void gm_worlds_list_dialog_run(); #endif /* __GM_WORLDS_LIST_DIALOG */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-scripts-dialog.c���������������������������������������������������0000644�0001750�0001750�00000064724�10415443333�020731� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #ifdef HAVE_RUBY #include <gtk/gtk.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <sys/types.h> #include <gtksourceview/gtksourceview.h> #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagesmanager.h> #include <gtksourceview/gtksourcetag.h> #include <libgnomevfs/gnome-vfs.h> #include <glade/glade.h> #include "gm-scripts.h" #include "gm-world.h" #include "gm-debug.h" #include "gm-app.h" #include "gm-support.h" #include "widgets/gm-app-view.h" #include "widgets/gm-text-scroller.h" #define SCRIPT_TEMPLATE \ _("=begin\n" \ "\t<title>\n" \ "\t<copyright>\n" \ "\n\tRegister functions in the register_functions method defined below.\n" \ "\tRegister functions with " \ "$scripts.register(<name>, <description>[, <alias>])\n=end" \ "\n\ndef register_functions\n" \ "\t$scripts.register(\"myscript\", \"use /myscript\")\nend\n\n" \ "def myscript(argstr)\n\t# Insert code here\nend\n") void on_gm_scripts_dialog_script_added(GmScripts *scripts, GmScript *script, gpointer user_data); void on_gm_scripts_dialog_script_changed(GmScripts *scripts, GmScript *script, gpointer user_data); void on_gm_scripts_dialog_script_removed(GmScripts *scripts, GmScript *script, gpointer user_data); void on_gm_scripts_dialog_message(GmScripts *scripts, gchar *message, gpointer user_data); void on_gm_scripts_dialog_error(GmScripts *scripts, gchar *message, gpointer user_data); void on_gm_scripts_dialog_run(GmScripts *scripts, gchar *message, gpointer user_data); typedef enum _MessageType { SCRIPT_MESSAGE, SCRIPT_ERROR, SCRIPT_RUN } MessageType; typedef enum _scripts_columns { SCRIPTS_NAME, SCRIPTS_OBJECT, SCRIPTS_N } scripts_columns; typedef struct _SelectionInfo { GtkTreeView *view; GtkTreeModel *model; GtkTreeIter seliter; GtkTreeIter parent; gboolean has_parent; gboolean can_save; gchar *filename; } SelectionInfo; typedef struct _GmScriptsDialog { GtkTextTagTable *tag_table; GladeXML *xml; GtkTextBuffer *text_buffer_console; gchar *current_edit; GtkTextBuffer *text_buffer_editor; GtkWidget *dialog; GtkWidget *text_view_console; GtkWidget *statusbar_editor; GtkWidget *button_save; GtkWidget *tree_view_scripts; GtkWidget *tree_view_files; GtkWidget *button_delete; GmTextScroller *text_scroller; SelectionInfo info; } GmScriptsDialog; static GmScriptsDialog *scripts_dialog = NULL; #define GM_SCRIPTS_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-scripts.glade" gboolean on_gm_scripts_dialog_delete(GtkWidget *widget, GdkEvent *event, gpointer user_data); void on_files_changed(GtkTreeSelection *treeselection, gpointer user_data); void on_tree_view_files_row_activated(GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, gpointer user_data); void on_text_buffer_editor_modified_changed(GtkTextBuffer *buffer, gpointer user_data); void on_tool_button_new_clicked(GtkToolButton *button, gpointer user_data); void on_tool_button_save_clicked(GtkToolButton *button, gpointer user_data); void on_tool_button_save_as_clicked(GtkToolButton *button, gpointer user_data); void on_tool_button_delete_clicked(GtkToolButton *button, gpointer user_data); gboolean gm_scripts_dialog_can_write(gchar *filename) { return (access(filename, W_OK) == 0); } void gm_scripts_dialog_set_status(gchar *msg) { gtk_statusbar_pop(GTK_STATUSBAR(scripts_dialog->statusbar_editor), 0); gtk_statusbar_push(GTK_STATUSBAR(scripts_dialog->statusbar_editor), 0, msg); } gboolean gm_scripts_dialog_editor_save(gchar *filename) { FILE *f; gchar *msg, *text; GtkTextIter start, end; if (!filename) { return FALSE; } f = fopen(filename, "w"); if (f) { gtk_text_buffer_get_start_iter(scripts_dialog->text_buffer_editor, &start); gtk_text_buffer_get_end_iter(scripts_dialog->text_buffer_editor, &end); text = gtk_text_buffer_get_text(scripts_dialog->text_buffer_editor, &start, &end, TRUE); fputs(text, f); msg = g_strconcat(_("Saved "), filename, NULL); gm_scripts_dialog_set_status(msg); g_free(msg); if (scripts_dialog->current_edit != filename) { g_free(scripts_dialog->current_edit); scripts_dialog->current_edit = g_strdup(filename); } gtk_text_buffer_set_modified(scripts_dialog->text_buffer_editor, FALSE); fclose(f); return TRUE; } else { text = g_filename_to_utf8(filename, -1, NULL, NULL, NULL); msg = g_strconcat(_("Saving failed: "), strerror(errno), " (", text, ")", NULL); gm_error_dialog(msg, GTK_WINDOW(scripts_dialog->dialog)); g_free(text); g_free(msg); return FALSE; } } void gm_scripts_dialog_editor_load(SelectionInfo *info) { FILE *f; gchar line[1024]; GtkTextIter end; gchar *lline, *msg; if (info) { gtk_text_buffer_set_text(scripts_dialog->text_buffer_editor, "", 0); gtk_text_buffer_get_end_iter(scripts_dialog->text_buffer_editor, &end); f = fopen(info->filename, "r"); if (f) { while (fgets((char *) &line, 1024 - 1, f) != NULL) { lline = g_locale_to_utf8((gchar *)&line, strlen((char *)&line), NULL, NULL, NULL); if (lline) { gtk_text_buffer_insert(scripts_dialog->text_buffer_editor, &end, lline, strlen(lline)); g_free(lline); } else { gtk_text_buffer_insert(scripts_dialog->text_buffer_editor, &end, (gchar *)&line, strlen((char *)&line)); } } fclose(f); gtk_widget_set_sensitive(scripts_dialog->button_save, info->can_save); g_free(scripts_dialog->current_edit); scripts_dialog->current_edit = g_strdup(info->filename); g_free(scripts_dialog->current_edit); scripts_dialog->current_edit = g_strdup(info->filename); msg = g_strconcat(_("Loaded "), info->filename, NULL); gm_scripts_dialog_set_status(msg); g_free(msg); } else { gm_debug_msg(DEBUG_DEFAULT, "GmScript.EditorLoad: file (%s) could not be read: %s", scripts_dialog->current_edit, strerror(errno)); } } else { gtk_text_buffer_set_text(scripts_dialog->text_buffer_editor, SCRIPT_TEMPLATE, -1); g_free(scripts_dialog->current_edit); scripts_dialog->current_edit = NULL; gm_scripts_dialog_set_status(_("New <untitled>")); } } void gm_scripts_dialog_init_console() { GtkTextView *txt = GTK_TEXT_VIEW(scripts_dialog->text_view_console); PangoFontDescription *f; gtk_text_view_set_buffer(txt, scripts_dialog->text_buffer_console); gtk_text_view_set_editable(txt, FALSE); f = pango_font_description_from_string("monospace 8"); if (f) { gtk_widget_modify_font(GTK_WIDGET(txt), f); pango_font_description_free(f); } } void gm_scripts_dialog_tree_add_function(GtkTreeStore *model, GtkTreeIter *parent, GmScriptFunction *fi) { GtkTreeIter item; gchar *name, *description, *all, *markup; gtk_tree_store_append(model, &item, parent); name = g_filename_to_utf8(fi->name, strlen(fi->name), NULL, NULL, NULL); description = g_locale_to_utf8(fi->description, strlen(fi->description), NULL, NULL, NULL); markup = g_markup_escape_text(description, g_utf8_strlen(description, -1)); all = g_strconcat("<b>", name, "</b>\n", markup, NULL); gtk_tree_store_set(model, &item, SCRIPTS_NAME, all, -1); g_free(all); g_free(markup); g_free(description); g_free(name); } void gm_scripts_dialog_tree_update_script_item(GmScript *script, GtkTreeIter *iter) { GList *list; GtkTreeStore *model = GTK_TREE_STORE(gtk_tree_view_get_model( GTK_TREE_VIEW(scripts_dialog->tree_view_scripts))); GtkTreeIter item; if (gtk_tree_model_iter_children(GTK_TREE_MODEL(model), &item, iter)) { while (gtk_tree_store_remove(model, &item)); } for (list = script->functions; list; list = list->next) { gm_scripts_dialog_tree_add_function(model, iter, (GmScriptFunction *)(list->data)); } } gboolean gm_scripts_dialog_model_find_script(GtkTreeModel *model, GmScript *script, GtkTreeIter *item, GtkTreeIter *parent) { GmScript *obj; if (gtk_tree_model_iter_children(model, item, parent)) { do { gtk_tree_model_get(model, item, SCRIPTS_OBJECT, &obj, -1); if (obj == script) { return TRUE; } } while (gtk_tree_model_iter_next(model, item)); } return FALSE; } void gm_scripts_dialog_tree_update_script(GmScript *script) { GtkTreeModel *model = gtk_tree_view_get_model( GTK_TREE_VIEW(scripts_dialog->tree_view_scripts)); GtkTreeIter item; if (gm_scripts_dialog_model_find_script(model, script, &item, NULL)) { gm_scripts_dialog_tree_update_script_item(script, &item); } } void gm_scripts_dialog_tree_remove_script(GmScript *script) { GtkTreeModel *model = gtk_tree_view_get_model( GTK_TREE_VIEW(scripts_dialog->tree_view_scripts)); GtkTreeIter item; if (gm_scripts_dialog_model_find_script(model, script, &item, NULL)) { gtk_tree_store_remove(GTK_TREE_STORE(model), &item); } } void gm_scripts_dialog_tree_add_script(GmScript *script) { GtkTreeStore *model = GTK_TREE_STORE(gtk_tree_view_get_model( GTK_TREE_VIEW(scripts_dialog->tree_view_scripts))); GtkTreeIter item; gchar *name, *base; gtk_tree_store_append(model, &item, NULL); name = g_filename_to_utf8(script->filename, strlen(script->filename), NULL, NULL, NULL); base = g_path_get_basename(name); g_free(name); if (script->type == GM_SCRIPT_TYPE_USER) { name = g_strconcat("<b>", _("User"), ":</b> ", base, NULL); } else { name = g_strconcat("<b>", _("Share"), ":</b> ", base, NULL); } g_free(base); gtk_tree_store_set(model, &item, SCRIPTS_NAME, name, SCRIPTS_OBJECT, script, -1); g_free(name); gm_scripts_dialog_tree_update_script_item(script, &item); } void gm_scripts_dialog_fill_tree() { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_scripts); GtkTreeStore *model = GTK_TREE_STORE(gtk_tree_view_get_model(view)); GList *scripts; gtk_tree_store_clear(model); for (scripts = gm_scripts_scripts(gm_app_scripts(gm_app_instance())); scripts; scripts = scripts->next) { gm_scripts_dialog_tree_add_script((GmScript *)(scripts->data)); } } void gm_scripts_dialog_init_tree() { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_scripts); GtkTreeStore *model = gtk_tree_store_new(SCRIPTS_N, G_TYPE_STRING, G_TYPE_POINTER); GtkCellRenderer *renderer; GtkTreeViewColumn *column; renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Scripts"), renderer, "markup", SCRIPTS_NAME, NULL); gtk_tree_view_append_column(view, column); gtk_tree_view_set_model(view, GTK_TREE_MODEL(model)); gm_scripts_dialog_fill_tree(); } void gm_scripts_dialog_remove_file(GmScript *script) { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_files); GtkTreeStore *model = GTK_TREE_STORE(gtk_tree_view_get_model(view)); const gchar *sharedir = PACKAGE_DATA_DIR "/" PACKAGE "/scripts"; GtkTreeIter parent; GtkTreeIter item; gchar *name = g_filename_to_utf8(script->filename, strlen(script->filename), NULL, NULL, NULL); if (strncmp(sharedir, name, strlen(sharedir)) == 0) { gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(model), &parent, "0"); } else { gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(model), &parent, "1"); } g_free(name); if (gm_scripts_dialog_model_find_script(GTK_TREE_MODEL(model), script, &item, &parent)) { gtk_tree_store_remove(model, &item); } } gboolean gm_scripts_dialog_add_file(GmScript *script) { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_files); GtkTreeStore *model = GTK_TREE_STORE(gtk_tree_view_get_model(view)); GtkTreeIter share, home, parent, item; gchar *sharedir = g_strdup(PACKAGE_DATA_DIR "/" PACKAGE "/scripts"); gchar *homedir = g_strconcat(gm_app_path(gm_app_instance()), "/scripts", NULL); gchar *name; gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(model), &share, "0"); gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(model), &home, "1"); name = g_filename_to_utf8(script->filename, strlen(script->filename), NULL, NULL, NULL); if (strncmp(sharedir, name, strlen(sharedir)) == 0) { parent = share; } else if (strncmp(homedir, name, strlen(homedir)) == 0) { parent = home; } else { g_free(sharedir); g_free(homedir); g_free(name); return FALSE; } gtk_tree_store_append(model, &item, &parent); gtk_tree_store_set(model, &item, SCRIPTS_NAME, g_strrstr(name, "/") + 1, SCRIPTS_OBJECT, script, -1); g_free(name); g_free(sharedir); g_free(homedir); return TRUE; } void gm_scripts_dialog_fill_files() { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_files); GtkTreeStore *model = GTK_TREE_STORE(gtk_tree_view_get_model(view)); GtkTreeIter share, home; GtkTreePath *path; GList *scripts; GmScript *script; gtk_tree_store_clear(model); gtk_tree_store_append(model, &share, NULL); gtk_tree_store_set(model, &share, SCRIPTS_NAME, _("Share"), -1); gtk_tree_store_append(model, &home, NULL); gtk_tree_store_set(model, &home, SCRIPTS_NAME, _("User"), -1); for (scripts = gm_scripts_scripts(gm_app_scripts(gm_app_instance())); scripts; scripts = scripts->next) { script = (GmScript *)(scripts->data); gm_scripts_dialog_add_file(script); } path = gtk_tree_model_get_path(GTK_TREE_MODEL(model), &home); gtk_tree_view_expand_to_path(view, path); gtk_tree_path_free(path); path = gtk_tree_model_get_path(GTK_TREE_MODEL(model), &share); gtk_tree_view_expand_to_path(view, path); gtk_tree_path_free(path); } void gm_scripts_dialog_init_files() { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_files); GtkTreeStore *model = gtk_tree_store_new(SCRIPTS_N, G_TYPE_STRING, G_TYPE_POINTER); GtkCellRenderer *renderer = gtk_cell_renderer_text_new(); GtkTreeSelection *selection; GtkTreeViewColumn *column = gtk_tree_view_column_new_with_attributes( _("Filename"), renderer, "text", SCRIPTS_NAME, NULL); gtk_tree_view_append_column(view, column); gtk_tree_view_set_model(view, GTK_TREE_MODEL(model)); selection = gtk_tree_view_get_selection(view); g_signal_connect((gpointer)selection, "changed", G_CALLBACK(on_files_changed), NULL); gm_scripts_dialog_fill_files(); } GtkWidget * gm_scripts_dialog_init_editor() { GtkSourceLanguagesManager *lm = gtk_source_languages_manager_new(); GtkSourceLanguage *lang; GtkWidget *view; lang = gtk_source_languages_manager_get_language_from_mime_type(lm, "application/x-ruby"); view = gtk_source_view_new(); scripts_dialog->text_buffer_editor = gtk_text_view_get_buffer( GTK_TEXT_VIEW(view)); g_signal_connect((gpointer)scripts_dialog->text_buffer_editor, "modified-changed", G_CALLBACK(on_text_buffer_editor_modified_changed), NULL); if (lang) { gtk_source_buffer_set_language( GTK_SOURCE_BUFFER(scripts_dialog->text_buffer_editor), lang); } g_object_unref(G_OBJECT(lm)); gm_register_schemed(view, gm_app_color_table(gm_app_instance()), GM_SCHEMED_FONT | GM_SCHEMED_COLORS); gtk_source_view_set_insert_spaces_instead_of_tabs(GTK_SOURCE_VIEW(view), FALSE); gtk_source_view_set_auto_indent(GTK_SOURCE_VIEW(view), TRUE); gtk_source_view_set_show_line_numbers(GTK_SOURCE_VIEW(view), TRUE); gtk_source_view_set_smart_home_end(GTK_SOURCE_VIEW(view), TRUE); gtk_source_view_set_tabs_width(GTK_SOURCE_VIEW(view), 4); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_WORD_CHAR); gtk_text_view_set_left_margin(GTK_TEXT_VIEW(view), 6); gtk_text_view_set_right_margin(GTK_TEXT_VIEW(view), 6); gtk_source_buffer_set_highlight(GTK_SOURCE_BUFFER( scripts_dialog->text_buffer_editor), TRUE); // Load default template gtk_text_buffer_set_text(scripts_dialog->text_buffer_editor, SCRIPT_TEMPLATE, -1); gtk_widget_show(view); return view; } GtkTextTag * gm_scripts_dialog_create_tag(gchar *name, gchar *fg) { GtkTextTag *tag; GdkColor col; gdk_color_parse(fg, &col); tag = gtk_text_tag_new(name); g_object_set(G_OBJECT(tag), "foreground-gdk", &col, NULL); return tag; } void gm_scripts_dialog_init() { GmScripts *scripts = gm_app_scripts(gm_app_instance()); scripts_dialog = g_new0(GmScriptsDialog, 1); scripts_dialog->tag_table = g_object_ref(gtk_text_tag_table_new()); scripts_dialog->dialog = NULL; gtk_text_tag_table_add(scripts_dialog->tag_table, gm_scripts_dialog_create_tag("scripts-run", "#445632")); gtk_text_tag_table_add(scripts_dialog->tag_table, gm_scripts_dialog_create_tag("scripts-msg", "#314E6C")); gtk_text_tag_table_add(scripts_dialog->tag_table, gm_scripts_dialog_create_tag("scripts-error", "#663822")); scripts_dialog->text_buffer_console = g_object_ref(gtk_text_buffer_new(scripts_dialog->tag_table)); // Attach signals to GmScripts object to know about changes g_signal_connect(scripts, "script_added", G_CALLBACK(on_gm_scripts_dialog_script_added), NULL); g_signal_connect(scripts, "script_changed", G_CALLBACK(on_gm_scripts_dialog_script_changed), NULL); g_signal_connect(scripts, "script_removed", G_CALLBACK(on_gm_scripts_dialog_script_removed), NULL); g_signal_connect(scripts, "message", G_CALLBACK(on_gm_scripts_dialog_message), NULL); g_signal_connect(scripts, "error", G_CALLBACK(on_gm_scripts_dialog_error), NULL); g_signal_connect(scripts, "run", G_CALLBACK(on_gm_scripts_dialog_run), NULL); } void gm_scripts_dialog_fini() { g_object_unref(scripts_dialog->tag_table); g_object_unref(scripts_dialog->text_buffer_console); g_free(scripts_dialog); } gboolean gm_scripts_scroll_end_idle(gpointer user_data) { //gm_text_scroller_scroll_end(scripts_dialog->text_scroller); return FALSE; } void gm_scripts_dialog_run(GmAppView *view) { GtkWidget *editor; if (scripts_dialog->dialog != NULL) { gtk_window_present(GTK_WINDOW(scripts_dialog->dialog)); return; } scripts_dialog->xml = glade_xml_new(GM_SCRIPTS_DIALOG_XML, "gm_scripts_dialog", NULL); if (scripts_dialog->xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_SCRIPTS_DIALOG_XML); return; } scripts_dialog->dialog = glade_xml_get_widget(scripts_dialog->xml, "gm_scripts_dialog"); scripts_dialog->text_view_console = glade_xml_get_widget(scripts_dialog->xml, "text_view_console"); scripts_dialog->statusbar_editor = glade_xml_get_widget(scripts_dialog->xml, "statusbar_editor"); scripts_dialog->button_save = glade_xml_get_widget(scripts_dialog->xml, "tool_button_save"); scripts_dialog->tree_view_scripts = glade_xml_get_widget(scripts_dialog->xml, "tree_view_scripts"); scripts_dialog->tree_view_files = glade_xml_get_widget(scripts_dialog->xml, "tree_view_files"); scripts_dialog->button_delete = glade_xml_get_widget(scripts_dialog->xml, "tool_button_delete"); // Create new text scroller, this object will take care of itself and will // destroy itself when the view dies, neat! scripts_dialog->text_scroller = gm_text_scroller_new(GTK_TEXT_VIEW( scripts_dialog->text_view_console)); gm_scripts_dialog_init_console(); gm_scripts_dialog_init_tree(); gm_scripts_dialog_init_files(); editor = gm_scripts_dialog_init_editor(); gtk_container_add(GTK_CONTAINER(glade_xml_get_widget(scripts_dialog->xml, "scrolled_window_editor")), editor); glade_xml_signal_connect(scripts_dialog->xml, "on_gm_scripts_dialog_delete", G_CALLBACK(on_gm_scripts_dialog_delete)); glade_xml_signal_connect(scripts_dialog->xml, "on_tree_view_files_row_activated", G_CALLBACK(on_tree_view_files_row_activated)); glade_xml_signal_connect(scripts_dialog->xml, "on_tool_button_new_clicked", G_CALLBACK(on_tool_button_new_clicked)); glade_xml_signal_connect(scripts_dialog->xml, "on_tool_button_save_clicked", G_CALLBACK(on_tool_button_save_clicked)); glade_xml_signal_connect(scripts_dialog->xml, "on_tool_button_save_as_clicked", G_CALLBACK(on_tool_button_save_as_clicked)); glade_xml_signal_connect(scripts_dialog->xml, "on_tool_button_delete_clicked", G_CALLBACK(on_tool_button_delete_clicked)); gtk_window_set_transient_for(GTK_WINDOW(scripts_dialog->dialog), GTK_WINDOW(view)); gm_scripts_dialog_set_status(_("New <untitled>")); g_object_unref(scripts_dialog->xml); g_idle_add((GSourceFunc)(gm_scripts_scroll_end_idle), NULL); } void gm_scripts_dialog_add(MessageType mtype, gchar *msg) { gchar *m, *tagName = NULL, *newLine; gchar p[3] = {' ', ' ', '\0'}; GtkTextIter end; switch (mtype) { case SCRIPT_RUN: p[0] = ':'; tagName = g_strdup("scripts-run"); break; case SCRIPT_MESSAGE: p[0] = '#'; tagName = g_strdup("scripts-msg"); break; case SCRIPT_ERROR: p[0] = '!'; tagName = g_strdup("scripts-error"); break; } m = g_strconcat(p, msg, "\n", NULL); gtk_text_buffer_get_end_iter(scripts_dialog->text_buffer_console, &end); // convert to UTF-8 newLine = g_locale_to_utf8(m, strlen(m), NULL, NULL, NULL); if (newLine == NULL) { gtk_text_buffer_insert_with_tags_by_name( scripts_dialog->text_buffer_console, &end, m, strlen(m), tagName, NULL); } else { gtk_text_buffer_insert_with_tags_by_name( scripts_dialog->text_buffer_console, &end, newLine, strlen(newLine), tagName, NULL); g_free(newLine); } g_free(m); g_free(tagName); } gboolean gm_scripts_dialog_selection_info(SelectionInfo *info) { GtkTreeView *view = GTK_TREE_VIEW(scripts_dialog->tree_view_files); GtkTreeModel *model = gtk_tree_view_get_model(view); GtkTreeSelection *selection = gtk_tree_view_get_selection(view); gchar *parentName, *name, *filename; info->view = view; info->model = model; if (gtk_tree_selection_get_selected(selection, &model, &(info->seliter))) { info->has_parent = gtk_tree_model_iter_parent(model, &(info->parent), &(info->seliter)); if (info->has_parent) { gtk_tree_model_get(model, &(info->parent), SCRIPTS_NAME, &parentName, -1); gtk_tree_model_get(model, &(info->seliter), SCRIPTS_NAME, &name, -1); if (strcmp(parentName, _("Share")) == 0) { filename = g_strconcat( PACKAGE_DATA_DIR "/" PACKAGE "/scripts/", name, NULL); } else { filename = g_strconcat(gm_app_path(gm_app_instance()), "/scripts/", name, NULL); } info->filename = g_filename_from_utf8(filename, -1, NULL, NULL, NULL); g_free(name); g_free(parentName); g_free(filename); info->can_save = gm_scripts_dialog_can_write(info->filename); } else { info->filename = NULL; } return TRUE; } else { return FALSE; } } /* CALLBACKS */ gboolean on_gm_scripts_dialog_delete(GtkWidget *widget, GdkEvent *event, gpointer user_data) { g_free(scripts_dialog->current_edit); scripts_dialog->current_edit = NULL; scripts_dialog->dialog = NULL; return FALSE; } void on_files_changed(GtkTreeSelection *treeselection, gpointer user_data) { SelectionInfo info; if (gm_scripts_dialog_selection_info(&info)) { gtk_widget_set_sensitive(scripts_dialog->button_delete, info.has_parent && info.can_save); if (info.filename) { g_free(info.filename); } } } void on_tree_view_files_row_activated(GtkTreeView *treeview, GtkTreePath *arg1, GtkTreeViewColumn *arg2, gpointer user_data) { SelectionInfo si; if (gm_scripts_dialog_selection_info(&si) && si.filename) { gm_scripts_dialog_editor_load(&si); g_free(si.filename); } } void on_text_buffer_editor_modified_changed(GtkTextBuffer *buffer, gpointer user_data) { gchar *msg; gboolean modified = gtk_text_buffer_get_modified(buffer); if (modified) { if (scripts_dialog->current_edit) { msg = g_strconcat(_("Changed "), scripts_dialog->current_edit, NULL); } else { msg = g_strdup(_("Changed <untitled>")); } gm_scripts_dialog_set_status(msg); g_free(msg); } } void on_tool_button_new_clicked(GtkToolButton *button, gpointer user_data) { gm_scripts_dialog_editor_load(NULL); } void on_tool_button_save_clicked(GtkToolButton *button, gpointer user_data) { if (scripts_dialog->current_edit) { gm_scripts_dialog_editor_save(scripts_dialog->current_edit); } else { on_tool_button_save_as_clicked(button, user_data); } } void on_tool_button_save_as_clicked(GtkToolButton *button, gpointer user_data) { GtkWidget *dlg; gchar *filename, *di; dlg = gtk_file_chooser_dialog_new(_("Save file"), GTK_WINDOW(scripts_dialog->dialog), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); if (scripts_dialog->current_edit) { gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg), scripts_dialog->current_edit); } else { di = g_strconcat(gm_app_path(gm_app_instance()), "/scripts/untitled.rb", NULL); gtk_file_chooser_select_filename(GTK_FILE_CHOOSER(dlg), di); gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dlg), "untitled.rb"); g_free(di); } if (gtk_dialog_run(GTK_DIALOG(dlg)) == GTK_RESPONSE_ACCEPT) { filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dlg)); gm_scripts_dialog_editor_save(filename); g_free(filename); } gtk_widget_destroy(dlg); } void on_tool_button_delete_clicked(GtkToolButton *button, gpointer user_data) { SelectionInfo info; if (gm_scripts_dialog_selection_info(&info)) { if (info.has_parent && info.can_save) { remove(info.filename); } g_free(info.filename); } } void on_gm_scripts_dialog_script_added(GmScripts *scripts, GmScript *script, gpointer user_data) { if (scripts_dialog->dialog != NULL) { gm_scripts_dialog_tree_add_script(script); gm_scripts_dialog_add_file(script); } } void on_gm_scripts_dialog_script_changed(GmScripts *scripts, GmScript *script, gpointer user_data) { if (scripts_dialog->dialog != NULL) { gm_scripts_dialog_tree_update_script(script); } } void on_gm_scripts_dialog_script_removed(GmScripts *scripts, GmScript *script, gpointer user_data) { if (scripts_dialog->dialog != NULL) { gm_scripts_dialog_tree_remove_script(script); gm_scripts_dialog_remove_file(script); if (scripts_dialog->current_edit && strcmp(script->filename, scripts_dialog->current_edit) == 0) { gm_scripts_dialog_editor_load(NULL); } } } void on_gm_scripts_dialog_message(GmScripts *scripts, gchar *message, gpointer user_data) { gm_scripts_dialog_add(SCRIPT_MESSAGE, message); } void on_gm_scripts_dialog_error(GmScripts *scripts, gchar *message, gpointer user_data) { gm_scripts_dialog_add(SCRIPT_ERROR, message); } void on_gm_scripts_dialog_run(GmScripts *scripts, gchar *message, gpointer user_data) { gm_scripts_dialog_add(SCRIPT_RUN, message); } #endif ��������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-scripts-dialog.h���������������������������������������������������0000644�0001750�0001750�00000000552�10410766737�020736� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_SCRIPTS_DIALOG_H__ #define __GM_SCRIPTS_DIALOG_H__ #ifdef HAVE_CONFIG_H # include <config.h> #endif #ifdef HAVE_RUBY #include <gtk/gtk.h> #include "gm-world.h" #include "widgets/gm-app-view.h" void gm_scripts_dialog_run(GmAppView *view); void gm_scripts_dialog_init(); void gm_scripts_dialog_fini(); #endif #endif /* __GM_SCRIPTS_DIALOG_H__ */ ������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-preferences-dialog.c�����������������������������������������������0000644�0001750�0001750�00000050053�10507235605�021534� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <gtk/gtk.h> #include <glade/glade.h> #include <gtksourceview/gtksourceview.h> #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagesmanager.h> #include <gtksourceview/gtksourcetag.h> #include "gm-app.h" #include "gm-preferences-dialog.h" #include "widgets/gm-editor-view.h" #include "mcp/gm-mcp-userlist-view.h" #include "gm-support.h" #include "gm-debug.h" #include "gm-options.h" #include "gm-color-table.h" void gm_preferences_dialog_run_dialog(); void on_gm_preferences_dialog_check_button_system_font_clicked( GtkButton *button, gpointer user_data); void on_gm_preferences_dialog_font_set(GtkFontButton *button, gpointer user_data); void on_gm_preferences_dialog_check_button_embed_editor_clicked( GtkButton *button, gpointer user_data); void on_gm_preferences_dialog_check_button_alt_editor_clicked( GtkButton *button, gpointer user_data); void on_gm_preferences_dialog_check_button_needs_terminal_clicked( GtkButton *button, gpointer user_data); #ifdef HAVE_PARSER void on_gm_preferences_dialog_check_button_auto_syntax_clicked( GtkButton *button, gpointer user_data); #endif gboolean on_gm_preferences_dialog_entry_alt_editor_focus_out(GtkEntry *entry, GdkEventFocus *event, gpointer user_data); void on_gm_preferences_dialog_check_button_logging_toggled( GtkToggleButton *button, gpointer user_data); void on_gm_preferences_dialog_check_button_logging_disable_all_toggled( GtkToggleButton *button, gpointer user_data); void on_gm_preferences_dialog_combo_box_scheme_changed(GtkComboBox *box, gpointer user_data); void on_gm_preferences_dialog_color_set(GtkColorButton *button, gchar *option); void on_gm_preferences_dialog_check_button_show_object_number_toggled( GtkToggleButton *button, gpointer user_data); void on_gm_preferences_dialog_check_button_show_player_status_toggled( GtkToggleButton *button, gpointer user_data); void on_gm_preferences_dialog_check_button_use_state_icon_toggled( GtkToggleButton *button, gpointer user_data); void on_gm_preferences_dialog_radio_button_sort_toggled(GtkToggleButton *button, gpointer user_data); void on_gm_preferences_dialog_response(GtkDialog *dialog, gint response, gpointer user_data); void gm_preferences_dialog_load_colors(); typedef struct _GmPreferencesDialog { GladeXML *xml; GtkWidget *dialog; gint user_scheme_index; } GmPreferencesDialog; static const GmKeyValuePair color_mapping[] = { {"color_button_fg_default", "fg_default"}, {"color_button_fg_default_h", "fg_default_h"}, {"color_button_bg_default", "bg_default"}, {"color_button_fg_black", "fg_black"}, {"color_button_fg_black_h", "fg_black_h"}, {"color_button_fg_red", "fg_red"}, {"color_button_fg_red_h", "fg_red_h"}, {"color_button_fg_green", "fg_green"}, {"color_button_fg_green_h", "fg_green_h"}, {"color_button_fg_yellow", "fg_yellow"}, {"color_button_fg_yellow_h", "fg_yellow_h"}, {"color_button_fg_blue", "fg_blue"}, {"color_button_fg_blue_h", "fg_blue_h"}, {"color_button_fg_purple", "fg_purple"}, {"color_button_fg_purple_h", "fg_purple_h"}, {"color_button_fg_cyan", "fg_cyan"}, {"color_button_fg_cyan_h", "fg_cyan_h"}, {"color_button_fg_white", "fg_white"}, {"color_button_fg_white_h", "fg_white_h"}, {"color_button_bg_black", "bg_black"}, {"color_button_bg_red", "bg_red"}, {"color_button_bg_green", "bg_green"}, {"color_button_bg_yellow", "bg_yellow"}, {"color_button_bg_blue", "bg_blue"}, {"color_button_bg_purple", "bg_purple"}, {"color_button_bg_cyan", "bg_cyan"}, {"color_button_bg_white", "bg_white"}, {NULL, NULL} }; static const GmKeyValuePair color_schemes[] = { {N_("Default"), "default"}, {N_("White on black"), "white_on_black"}, {N_("Rxvt"), "rxvt"}, {N_("XTerm"), "xterm"}, {N_("Linux"), "linux"}, {N_("User defined"), "user"}, {NULL, NULL} }; static GmPreferencesDialog *preferences = NULL; enum { SCHEME_NAME, SCHEME_OPTION, SCHEME_N_COLUMNS }; GtkWidget * gm_preferences_dialog_widget(gchar const *name) { return glade_xml_get_widget(preferences->xml, name); } void gm_preferences_dialog_init_combo_box_scheme() { GtkComboBox *box = GTK_COMBO_BOX(gm_preferences_dialog_widget( "combo_box_scheme")); GtkListStore *store = gtk_list_store_new(SCHEME_N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING); GtkCellRenderer *renderer = gtk_cell_renderer_text_new(); GtkTreeIter iter; gint i, select = 0; gchar const *scheme = gm_color_table_get_scheme_name(gm_app_color_table( gm_app_instance())); gtk_cell_layout_clear(GTK_CELL_LAYOUT(box)); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(box), renderer, TRUE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(box), renderer, "text", SCHEME_NAME, NULL); gtk_combo_box_set_model(box, GTK_TREE_MODEL(store)); i = 0; while (color_schemes[i].key != NULL) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, SCHEME_NAME, _(color_schemes[i].key), SCHEME_OPTION, color_schemes[i].value, -1); if (scheme != NULL && strcasecmp(scheme, color_schemes[i].value) == 0) { select = i; } ++i; } preferences->user_scheme_index = i - 1; gtk_combo_box_set_active(box, select); } void gm_preferences_dialog_update_color_buttons(gboolean signals) { GmKeyValuePair const *pair; GtkColorButton *but; GdkColor col; GmColorTable *color_table = gm_app_color_table(gm_app_instance()); for (pair = color_mapping; pair->key != NULL; ++pair) { but = GTK_COLOR_BUTTON(gm_preferences_dialog_widget(pair->key)); gm_color_table_get(color_table, pair->value, &col); gtk_color_button_set_color(but, &col); if (signals) { g_signal_connect(but, "color-set", G_CALLBACK(on_gm_preferences_dialog_color_set), pair->value); } } } static gchar const *logging_button_names[] = { "logging_in", "logging_out", "logging_status", "logging_mcp_in", "logging_mcp_out", "logging_mcp_status", "logging_add_timestamp", "logging_add_log_type", NULL }; void gm_preferences_dialog_init_logging() { GtkWidget *check; GmOptions *options = gm_app_options(gm_app_instance()); gchar const **entry; gchar *name; check = gm_preferences_dialog_widget("check_button_logging_disable_all"); glade_xml_signal_connect(preferences->xml, "on_check_button_logging_disable_all_toggled", G_CALLBACK( on_gm_preferences_dialog_check_button_logging_disable_all_toggled)); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), !gm_options_get_int(options, "logging_enable")); gtk_toggle_button_toggled(GTK_TOGGLE_BUTTON(check)); for (entry = logging_button_names; *entry; ++entry) { name = g_strconcat("check_button_", *entry, NULL); check = gm_preferences_dialog_widget(name); g_free(name); g_object_set_data(G_OBJECT(check), "gm_logging_name", (gpointer)*entry); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, *entry)); name = g_strconcat("on_check_button_", *entry, "_toggled", NULL); glade_xml_signal_connect(preferences->xml, name, G_CALLBACK( on_gm_preferences_dialog_check_button_logging_toggled)); g_free(name); } } #define GM_PREFERENCES_DIALOG_XML \ PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-preferences.glade" static gchar const *sort_button_names[] = { "radio_button_state_rank_name", "radio_button_rank_name", "radio_button_state_name", "radio_button_name", NULL }; static void gm_preferences_dialog_init_sort_buttons() { gint id = 0; gchar const **name; GtkWidget *widget; gint sort_type = gm_options_get_int(gm_app_options(gm_app_instance()), "userlist_sort_type"); for (name = sort_button_names; *name; ++name) { widget = gm_preferences_dialog_widget(*name); if (id == sort_type) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), TRUE); } g_object_set_data(G_OBJECT(widget), "gm_userlist_sort_id", GINT_TO_POINTER(id)); ++id; } } void gm_preferences_dialog_run() { gchar const *alt_editor; GmOptions *options = gm_app_options(gm_app_instance()); GladeXML *xml; if (preferences != NULL) { gtk_window_present(GTK_WINDOW(preferences->dialog)); return; } xml = glade_xml_new(GM_PREFERENCES_DIALOG_XML, "gm_preferences_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_PREFERENCES_DIALOG_XML); return; } preferences = g_new0(GmPreferencesDialog, 1); preferences->xml = xml; preferences->dialog = gm_preferences_dialog_widget("gm_preferences_dialog"); gm_preferences_dialog_update_color_buttons(TRUE); gm_preferences_dialog_init_combo_box_scheme(); gm_preferences_dialog_init_logging(); // Connect this now so it can handle the sensitivity on activation glade_xml_signal_connect(preferences->xml, "on_check_button_system_font_clicked", G_CALLBACK( on_gm_preferences_dialog_check_button_system_font_clicked)); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_system_font")), gm_color_table_get_use_system_font(gm_app_color_table( gm_app_instance()))); gtk_font_button_set_font_name(GTK_FONT_BUTTON( gm_preferences_dialog_widget("font_button_font")), gm_color_table_font_description(gm_app_color_table( gm_app_instance()))); alt_editor = gm_options_get(options, "editor_alternative"); if (strcmp(alt_editor, "0") == 0) { alt_editor = NULL; } else { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_alt_editor")), TRUE); gtk_entry_set_text(GTK_ENTRY( gm_preferences_dialog_widget("entry_alt_editor")), alt_editor); } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_embed_editor")), gm_options_get_int(options, "editor_embed")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_needs_terminal")), gm_options_get_int(options, "editor_needs_terminal")); #ifdef HAVE_PARSER gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_auto_syntax")), gm_options_get_int(options, "auto_check_syntax")); gtk_widget_show(gm_preferences_dialog_widget("frame_internal_editor")); #endif gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_show_object_number")), gm_options_get_int(options, "userlist_show_object_number")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_show_player_status")), gm_options_get_int(options, "userlist_show_status")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_use_state_icon")), gm_options_get_int(options, "userlist_use_state_icon")); gm_preferences_dialog_init_sort_buttons(); gtk_widget_set_sensitive( gm_preferences_dialog_widget("entry_alt_editor"), alt_editor != NULL); gtk_widget_set_sensitive( gm_preferences_dialog_widget("check_button_embed_editor"), alt_editor != NULL); gtk_widget_set_sensitive( gm_preferences_dialog_widget("check_button_needs_terminal"), alt_editor != NULL && gm_options_get_int(options, "editor_embed") == 0); glade_xml_signal_connect(preferences->xml, "on_font_button_font_font_set", G_CALLBACK( on_gm_preferences_dialog_font_set)); glade_xml_signal_connect(preferences->xml, "on_entry_alt_editor_focus_out", G_CALLBACK( on_gm_preferences_dialog_entry_alt_editor_focus_out)); glade_xml_signal_connect(preferences->xml, "on_check_button_alt_editor_clicked", G_CALLBACK( on_gm_preferences_dialog_check_button_alt_editor_clicked)); glade_xml_signal_connect(preferences->xml, "on_check_button_embed_editor_clicked", G_CALLBACK( on_gm_preferences_dialog_check_button_embed_editor_clicked)); glade_xml_signal_connect(preferences->xml, "on_check_button_needs_terminal_clicked", G_CALLBACK( on_gm_preferences_dialog_check_button_needs_terminal_clicked)); #ifdef HAVE_PARSER glade_xml_signal_connect(preferences->xml, "on_check_button_auto_syntax_clicked", G_CALLBACK( on_gm_preferences_dialog_check_button_auto_syntax_clicked)); #endif glade_xml_signal_connect(preferences->xml, "on_combo_box_scheme_changed", G_CALLBACK( on_gm_preferences_dialog_combo_box_scheme_changed)); glade_xml_signal_connect(preferences->xml, "on_check_button_show_object_number_toggled", G_CALLBACK( on_gm_preferences_dialog_check_button_show_object_number_toggled)); glade_xml_signal_connect(preferences->xml, "on_check_button_show_player_status_toggled", G_CALLBACK( on_gm_preferences_dialog_check_button_show_player_status_toggled)); glade_xml_signal_connect(preferences->xml, "on_check_button_use_state_icon_toggled", G_CALLBACK( on_gm_preferences_dialog_check_button_use_state_icon_toggled)); glade_xml_signal_connect(preferences->xml, "on_radio_button_sort_toggled", G_CALLBACK( on_gm_preferences_dialog_radio_button_sort_toggled)); gm_preferences_dialog_run_dialog(); } void gm_preferences_dialog_run_dialog() { g_signal_connect(preferences->dialog, "response", G_CALLBACK(on_gm_preferences_dialog_response), NULL); gtk_widget_show(GTK_WIDGET(preferences->dialog)); } /* CALLBACKS */ void on_gm_preferences_dialog_response(GtkDialog *dialog, gint response, gpointer user_data) { gm_options_save(gm_app_options(gm_app_instance())); gm_color_table_save(gm_app_color_table(gm_app_instance())); gtk_widget_destroy(GTK_WIDGET(dialog)); g_object_unref(preferences->xml); g_free(preferences); preferences = NULL; } void on_gm_preferences_dialog_check_button_system_font_clicked( GtkButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "label_font_description"), !active); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "font_button_font"), !active); gm_color_table_set_use_system_font(gm_app_color_table(gm_app_instance()), active); } void on_gm_preferences_dialog_font_set(GtkFontButton *button, gpointer user_data) { gchar const *font = gtk_font_button_get_font_name(button); gm_color_table_set_font_description(gm_app_color_table(gm_app_instance()), font); } void on_gm_preferences_dialog_check_button_embed_editor_clicked( GtkButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)); GmOptions *options = gm_app_options(gm_app_instance()); if (active) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_needs_terminal")), TRUE); } else { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_needs_terminal")), gm_options_get_int(options, "editor_needs_terminal")); } gm_options_set_int(gm_app_options(gm_app_instance()), "editor_embed", active); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "check_button_needs_terminal"), !active); } void on_gm_preferences_dialog_check_button_alt_editor_clicked( GtkButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)); if (!active) { gtk_entry_set_text(GTK_ENTRY(gm_preferences_dialog_widget( "entry_alt_editor")), ""); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_embed_editor")), FALSE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( gm_preferences_dialog_widget("check_button_needs_terminal")), FALSE); } gm_options_set_int(gm_app_options(gm_app_instance()), "editor_alternative", active); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "entry_alt_editor"), active); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "check_button_embed_editor"), active); gtk_widget_set_sensitive(gm_preferences_dialog_widget( "check_button_needs_terminal"), active); } void on_gm_preferences_dialog_check_button_needs_terminal_clicked( GtkButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)); gm_options_set_int(gm_app_options(gm_app_instance()), "editor_needs_terminal", active); } #ifdef HAVE_PARSER void on_gm_preferences_dialog_check_button_auto_syntax_clicked( GtkButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)); gm_options_set_int(gm_app_options(gm_app_instance()), "auto_check_syntax", active); } #endif gboolean on_gm_preferences_dialog_entry_alt_editor_focus_out(GtkEntry *entry, GdkEventFocus *event, gpointer user_data) { gchar const *alt_editor = gtk_entry_get_text(entry); GmOptions *options = gm_app_options(gm_app_instance()); if (*alt_editor != '\0') { gm_options_set(options, "editor_alternative", alt_editor); } else { gm_options_set(options, "editor_alternative", "0"); } return FALSE; } void on_gm_preferences_dialog_color_set(GtkColorButton *button, gchar *option) { GmColorTable *table = gm_app_color_table(gm_app_instance()); GdkColor col; gchar *col_str; GtkComboBox *box; gtk_color_button_get_color(button, &col); col_str = g_strdup_printf("#%04X%04X%04X", col.red, col.green, col.blue); gm_color_table_set(table, option, col_str); g_free(col_str); box = GTK_COMBO_BOX(gm_preferences_dialog_widget( "combo_box_scheme")); g_signal_handlers_block_by_func(box, on_gm_preferences_dialog_combo_box_scheme_changed, NULL); // Select user combo item if (gtk_combo_box_get_active(box) != preferences->user_scheme_index) { gtk_combo_box_set_active(box, preferences->user_scheme_index); gm_preferences_dialog_update_color_buttons(FALSE); } g_signal_handlers_unblock_by_func(box, on_gm_preferences_dialog_combo_box_scheme_changed, NULL); } void on_gm_preferences_dialog_combo_box_scheme_changed(GtkComboBox *box, gpointer user_data) { GtkTreeIter iter; gchar *scheme; GtkTreeModel *model = gtk_combo_box_get_model(box); GmColorTable *color_table = gm_app_color_table(gm_app_instance()); gtk_combo_box_get_active_iter(box, &iter); gtk_tree_model_get(model, &iter, SCHEME_OPTION, &scheme, -1); gm_color_table_set_from_scheme_name(color_table, scheme); gm_preferences_dialog_update_color_buttons(FALSE); g_free(scheme); } void on_gm_preferences_dialog_check_button_logging_toggled( GtkToggleButton *button, gpointer user_data) { gchar *option = (gchar *)g_object_get_data(G_OBJECT(button), "gm_logging_name"); gboolean active = gtk_toggle_button_get_active(button); gm_options_set_int(gm_app_options(gm_app_instance()), option, active); } void on_gm_preferences_dialog_check_button_logging_disable_all_toggled( GtkToggleButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(button); gm_options_set_int(gm_app_options(gm_app_instance()), "logging_enable", !active); gtk_widget_set_sensitive(gm_preferences_dialog_widget("frame_log_types"), !active); gtk_widget_set_sensitive(gm_preferences_dialog_widget("frame_log_format"), !active); } void on_gm_preferences_dialog_check_button_show_object_number_toggled( GtkToggleButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(button); gm_options_set_int(gm_app_options(gm_app_instance()), "userlist_show_object_number", active); } void on_gm_preferences_dialog_check_button_show_player_status_toggled( GtkToggleButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(button); gm_options_set_int(gm_app_options(gm_app_instance()), "userlist_show_status", active); } void on_gm_preferences_dialog_check_button_use_state_icon_toggled( GtkToggleButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(button); gm_options_set_int(gm_app_options(gm_app_instance()), "userlist_use_state_icon", active); } void on_gm_preferences_dialog_radio_button_sort_toggled(GtkToggleButton *button, gpointer user_data) { gboolean active = gtk_toggle_button_get_active(button); gint id; if (active) { id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "gm_userlist_sort_id")); gm_options_set_int(gm_app_options(gm_app_instance()), "userlist_sort_type", id); } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-preferences-dialog.h�����������������������������������������������0000644�0001750�0001750�00000000225�10410766737�021545� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_PREFERENCES_DIALOG_H__ #define __GM_PREFERENCES_DIALOG_H__ void gm_preferences_dialog_run(); #endif /* __GM_PREFERENCES_DIALOG_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-triggers-dialog.c��������������������������������������������������0000644�0001750�0001750�00000067670�10416744343�021101� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include <libgnomeui/libgnomeui.h> #include <glade/glade.h> #include "gm-support.h" #include "gm-debug.h" #include "gm-triggers-dialog.h" #include "gm-app.h" #include "gm-pixbuf.h" #include "gm-scripts.h" typedef struct _GmTriggersDialog { GtkWidget *dialog; GladeXML *xml; GmWorld *world; GmTrigger *trigger; gboolean is_new; GtkWidget *entry_name; GtkWidget *button_ok; GtkWidget *button_next; GtkWidget *vbox_conditions; GtkWidget *vbox_actions; GtkWidget *notebook_triggers; GtkWidget *tree_view_event_types; GtkWidget *hbox_add_condition; GtkWidget *hbox_add_action; GtkTreeModel *action_model; GtkTreeModel *condition_model; GtkTreeModel *highlight_model; #ifdef HAVE_RUBY GtkTreeModel *script_model; #endif } GmTriggersDialog; enum { NO_ARGS, SINGLE_ARGS, CUSTOM_ARGS }; typedef enum _CustomArgType { CUSTOM_ARG_CREATE, CUSTOM_ARG_GET_DATA } CustomArgType; gpointer gm_triggers_dialog_custom_arg_highlight(GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data); gpointer gm_triggers_dialog_custom_arg_browse(GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data); #ifdef HAVE_RUBY gpointer gm_triggers_dialog_custom_arg_script(GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data); #endif #define CUSTOM_ARG_FUNC(x) (CustomArgFunc *)(x) typedef gpointer (*CustomArgFunc) (GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data); enum { COLUMN_NAME, COLUMN_DATA, N_COLUMNS }; enum { COLUMN_HIGH_NAME, COLUMN_HIGH_TAG, N_COLUMNS_HIGH }; typedef struct _ModelData { gint type; gchar *title; gint args; CustomArgFunc func; } ModelData; typedef struct _TagPair { const gchar *name; const gchar *tag; } TagPair; typedef struct _ComboBoxTypeData { GmTriggersDialog *triggers; GmTriggerData *data; } ComboBoxTypeData; static const TagPair highlightTags[] = { {N_("Black"), "bg_black"}, {N_("Red"), "bg_red"}, {N_("Green"), "bg_green"}, {N_("Yellow"), "bg_yellow"}, {N_("Blue"), "bg_blue"}, {N_("Purple"), "bg_purple"}, {N_("Cyan"), "bg_cyan"}, {N_("White"), "bg_white"}, {NULL, NULL} }; static const ModelData dataConditionOutput[] = { {TCT_CONTAINS, N_("Contains"), SINGLE_ARGS, NULL}, {TCT_NOT_CONTAINS, N_("Not contains"), SINGLE_ARGS, NULL}, {TCT_BEGINS, N_("Begins with"), SINGLE_ARGS, NULL}, {TCT_NOT_BEGINS, N_("Not begins with"), SINGLE_ARGS, NULL}, {TCT_ENDS, N_("Ends with"), SINGLE_ARGS, NULL}, {TCT_NOT_ENDS, N_("Not ends with"), SINGLE_ARGS, NULL}, {TCT_MATCHES, N_("Matches"), SINGLE_ARGS, NULL}, {TCT_NOT_MATCHES, N_("Not matches"), SINGLE_ARGS, NULL}, {-1, NULL, 0, NULL} }; static const ModelData dataConditionUsers[] = { {TCT_USER_ONLINE, N_("Online"), SINGLE_ARGS, NULL}, {TCT_USER_OFFLINE, N_("Offline"), SINGLE_ARGS, NULL}, {TCT_USER_IDLE, N_("Idle"), SINGLE_ARGS, NULL}, {TCT_USER_IDLE_OFF, N_("No longer idle"), SINGLE_ARGS, NULL}, {TCT_USER_AWAY, N_("Away"), SINGLE_ARGS, NULL}, {TCT_USER_AWAY_OFF, N_("No longer away"), SINGLE_ARGS, NULL}, {-1, NULL, 0, NULL} }; static const ModelData dataActionOutput[] = { {TAT_HIGHLIGHT_LINE, N_("Highlight line"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_highlight}, {TAT_HIGHLIGHT_MATCH, N_("Highlight match"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_highlight}, {TAT_BEEP, N_("Beep"), NO_ARGS, NULL}, {TAT_PLAY_SOUND, N_("Play sound"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_browse}, {TAT_NOTIFY, N_("Notify"), SINGLE_ARGS, NULL}, #ifdef HAVE_RUBY {TAT_RUN_SCRIPT, N_("Run script"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_script}, #endif {TAT_RUN, N_("Run"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_browse}, {-1, NULL, 0, NULL} }; static const ModelData dataActionUsers[] = { {TAT_BEEP, N_("Beep"), NO_ARGS, NULL}, {TAT_PLAY_SOUND, N_("Play sound"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_browse}, {TAT_NOTIFY, N_("Notify"), SINGLE_ARGS, NULL}, #ifdef HAVE_RUBY {TAT_RUN_SCRIPT, N_("Run script"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_script}, #endif {TAT_RUN, N_("Run"), CUSTOM_ARGS, gm_triggers_dialog_custom_arg_browse}, {-1, NULL, 0, NULL} }; void on_button_next_clicked(GtkButton *button, GmTriggersDialog *triggers); void on_button_add_condition_clicked(GtkButton *button, GmTriggersDialog *triggers); void on_button_add_action_clicked(GtkButton *button, GmTriggersDialog *triggers); void on_notebook_triggers_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, GmTriggersDialog *triggers); void on_combo_box_type_changed(GtkComboBox *widget, ComboBoxTypeData *tdata); void on_combo_box_type_destroy(GtkObject *object, ComboBoxTypeData *tdata); void on_button_remove_clicked(GtkButton *button, GmTriggersDialog *triggers); void on_tree_view_event_types_changed(GtkTreeSelection *treeselection, GmTriggersDialog *triggers); #define GM_TRIGGERS_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-triggers.glade" void gm_triggers_dialog_create_models(GmTriggersDialog *triggers, const ModelData *conditionData, const ModelData *actionData) { int i; GtkTreeIter iter; ModelData *data; #ifdef HAVE_RUBY GList *scripts, *item; GmScript *script; GmScriptFunction *func; #endif triggers->action_model = GTK_TREE_MODEL(gtk_list_store_new( N_COLUMNS, G_TYPE_STRING, G_TYPE_POINTER)); triggers->condition_model = GTK_TREE_MODEL(gtk_list_store_new( N_COLUMNS, G_TYPE_STRING, G_TYPE_POINTER)); triggers->highlight_model = GTK_TREE_MODEL(gtk_list_store_new( N_COLUMNS_HIGH, G_TYPE_STRING, G_TYPE_STRING)); #ifdef HAVE_RUBY triggers->script_model = GTK_TREE_MODEL(gtk_list_store_new(1, G_TYPE_STRING)); #endif for (i = 0; conditionData[i].type != -1; i++) { data = (ModelData *)(&(conditionData[i])); gtk_list_store_append(GTK_LIST_STORE(triggers->condition_model), &iter); gtk_list_store_set(GTK_LIST_STORE(triggers->condition_model), &iter, COLUMN_NAME, _(data->title), COLUMN_DATA, data, -1); } for (i = 0; actionData[i].type != -1; i++) { data = (ModelData *)(&(actionData[i])); gtk_list_store_append(GTK_LIST_STORE(triggers->action_model), &iter); gtk_list_store_set(GTK_LIST_STORE(triggers->action_model), &iter, COLUMN_NAME, _(data->title), COLUMN_DATA, data, -1); } for (i = 0; highlightTags[i].name != NULL; i++) { gtk_list_store_append(GTK_LIST_STORE(triggers->highlight_model), &iter); gtk_list_store_set(GTK_LIST_STORE(triggers->highlight_model), &iter, COLUMN_HIGH_NAME, _(highlightTags[i].name), COLUMN_HIGH_TAG, highlightTags[i].tag, -1); } #ifdef HAVE_RUBY for (scripts = gm_scripts_scripts(gm_app_scripts(gm_app_instance())); scripts; scripts = scripts->next) { script = (GmScript *)(scripts->data); for (item = script->functions; item; item = item->next) { func = (GmScriptFunction *)(item->data); gtk_list_store_append(GTK_LIST_STORE(triggers->script_model), &iter); gtk_list_store_set(GTK_LIST_STORE(triggers->script_model), &iter, 0, func->name, -1); } } #endif } ModelData * gm_triggers_dialog_combo_get_selected_data(GmTriggersDialog *triggers, GtkComboBox *combo) { GtkTreeIter iter; ModelData *data; gtk_combo_box_get_active_iter(combo, &iter); gtk_tree_model_get(gtk_combo_box_get_model(combo), &iter, COLUMN_DATA, &data, -1); return data; } GList * gm_triggers_dialog_collect_rules(GmTriggersDialog *triggers, GtkWidget *vbox) { gchar *text; GList *children, *child, *item, *result = NULL; GtkComboBox *combo; GtkEntry *entry; ModelData *data; GmTriggerData *d; children = gtk_container_get_children(GTK_CONTAINER(vbox)); for (item = children; item; item = item->next) { if (item->data == triggers->hbox_add_condition || item->data == triggers->hbox_add_action) { break; } if (GTK_IS_HBOX(item->data)) { child = gtk_container_get_children(GTK_CONTAINER(item->data)); combo = GTK_COMBO_BOX(child->data); data = gm_triggers_dialog_combo_get_selected_data(triggers, combo); d = NULL; switch (data->args) { case NO_ARGS: d = gm_trigger_data_new(data->type, NULL); break; case SINGLE_ARGS: if (child->next) { entry = GTK_ENTRY(child->next->data); text = (gchar *)gtk_entry_get_text(entry); if (g_utf8_strlen(text, -1) > 0) { d = gm_trigger_data_new(data->type, g_strdup(text)); } } break; case CUSTOM_ARGS: text = (gchar *)(data->func(triggers, CUSTOM_ARG_GET_DATA, child->next, NULL)); if (text != NULL && g_utf8_strlen(text, -1) > 0) { d = gm_trigger_data_new(data->type, text); } else { g_free(text); } break; default: break; } if (d) { result = g_list_append(result, d); } g_list_free(child); } } g_list_free(children); return result; } gboolean gm_triggers_dialog_fill_trigger(GmTriggersDialog *triggers) { const gchar *name = gtk_entry_get_text(GTK_ENTRY(triggers->entry_name)); GList *conditions = NULL; GList *actions = NULL; if (g_utf8_strlen(name, -1) == 0) { gm_error_dialog(_("Please fill in a trigger name"), GTK_WINDOW(triggers->dialog)); gtk_widget_grab_focus(triggers->entry_name); return FALSE; } conditions = gm_triggers_dialog_collect_rules(triggers, triggers->vbox_conditions); if (conditions == NULL) { gm_error_dialog(_("Please specify at least one condition"), GTK_WINDOW(triggers->dialog)); return FALSE; } actions = gm_triggers_dialog_collect_rules(triggers, triggers->vbox_actions); if (actions == NULL) { gm_trigger_free_list(conditions); gm_error_dialog(_("Please specify at least one action"), GTK_WINDOW(triggers->dialog)); return FALSE; } gm_trigger_set_name(triggers->trigger, name); gm_trigger_set_conditions(triggers->trigger, conditions); gm_trigger_set_actions(triggers->trigger, actions); return TRUE; } void gm_triggers_dialog_initialize_event_types(GmTriggersDialog *triggers) { GtkListStore *store = gtk_list_store_new(3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT); GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkTreeIter iter; gtk_tree_view_set_model(GTK_TREE_VIEW(triggers->tree_view_event_types), GTK_TREE_MODEL(store)); renderer = gtk_cell_renderer_pixbuf_new(); column = gtk_tree_view_column_new_with_attributes(NULL, renderer, "pixbuf", 0, NULL); gtk_tree_view_column_set_min_width(column, 40); gtk_tree_view_append_column(GTK_TREE_VIEW(triggers->tree_view_event_types), column); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(NULL, renderer, "markup", 1, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(triggers->tree_view_event_types), column); gtk_list_store_prepend(store, &iter); gtk_list_store_set(store, &iter, 0, gm_pixbuf_get_at_size("ice-userlist/programmer.svg", 32, 32), 1, _("<b>Player event</b>\nPlayer events are triggered on userlist " "activity"), 2, TT_USERS, -1); gtk_list_store_prepend(store, &iter); gtk_list_store_set(store, &iter, 0, gm_pixbuf_get_at_size("world.svg", 32, 32), 1, _("<b>World event</b>\nWorld events are triggered on incoming " "lines of text"), 2, TT_OUTPUT, -1); gtk_tree_selection_select_iter(gtk_tree_view_get_selection( GTK_TREE_VIEW(triggers->tree_view_event_types)), &iter); g_signal_connect(gtk_tree_view_get_selection(GTK_TREE_VIEW( triggers->tree_view_event_types)), "changed", G_CALLBACK(on_tree_view_event_types_changed), triggers); } GmTrigger * gm_triggers_dialog_run_dialog(GmTriggersDialog *triggers) { gboolean done = FALSE; GmTrigger *result = NULL; while (!done) { done = TRUE; switch (gtk_dialog_run(GTK_DIALOG(triggers->dialog))) { case GTK_RESPONSE_OK: done = gm_triggers_dialog_fill_trigger(triggers); if (done) { result = triggers->trigger; } break; default: break; } } if (triggers->action_model != NULL) g_object_unref(triggers->action_model); if (triggers->condition_model != NULL) g_object_unref(triggers->condition_model); if (triggers->highlight_model != NULL) g_object_unref(triggers->highlight_model); #ifdef HAVE_RUBY if (triggers->script_model != NULL) g_object_unref(triggers->script_model); #endif if (!result && triggers->is_new) { gm_trigger_free(triggers->trigger); } g_object_unref(triggers->xml); gtk_widget_destroy(triggers->dialog); g_free(triggers); return result; } GmTrigger * gm_triggers_dialog_run_priv(GmWorld *world, GmTrigger *trigger, gboolean is_new) { GladeXML *xml = glade_xml_new(GM_TRIGGERS_DIALOG_XML, "gm_triggers_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_TRIGGERS_DIALOG_XML); return NULL; } GmTriggersDialog *triggers = g_new0(GmTriggersDialog, 1); triggers->is_new = is_new; triggers->world = world; triggers->xml = xml; triggers->dialog = glade_xml_get_widget(triggers->xml, "gm_triggers_dialog"); triggers->entry_name = glade_xml_get_widget(triggers->xml, "entry_name"); triggers->vbox_conditions = glade_xml_get_widget(triggers->xml, "vbox_conditions"); triggers->vbox_actions = glade_xml_get_widget(triggers->xml, "vbox_actions"); triggers->notebook_triggers = glade_xml_get_widget(triggers->xml, "notebook_triggers"); triggers->tree_view_event_types = glade_xml_get_widget(triggers->xml, "tree_view_event_types"); triggers->button_ok = glade_xml_get_widget(triggers->xml, "button_ok"); triggers->hbox_add_condition = glade_xml_get_widget(triggers->xml, "hbox_add_condition"); triggers->hbox_add_action = glade_xml_get_widget(triggers->xml, "hbox_add_action"); triggers->button_next = glade_xml_get_widget(triggers->xml, "button_next"); gm_triggers_dialog_initialize_event_types(triggers); glade_xml_signal_connect_data(triggers->xml, "on_button_next_clicked", G_CALLBACK(on_button_next_clicked), triggers); glade_xml_signal_connect_data(triggers->xml, "on_button_add_condition_clicked", G_CALLBACK(on_button_add_condition_clicked), triggers); glade_xml_signal_connect_data(triggers->xml, "on_button_add_action_clicked", G_CALLBACK(on_button_add_action_clicked), triggers); glade_xml_signal_connect_data(triggers->xml, "on_notebook_triggers_switch_page", G_CALLBACK(on_notebook_triggers_switch_page), triggers); triggers->trigger = trigger; if (is_new) { gtk_notebook_set_current_page( GTK_NOTEBOOK(triggers->notebook_triggers), 0); } else { gtk_notebook_set_current_page( GTK_NOTEBOOK(triggers->notebook_triggers), 1); } gtk_widget_show_all(triggers->dialog); return gm_triggers_dialog_run_dialog(triggers); } GmTrigger * gm_triggers_dialog_run(GmWorld *world, GmTrigger *trigger) { return gm_triggers_dialog_run_priv(world, trigger, FALSE); } GmTrigger * gm_triggers_dialog_run_new(GmWorld *world, GmTrigger *trigger) { if (!trigger) { trigger = gm_trigger_new(); } return gm_triggers_dialog_run_priv(world, trigger, TRUE); } void gm_triggers_dialog_select_combo_by_type(GmTriggersDialog *triggers, GtkComboBox *combo, gint type) { GtkTreeModel *model = gtk_combo_box_get_model(combo); GtkTreeIter iter; ModelData *data; if (gtk_tree_model_get_iter_first(model, &iter)) { do { gtk_tree_model_get(model, &iter, COLUMN_DATA, &data, -1); if (type == data->type) { gtk_combo_box_set_active_iter(combo, &iter); return; } } while (gtk_tree_model_iter_next(model, &iter)); } } GtkWidget * gm_triggers_dialog_create_item(GmTriggersDialog *triggers, GtkTreeModel *model, GmTriggerData *t) { GtkWidget *hbox, *combo, *button; ComboBoxTypeData *data; GtkCellRenderer *renderer = gtk_cell_renderer_text_new(); hbox = gtk_hbox_new(FALSE, 6); combo = gtk_combo_box_new_with_model(model); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo), renderer, TRUE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo), renderer, "text", COLUMN_NAME, NULL); data = g_new0(ComboBoxTypeData, 1); data->triggers = triggers; data->data = t; g_signal_connect(combo, "changed", G_CALLBACK(on_combo_box_type_changed), data); g_signal_connect(combo, "destroy", G_CALLBACK(on_combo_box_type_destroy), data); button = gtk_button_new_from_stock(GTK_STOCK_REMOVE); g_signal_connect(button, "clicked", G_CALLBACK(on_button_remove_clicked), triggers); gtk_box_pack_start(GTK_BOX(hbox), combo, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, TRUE, 0); gtk_widget_show_all(hbox); return hbox; } void gm_triggers_dialog_new_condition(GmTriggersDialog *triggers) { GtkWidget *hbox; GList *children; hbox = gm_triggers_dialog_create_item(triggers, triggers->condition_model, NULL); children = gtk_container_get_children(GTK_CONTAINER(hbox)); if (triggers->trigger->event == TT_OUTPUT) { gm_triggers_dialog_select_combo_by_type(triggers, GTK_COMBO_BOX(children->data), dataConditionOutput[0].type); } else { gm_triggers_dialog_select_combo_by_type(triggers, GTK_COMBO_BOX(children->data), dataConditionUsers[0].type); } gtk_box_pack_start(GTK_BOX(triggers->vbox_conditions), hbox, FALSE, TRUE, 0); g_list_free(children); } void gm_triggers_dialog_populate_conditions(GmTriggersDialog *triggers) { GList *item; GtkWidget *hbox; GmTriggerData *t; GList *children; if (triggers->trigger->conditions) { for (item = triggers->trigger->conditions; item; item = item->next) { t = (GmTriggerData *)(item->data); hbox = gm_triggers_dialog_create_item(triggers, triggers->condition_model, t); children = gtk_container_get_children(GTK_CONTAINER(hbox)); gtk_box_pack_start(GTK_BOX(triggers->vbox_conditions), hbox, FALSE, TRUE, 0); gm_triggers_dialog_select_combo_by_type(triggers, GTK_COMBO_BOX(children->data), t->type); g_list_free(children); } } else { gm_triggers_dialog_new_condition(triggers); } } void gm_triggers_dialog_new_action(GmTriggersDialog *triggers) { GtkWidget *hbox; GList *children; hbox = gm_triggers_dialog_create_item(triggers, triggers->action_model, NULL); children = gtk_container_get_children(GTK_CONTAINER(hbox)); if (triggers->trigger->event == TT_OUTPUT) { gm_triggers_dialog_select_combo_by_type(triggers, GTK_COMBO_BOX(children->data), dataActionOutput[0].type); } else { gm_triggers_dialog_select_combo_by_type(triggers, GTK_COMBO_BOX(children->data), dataActionUsers[0].type); } gtk_box_pack_start(GTK_BOX(triggers->vbox_actions), hbox, FALSE, TRUE, 0); g_list_free(children); } void gm_triggers_dialog_populate_actions(GmTriggersDialog *triggers) { GList *item; GtkWidget *hbox; GmTriggerData *t; GList *children; if (triggers->trigger->actions) { for (item = triggers->trigger->actions; item; item = item->next) { t = (GmTriggerData *)(item->data); hbox = gm_triggers_dialog_create_item(triggers, triggers->action_model, t); children = gtk_container_get_children(GTK_CONTAINER(hbox)); gtk_box_pack_start(GTK_BOX(triggers->vbox_actions), hbox, FALSE, TRUE, 0); gm_triggers_dialog_select_combo_by_type(triggers, GTK_COMBO_BOX(children->data), t->type); g_list_free(children); } } else { gm_triggers_dialog_new_action(triggers); } } /* CALLBACKS */ void on_button_next_clicked(GtkButton *button, GmTriggersDialog *triggers) { GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; gint type; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW( triggers->tree_view_event_types)); model = gtk_tree_view_get_model(GTK_TREE_VIEW( triggers->tree_view_event_types)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { gtk_tree_model_get(model, &iter, 2, &type, -1); triggers->trigger->event = type; gtk_notebook_set_current_page(GTK_NOTEBOOK( triggers->notebook_triggers), 1); } else { gm_error_dialog(_("Select a event type first"), GTK_WINDOW(triggers->dialog)); } } void on_tree_view_event_types_changed(GtkTreeSelection *treeselection, GmTriggersDialog *triggers) { GtkTreeIter iter; GtkTreeModel *model; gint type; model = gtk_tree_view_get_model(GTK_TREE_VIEW( triggers->tree_view_event_types)); if (!gtk_tree_selection_get_selected(treeselection, &model, &iter)) { gtk_widget_set_sensitive(triggers->button_next, FALSE); return; } gtk_widget_set_sensitive(triggers->button_next, TRUE); gtk_tree_model_get(model, &iter, 2, &type, -1); switch (type) { case TT_OUTPUT: gtk_window_set_icon(GTK_WINDOW(triggers->dialog), gm_pixbuf_get_at_size("world.svg", 16, 16)); break; case TT_USERS: gtk_window_set_icon(GTK_WINDOW(triggers->dialog), gm_pixbuf_get_at_size("ice-userlist/programmer.svg", 16, 16)); break; default: break; } } void on_notebook_triggers_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, GmTriggersDialog *triggers) { const ModelData *conditionData = NULL; const ModelData *actionData = NULL; if (page_num != 1) { return; } gtk_widget_set_sensitive(triggers->button_ok, TRUE); switch (triggers->trigger->event) { case TT_OUTPUT: gtk_window_set_icon(GTK_WINDOW(triggers->dialog), gm_pixbuf_get_at_size("world.svg", 16, 16)); conditionData = dataConditionOutput; actionData = dataActionOutput; break; case TT_USERS: gtk_window_set_icon(GTK_WINDOW(triggers->dialog), gm_pixbuf_get_at_size("ice-userlist/programmer.svg", 16, 16)); conditionData = dataConditionUsers; actionData = dataActionUsers; break; default: break; } gm_triggers_dialog_create_models(triggers, conditionData, actionData); if (triggers->trigger->name) { gtk_entry_set_text(GTK_ENTRY(triggers->entry_name), triggers->trigger->name); } gm_triggers_dialog_populate_conditions(triggers); gm_triggers_dialog_populate_actions(triggers); } gpointer gm_triggers_dialog_custom_arg_highlight(GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data) { GtkWidget *hbox; GtkWidget *combo; GtkCellRenderer *renderer; GList *item; GtkTreeIter iter; GtkTreeModel *model; gchar *tag; GmTriggerData *t = (GmTriggerData *)(user_data); switch (type) { case CUSTOM_ARG_CREATE: hbox = GTK_WIDGET(data); combo = gtk_combo_box_new_with_model(triggers->highlight_model); renderer = gtk_cell_renderer_text_new(); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(combo), renderer, TRUE); gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo), renderer, "text", COLUMN_HIGH_NAME, NULL); if (!user_data) { gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); } else { model = gtk_combo_box_get_model(GTK_COMBO_BOX(combo)); if (gtk_tree_model_get_iter_first(model, &iter)) { do { gtk_tree_model_get(model, &iter, COLUMN_HIGH_TAG, &tag, -1); if (strcmp(tag, t->data) == 0) { gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo), &iter); break; } g_free(tag); } while (gtk_tree_model_iter_next(model, &iter)); } } gtk_widget_show(combo); gtk_box_pack_start(GTK_BOX(hbox), combo, TRUE, TRUE, 0); break; case CUSTOM_ARG_GET_DATA: item = (GList *)(data); model = gtk_combo_box_get_model(GTK_COMBO_BOX(item->data)); gtk_combo_box_get_active_iter(GTK_COMBO_BOX(item->data), &iter); gtk_tree_model_get(model, &iter, COLUMN_HIGH_TAG, &tag, -1); return tag; break; } return NULL; } void on_button_browse_clicked(GtkButton *widget, GtkEntry *entry) { gchar *tmp; GtkWidget *d = gtk_file_chooser_dialog_new(_("Select file"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if (gtk_dialog_run(GTK_DIALOG(d)) == GTK_RESPONSE_ACCEPT) { tmp = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(d)); gtk_entry_set_text(entry, tmp); g_free(tmp); } gtk_widget_destroy(d); } gpointer gm_triggers_dialog_custom_arg_browse(GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data) { GtkWidget *hbox; GtkWidget *entry; GtkWidget *browse, *tmp; GmTriggerData *t = (GmTriggerData *)(user_data); GList *item; switch (type) { case CUSTOM_ARG_CREATE: hbox = GTK_WIDGET(data); entry = gtk_entry_new(); if (t) { gtk_entry_set_text(GTK_ENTRY(entry), t->data); } browse = gtk_button_new(); tmp = gtk_hbox_new(FALSE, 3); gtk_container_add(GTK_CONTAINER(browse), tmp); gtk_box_pack_start(GTK_BOX(tmp), gtk_image_new_from_stock( GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON), FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tmp), gtk_label_new(_("Browse")), TRUE, TRUE, 0); g_signal_connect(browse, "clicked", G_CALLBACK(on_button_browse_clicked), entry); gtk_widget_show(entry); gtk_widget_show_all(browse); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), browse, FALSE, TRUE, 0); break; case CUSTOM_ARG_GET_DATA: item = (GList *)(data); return g_strdup(gtk_entry_get_text(GTK_ENTRY(item->data))); break; } return NULL; } void on_combo_box_type_changed(GtkComboBox *widget, ComboBoxTypeData *tdata) { GtkWidget *parent = gtk_widget_get_parent(GTK_WIDGET(widget)); GList *item, *children = gtk_container_get_children(GTK_CONTAINER(parent)); ModelData *data; GtkTreeIter iter; GtkWidget *tmp; for (item = children->next; item && item->next; item = item->next) { gtk_widget_destroy(GTK_WIDGET(item->data)); } g_list_free(children); if (gtk_combo_box_get_active_iter(widget, &iter)) { gtk_tree_model_get(gtk_combo_box_get_model(widget), &iter, COLUMN_DATA, &data, -1); switch (data->args) { case SINGLE_ARGS: tmp = gtk_entry_new(); if (tdata->data) { gtk_entry_set_text(GTK_ENTRY(tmp), tdata->data->data); } gtk_widget_show(tmp); gtk_box_pack_start(GTK_BOX(parent), tmp, TRUE, TRUE, 0); break; case CUSTOM_ARGS: data->func(tdata->triggers, CUSTOM_ARG_CREATE, (gpointer)parent, (gpointer)tdata->data); break; default: break; } if (tdata->data != NULL) { tdata->data = NULL; } } else { gm_debug_msg(DEBUG_ALWAYS, "No active iter!"); } } void on_combo_box_type_destroy(GtkObject *object, ComboBoxTypeData *tdata) { g_free(tdata); } #ifdef HAVE_RUBY gpointer gm_triggers_dialog_custom_arg_script(GmTriggersDialog *triggers, CustomArgType type, gpointer data, gpointer user_data) { GtkWidget *hbox; GtkWidget *entry; GtkEntryCompletion *entry_completion; GList *item; GmTriggerData *t = (GmTriggerData *)(user_data); switch (type) { case CUSTOM_ARG_CREATE: hbox = GTK_WIDGET(data); entry = gtk_entry_new(); entry_completion = gtk_entry_completion_new(); gtk_entry_completion_set_model(entry_completion, triggers->script_model); gtk_entry_completion_set_text_column(entry_completion, 0); gtk_entry_set_completion(GTK_ENTRY(entry), entry_completion); if (user_data) { gtk_entry_set_text(GTK_ENTRY(entry), t->data); } gtk_widget_show(entry); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); break; case CUSTOM_ARG_GET_DATA: item = (GList *)(data); return g_strdup(gtk_entry_get_text(GTK_ENTRY(item->data))); break; } return NULL; } #endif gboolean gm_triggers_dialog_idle_remove_item(GtkWidget *parent) { gtk_widget_destroy(parent); return FALSE; } void on_button_remove_clicked(GtkButton *button, GmTriggersDialog *triggers) { g_idle_add((GSourceFunc)(gm_triggers_dialog_idle_remove_item), gtk_widget_get_parent(GTK_WIDGET(button))); } void on_button_add_condition_clicked(GtkButton *button, GmTriggersDialog *triggers) { gm_triggers_dialog_new_condition(triggers); } void on_button_add_action_clicked(GtkButton *button, GmTriggersDialog *triggers) { gm_triggers_dialog_new_action(triggers); } ������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-triggers-dialog.h��������������������������������������������������0000644�0001750�0001750�00000000440�10410766737�021071� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_TRIGGERS_DIALOG__ #define __GM_TRIGGERS_DIALOG__ #include "gm-triggers.h" #include "gm-world.h" GmTrigger *gm_triggers_dialog_run(GmWorld *world, GmTrigger *trig); GmTrigger *gm_triggers_dialog_run_new(GmWorld *world, GmTrigger *trig); #endif /* __GM_TRIGGERS_DIALOG__ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-open-world-dialog.c������������������������������������������������0000644�0001750�0001750�00000007744�10413313554�021326� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <string.h> #include <gtk/gtk.h> #include <glade/glade.h> #include "gm-support.h" #include "gm-debug.h" #include "gm-app.h" #include "gm-open-world-dialog.h" #include "gm-pixbuf.h" #include "widgets/gm-worlds-view.h" typedef struct _GmOpenWorldDialog { GladeXML *xml; GtkWidget *dialog; } GmOpenWorldDialog; void on_gm_open_world_dialog_tree_view_worlds_row_activated( GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data); void on_gm_open_world_dialog_response(GtkDialog *dialog, gint response, gpointer user_data); static GmOpenWorldDialog *gm_open_world_dialog_instance; GtkWidget * gm_open_world_dialog_widget(gchar *name) { return glade_xml_get_widget(gm_open_world_dialog_instance->xml, name); } #define GM_OPEN_WORLD_DIALOG_XML PACKAGE_DATA_DIR "/" PACKAGE \ "/ui/gm-open-world.glade" GtkWidget * gm_open_world_dialog_create_tree_view(gchar *widget_name, gchar *string1, gchar *string2, gint int1, gint int2) { GtkWidget *tree_view = gm_worlds_view_new(); g_signal_connect(tree_view, "row-activated", G_CALLBACK(on_gm_open_world_dialog_tree_view_worlds_row_activated), NULL); gtk_widget_show(GTK_WIDGET(tree_view)); return GTK_WIDGET(tree_view); } void gm_open_world_dialog_run() { GladeXML *xml; if (gm_open_world_dialog_instance) { gtk_widget_show(gm_open_world_dialog_instance->dialog); gtk_window_present(GTK_WINDOW(gm_open_world_dialog_instance->dialog)); return; } xml = glade_xml_new(GM_OPEN_WORLD_DIALOG_XML, "gm_open_world_dialog", NULL); if (xml == NULL) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't find glade file %s!", GM_OPEN_WORLD_DIALOG_XML); return; } gm_open_world_dialog_instance = g_new0(GmOpenWorldDialog, 1); gm_open_world_dialog_instance->xml = xml; gm_open_world_dialog_instance->dialog = gm_open_world_dialog_widget("gm_open_world_dialog"); gtk_window_set_icon(GTK_WINDOW(gm_open_world_dialog_instance->dialog), gm_pixbuf_get("world.svg")); g_signal_connect(gm_open_world_dialog_instance->dialog, "response", G_CALLBACK(on_gm_open_world_dialog_response), NULL); gtk_widget_show(gm_open_world_dialog_instance->dialog); } static void gm_open_world_dialog_open_selected_worlds() { GtkTreeView *tree_view = GTK_TREE_VIEW( gm_open_world_dialog_widget("tree_view_worlds")); GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); GtkTreeSelection *selection = gtk_tree_view_get_selection(tree_view); GtkTreeIter iter; GList *paths = gtk_tree_selection_get_selected_rows(selection, &model); GList *node; GmWorld *world; if (paths) { for (node = paths; node; node = node->next) { gtk_tree_model_get_iter(model, &iter, node->data); gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &world, -1); if (world) { gm_world_load(world); } gtk_tree_path_free(node->data); } g_list_free(paths); } else { gm_error_dialog(_("You first need to select a world to connect to."), GTK_WINDOW(gm_open_world_dialog_instance->dialog)); } } // Callbacks void on_gm_open_world_dialog_response(GtkDialog *dialog, gint response, gpointer user_data) { if (response == GTK_RESPONSE_OK) { gm_open_world_dialog_open_selected_worlds(); } g_object_unref(gm_open_world_dialog_instance->xml); gtk_widget_destroy(gm_open_world_dialog_instance->dialog); g_free(gm_open_world_dialog_instance); gm_open_world_dialog_instance = NULL; } void on_gm_open_world_dialog_tree_view_worlds_row_activated( GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data) { GmWorld *world; GtkTreeIter iter; GtkTreeModel *model = gm_worlds_view_model(GM_WORLDS_VIEW(tree_view)); gtk_tree_model_get_iter(model, &iter, path); gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &world, -1); if (world) { gm_world_load(world); } gtk_dialog_response(GTK_DIALOG(gm_open_world_dialog_instance->dialog), GTK_RESPONSE_CLOSE); } ����������������������������gnoemoe-2.2.0/gnoemoe/dialogs/gm-open-world-dialog.h������������������������������������������������0000644�0001750�0001750�00000000211�10412335653�021314� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_OPEN_WORLD_DIALOG__ #define __GM_OPEN_WORLD_DIALOG__ void gm_open_world_dialog_run(); #endif /* __GM_OPEN_WORLD_DIALOG */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/��������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753113�014363� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/Makefile.classes����������������������������������������������������������0000644�0001750�0001750�00000001325�10410766736�017467� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ gnoemoe_SOURCES += \ $(mcpdir)/gm-mcp-negotiate.c $(mcpdir)/gm-mcp-negotiate.h \ $(mcpdir)/gm-mcp-awns-status.c $(mcpdir)/gm-mcp-awns-status.h \ $(mcpdir)/gm-mcp-vmoo-client.c $(mcpdir)/gm-mcp-vmoo-client.h \ $(mcpdir)/gm-mcp-awns-ping.c $(mcpdir)/gm-mcp-awns-ping.h \ $(mcpdir)/gm-mcp-icecrew-playerdb.c $(mcpdir)/gm-mcp-icecrew-playerdb.h \ $(mcpdir)/gm-mcp-icecrew-userlist.c $(mcpdir)/gm-mcp-icecrew-userlist.h \ $(mcpdir)/gm-mcp-icecrew-mcpreset.c $(mcpdir)/gm-mcp-icecrew-mcpreset.h \ $(mcpdir)/gm-mcp-icecrew-serverinfo.c $(mcpdir)/gm-mcp-icecrew-serverinfo.h \ $(mcpdir)/gm-mcp-vmoo-userlist.c $(mcpdir)/gm-mcp-vmoo-userlist.h \ $(mcpdir)/gm-mcp-mud-moo-simpleedit.c $(mcpdir)/gm-mcp-mud-moo-simpleedit.h �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/Makefile.include����������������������������������������������������������0000644�0001750�0001750�00000000675�10416430363�017452� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������mcpdir = mcp gnoemoe_SOURCES += \ $(mcpdir)/gm-mcp-classes.c $(mcpdir)/gm-mcp-classes.h \ $(mcpdir)/gm-mcp.c $(mcpdir)/gm-mcp.h \ $(mcpdir)/gm-mcp-session.c $(mcpdir)/gm-mcp-session.h \ $(mcpdir)/gm-mcp-package.c $(mcpdir)/gm-mcp-package.h \ $(mcpdir)/gm-iuserlist.c $(mcpdir)/gm-iuserlist.h \ $(mcpdir)/gm-mcp-userlist-view.c $(mcpdir)/gm-mcp-userlist-view.h \ $(mcpdir)/gm-cell-renderer-text.c $(mcpdir)/gm-cell-renderer-text.h �������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-classes.c����������������������������������������������������������0000644�0001750�0001750�00000002401�10414232053�017326� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib-object.h> #include "gm-mcp-negotiate.h" #include "gm-mcp-awns-status.h" #include "gm-mcp-vmoo-client.h" #include "gm-mcp-awns-ping.h" #include "gm-mcp-icecrew-playerdb.h" #include "gm-mcp-icecrew-userlist.h" #include "gm-mcp-icecrew-mcpreset.h" #include "gm-mcp-icecrew-serverinfo.h" #include "gm-mcp-vmoo-userlist.h" #include "gm-mcp-mud-moo-simpleedit.h" GList * gm_mcp_classes_initialize() { GList *result = NULL; result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_NEGOTIATE)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_AWNS_STATUS)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_VMOO_CLIENT)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_AWNS_PING)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_ICECREW_PLAYERDB)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_ICECREW_USERLIST)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_ICECREW_MCPRESET)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_ICECREW_SERVERINFO)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_VMOO_USERLIST)); result = g_list_append(result, g_type_class_ref(GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT)); return result; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-classes.h����������������������������������������������������������0000644�0001750�0001750�00000000044�10410766736�017354� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������GList *gm_mcp_classes_initialize(); ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp.c������������������������������������������������������������������0000644�0001750�0001750�00000012216�10414311465�015705� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <stdlib.h> #include <time.h> #include "gm-mcp.h" #include "gm-support.h" #include "gm-debug.h" #include "gm-string.h" gdouble gm_mcp_get_version(gdouble client_min, gdouble client_max, gdouble server_min, gdouble server_max) { if (client_max >= server_min && server_max >= client_min) { if (client_max < server_max) { return client_max; } else { return server_max; } } else { return 0.0; } } gchar const * gm_mcp_find_value(GList const *fields, gchar const *key) { GmKeyValuePair *tmp; while (fields) { tmp = (GmKeyValuePair *)(fields->data); if (strcasecmp(key, tmp->key) == 0) { return tmp->value; } fields = fields->next; } return NULL; } gchar * gm_mcp_escape_if_needed(gchar const *line) { GString *new_line; gchar const *ptr = line; gchar *result; if (*line == '\0') { return g_strdup("\"\""); } if (g_utf8_strchr(line, -1, ' ') || g_utf8_strchr(line, -1, '"') || g_utf8_strchr(line, -1, '\\')) { new_line = g_string_new("\""); while (*ptr != '\0') { if (*ptr == '"' || *ptr == '\\') { new_line = g_string_append_c(new_line, '\\'); } new_line = g_string_append_c(new_line, *ptr); ++ptr; } new_line = g_string_append_c(new_line, '"'); result = new_line->str; g_string_free(new_line, FALSE); return result; } else { return g_strdup(line); } } gchar * gm_mcp_un_escape(gchar *line) { gchar *ptri = line, *ptrj = line; gboolean shifted = FALSE; while (*ptri != '\0') { if (*ptri == '\\') { shifted = TRUE; ++ptri; } if (shifted) { *ptrj = *ptri; } ++ptrj; ++ptri; } *ptrj = '\0'; return line; } gchar const * gm_mcp_process_keyval(GList **info, gchar const *line) { gchar const *keystart; gchar const *valuestart; int keylen, valuelen; GmKeyValuePair *newKeyValue; if (*line != ' ' || line[1] == '\0' || line[1] == ' ') { return NULL; } keystart = ++line; gm_string_skip_till(&line, ": "); if (*line != ':') { return NULL; } keylen = line - keystart; line = g_utf8_next_char(line); if (line[1] == '\0' || *line != ' ') { return NULL; } line = g_utf8_next_char(line); if (*line == ' ') { return NULL; } valuestart = line; if (*line == '"') { ++valuestart; ++line; while (*line != '\0' && *line != '"') { if (*line == '\\') { ++line; } ++line; } valuelen = line - valuestart; if (*line != '"') { --valuelen; } else { ++line; } } else { gm_string_skip_nonspace(&line); valuelen = line - valuestart; } newKeyValue = g_new(GmKeyValuePair, 1); newKeyValue->key = g_strndup(keystart, keylen); newKeyValue->value = gm_mcp_un_escape(g_strndup(valuestart, valuelen)); *info = g_list_append(*info, newKeyValue); return line; } GList * gm_mcp_process_key_values(gchar const *line) { GList *result = NULL; while (line && *line != '\0') { line = gm_mcp_process_keyval(&result, line); } return result; } gboolean gm_mcp_parse_line(gchar *line, McpMessageInfo *info) { gchar *p = g_utf8_strchr(line, -1, ' '); if (!p || p == line) { return FALSE; } info->name = g_strndup(line, (p - line)); line = p + 1; // Now there should be a authentication key! p = g_utf8_strchr(line, -1, ' '); if (!p) { p = line + strlen(line); } info->authkey = g_strndup(line, (p - line)); // Now process the keyvals info->fields = gm_mcp_process_key_values(p); return TRUE; } gchar * gm_mcp_generate_key(gint len) { gchar *s = g_malloc(len + 1); gchar ref[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"; gint n = strlen(ref); gint i; srand((int) time(NULL)); for (i = 0; i < len; i++) { s[i] = ref[rand() % n]; } s[i] = 0; return s; } gchar * gm_mcp_generate_data_tag() { return gm_mcp_generate_key(10); } gchar * gm_mcp_generate_auth_key() { return gm_mcp_generate_key(6); } gchar const * gm_mcp_find_multiline_tag(GList const *fields) { GmKeyValuePair *data; gunichar last; while (fields) { data = (GmKeyValuePair *)(fields->data); last = g_utf8_get_char(g_utf8_prev_char(data->key + strlen(data->key))); if (last == '*') { return data->key; } fields = fields->next; } return NULL; } void gm_mcp_destroy_fields(GList *fields) { GmKeyValuePair *tmp; GList *elem = fields; while (elem) { tmp = (GmKeyValuePair *) (elem->data); g_free(tmp->key); g_free(tmp->value); g_free(elem->data); elem->data = NULL; elem = elem->next; } g_list_free(fields); } void gm_mcp_list_free(GList *list) { gm_g_list_free_simple(list); } GList * gm_mcp_parse_list(gchar const *s) { GList *result = NULL; gchar item_mem[strlen(s) + 1]; gchar *item; gunichar c, cn; gchar *next_char; while (*s != '\0') { gm_string_skip_space(&s); item = item_mem; *item = '\0'; while (*s != '\0') { c = g_utf8_get_char(s); next_char = g_utf8_next_char(s); cn = g_utf8_get_char(next_char); if (g_unichar_isspace(c)) { break; } if (c == '\\' && cn != '\0') { c = cn; next_char = g_utf8_next_char(next_char); } item += g_unichar_to_utf8(c, item); s = next_char; } *item = '\0'; result = g_list_append(result, g_strdup(item_mem)); } return result; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp.h������������������������������������������������������������������0000644�0001750�0001750�00000001612�10410766736�015723� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_H__ #define __GM_MCP_H__ #include <glib.h> #include "gm-mcp.h" #define MCP_MIN_VERSION 2.1 #define MCP_MAX_VERSION 2.1 typedef struct _McpMessageInfo { gchar *name; gchar *authkey; GList *fields; } McpMessageInfo; gdouble gm_mcp_get_version(gdouble client_min, gdouble client_max, gdouble server_min, gdouble server_max); gchar const *gm_mcp_find_value(GList const *fields, gchar const *key); gchar *gm_mcp_escape_if_needed(gchar const *line); gchar *gm_mcp_un_escape(gchar *line); GList *gm_mcp_process_key_values(gchar const *line); gboolean gm_mcp_parse_line(gchar *line, McpMessageInfo *info); gchar *gm_mcp_generate_data_tag(); gchar *gm_mcp_generate_auth_key(); gchar const *gm_mcp_find_multiline_tag(GList const *fields); void gm_mcp_destroy_fields(GList *fields); GList *gm_mcp_parse_list(gchar const *s); void gm_mcp_list_free(GList *list); #endif /* __GM_MCP_H__ */ ����������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-session.c����������������������������������������������������������0000644�0001750�0001750�00000033326�10416154766�017406� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib-object.h> #include <string.h> #include "gm-mcp-session.h" #include "gm-mcp-classes.h" #include "gm-mcp.h" #include "gm-world.h" #include "gm-support.h" #include "gm-debug.h" #include "gm-options.h" #include "gm-string.h" #define GM_MCP_SESSION_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_SESSION, GmMcpSessionPrivate)) struct _GmMcpSessionPrivate { GmWorld *world; gchar *authkey; gdouble version; GList *packages; GList *multiline; }; /* Signals */ enum { PACKAGE_CREATED, NUM_SIGNALS }; static guint gm_mcp_session_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmMcpSession, gm_mcp_session, G_TYPE_OBJECT) static void gm_mcp_session_finalize(GObject *object) { GmMcpSession *obj = GM_MCP_SESSION(object); gm_mcp_session_reset(obj); G_OBJECT_CLASS(gm_mcp_session_parent_class)->finalize(object); } static void gm_mcp_session_class_init(GmMcpSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_mcp_session_finalize; klass->available_packages = gm_mcp_classes_initialize(); gm_mcp_session_signals[PACKAGE_CREATED] = g_signal_new("package_created", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpSessionClass, package_created), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); g_type_class_add_private(object_class, sizeof(GmMcpSessionPrivate)); } static void gm_mcp_session_init(GmMcpSession *obj) { obj->priv = GM_MCP_SESSION_GET_PRIVATE(obj); obj->priv->packages = NULL; obj->priv->version = -1; obj->priv->authkey = NULL; obj->priv->multiline = NULL; } void gm_mcp_session_handle_open(GmMcpSession *session, gchar *line) { GList *fields = gm_mcp_process_key_values(line); GmMcpPackage *p; GmMcpPackageClass *pklass; gchar const *min_version = gm_mcp_find_value(fields, "version"); gchar const *max_version = gm_mcp_find_value(fields, "to"); //gchar *minc, *maxc; gdouble min_v, max_v, version; if (!(min_version && max_version)) { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOpen: invalid opening, " "min version or max_version not found!"); return; } //minc = gm_fix_decimal_point(g_strdup(min_version), strlen(min_version)); //maxc = gm_fix_decimal_point(g_strdup(max_version), strlen(max_version)); min_v = g_ascii_strtod(min_version, NULL); max_v = g_ascii_strtod(max_version, NULL); //g_free(minc); //g_free(maxc); gm_debug_msg(DEBUG_MCP, "MinMaxVersion: %fd %fd", min_v, max_v); version = gm_mcp_get_version(MCP_MIN_VERSION, MCP_MAX_VERSION, min_v, max_v); if (version > 0.0) { session->priv->authkey = gm_mcp_generate_auth_key(); session->priv->version = version; gm_mcp_session_send_simple(session, "mcp", "authentication-key", session->priv->authkey, "version", "2.1", "to", "2.1", NULL); pklass = gm_mcp_session_find_package_class("mcp-negotiate"); p = gm_mcp_session_create_package(session, pklass, pklass->max_version); } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOpen: mcp server version " "does not match client version!"); } } void gm_mcp_session_invoke_multiline_handle(GmMcpSession *session, gchar *data_tag, gchar *key, gchar *value) { GList *elem; GmMcpPackage *p; McpMultilineInfo *minfo; gboolean handle_all = FALSE; // Now find the data_tag and emit the handle_multiline for (elem = session->priv->multiline; elem; elem = elem->next) { minfo = (McpMultilineInfo *)(elem->data); if (strcmp(minfo->data_tag, data_tag) == 0) { p = minfo->package; if (gm_mcp_package_can_handle_multi(p)) { if (key) { if (!gm_mcp_package_handle_multi(p, data_tag, key, value, NULL)) { // Not handled a single value, store it for later minfo->data = g_list_append(minfo->data, g_strdup(value)); } } else { handle_all = gm_mcp_package_handle_multi(p, data_tag, NULL, NULL, minfo->data); } } if (!key) { // This is the end, remove the minfo g_free(minfo->data_tag); g_free(minfo->key); // Lines should only be freed when allValues is not handled! if (!handle_all) { gm_g_list_free_simple(minfo->data); } else { g_list_free(minfo->data); } session->priv->multiline = g_list_remove( session->priv->multiline, minfo); g_free(minfo); } return; } } } void gm_mcp_session_handle_multiline(GmMcpSession *session, gchar const *line) { gchar *data_tag, *key, *value; gchar const *key_start; gchar const *ptr = line; gm_string_skip_nonspace(&ptr); if (*ptr == '\0') { return; } data_tag = g_strndup(line, ptr - line); gm_string_skip_space(&ptr); key_start = ptr; gm_string_skip_nonspace(&ptr); if (*ptr == '\0') { return; } key = g_strndup(key_start, (ptr - key_start) - 1); value = g_strdup(ptr + 1); gm_mcp_session_invoke_multiline_handle(session, data_tag, key, value); g_free(data_tag); g_free(key); g_free(value); } void gm_mcp_session_handle_multiline_end(GmMcpSession *session, gchar *line) { gchar const *ptr = line; gchar *data_tag; gm_string_skip_nonspace(&ptr); data_tag = g_strndup(line, ptr - line); gm_mcp_session_invoke_multiline_handle(session, data_tag, NULL, NULL); g_free(data_tag); } /* Public */ GmMcpSession * gm_mcp_session_new(GObject *world) { GmMcpSession *obj = GM_MCP_SESSION(g_object_new(GM_TYPE_MCP_SESSION, NULL)); obj->priv->world = GM_WORLD(world); return obj; } void gm_mcp_session_reset(GmMcpSession *session) { GList *item, *l; McpMultilineInfo *minfo; GmMcpPackage *package; g_free(session->priv->authkey); session->priv->authkey = NULL; session->priv->version = -1; l = g_list_copy(session->priv->packages); for (item = l; item; item = item->next) { package = GM_MCP_PACKAGE(item->data); g_object_unref(package); session->priv->packages = g_list_remove(session->priv->packages, package); } g_list_free(l); g_list_free(session->priv->packages); session->priv->packages = NULL; for (item = session->priv->multiline; item; item = item->next) { minfo = (McpMultilineInfo *)(item->data); g_free(minfo->data_tag); g_free(minfo->key); gm_g_list_free_simple(minfo->data); g_free(minfo); } g_list_free(session->priv->multiline); session->priv->multiline = NULL; } gboolean gm_mcp_session_initialized(GmMcpSession *session) { return (session->priv->authkey != NULL); } GList const * gm_mcp_session_get_packages(GmMcpSession *session) { return session->priv->packages; } GmMcpPackageClass * gm_mcp_session_package_class_for_each(GmPackageClassFunc func, gpointer user_data) { GmMcpSessionClass *klass = g_type_class_peek(GM_TYPE_MCP_SESSION); GList *item; GmMcpPackageClass *package_klass; for (item = klass->available_packages; item; item = item->next) { package_klass = GM_MCP_PACKAGE_CLASS(item->data); if (func(package_klass, user_data)) { return package_klass; } } return NULL; } void gm_mcp_session_send_multiline(GmMcpSession *session, gchar const *data_tag, gchar const *key, GList const *lines) { gchar *msg = g_strconcat("#$#* ", data_tag, " ", key, ": ", NULL); gchar *msg_line = NULL; while (lines) { msg_line = g_strconcat(msg, (gchar *)(lines->data), NULL); gm_world_sendln_log(session->priv->world, msg_line, LOG_MCP_OUT); g_free(msg_line); lines = lines->next; } g_free(msg); msg_line = g_strconcat("#$#: ", data_tag, NULL); gm_world_sendln_log(session->priv->world, msg_line, LOG_MCP_OUT); g_free(msg_line); } void gm_mcp_session_send_simple(GmMcpSession *session, gchar const *pname, gchar const *first_key, ...) { GString *msg = NULL; va_list args; gchar const *key, *value; gchar *esvalue; msg = g_string_new("#$#"); msg = g_string_append(msg, pname); if (strcasecmp(pname, "mcp") != 0) { msg = g_string_append(msg, " "); msg = g_string_append(msg, session->priv->authkey); } msg = g_string_append(msg, " "); if (first_key != NULL) { va_start(args, first_key); key = first_key; while (key) { value = va_arg(args, gchar *); if (value) { msg = g_string_append(msg, key); msg = g_string_append(msg, ": "); esvalue = gm_mcp_escape_if_needed(value); msg = g_string_append(msg, esvalue); g_free(esvalue); msg = g_string_append(msg, " "); key = va_arg(args, gchar *); } else { key = NULL; } } va_end(args); } gm_world_sendln_log(session->priv->world, msg->str, LOG_MCP_OUT); g_string_free(msg, TRUE); } GmMcpPackage * gm_mcp_session_has_package_of_class(GmMcpSession *session, GmMcpPackageClass *klass) { GList *item; GmMcpPackage *package; GType klass_type = G_TYPE_FROM_CLASS(klass); for (item = session->priv->packages; item; item = item->next) { package = (GmMcpPackage *)(item->data); if (G_TYPE_FROM_CLASS(GM_MCP_PACKAGE_GET_CLASS(package)) == klass_type) { return package; } } return NULL; } GmMcpPackage * gm_mcp_session_find_package(GmMcpSession *session, gchar const *pname) { GList *elem; GmMcpPackage *package; GmMcpPackageClass *package_klass; for (elem = session->priv->packages; elem; elem = elem->next) { package = (GmMcpPackage *) (elem->data); package_klass = GM_MCP_PACKAGE_GET_CLASS(package); if (strncasecmp(pname, package_klass->name, strlen(package_klass->name)) == 0 && (strlen(pname) == strlen(package_klass->name) || pname[strlen(package_klass->name)] == '-')) { return package; } } return NULL; } GmMcpPackage * gm_mcp_session_create_package(GmMcpSession *session, GmMcpPackageClass *klass, gdouble version) { GmMcpPackage *package; if (!klass) { return NULL; } if (!gm_mcp_session_has_package_of_class(session, klass)) { package = g_object_new(G_TYPE_FROM_CLASS(G_OBJECT_CLASS(klass)), NULL); gm_mcp_package_set_session(package, G_OBJECT(session)); gm_mcp_package_set_version(package, version); session->priv->packages = g_list_append(session->priv->packages, package); g_signal_emit(session, gm_mcp_session_signals[PACKAGE_CREATED], 0, G_OBJECT(package)); return package; } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.CreatePackage: package (%s) is " "already registered for %s", klass->name, gm_options_get(gm_world_options(session->priv->world), "name")); return NULL; } } gboolean gm_mcp_session_find_package_class_real(GmMcpPackageClass *klass, gpointer user_data) { gchar *name = (gchar *)(user_data); return strcmp(name, klass->name) == 0; } GmMcpPackageClass * gm_mcp_session_find_package_class(gchar const *name) { return gm_mcp_session_package_class_for_each( &gm_mcp_session_find_package_class_real, (gpointer)(name)); } void gm_mcp_session_handle_oob(GmMcpSession *session, gchar *line) { McpMessageInfo info; GmMcpPackage *package; McpMultilineInfo *minfo; gchar *suffix; gchar const *value, *full; gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: %s", line); info.fields = NULL; info.authkey = NULL; info.name = NULL; if (strncmp(line, "mcp ", 4) == 0 && session->priv->version == -1) { gm_mcp_session_handle_open(session, line + 3); } else if (session->priv->version == -1) { // No session, drop gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: No session found for %s, " "ignoring out of bound command!", gm_options_get( gm_world_options(session->priv->world), "name")); } else if (strncmp(line, "* ", 2) == 0) { // Multiline gm_mcp_session_handle_multiline(session, line + 2); } else if (strncmp(line, ": ", 2) == 0) { // Multiline end gm_mcp_session_handle_multiline_end(session, line + 2); } else { if (gm_mcp_parse_line(line, &info)) { // Line is valid mcp if (strcmp(info.authkey, session->priv->authkey) == 0) { // Valid authentication if ((package = gm_mcp_session_find_package(session, info.name))) { // Find package if ((value = gm_mcp_find_multiline_tag(info.fields))) { // This is multiline start! if (gm_mcp_find_value(info.fields, "_data-tag")) { // This package requests a multiline opening! minfo = g_new(McpMultilineInfo, 1); minfo->key = g_strdup(value); minfo->data_tag = g_strdup( gm_mcp_find_value(info.fields, "_data-tag")); minfo->data = NULL; minfo->package = package; session->priv->multiline = g_list_append( session->priv->multiline, minfo); gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: multiline " "opening detected and stored " "(data_tag = %s, key = %s)", minfo->data_tag, minfo->key); } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: multiline " "opening detected, but no _data-tag specified, " "ignore message"); } } if (gm_mcp_package_can_handle_simple(package)) { full = gm_mcp_package_get_name(package); if (strlen(full) < strlen(info.name)) { suffix = info.name + (strlen(full) + 1); } else { suffix = NULL; } gm_mcp_package_handle_simple(package, suffix, info.fields); } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: can't handle simple message!"); } } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: unsupported package " "%s, ignore message", info.name); } } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: invalid authentication " "key %s instead of %s, ignore message", info.authkey, session->priv->authkey); } } else { gm_debug_msg(DEBUG_MCP, "GmMcpSession.HandleOob: invalid message " "(could not parse), ignore message"); } // Free the info if (info.authkey) { g_free(info.authkey); } if (info.name) { g_free(info.name); } if (info.fields) { gm_mcp_destroy_fields(info.fields); } } } GObject *gm_mcp_session_world(GmMcpSession *session) { return G_OBJECT(session->priv->world); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-session.h����������������������������������������������������������0000644�0001750�0001750�00000005436�10416154723�017405� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_SESSION_H__ #define __GM_MCP_SESSION_H__ #include <glib-object.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_SESSION (gm_mcp_session_get_type()) #define GM_MCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_SESSION, GmMcpSession)) #define GM_MCP_SESSION_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_SESSION, GmMcpSession const)) #define GM_MCP_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_SESSION, GmMcpSessionClass)) #define GM_IS_MCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_SESSION)) #define GM_IS_MCP_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_SESSION)) #define GM_MCP_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_SESSION, GmMcpSessionClass)) #define GM_MCP_SESSION_WORLD(obj) (GM_WORLD(gm_mcp_session_world(obj))) typedef struct _McpMultilineInfo { gchar *key; gchar *data_tag; GList *data; GmMcpPackage *package; } McpMultilineInfo; typedef gboolean (* GmPackageClassFunc) (GmMcpPackageClass *klass, gpointer user_data); /* Private structure type */ typedef struct _GmMcpSessionPrivate GmMcpSessionPrivate; /* * Main object structure */ typedef struct _GmMcpSession GmMcpSession; struct _GmMcpSession { GObject parent; /*< private > */ GmMcpSessionPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpSessionClass GmMcpSessionClass; struct _GmMcpSessionClass { GObjectClass parent_class; GList *available_packages; /* Signals */ void (* package_created) (GmMcpSession *obj, GObject *package); }; GType gm_mcp_session_get_type(void) G_GNUC_CONST; GmMcpSession *gm_mcp_session_new(GObject *world); GObject *gm_mcp_session_world(GmMcpSession *session); GList const *gm_mcp_session_get_packages(GmMcpSession *session); void gm_mcp_session_reset(GmMcpSession *session); gboolean gm_mcp_session_initialized(GmMcpSession *session); void gm_mcp_session_handle_oob(GmMcpSession *session, gchar *line); GmMcpPackage *gm_mcp_session_has_package_of_class(GmMcpSession *session, GmMcpPackageClass *klass); GmMcpPackageClass *gm_mcp_session_find_package_class(gchar const *name); GmMcpPackage *gm_mcp_session_find_package(GmMcpSession *session, gchar const *pname); GmMcpPackageClass *gm_mcp_session_package_class_for_each( GmPackageClassFunc func, gpointer user_data); GmMcpPackage *gm_mcp_session_create_package(GmMcpSession *session, GmMcpPackageClass *klass, gdouble version); void gm_mcp_session_send_simple(GmMcpSession *session, gchar const *pname, gchar const *first_key, ...); void gm_mcp_session_send_multiline(GmMcpSession *session, gchar const *data_tag, gchar const *key, GList const *lines); G_END_DECLS #endif /* __GM_MCP_SESSION_H__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-package.c����������������������������������������������������������0000644�0001750�0001750�00000007644�10410766736�017322� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib-object.h> #include "gm-mcp-session.h" #include "gm-mcp-package.h" #include "gm-support.h" #define GM_MCP_PACKAGE_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_PACKAGE, GmMcpPackagePrivate)) struct _GmMcpPackagePrivate { GmMcpSession *session; gdouble version; }; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_mcp_package_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmMcpPackage, gm_mcp_package, G_TYPE_OBJECT) void gm_mcp_package_set_session_real(GmMcpPackage *package, GObject *session); static void gm_mcp_package_finalize(GObject *object) { //GmMcpPackage *package = GM_MCP_PACKAGE(object); G_OBJECT_CLASS(gm_mcp_package_parent_class)->finalize(object); } static void gm_mcp_package_class_init(GmMcpPackageClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_mcp_package_finalize; /*gm_mcp_package_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpPackageClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ klass->handle_simple = NULL; klass->handle_multi = NULL; klass->create_view = NULL; klass->set_session = &gm_mcp_package_set_session_real; klass->depends = NULL; klass->overrides = NULL; klass->name = NULL; klass->min_version = 1.0; klass->max_version = 1.0; g_type_class_add_private(object_class, sizeof(GmMcpPackagePrivate)); } static void gm_mcp_package_init(GmMcpPackage *obj) { obj->priv = GM_MCP_PACKAGE_GET_PRIVATE(obj); obj->priv->session = NULL; obj->priv->version = 1.0; } void gm_mcp_package_set_session_real(GmMcpPackage *package, GObject *session) { package->priv->session = GM_MCP_SESSION(session); } /* Public */ GmMcpPackage * gm_mcp_package_new() { GmMcpPackage *obj = GM_MCP_PACKAGE(g_object_new(GM_TYPE_MCP_PACKAGE, NULL)); return obj; } void gm_mcp_package_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { return GM_MCP_PACKAGE_GET_CLASS(package)->handle_simple(package, suffix, fields); } gboolean gm_mcp_package_can_handle_simple(GmMcpPackage *package) { return (GM_MCP_PACKAGE_GET_CLASS(package)->handle_simple != NULL); } gboolean gm_mcp_package_handle_multi(GmMcpPackage *package, gchar *data_tag, gchar *key, gchar *value, GList *allValues) { return GM_MCP_PACKAGE_GET_CLASS(package)->handle_multi(package, data_tag, key, value, allValues); } gboolean gm_mcp_package_can_handle_multi(GmMcpPackage *package) { return (GM_MCP_PACKAGE_GET_CLASS(package)->handle_multi != NULL); } void gm_mcp_package_create_view(GmMcpPackage *package, GObject *parent) { if (gm_mcp_package_can_create_view(package)) { GM_MCP_PACKAGE_GET_CLASS(package)->create_view(package, parent); } } gboolean gm_mcp_package_can_create_view(GmMcpPackage *package) { return (GM_MCP_PACKAGE_GET_CLASS(package)->create_view != NULL); } void gm_mcp_package_set_session(GmMcpPackage *package, GObject *session) { GM_MCP_PACKAGE_GET_CLASS(package)->set_session(package, session); } GObject * gm_mcp_package_get_session(GmMcpPackage *package) { return G_OBJECT(package->priv->session); } void gm_mcp_package_set_version(GmMcpPackage *package, gdouble version) { package->priv->version = version; } gdouble gm_mcp_package_get_version(GmMcpPackage *package) { return package->priv->version; } gchar const * gm_mcp_package_get_name(GmMcpPackage *package) { return GM_MCP_PACKAGE_GET_CLASS(package)->name; } gchar ** gm_mcp_package_get_depends(GmMcpPackage *package) { return GM_MCP_PACKAGE_GET_CLASS(package)->depends; } gchar ** gm_mcp_package_get_overrides(GmMcpPackage *package) { return GM_MCP_PACKAGE_GET_CLASS(package)->overrides; } gdouble gm_mcp_package_get_min_version(GmMcpPackage *package) { return GM_MCP_PACKAGE_GET_CLASS(package)->min_version; } gdouble gm_mcp_package_get_max_version(GmMcpPackage *package) { return GM_MCP_PACKAGE_GET_CLASS(package)->max_version; } ��������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-package.h����������������������������������������������������������0000644�0001750�0001750�00000006014�10410766736�017315� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_PACKAGE_H__ #define __GM_MCP_PACKAGE_H__ #include <glib-object.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_PACKAGE (gm_mcp_package_get_type()) #define GM_MCP_PACKAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_PACKAGE, GmMcpPackage)) #define GM_MCP_PACKAGE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_PACKAGE, GmMcpPackage const)) #define GM_MCP_PACKAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_PACKAGE, GmMcpPackageClass)) #define GM_IS_MCP_PACKAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_PACKAGE)) #define GM_IS_MCP_PACKAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_PACKAGE)) #define GM_MCP_PACKAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_PACKAGE, GmMcpPackageClass)) #define GM_MCP_PACKAGE_SESSION(obj) (GM_MCP_SESSION( \ gm_mcp_package_get_session(GM_MCP_PACKAGE(obj)))) /* Private structure type */ typedef struct _GmMcpPackagePrivate GmMcpPackagePrivate; /* * Main object structure */ typedef struct _GmMcpPackage GmMcpPackage; struct _GmMcpPackage { GObject parent; /*< private > */ GmMcpPackagePrivate *priv; }; /* * Class definition */ typedef struct _GmMcpPackageClass GmMcpPackageClass; struct _GmMcpPackageClass { GObjectClass parent_class; gchar *name; gdouble min_version; gdouble max_version; gchar **depends; gchar **overrides; void (* handle_simple)(GmMcpPackage *package, gchar *suffix, GList *fields); gboolean (* handle_multi)(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values); void (* create_view)(GmMcpPackage *package, GObject *owner); void (* set_session)(GmMcpPackage *package, GObject *session); /* Signals void (* proto) (GmMcpPackage *obj); */ }; /* Public */ GType gm_mcp_package_get_type(void) G_GNUC_CONST; GmMcpPackage *gm_mcp_package_new(); void gm_mcp_package_set_session(GmMcpPackage *package, GObject *session); void gm_mcp_package_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); gboolean gm_mcp_package_can_handle_simple(GmMcpPackage *package); gboolean gm_mcp_package_handle_multi(GmMcpPackage *package, gchar *data_tag, gchar *key, gchar *value, GList *allValues); gboolean gm_mcp_package_can_handle_multi(GmMcpPackage *package); void gm_mcp_package_create_view(GmMcpPackage *package, GObject *parent); gboolean gm_mcp_package_can_create_view(GmMcpPackage *package); void gm_mcp_package_set_version(GmMcpPackage *package, gdouble version); gdouble gm_mcp_package_get_version(GmMcpPackage *package); GObject *gm_mcp_package_get_session(GmMcpPackage *package); /* Class getters */ gchar const *gm_mcp_package_get_name(GmMcpPackage *package); gchar **gm_mcp_package_get_depends(GmMcpPackage *package); gchar **gm_mcp_package_get_overrides(GmMcpPackage *package); gdouble gm_mcp_package_get_min_version(GmMcpPackage *package); gdouble gm_mcp_package_get_max_version(GmMcpPackage *package); G_END_DECLS #endif /* __GM_MCP_PACKAGE_H__ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-iuserlist.c������������������������������������������������������������0000644�0001750�0001750�00000007661�10413575435�017171� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "gm-iuserlist.h" #include "gm-marshal.h" static void gm_iuserlist_base_init(gpointer object_class); GType gm_iuserlist_get_type() { static GType iuserlist_type = 0; if (iuserlist_type == 0) { static const GTypeInfo iuserlist_info = { sizeof (GmIUserlistInterface), gm_iuserlist_base_init, /* base_init */ NULL, /* base_finalize */ NULL, /* class_init */ NULL, /* class_finalize */ NULL, /* class_data */ 0, 0, /* n_preallocs */ NULL /* instance_init */ }; iuserlist_type = g_type_register_static(G_TYPE_INTERFACE, "GmIUserlist", &iuserlist_info, 0); } return iuserlist_type; } static void gm_iuserlist_base_init(gpointer object_class) { static gboolean initialized = FALSE; if (!initialized) { g_signal_new("player_added", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmIUserlistInterface, player_added), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); g_signal_new("player_removed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmIUserlistInterface, player_removed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); g_signal_new("name_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmIUserlistInterface, name_changed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); g_signal_new("state_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmIUserlistInterface, state_changed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); g_signal_new("rank_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmIUserlistInterface, rank_changed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); initialized = TRUE; } } GList * gm_iuserlist_get_menu(GmIUserlist *self, gint id) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), NULL); iface = GM_IUSERLIST_GET_INTERFACE(self); if (iface->get_menu) { return (* iface->get_menu) (self, id); } else { return NULL; } } gboolean gm_iuserlist_supports_status(GmIUserlist *self) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), FALSE); iface = GM_IUSERLIST_GET_INTERFACE(self); return (iface->get_status != NULL); } gchar * gm_iuserlist_get_status(GmIUserlist *self, gint id) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), NULL); iface = GM_IUSERLIST_GET_INTERFACE(self); if (iface->get_status) { return (* iface->get_status) (self, id); } else { return NULL; } } gchar const * gm_iuserlist_get_name(GmIUserlist *self, gint id) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), NULL); iface = GM_IUSERLIST_GET_INTERFACE(self); if (iface->get_name) { return (* iface->get_name) (self, id); } else { return NULL; } } gchar const * gm_iuserlist_get_icon(GmIUserlist *self, gint id, gboolean use_state) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), NULL); iface = GM_IUSERLIST_GET_INTERFACE(self); if (iface->get_icon) { return (* iface->get_icon) (self, id, use_state); } else { return NULL; } } gint gm_iuserlist_get_rank_priority(GmIUserlist *self, gint id) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), 0); iface = GM_IUSERLIST_GET_INTERFACE(self); if (iface->get_rank_priority) { return (* iface->get_rank_priority) (self, id); } else { return 0; } } gint gm_iuserlist_get_state_priority(GmIUserlist *self, gint id) { GmIUserlistInterface *iface; g_return_val_if_fail(GM_IS_IUSERLIST(self), 0); iface = GM_IUSERLIST_GET_INTERFACE(self); if (iface->get_state_priority) { return (* iface->get_state_priority) (self, id); } else { return 0; } } �������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-iuserlist.h������������������������������������������������������������0000644�0001750�0001750�00000003604�10413575574�017173� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_IUSERLIST_H__ #define __GM_IUSERLIST_H__ #include <gtk/gtk.h> #include <glib.h> #define GM_TYPE_IUSERLIST (gm_iuserlist_get_type()) #define GM_IUSERLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_IUSERLIST, GmIUserlist)) #define GM_IUSERLIST_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST((obj), \ GM_TYPE_IUSERLIST, GmIUserlistInterface)) #define GM_IS_IUSERLIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_IUSERLIST)) #define GM_IUSERLIST_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE( \ (inst), GM_TYPE_IUSERLIST, GmIUserlistInterface)) typedef struct _GmIUserlist GmIUserlist; /* dummy object */ typedef struct _GmIUserlistInterface GmIUserlistInterface; struct _GmIUserlistInterface { GTypeInterface parent; GList *(* get_menu) (GmIUserlist *self, gint id); gchar *(* get_status) (GmIUserlist *self, gint id); gchar const *(* get_name) (GmIUserlist *self, gint id); gchar const *(* get_icon) (GmIUserlist *self, gint id, gboolean use_state); gint (* get_rank_priority) (GmIUserlist *self, gint id); gint (* get_state_priority) (GmIUserlist *self, gint id); /* Signals */ void (* player_added) (GmIUserlist *obj, gint id); void (* player_removed) (GmIUserlist *obj, gint id); void (* name_changed) (GmIUserlist *obj, gint id); void (* state_changed) (GmIUserlist *obj, gint id); void (* rank_changed) (GmIUserlist *obj, gint id); }; GType gm_iuserlist_get_type(); GList *gm_iuserlist_get_menu(GmIUserlist *self, gint id); gboolean gm_iuserlist_supports_status(GmIUserlist *self); gchar *gm_iuserlist_get_status(GmIUserlist *self, gint id); gchar const *gm_iuserlist_get_name(GmIUserlist *self, gint id); gchar const *gm_iuserlist_get_icon(GmIUserlist *self, gint id, gboolean use_state); gint gm_iuserlist_get_rank_priority(GmIUserlist *self, gint id); gint gm_iuserlist_get_state_priority(GmIUserlist *self, gint id); #endif /* __GM_IUSERLIST_H__ */ ����������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-userlist-view.c����������������������������������������������������0000644�0001750�0001750�00000060240�10507475764�020545� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <gtk/gtk.h> #include <string.h> #include "gm-mcp-package.h" #include "gm-mcp-userlist-view.h" #include "gm-cell-renderer-text.h" #include "gm-iuserlist.h" #include "widgets/gm-world-view.h" #include "gm-pixbuf.h" #include "gm-app.h" #include "gm-debug.h" #define GM_USERLIST_ICON_SIZE 22 typedef struct _GmMcpUserlistView { GmWorldView *view; GmMcpPackage *package; GtkTreeModel *model; GtkListStore *store; GtkTreeView *tree_view; GtkWidget *label; GtkScrolledWindow *scrolled_window; GtkWidget *popup_menu; GtkWidget *vbox; gboolean initializing; GmUserlistSortType sort_type; gboolean show_object; gboolean show_status; gboolean use_state_icon; gint num_players; gint num_active; GdkColor status_color; gdouble scroll_position; gulong idle_scroll; } GmMcpUserlistView; static void on_gm_mcp_userlist_view_weak_notify(gpointer data, GObject *obj); static void on_gm_mcp_userlist_view_player_added(GmMcpPackage *package, gint id, GmMcpUserlistView *view); static void on_gm_mcp_userlist_view_player_removed(GmMcpPackage *package, gint id, GmMcpUserlistView *view); static void on_gm_mcp_userlist_view_name_changed(GmMcpPackage *package, gint id, GmMcpUserlistView *view); static void on_gm_mcp_userlist_view_rank_changed(GmMcpPackage *package, gint id, GmMcpUserlistView *view); static void on_gm_mcp_userlist_view_state_changed(GmMcpPackage *package, gint id, GmMcpUserlistView *view); static gboolean on_gm_mcp_userlist_view_popup_menu(GtkWidget *widget, GmMcpUserlistView *view); static gboolean on_gm_mcp_userlist_view_button_press(GtkWidget *widget, GdkEventButton *event, GmMcpUserlistView *view); static void on_gm_mcp_userlist_view_option_changed(GmOptions *options, gchar const *key, GmMcpUserlistView *view); typedef struct _SortInfo { gchar *name; gint rank_priority; gint state_priority; } SortInfo; static gint gm_mcp_userlist_view_sort_state_rank_name(SortInfo *info1, SortInfo *info2); static gint gm_mcp_userlist_view_sort_rank_name(SortInfo *info1, SortInfo *info2); static gint gm_mcp_userlist_view_sort_state_name(SortInfo *info1, SortInfo *info2); static gint gm_mcp_userlist_view_sort_name(SortInfo *info1, SortInfo *info2); typedef gint (*GmUserlistCompareFunc) (SortInfo *info1, SortInfo *info2); static GmUserlistCompareFunc compare_functions[] = { gm_mcp_userlist_view_sort_state_rank_name, gm_mcp_userlist_view_sort_rank_name, gm_mcp_userlist_view_sort_state_name, gm_mcp_userlist_view_sort_name }; static gboolean gm_mcp_userlist_view_idle_scroll(GmMcpUserlistView *view) { GtkAdjustment *adj; view->idle_scroll = 0; adj = gtk_scrolled_window_get_vadjustment(view->scrolled_window); gtk_adjustment_set_value(adj, view->scroll_position); return FALSE; } static void gm_mcp_userlist_view_prepare_scroll(GmMcpUserlistView *view) { GtkAdjustment *adj; if (view->idle_scroll != 0) return; adj = gtk_scrolled_window_get_vadjustment(view->scrolled_window); view->scroll_position = gtk_adjustment_get_value(adj); view->idle_scroll = g_idle_add((GSourceFunc)(gm_mcp_userlist_view_idle_scroll), view); } static void on_rows_reordered(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer arg3, GmMcpUserlistView *view) { gm_mcp_userlist_view_prepare_scroll(view); } static void on_row_inserted(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, GmMcpUserlistView *view) { gm_mcp_userlist_view_prepare_scroll(view); } static void on_row_deleted(GtkTreeModel *model, GtkTreePath *path, GmMcpUserlistView *view) { gm_mcp_userlist_view_prepare_scroll(view); } GtkTreeModel * gm_mcp_userlist_view_model_create(GmMcpUserlistView *view) { GtkListStore *store = gtk_list_store_new(GM_USERLIST_N_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT); GtkTreeModel *model = gtk_tree_model_sort_new_with_model(GTK_TREE_MODEL( store)); view->store = store; view->model = model; g_signal_connect(model, "row-inserted", G_CALLBACK(on_row_inserted), view); g_signal_connect(model, "row-deleted", G_CALLBACK(on_row_deleted), view); g_signal_connect(model, "rows-reordered", G_CALLBACK(on_rows_reordered), view); return model; } gint gm_userlist_view_strcmp_safe(gchar const *str1, gchar const *str2) { gchar *u1, *u2; gint result; if (str1 == NULL || str2 == NULL) { if (str1 == NULL && str2 == NULL) { result = 0; } else if (str1 == NULL) { result = -1; } else { result = 1; } } else { u1 = g_utf8_casefold(str1, -1); u2 = g_utf8_casefold(str2, -1); result = g_utf8_collate(u1, u2); g_free(u1); g_free(u2); } return result; } static gint gm_mcp_userlist_view_sort_state_rank_name(SortInfo *info1, SortInfo *info2) { // Sort by 'icon' (so first by state, then if state is avail sort by rank // and then by name, otherwise sort by name) if (info1->state_priority == info2->state_priority) { // The same state, if state is 0 then go by rank and then name, // otherwise go by name if (info1->state_priority == 0) { if (info1->rank_priority == info2->rank_priority) { return gm_userlist_view_strcmp_safe(info1->name, info2->name); } else { return info1->rank_priority - info2->rank_priority; } } else { return gm_userlist_view_strcmp_safe(info1->name, info2->name); } } else { return info1->state_priority - info2->state_priority; } } static gint gm_mcp_userlist_view_sort_rank_name(SortInfo *info1, SortInfo *info2) { // First sort by rank, then sort by name if (info1->rank_priority == info2->rank_priority) { return gm_userlist_view_strcmp_safe(info1->name, info2->name); } else { return info1->rank_priority - info2->rank_priority; } } static gint gm_mcp_userlist_view_sort_state_name(SortInfo *info1, SortInfo *info2) { // First sort by state, then sort by name if (info1->state_priority == info2->state_priority) { return gm_userlist_view_strcmp_safe(info1->name, info2->name); } else { return info1->state_priority - info2->state_priority; } } static gint gm_mcp_userlist_view_sort_name(SortInfo *info1, SortInfo *info2) { // Sort by name return gm_userlist_view_strcmp_safe(info1->name, info2->name); } gint gm_mcp_userlist_view_sort_func(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, GmMcpUserlistView *view) { /* a < b => -1 a == b => 0 a > b => 1 */ SortInfo info1, info2; gint result; gtk_tree_model_get(model, a, GM_USERLIST_RANK_PRIORITY, &(info1.rank_priority), GM_USERLIST_STATE_PRIORITY, &(info1.state_priority), GM_USERLIST_NAME, &(info1.name), -1); gtk_tree_model_get(model, b, GM_USERLIST_RANK_PRIORITY, &(info2.rank_priority), GM_USERLIST_STATE_PRIORITY, &(info2.state_priority), GM_USERLIST_NAME, &(info2.name), -1); result = (* compare_functions[view->sort_type]) (&info1, &info2); g_free(info1.name); g_free(info2.name); return result; } static void gm_mcp_userlist_view_update_label(GmMcpUserlistView *view) { gchar *label; label = g_strdup_printf(_("Players: %d, active: %d"), view->num_players, view->num_active); gtk_label_set_label(GTK_LABEL(view->label), label); g_free(label); } GtkWidget * gm_mcp_userlist_view_create_label(GmMcpUserlistView *view) { view->label = gtk_label_new(NULL); gm_mcp_userlist_view_update_label(view); return view->label; } static void on_adj_changed(GtkAdjustment *adj, GmMcpUserlistView *view) { if (view->idle_scroll != 0 && gtk_adjustment_get_value(adj) != view->scroll_position) { gtk_adjustment_set_value(adj, view->scroll_position); g_source_remove(view->idle_scroll); view->idle_scroll = 0; } } GtkWidget * gm_mcp_userlist_view_create_userlist(GmMcpUserlistView *view) { GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL); GtkTreeModel *model = gm_mcp_userlist_view_model_create(view); GtkWidget *tree_view = gtk_tree_view_new_with_model(model); GtkCellRenderer *renderer; GtkTreeViewColumn *column; gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_window), GTK_SHADOW_IN); GtkAdjustment *adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window)); g_signal_connect(adj, "changed", G_CALLBACK(on_adj_changed), view); gtk_widget_set_size_request(scrolled_window, 150, -1); gtk_widget_set_size_request(tree_view, 150, -1); gtk_container_add(GTK_CONTAINER(scrolled_window), tree_view); renderer = gtk_cell_renderer_pixbuf_new(); column = gtk_tree_view_column_new_with_attributes(_("I"), renderer, "pixbuf", GM_USERLIST_ICON, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column); gtk_tree_view_column_set_min_width(column, 30); renderer = gm_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Name"), renderer, "name", GM_USERLIST_NAME, "status", GM_USERLIST_STATUS, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), column); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, GTK_SORT_ASCENDING); gtk_tree_sortable_set_default_sort_func(GTK_TREE_SORTABLE(model), (GtkTreeIterCompareFunc)gm_mcp_userlist_view_sort_func, view, NULL); GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(tree_view), GTK_CAN_FOCUS); gtk_widget_modify_base(GTK_WIDGET(tree_view), GTK_STATE_ACTIVE, &(GTK_WIDGET(tree_view)->style->base[GTK_STATE_SELECTED])); gtk_widget_modify_text(GTK_WIDGET(tree_view), GTK_STATE_ACTIVE, &(GTK_WIDGET(tree_view)->style->text[GTK_STATE_SELECTED])); gtk_tree_view_columns_autosize(GTK_TREE_VIEW(tree_view)); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_view), FALSE); view->tree_view = GTK_TREE_VIEW(tree_view); view->scrolled_window = GTK_SCROLLED_WINDOW(scrolled_window); return scrolled_window; } void gm_mcp_userlist_view_new(GmMcpPackage *package, GObject *parent) { GmMcpUserlistView *view; GtkPaned *paned; GtkWidget *vbox, *child; GmOptions *options; if (!GM_IS_WORLD_VIEW(parent)) { return; } view = g_new0(GmMcpUserlistView, 1); view->view = GM_WORLD_VIEW(parent); view->package = package; paned = GTK_PANED(gm_world_view_hpaned(view->view)); vbox = gtk_paned_get_child2(paned); if (vbox == NULL) { vbox = gtk_vbox_new(FALSE, 3); view->vbox = vbox; gtk_paned_pack2(paned, view->vbox, FALSE, FALSE); } else { vbox = view->vbox; } child = gm_mcp_userlist_view_create_userlist(view); gtk_box_pack_end(GTK_BOX(vbox), child, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(vbox), gm_mcp_userlist_view_create_label(view), FALSE, FALSE, 0); gtk_widget_show_all(vbox); g_signal_connect(view->tree_view, "popup-menu", G_CALLBACK(on_gm_mcp_userlist_view_popup_menu), view); g_signal_connect(view->tree_view, "button-press-event", G_CALLBACK(on_gm_mcp_userlist_view_button_press), view); g_signal_connect(package, "player_added", G_CALLBACK(on_gm_mcp_userlist_view_player_added), view); g_signal_connect(package, "player_removed", G_CALLBACK(on_gm_mcp_userlist_view_player_removed), view); g_signal_connect(package, "name_changed", G_CALLBACK(on_gm_mcp_userlist_view_name_changed), view); g_signal_connect(package, "state_changed", G_CALLBACK(on_gm_mcp_userlist_view_state_changed), view); g_signal_connect(package, "rank_changed", G_CALLBACK(on_gm_mcp_userlist_view_rank_changed), view); // Userlist options options = gm_app_options(gm_app_instance()); view->show_object = gm_options_get_int(options, "userlist_show_object_number"); view->sort_type = gm_options_get_int(options, "userlist_sort_type"); view->show_status = gm_options_get_int(options, "userlist_show_status"); view->use_state_icon = gm_options_get_int(options, "userlist_use_state_icon"); if (!gm_options_get_int(options, "show_userlist")) gtk_widget_hide(vbox); g_signal_connect(options, "option-changed", G_CALLBACK(on_gm_mcp_userlist_view_option_changed), view); g_object_weak_ref(G_OBJECT(package), on_gm_mcp_userlist_view_weak_notify, view); } static gchar * gm_mcp_userlist_view_get_status(GmMcpUserlistView *view, gint id) { if (!view->show_status || !gm_iuserlist_supports_status(GM_IUSERLIST(view->package))) { return NULL; } return gm_iuserlist_get_status(GM_IUSERLIST(view->package), id); } static gchar * gm_mcp_userlist_view_get_name(GmMcpUserlistView *view, gint id) { gchar const *name; name = gm_iuserlist_get_name(GM_IUSERLIST(view->package), id); if (view->show_object) { return g_strdup_printf("%s (#%d)", name, id); } else { return g_strdup(name); } } static void gm_mcp_userlist_view_update_sort_type(GmMcpUserlistView *view, GmUserlistSortType sort_type) { if (sort_type == view->sort_type) { return; } if (sort_type < 0 || sort_type >= GM_USERLIST_SORT_TYPE_NUM) { return; } view->sort_type = sort_type; gtk_tree_model_sort_reset_default_sort_func(GTK_TREE_MODEL_SORT( view->model)); gtk_tree_sortable_set_default_sort_func(GTK_TREE_SORTABLE(view->model), (GtkTreeIterCompareFunc)gm_mcp_userlist_view_sort_func, view, NULL); } static void gm_mcp_userlist_view_update_names(GmMcpUserlistView *view) { GtkTreeModel *model = GTK_TREE_MODEL(view->store); gint iterid; GtkTreeIter iter; gchar *name; gchar *status; if (gtk_tree_model_get_iter_first(model, &iter)) { do { gtk_tree_model_get(model, &iter, GM_USERLIST_ID, &iterid, -1); name = gm_mcp_userlist_view_get_name(view, iterid); status = gm_mcp_userlist_view_get_status(view, iterid); gtk_list_store_set(view->store, &iter, GM_USERLIST_NAME, name, GM_USERLIST_STATUS, status, -1); g_free(name); g_free(status); } while (gtk_tree_model_iter_next(model, &iter)); } } static void gm_mcp_userlist_view_update_show_object_number(GmMcpUserlistView *view, gboolean show_object) { if (view->show_object == show_object) { return; } view->show_object = show_object; gm_mcp_userlist_view_update_names(view); } static void gm_mcp_userlist_view_update_show_status(GmMcpUserlistView *view, gboolean show_status) { if (view->show_status == show_status) { return; } view->show_status = show_status; gm_mcp_userlist_view_update_names(view); } static void gm_mcp_userlist_view_update_use_state_icon(GmMcpUserlistView *view, gboolean use_state_icon) { gchar const *icon; GtkTreeModel *model = GTK_TREE_MODEL(view->store); GtkTreeIter iter; gint iterid; if (view->use_state_icon == use_state_icon) { return; } view->use_state_icon = use_state_icon; // Update icons for all players if (gtk_tree_model_get_iter_first(model, &iter)) { do { gtk_tree_model_get(model, &iter, GM_USERLIST_ID, &iterid, -1); icon = gm_iuserlist_get_icon(GM_IUSERLIST(view->package), iterid, use_state_icon); gtk_list_store_set(view->store, &iter, GM_USERLIST_ICON, gm_pixbuf_get_at_size(icon, GM_USERLIST_ICON_SIZE, GM_USERLIST_ICON_SIZE), -1); } while (gtk_tree_model_iter_next(model, &iter)); } } static gboolean gm_mcp_userlist_view_player_active(GmMcpUserlistView *view, GtkTreeIter *iter) { gint state; gtk_tree_model_get(GTK_TREE_MODEL(view->store), iter, GM_USERLIST_STATE_PRIORITY, &state, -1); return (state == 0); } /* Callbacks */ static void on_gm_mcp_userlist_view_weak_notify(gpointer data, GObject *obj) { GmMcpUserlistView *view = (GmMcpUserlistView *)(data); GtkWidget *vbox; GList *children; if (GM_IS_WORLD_VIEW(view->view)) { gtk_widget_destroy(GTK_WIDGET(view->scrolled_window)); gtk_widget_destroy(view->label); vbox = gtk_paned_get_child2(GTK_PANED(gm_world_view_hpaned( view->view))); if (vbox != NULL) { children = gtk_container_get_children(GTK_CONTAINER(vbox)); if (children == NULL) { gtk_widget_destroy(vbox); } g_list_free(children); } } g_object_unref(G_OBJECT(view->store)); g_object_unref(G_OBJECT(view->model)); g_signal_handlers_disconnect_by_func(gm_app_options(gm_app_instance()), G_CALLBACK(on_gm_mcp_userlist_view_option_changed), view); g_free(data); } static void on_gm_mcp_userlist_view_option_changed(GmOptions *options, gchar const *key, GmMcpUserlistView *view) { if (strcmp(key, "userlist_sort_type") == 0) { gm_mcp_userlist_view_update_sort_type(view, gm_options_get_int(options, "userlist_sort_type")); } else if (strcmp(key, "userlist_show_status") == 0) { gm_mcp_userlist_view_update_show_status(view, gm_options_get_int(options, "userlist_show_status")); } else if (strcmp(key, "userlist_use_state_icon") == 0) { gm_mcp_userlist_view_update_use_state_icon(view, gm_options_get_int(options, "userlist_use_state_icon")); } else if (strcmp(key, "userlist_show_object_number") == 0) { gm_mcp_userlist_view_update_show_object_number(view, gm_options_get_int(options, "userlist_show_object_number")); } else if (strcmp(key, "show_userlist") == 0) { if (gm_options_get_int(options, "show_userlist")) gtk_widget_show(view->vbox); else gtk_widget_hide(view->vbox); } } static gboolean gm_mcp_userlist_view_find(GmMcpUserlistView *view, gint id, GtkTreeIter *iter) { GtkTreeModel *model = GTK_TREE_MODEL(view->store); gint iterid; if (gtk_tree_model_get_iter_first(model, iter)) { do { gtk_tree_model_get(model, iter, GM_USERLIST_ID, &iterid, -1); if (iterid == id) { return TRUE; } } while (gtk_tree_model_iter_next(model, iter)); } return FALSE; } static void on_gm_mcp_userlist_view_player_added(GmMcpPackage *package, gint id, GmMcpUserlistView *view) { GtkTreeIter iter; gchar *name, *status; GmIUserlist *userlist = GM_IUSERLIST(package); if (gm_mcp_userlist_view_find(view, id, &iter)) { gm_debug_msg(DEBUG_MCP, "GmMcpUserlistView.OnPlayerAdded: player %d " "is already in the list, can't be added twice!", id); return; } name = gm_mcp_userlist_view_get_name(view, id); status = gm_mcp_userlist_view_get_status(view, id); gtk_list_store_insert_with_values(view->store, &iter, gtk_tree_model_iter_n_children(GTK_TREE_MODEL(view->store), NULL), GM_USERLIST_ID, id, GM_USERLIST_ICON, gm_pixbuf_get_at_size( gm_iuserlist_get_icon(userlist, id, view->use_state_icon), GM_USERLIST_ICON_SIZE, GM_USERLIST_ICON_SIZE), GM_USERLIST_NAME, name, GM_USERLIST_STATUS, status, GM_USERLIST_RANK_PRIORITY, gm_iuserlist_get_rank_priority(userlist, id), GM_USERLIST_STATE_PRIORITY, gm_iuserlist_get_state_priority(userlist, id), -1); g_free(name); g_free(status); view->num_players = view->num_players + 1; if (gm_mcp_userlist_view_player_active(view, &iter)) { view->num_active = view->num_active + 1; } gm_mcp_userlist_view_update_label(view); } static void on_gm_mcp_userlist_view_player_removed(GmMcpPackage *package, gint id, GmMcpUserlistView *view) { GtkTreeIter iter; if (!gm_mcp_userlist_view_find(view, id, &iter)) { gm_debug_msg(DEBUG_MCP, "GmMcpUserlistView.OnPlayerRemoved: player %d " "is not in the list, can't be removed!", id); return; } view->num_players = view->num_players - 1; if (gm_mcp_userlist_view_player_active(view, &iter)) { view->num_active = view->num_active - 1; } gm_mcp_userlist_view_update_label(view); gtk_list_store_remove(view->store, &iter); } static void on_gm_mcp_userlist_view_name_changed(GmMcpPackage *package, gint id, GmMcpUserlistView *view) { GtkTreeIter iter; gchar *name; if (!gm_mcp_userlist_view_find(view, id, &iter)) { gm_debug_msg(DEBUG_MCP, "GmMcpUserlistView.OnNameChanged: player %d " "is not in the list!", id); return; } name = gm_mcp_userlist_view_get_name(view, id); if (name != NULL) { gtk_list_store_set(view->store, &iter, GM_USERLIST_NAME, name, -1); g_free(name); } } static void on_gm_mcp_userlist_view_rank_changed(GmMcpPackage *package, gint id, GmMcpUserlistView *view) { GtkTreeIter iter; gchar const *icon; if (!gm_mcp_userlist_view_find(view, id, &iter)) { gm_debug_msg(DEBUG_MCP, "GmMcpUserlistView.OnRankChanged: player %d " "is not in the list!", id); return; } icon = gm_iuserlist_get_icon(GM_IUSERLIST(package), id, view->use_state_icon); gtk_list_store_set(view->store, &iter, GM_USERLIST_ICON, gm_pixbuf_get_at_size(icon, GM_USERLIST_ICON_SIZE, GM_USERLIST_ICON_SIZE), GM_USERLIST_RANK_PRIORITY, gm_iuserlist_get_rank_priority( GM_IUSERLIST(package), id), -1); } static void on_gm_mcp_userlist_view_state_changed(GmMcpPackage *package, gint id, GmMcpUserlistView *view) { GtkTreeIter iter; gchar *name, *status; gchar const *icon; gboolean active; if (!gm_mcp_userlist_view_find(view, id, &iter)) { gm_debug_msg(DEBUG_MCP, "GmMcpUserlistView.OnStateChanged: player %d " "is not in the list!", id); return; } active = gm_mcp_userlist_view_player_active(view, &iter); name = gm_mcp_userlist_view_get_name(view, id); status = gm_mcp_userlist_view_get_status(view, id); icon = gm_iuserlist_get_icon(GM_IUSERLIST(package), id, view->use_state_icon); gtk_list_store_set(view->store, &iter, GM_USERLIST_ICON, gm_pixbuf_get_at_size(icon, GM_USERLIST_ICON_SIZE, GM_USERLIST_ICON_SIZE), GM_USERLIST_NAME, name, GM_USERLIST_STATUS, status, GM_USERLIST_STATE_PRIORITY, gm_iuserlist_get_state_priority( GM_IUSERLIST(package), id), -1); g_free(name); g_free(status); if (gm_mcp_userlist_view_player_active(view, &iter) != active) { if (active) { // no longer active view->num_active = view->num_active - 1; } else { // now active view->num_active = view->num_active + 1; } } gm_mcp_userlist_view_update_label(view); } static void popup_menu_detach(GtkWidget *attach_widget, GtkMenu *menu) { GmMcpUserlistView *view = (GmMcpUserlistView *)g_object_get_data( G_OBJECT(menu), "McpUserlistView"); view->popup_menu = NULL; } static void on_gm_mcp_userlist_view_menuitem_activate(GtkMenuItem *item, GmMcpUserlistView *view) { gchar *action = (gchar *)g_object_get_data(G_OBJECT(item), "UserlistAction"); if (action) { gm_world_sendln(GM_MCP_SESSION_WORLD(GM_MCP_PACKAGE_SESSION( view->package)), action); } } static gboolean gm_mcp_userlist_view_do_popup(GmMcpUserlistView *view, GdkEventButton *event) { GList *menu; GList *item; GmKeyValuePair *pair; GtkWidget *menuitem; GtkTreeSelection *selection = gtk_tree_view_get_selection(view->tree_view); gint id; GtkTreeModel *model; GtkTreeIter iter; GtkTreePath *path; if (!event) { if (!gtk_tree_selection_get_selected(selection, &model, &iter)) { return FALSE; } gtk_tree_model_get(model, &iter, GM_USERLIST_ID, &id, -1); } else { if (!gtk_tree_view_get_path_at_pos(view->tree_view, event->x, event->y, &path, NULL, NULL, NULL)) { return FALSE; } else { gtk_tree_model_get_iter(view->model, &iter, path); gtk_tree_path_free(path); gtk_tree_model_get(view->model, &iter, GM_USERLIST_ID, &id, -1); } } menu = gm_iuserlist_get_menu(GM_IUSERLIST(view->package), id); if (view->popup_menu) { gtk_widget_destroy(view->popup_menu); } if (!menu) { return FALSE; } view->popup_menu = gtk_menu_new(); g_object_set_data(G_OBJECT(view->popup_menu), "McpUserlistView", view); gtk_menu_attach_to_widget(GTK_MENU(view->popup_menu), GTK_WIDGET(view->tree_view), popup_menu_detach); for (item = menu; item; item = item->next) { pair = (GmKeyValuePair *)(item->data); if (pair->key == NULL) { menuitem = gtk_separator_menu_item_new(); g_free(pair->value); } else { menuitem = gtk_menu_item_new_with_mnemonic(pair->key); g_object_set_data_full(G_OBJECT(menuitem), "UserlistAction", pair->value, g_free); g_signal_connect(menuitem, "activate", G_CALLBACK(on_gm_mcp_userlist_view_menuitem_activate), view); } gtk_widget_show(menuitem); gtk_menu_shell_append(GTK_MENU_SHELL(view->popup_menu), menuitem); g_free(pair->key); g_free(pair); } g_list_free(menu); if (!event) { gtk_menu_popup(GTK_MENU(view->popup_menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time()); } else { gtk_menu_popup(GTK_MENU(view->popup_menu), NULL, NULL, NULL, NULL, event->button, event->time); } return TRUE; } static gboolean on_gm_mcp_userlist_view_popup_menu(GtkWidget *widget, GmMcpUserlistView *view) { return gm_mcp_userlist_view_do_popup(view, NULL); } static gboolean on_gm_mcp_userlist_view_button_press(GtkWidget *widget, GdkEventButton *event, GmMcpUserlistView *view) { if (event->button == 3 && event->type == GDK_BUTTON_PRESS) { gm_mcp_userlist_view_do_popup(view, event); } return FALSE; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-userlist-view.h����������������������������������������������������0000644�0001750�0001750�00000001746�10416503144�020537� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_USERLIST_VIEW_H__ #define __GM_MCP_USERLIST_VIEW_H__ typedef enum _PlayerStateMask { USERLIST_STATE_IDLE = 1 << 0, USERLIST_STATE_BUSY = 1 << 1, USERLIST_STATE_AWAY = 1 << 2 } PlayerStateMask; typedef enum _UserlistEvent { USERLIST_EVENT_NONE = 0, USERLIST_EVENT_ONLINE = 1 << 0, USERLIST_EVENT_OFFLINE = 1 << 1, USERLIST_EVENT_IDLE_ON = 1 << 2, USERLIST_EVENT_IDLE_OFF = 1 << 3, USERLIST_EVENT_AWAY_ON = 1 << 4, USERLIST_EVENT_AWAY_OFF = 1 << 5 } UserlistEvent; typedef enum _GmUserlistSortType { GM_USERLIST_SORT_TYPE_STATE_RANK_NAME, GM_USERLIST_SORT_TYPE_RANK_NAME, GM_USERLIST_SORT_TYPE_STATE_NAME, GM_USERLIST_SORT_TYPE_NAME, GM_USERLIST_SORT_TYPE_NUM } GmUserlistSortType; enum { GM_USERLIST_ICON, GM_USERLIST_NAME, GM_USERLIST_STATUS, GM_USERLIST_ID, GM_USERLIST_RANK_PRIORITY, GM_USERLIST_STATE_PRIORITY, GM_USERLIST_N_COLUMNS }; void gm_mcp_userlist_view_new(GmMcpPackage *package, GObject *parent); #endif /* __GM_MCP_USERLIST_VIEW_H__ */ ��������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-cell-renderer-text.c���������������������������������������������������0000644�0001750�0001750�00000016133�10423074274�020641� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <config.h> #include <glib/gi18n.h> #include "gm-cell-renderer-text.h" #include "gm-debug.h" struct _GmCellRendererTextPrivate { gchar *name; gchar *status; gint width; }; #define GM_CELL_RENDERER_TEXT_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_CELL_RENDERER_TEXT, GmCellRendererTextPrivate)) static void gm_cell_renderer_text_class_init(GmCellRendererTextClass *klass); static void gm_cell_renderer_text_init(GmCellRendererText *cell); static void cell_renderer_text_finalize(GObject *object); static void cell_renderer_text_get_property(GObject *object, guint param_id, GValue *value, GParamSpec *pspec); static void cell_renderer_text_set_property(GObject *object, guint param_id, GValue const *value, GParamSpec *pspec); static void cell_renderer_text_get_size(GtkCellRenderer *cell, GtkWidget *widget, GdkRectangle *cell_area, gint *x_offset, gint *y_offset, gint *width, gint *height); static void cell_renderer_text_render(GtkCellRenderer *cell, GdkDrawable *window, GtkWidget *widget, GdkRectangle *background_area, GdkRectangle *cell_area, GdkRectangle *expose_area, GtkCellRendererState flags); static void cell_renderer_text_update_text(GmCellRendererText *cell, GtkWidget *widget, gint new_width, gboolean selected); /* Properties */ enum { PROP_0, PROP_NAME, PROP_STATUS }; G_DEFINE_TYPE (GmCellRendererText, gm_cell_renderer_text, GTK_TYPE_CELL_RENDERER_TEXT); static gpointer parent_class; static void gm_cell_renderer_text_class_init(GmCellRendererTextClass *klass) { GObjectClass *object_class; GtkCellRendererClass *cell_class; object_class = G_OBJECT_CLASS(klass); cell_class = GTK_CELL_RENDERER_CLASS(klass); parent_class = g_type_class_peek_parent(klass); object_class->finalize = cell_renderer_text_finalize; object_class->get_property = cell_renderer_text_get_property; object_class->set_property = cell_renderer_text_set_property; cell_class->get_size = cell_renderer_text_get_size; cell_class->render = cell_renderer_text_render; g_object_class_install_property(object_class, PROP_NAME, g_param_spec_string("name", "Name", "Player name", NULL, G_PARAM_READWRITE)); g_object_class_install_property(object_class, PROP_STATUS, g_param_spec_string ("status", "Status", "Contact status string", NULL, G_PARAM_READWRITE)); g_type_class_add_private(object_class, sizeof(GmCellRendererTextPrivate)); } static void gm_cell_renderer_text_init(GmCellRendererText *cell) { cell->priv = GM_CELL_RENDERER_TEXT_GET_PRIVATE(cell); //g_object_set(cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL); cell->priv->name = g_strdup(""); cell->priv->status = g_strdup(""); } static void cell_renderer_text_finalize(GObject *object) { GmCellRendererText *cell; cell = GM_CELL_RENDERER_TEXT(object); g_free(cell->priv->name); g_free(cell->priv->status); G_OBJECT_CLASS(parent_class)->finalize(object); } static void cell_renderer_text_get_property(GObject *object, guint param_id, GValue *value, GParamSpec *pspec) { GmCellRendererText *cell; cell = GM_CELL_RENDERER_TEXT(object); switch (param_id) { case PROP_NAME: g_value_set_string(value, cell->priv->name); break; case PROP_STATUS: g_value_set_string(value, cell->priv->status); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec); break; } } static void cell_renderer_text_set_property(GObject *object, guint param_id, GValue const *value, GParamSpec *pspec) { GmCellRendererText *cell; const gchar *str; cell = GM_CELL_RENDERER_TEXT(object); switch (param_id) { case PROP_NAME: g_free(cell->priv->name); str = g_value_get_string(value); cell->priv->name = g_strdup(str); if (cell->priv->name) { g_strdelimit(cell->priv->name, "\n\r\t", ' '); } break; case PROP_STATUS: g_free(cell->priv->status); str = g_value_get_string(value); cell->priv->status = g_strdup(str); if (cell->priv->status) { g_strdelimit(cell->priv->status, "\n\r\t", ' '); } break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec); break; } } static void cell_renderer_text_get_size(GtkCellRenderer *cell, GtkWidget *widget, GdkRectangle *cell_area, gint *x_offset, gint *y_offset, gint *width, gint *height) { GmCellRendererText *celltext; celltext = GM_CELL_RENDERER_TEXT(cell); cell_renderer_text_update_text(celltext, widget, 0, 0); GTK_CELL_RENDERER_CLASS(parent_class)->get_size(cell, widget, cell_area, x_offset, y_offset, width, height); } static void cell_renderer_text_render(GtkCellRenderer *cell, GdkWindow *window, GtkWidget *widget, GdkRectangle *background_area, GdkRectangle *cell_area, GdkRectangle *expose_area, GtkCellRendererState flags) { GmCellRendererText *celltext; celltext = GM_CELL_RENDERER_TEXT(cell); cell_renderer_text_update_text(celltext, widget, cell_area->width, (flags & GTK_CELL_RENDERER_SELECTED)); GTK_CELL_RENDERER_CLASS(parent_class)->render(cell, window, widget, background_area, cell_area, expose_area, flags); } static void cell_renderer_text_update_text(GmCellRendererText *cell, GtkWidget *widget, gint new_width, gboolean selected) { PangoAttrList *attr_list; PangoAttribute *attr_color, *attr_style, *attr_size; GtkStyle *style; GdkColor color; gchar *str; gboolean show_status = FALSE; gint font_size; cell->priv->width = new_width; attr_color = NULL; if (cell->priv->status && *(cell->priv->status) != '\0') { show_status = TRUE; } if (cell->priv->name != NULL) { str = g_strdup_printf("%s%s%s", cell->priv->name, !show_status ? "" : "\n", !show_status ? "" : cell->priv->status); } else { g_object_set(cell, "visible", TRUE, "weight", PANGO_WEIGHT_NORMAL, "text", "", NULL); return; } style = gtk_widget_get_style(widget); color = style->text_aa[GTK_STATE_NORMAL]; font_size = pango_font_description_get_size(style->font_desc) / PANGO_SCALE; attr_list = pango_attr_list_new(); attr_size = pango_attr_size_new(pango_font_description_get_size( style->font_desc) / (font_size >= 10 ? 1.2 : 1.0)); attr_size->start_index = 0; attr_size->end_index = strlen(cell->priv->name); pango_attr_list_insert(attr_list, attr_size); attr_style = pango_attr_style_new(PANGO_STYLE_ITALIC); attr_style->start_index = attr_size->end_index + 1; attr_style->end_index = -1; pango_attr_list_insert(attr_list, attr_style); if (!selected) { attr_color = pango_attr_foreground_new(color.red, color.green, color.blue); attr_color->start_index = attr_style->start_index; attr_color->end_index = -1; pango_attr_list_insert(attr_list, attr_color); } attr_size = pango_attr_size_new(pango_font_description_get_size( style->font_desc) / (font_size >= 10 ? 1.5 : 1.2)); attr_size->start_index = attr_style->start_index; attr_size->end_index = -1; pango_attr_list_insert(attr_list, attr_size); g_object_set(cell, "visible", TRUE, "weight", PANGO_WEIGHT_NORMAL, "text", str, "attributes", attr_list, NULL); pango_attr_list_unref(attr_list); g_free(str); } GtkCellRenderer * gm_cell_renderer_text_new (void) { return g_object_new(GM_TYPE_CELL_RENDERER_TEXT, NULL); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-cell-renderer-text.h���������������������������������������������������0000644�0001750�0001750�00000002633�10416430434�020642� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_CELL_RENDERER_TEXT_H__ #define __GM_CELL_RENDERER_TEXT_H__ #include <gtk/gtkcellrenderertext.h> /* * Type checking and casting macros */ #define GM_TYPE_CELL_RENDERER_TEXT (gm_cell_renderer_text_get_type()) #define GM_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_CELL_RENDERER_TEXT, GmCellRendererText)) #define GM_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_CELL_RENDERER_TEXT, GmCellRendererTextClass)) #define GM_IS_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_CELL_RENDERER_TEXT)) #define GM_IS_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GM_TYPE_CELL_RENDERER_TEXT)) #define GM_CELL_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_CELL_RENDERER_TEXT, GmCellRendererTextClass)) /* Private structure type */ typedef struct _GmCellRendererTextPrivate GmCellRendererTextPrivate; /* * Main object structure */ typedef struct _GmCellRendererText GmCellRendererText; struct _GmCellRendererText { GtkCellRendererText parent; GmCellRendererTextPrivate *priv; }; /* * Class definition */ typedef struct _GmCellRendererTextClass GmCellRendererTextClass; struct _GmCellRendererTextClass { GtkCellRendererTextClass parent_class; }; GType gm_cell_renderer_text_get_type (void) G_GNUC_CONST; GtkCellRenderer *gm_cell_renderer_text_new (void); #endif /* __GM_CELL_RENDERER_TEXT_H__ */ �����������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-negotiate.c��������������������������������������������������������0000644�0001750�0001750�00000014657�10414434731�017677� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib-object.h> #include <string.h> #include "gm-mcp-negotiate.h" #include "gm-mcp.h" #include "gm-mcp-session.h" #include "gm-mcp-package.h" #include "gm-debug.h" #include "gm-support.h" #define GM_MCP_NEGOTIATE_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_NEGOTIATE, GmMcpNegotiatePrivate)) typedef struct _PackageInfo { GmMcpPackageClass *klass; gdouble version; } PackageInfo; struct _GmMcpNegotiatePrivate { GList *packages; }; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_mcp_negotiate_signals[NUM_SIGNALS] = {0};*/ void gm_mcp_negotiate_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); G_DEFINE_TYPE(GmMcpNegotiate, gm_mcp_negotiate, GM_TYPE_MCP_PACKAGE); static void gm_mcp_negotiate_finalize(GObject *object) { //GmMcpNegotiate *obj = GM_MCP_NEGOTIATE(object); G_OBJECT_CLASS(gm_mcp_negotiate_parent_class)->finalize(object); } static void gm_mcp_negotiate_class_init(GmMcpNegotiateClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_negotiate_finalize; /*gm_mcp_negotiate_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpNegotiateClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ pklass->name = "mcp-negotiate"; pklass->handle_simple = &gm_mcp_negotiate_handle_simple; g_type_class_add_private(object_class, sizeof(GmMcpNegotiatePrivate)); } static void gm_mcp_negotiate_init(GmMcpNegotiate *obj) { obj->priv = GM_MCP_NEGOTIATE_GET_PRIVATE(obj); obj->priv->packages = NULL; } PackageInfo * gm_mcp_negotiate_find_package(GmMcpNegotiate *package, gchar *name) { PackageInfo *pinfo; GList *elem; for (elem = package->priv->packages; elem; elem = elem->next) { pinfo = (PackageInfo *)(elem->data); if (strcasecmp(pinfo->klass->name, name) == 0) { return pinfo; } } return NULL; } void gm_mcp_negotiate_fix_overrides(GmMcpNegotiate *package) { GList *l, *item; PackageInfo *pinfo, *pover; gchar **over; l = g_list_copy(package->priv->packages); for (item = l; item; item = item->next) { pinfo = (PackageInfo *)(item->data); over = pinfo->klass->overrides; if (!over) { continue; } while (*over) { if ((pover = gm_mcp_negotiate_find_package(package, *over))) { gm_debug_msg(DEBUG_MCP, "GmMcpNegotiate.FixOverrides: package %s " "overrides %s", pinfo->klass->name, pover->klass->name); package->priv->packages = g_list_remove( package->priv->packages, pover); } ++over; } } g_list_free(l); } void gm_mcp_negotiate_fix_depends(GmMcpNegotiate *package) { PackageInfo *pinfo, *pdep; GList *l, *item; gchar **dep; l = g_list_copy(package->priv->packages); for (item = l; item; item = item->next) { pinfo = (PackageInfo *)(item->data); dep = pinfo->klass->depends; if (!dep) { continue; } while (*dep) { if (!(pdep = gm_mcp_negotiate_find_package(package, *dep))) { gm_debug_msg(DEBUG_MCP, "GmMcpNegotiate.FixDepends: package %s depends " "on %s, but %s is not supported", pinfo->klass->name, *dep, *dep); // Remove package because depencendies are not met package->priv->packages = g_list_remove( package->priv->packages, pinfo); break; } else { // Make sure this dependency is loaded before the package package->priv->packages = g_list_remove( package->priv->packages, pdep); package->priv->packages = g_list_insert_before( package->priv->packages, g_list_find(package->priv->packages, pinfo), pdep); } ++dep; } } g_list_free(l); } /* Public */ GmMcpNegotiate * gm_mcp_negotiate_new() { GmMcpNegotiate *obj = GM_MCP_NEGOTIATE(g_object_new(GM_TYPE_MCP_NEGOTIATE, NULL)); return obj; } /* Private */ gboolean gm_mcp_negotiate_send_can(GmMcpPackageClass *klass, gpointer user_data) { GmMcpNegotiate *package = GM_MCP_NEGOTIATE(user_data); gchar min_v[16], max_v[16]; g_ascii_formatd(min_v, 16, "%.1f", klass->min_version); g_ascii_formatd(max_v, 16, "%.1f", klass->max_version); gm_mcp_session_send_simple(GM_MCP_PACKAGE_SESSION(package), "mcp-negotiate-can", "package", klass->name, "min-version", min_v, "max-version", max_v, NULL); return FALSE; } void gm_mcp_negotiate_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { gchar const *pname; GmMcpPackageClass *pklass; GmMcpNegotiate *negotiate = GM_MCP_NEGOTIATE(package); PackageInfo *pinfo; double version; gchar const *min_v, *max_v; gdouble cmin = 0.0, cmax = 0.0; GList *elem; if (strcasecmp(suffix, "can") == 0) { // Fields has package, min-version, max-version pname = gm_mcp_find_value(fields, "package"); pklass = gm_mcp_session_find_package_class(pname); if (pklass) { min_v = gm_mcp_find_value(fields, "min-version"); if (min_v) { cmin = g_ascii_strtod(min_v, NULL); } max_v = gm_mcp_find_value(fields, "max-version"); if (max_v) { cmax = g_ascii_strtod(max_v, NULL); } version = gm_mcp_get_version(pklass->min_version, pklass->max_version, cmin, cmax); if (version > 0.0) { gm_debug_msg(DEBUG_MCP, "GmMcpNegotiate.HandleSimple: %s, " "package is supported", pname); pinfo = g_new(PackageInfo, 1); pinfo->klass = pklass; pinfo->version = version; negotiate->priv->packages = g_list_append( negotiate->priv->packages, pinfo); } else { gm_debug_msg(DEBUG_MCP, "GmMcpNegotiate.HandleSimple: %s, package " "supported but wrong version!", pname); } } else { gm_debug_msg(DEBUG_MCP, "GmMcpNegotiate.HandleSimple: %s, package is not " "supported!", pname); } } else if (strcasecmp(suffix, "end") == 0) { gm_mcp_session_package_class_for_each(gm_mcp_negotiate_send_can, (gpointer)(negotiate)); gm_mcp_session_send_simple(GM_MCP_PACKAGE_SESSION(negotiate), "mcp-negotiate-end", NULL); gm_mcp_negotiate_fix_overrides(negotiate); gm_mcp_negotiate_fix_depends(negotiate); for (elem = negotiate->priv->packages; elem; elem = elem->next) { pinfo = (PackageInfo *)(elem->data); gm_mcp_session_create_package(GM_MCP_PACKAGE_SESSION(negotiate), pinfo->klass, pinfo->version); g_free(pinfo); } g_list_free(negotiate->priv->packages); negotiate->priv->packages = NULL; } } ���������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-negotiate.h��������������������������������������������������������0000644�0001750�0001750�00000003013�10410766736�017675� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_NEGOTIATE_H__ #define __GM_MCP_NEGOTIATE_H__ #include <glib-object.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_NEGOTIATE (gm_mcp_negotiate_get_type()) #define GM_MCP_NEGOTIATE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_NEGOTIATE, GmMcpNegotiate)) #define GM_MCP_NEGOTIATE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_NEGOTIATE, GmMcpNegotiate const)) #define GM_MCP_NEGOTIATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_NEGOTIATE, GmMcpNegotiateClass)) #define GM_IS_MCP_NEGOTIATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_NEGOTIATE)) #define GM_IS_MCP_NEGOTIATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_NEGOTIATE)) #define GM_MCP_NEGOTIATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_NEGOTIATE, GmMcpNegotiateClass)) /* Private structure type */ typedef struct _GmMcpNegotiatePrivate GmMcpNegotiatePrivate; /* * Main object structure */ typedef struct _GmMcpNegotiate GmMcpNegotiate; struct _GmMcpNegotiate { GmMcpPackage parent; /*< private > */ GmMcpNegotiatePrivate *priv; }; /* * Class definition */ typedef struct _GmMcpNegotiateClass GmMcpNegotiateClass; struct _GmMcpNegotiateClass { GmMcpPackageClass parent_class; /* Signals void (* proto) (GmMcpNegotiate *obj); */ }; GType gm_mcp_negotiate_get_type(void) G_GNUC_CONST; GmMcpNegotiate *gm_mcp_negotiate_new(void); G_END_DECLS #endif /* __GM_MCP_NEGOTIATE_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-awns-status.c������������������������������������������������������0000644�0001750�0001750�00000006261�10410766736�020212� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib-object.h> #include "gm-mcp-awns-status.h" #include "gm-mcp-session.h" #include "gm-mcp.h" #include "gm-world.h" #include "gm-debug.h" #include "widgets/gm-world-view.h" #define GM_MCP_AWNS_STATUS_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_AWNS_STATUS, GmMcpAwnsStatusPrivate)) struct _GmMcpAwnsStatusPrivate { gchar *status; }; typedef struct _GmMcpAwnsStatusView { GmMcpAwnsStatus *package; GmWorldView *view; } GmMcpAwnsStatusView; /* Signals */ enum { STATUS_CHANGED, NUM_SIGNALS }; static guint gm_mcp_awns_status_signals[NUM_SIGNALS] = {0}; void gm_mcp_awns_status_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); void gm_mcp_awns_status_create_view(GmMcpPackage *package, GObject *parent); G_DEFINE_TYPE(GmMcpAwnsStatus, gm_mcp_awns_status, GM_TYPE_MCP_PACKAGE) static void gm_mcp_awns_status_finalize(GObject *object) { //GmMcpAwnsStatus *obj = GM_MCP_AWNS_STATUS(object); G_OBJECT_CLASS(gm_mcp_awns_status_parent_class)->finalize(object); } static void gm_mcp_awns_status_class_init(GmMcpAwnsStatusClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_awns_status_finalize; gm_mcp_awns_status_signals[STATUS_CHANGED] = g_signal_new("status_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpAwnsStatusClass, status_changed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); pklass->name = "dns-com-awns-status"; pklass->handle_simple = &gm_mcp_awns_status_handle_simple; pklass->create_view = &gm_mcp_awns_status_create_view; g_type_class_add_private(object_class, sizeof(GmMcpAwnsStatusPrivate)); } static void gm_mcp_awns_status_init(GmMcpAwnsStatus *obj) { obj->priv = GM_MCP_AWNS_STATUS_GET_PRIVATE(obj); } /* Public */ GmMcpAwnsStatus * gm_mcp_awns_status_new() { GmMcpAwnsStatus *obj = GM_MCP_AWNS_STATUS(g_object_new( GM_TYPE_MCP_AWNS_STATUS, NULL)); return obj; } /* Private */ void gm_mcp_awns_status_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { gchar const *text = gm_mcp_find_value(fields, "text"); gm_debug_msg(DEBUG_MCP, "GmMcpAwnsStatus.HandleSimple: set status %s", text); g_signal_emit(package, gm_mcp_awns_status_signals[STATUS_CHANGED], 0, text); } /* GmMcpAwnsStatusView */ void on_gm_mcp_awns_status_view_status_changed(GmMcpAwnsStatus *package, gchar const *status, GmMcpAwnsStatusView *view) { gm_world_view_update_status(view->view, status); } void on_gm_mcp_awns_status_view_weak_notify(gpointer data, GObject *obj) { g_free(data); } void gm_mcp_awns_status_create_view(GmMcpPackage *package, GObject *parent) { GmMcpAwnsStatusView *status_view; if (GM_IS_WORLD_VIEW(parent)) { status_view = g_new0(GmMcpAwnsStatusView, 1); status_view->package = GM_MCP_AWNS_STATUS(package); status_view->view = GM_WORLD_VIEW(parent); g_signal_connect(package, "status_changed", G_CALLBACK(on_gm_mcp_awns_status_view_status_changed), status_view); g_object_weak_ref(G_OBJECT(package), on_gm_mcp_awns_status_view_weak_notify, status_view); } } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-awns-status.h������������������������������������������������������0000644�0001750�0001750�00000003143�10410766736�020213� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_AWNS_STATUS_H__ #define __GM_MCP_AWNS_STATUS_H__ #include <glib-object.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_AWNS_STATUS (gm_mcp_awns_status_get_type()) #define GM_MCP_AWNS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_AWNS_STATUS, GmMcpAwnsStatus)) #define GM_MCP_AWNS_STATUS_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_AWNS_STATUS, GmMcpAwnsStatus const)) #define GM_MCP_AWNS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_AWNS_STATUS, GmMcpAwnsStatusClass)) #define GM_IS_MCP_AWNS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_AWNS_STATUS)) #define GM_IS_MCP_AWNS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_AWNS_STATUS)) #define GM_MCP_AWNS_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_AWNS_STATUS, GmMcpAwnsStatusClass)) /* Private structure type */ typedef struct _GmMcpAwnsStatusPrivate GmMcpAwnsStatusPrivate; /* * Main object structure */ typedef struct _GmMcpAwnsStatus GmMcpAwnsStatus; struct _GmMcpAwnsStatus { GmMcpPackage parent; /*< private > */ GmMcpAwnsStatusPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpAwnsStatusClass GmMcpAwnsStatusClass; struct _GmMcpAwnsStatusClass { GmMcpPackageClass parent_class; /* Signals */ void (* status_changed) (GmMcpAwnsStatus *obj, gchar const *status); }; GType gm_mcp_awns_status_get_type(void) G_GNUC_CONST; GmMcpAwnsStatus *gm_mcp_awns_status_new(void); G_END_DECLS #endif /* __GM_MCP_AWNS_STATUS_H__ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-vmoo-client.c������������������������������������������������������0000644�0001750�0001750�00000014074�10422704206�020141� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include "gm-mcp-vmoo-client.h" #include "gm-mcp-session.h" #include "widgets/gm-world-view.h" #include "widgets/gm-world-text-view.h" #include "gm-string.h" #define GM_MCP_VMOO_CLIENT_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_VMOO_CLIENT, GmMcpVmooClientPrivate)) /*struct _GmMcpVmooClientPrivate { };*/ typedef struct _GmMcpVmooClientView { GmMcpVmooClient *package; GmWorldTextView *view; guint width; guint height; guint margin_width; guint margin_height; guint timeout; } GmMcpVmooClientView; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_mcp_vmoo_client_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmMcpVmooClient, gm_mcp_vmoo_client, GM_TYPE_MCP_PACKAGE) void gm_mcp_vmoo_client_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); void gm_mcp_vmoo_client_create_view(GmMcpPackage *package, GObject *parent); void gm_mcp_vmoo_client_set_session(GmMcpPackage *package, GObject *session); static void gm_mcp_vmoo_client_finalize(GObject *object) { //GmMcpVmooClient *obj = GM_MCP_VMOO_CLIENT(object); G_OBJECT_CLASS(gm_mcp_vmoo_client_parent_class)->finalize(object); } static void gm_mcp_vmoo_client_class_init(GmMcpVmooClientClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_vmoo_client_finalize; /*gm_mcp_vmoo_client_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpVmooClientClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ pklass->name = "dns-com-vmoo-client"; pklass->set_session = gm_mcp_vmoo_client_set_session; pklass->handle_simple = gm_mcp_vmoo_client_handle_simple; pklass->create_view = gm_mcp_vmoo_client_create_view; //g_type_class_add_private(object_class, sizeof(GmMcpVmooClientPrivate)); } static void gm_mcp_vmoo_client_init(GmMcpVmooClient *obj) { //obj->priv = GM_MCP_VMOO_CLIENT_GET_PRIVATE(obj); } GmMcpVmooClient * gm_mcp_vmoo_client_new() { GmMcpVmooClient *obj = GM_MCP_VMOO_CLIENT(g_object_new(GM_TYPE_MCP_VMOO_CLIENT, NULL)); return obj; } void gm_mcp_vmoo_client_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { if (strcmp(suffix, "disconnect") == 0) { gm_world_prepare_disconnect(GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(package))); } } void gm_mcp_vmoo_client_set_session(GmMcpPackage *package, GObject *session) { GmMcpPackageClass *parent_class = g_type_class_peek_parent( GM_MCP_VMOO_CLIENT_GET_CLASS(package)); gchar *iversion; parent_class->set_session(package, session); iversion = gm_string_remove_char(g_strdup(VERSION), '.'); gm_mcp_session_send_simple(GM_MCP_SESSION(session), "dns-com-vmoo-client-info", "name", "GnoeMoe", "text-version", VERSION, "internal-version", iversion, "reg-id", "0", "flags", "", NULL); g_free(iversion); } /* GmMcpVmooClientView */ void gm_mcp_vmoo_client_view_update_metrics(GmMcpVmooClientView *view) { guint width, height, cwidth, cheight; gchar *w, *h; GtkAllocation *allocation = &(GTK_WIDGET(view->view)->allocation); width = (allocation->width - view->margin_width); height = (allocation->height - view->margin_width); gm_world_text_view_get_metrics(view->view, &cwidth, &cheight); if ((width % cwidth) != 0) { width = (width / cwidth); } else { width = (width / cwidth) - 1; } if ((height % cheight) != 0) { height = (height / cheight); } else { height = (height / cheight) - 1; } if (view->width != width || view->height != height) { w = g_strdup_printf("%d", width); h = g_strdup_printf("%d", height); gm_mcp_session_send_simple(GM_MCP_PACKAGE_SESSION(view->package), "dns-com-vmoo-client-screensize", "cols", w, "rows", h, NULL); g_free(w); g_free(h); view->width = width; view->height = height; } } gboolean gm_mcp_vmoo_client_timeout_update(GmMcpVmooClientView *view) { view->timeout = 0; gm_mcp_vmoo_client_view_update_metrics(view); return FALSE; } void gm_mcp_vmoo_client_install_timeout(GmMcpVmooClientView *view) { if (view->timeout) { g_source_remove(view->timeout); } view->timeout = g_timeout_add(500, (GSourceFunc)(gm_mcp_vmoo_client_timeout_update), view); } void on_gm_mcp_vmoo_client_text_view_size_allocate(GtkWidget *widget, GtkAllocation *allocation, GmMcpVmooClientView *view) { gm_mcp_vmoo_client_install_timeout(view); } void on_gm_mcp_vmoo_client_character_size_changed(GmWorldTextView *v, guint width, guint height, GmMcpVmooClientView *view) { gm_mcp_vmoo_client_install_timeout(view); } void on_gm_mcp_vmoo_client_view_weak_notify(gpointer data, GObject *obj) { GmMcpVmooClientView *view = (GmMcpVmooClientView *)(data); g_signal_handlers_disconnect_by_func(view->view, on_gm_mcp_vmoo_client_text_view_size_allocate, view); g_signal_handlers_disconnect_by_func(view->view, on_gm_mcp_vmoo_client_character_size_changed, view); g_free(data); } void gm_mcp_vmoo_client_create_view(GmMcpPackage *package, GObject *parent) { GmMcpVmooClientView *client_view; if (!GM_IS_WORLD_VIEW(parent)) { return; } client_view = g_new0(GmMcpVmooClientView, 1); client_view->package = GM_MCP_VMOO_CLIENT(package); client_view->view = gm_world_view_text_view(GM_WORLD_VIEW(parent)); client_view->width = 0; client_view->height = 0; client_view->margin_width = gtk_text_view_get_left_margin( GTK_TEXT_VIEW(client_view->view)) + gtk_text_view_get_right_margin( GTK_TEXT_VIEW(client_view->view)); client_view->margin_height = gtk_text_view_get_pixels_above_lines( GTK_TEXT_VIEW(client_view->view)) + gtk_text_view_get_pixels_below_lines( GTK_TEXT_VIEW(client_view->view)); g_signal_connect(client_view->view, "size-allocate", G_CALLBACK(on_gm_mcp_vmoo_client_text_view_size_allocate), client_view); g_signal_connect(client_view->view, "character_size_changed", G_CALLBACK(on_gm_mcp_vmoo_client_character_size_changed), client_view); g_object_weak_ref(G_OBJECT(package), on_gm_mcp_vmoo_client_view_weak_notify, client_view); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-vmoo-client.h������������������������������������������������������0000644�0001750�0001750�00000003134�10410766736�020156� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_VMOO_CLIENT_H__ #define __GM_MCP_VMOO_CLIENT_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_VMOO_CLIENT (gm_mcp_vmoo_client_get_type()) #define GM_MCP_VMOO_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_VMOO_CLIENT, GmMcpVmooClient)) #define GM_MCP_VMOO_CLIENT_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_VMOO_CLIENT, GmMcpVmooClient const)) #define GM_MCP_VMOO_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_VMOO_CLIENT, GmMcpVmooClientClass)) #define GM_IS_MCP_VMOO_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_VMOO_CLIENT)) #define GM_IS_MCP_VMOO_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_VMOO_CLIENT)) #define GM_MCP_VMOO_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_VMOO_CLIENT, GmMcpVmooClientClass)) /* Private structure type */ typedef struct _GmMcpVmooClientPrivate GmMcpVmooClientPrivate; /* * Main object structure */ typedef struct _GmMcpVmooClient GmMcpVmooClient; struct _GmMcpVmooClient { GmMcpPackage parent; /*< private > */ //GmMcpVmooClientPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpVmooClientClass GmMcpVmooClientClass; struct _GmMcpVmooClientClass { GmMcpPackageClass parent_class; /* Signals void (* proto) (GmMcpVmooClient *obj); */ }; GType gm_mcp_vmoo_client_get_type(void) G_GNUC_CONST; GmMcpVmooClient *gm_mcp_vmoo_client_new(void); G_END_DECLS #endif /* __GM_MCP_VMOO_CLIENT_H__ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-awns-ping.c��������������������������������������������������������0000644�0001750�0001750�00000003573�10410766736�017627� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "gm-mcp-awns-ping.h" #include "gm-mcp.h" #include "gm-mcp-session.h" #define GM_MCP_AWNS_PING_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_AWNS_PING, GmMcpAwnsPingPrivate)) /*struct _GmMcpAwnsPingPrivate { };*/ /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_mcp_awns_ping_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmMcpAwnsPing, gm_mcp_awns_ping, GM_TYPE_MCP_PACKAGE) void gm_mcp_awns_ping_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); static void gm_mcp_awns_ping_finalize(GObject *object) { //GmMcpAwnsPing *obj = GM_MCP_AWNS_PING(object); G_OBJECT_CLASS(gm_mcp_awns_ping_parent_class)->finalize(object); } static void gm_mcp_awns_ping_class_init(GmMcpAwnsPingClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_awns_ping_finalize; /*gm_mcp_awns_ping_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpAwnsPingClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ pklass->name = "dns-com-awns-ping"; pklass->handle_simple = &gm_mcp_awns_ping_handle_simple; //g_type_class_add_private(object_class, sizeof(GmMcpAwnsPingPrivate)); } static void gm_mcp_awns_ping_init(GmMcpAwnsPing *obj) { //obj->priv = GM_MCP_AWNS_PING_GET_PRIVATE(obj); } GmMcpAwnsPing * gm_mcp_awns_ping_new() { GmMcpAwnsPing *obj = GM_MCP_AWNS_PING(g_object_new(GM_TYPE_MCP_AWNS_PING, NULL)); return obj; } void gm_mcp_awns_ping_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { gchar const *id; if (!suffix) { if ((id = gm_mcp_find_value(fields, "id"))) { gm_mcp_session_send_simple(GM_MCP_PACKAGE_SESSION(package), "dns-com-awns-ping-reply", "id", id, NULL); } } } �������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-awns-ping.h��������������������������������������������������������0000644�0001750�0001750�00000003026�10410766736�017625� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_AWNS_PING_H__ #define __GM_MCP_AWNS_PING_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_AWNS_PING (gm_mcp_awns_ping_get_type()) #define GM_MCP_AWNS_PING(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_AWNS_PING, GmMcpAwnsPing)) #define GM_MCP_AWNS_PING_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_AWNS_PING, GmMcpAwnsPing const)) #define GM_MCP_AWNS_PING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_AWNS_PING, GmMcpAwnsPingClass)) #define GM_IS_MCP_AWNS_PING(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_AWNS_PING)) #define GM_IS_MCP_AWNS_PING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_AWNS_PING)) #define GM_MCP_AWNS_PING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_AWNS_PING, GmMcpAwnsPingClass)) /* Private structure type */ typedef struct _GmMcpAwnsPingPrivate GmMcpAwnsPingPrivate; /* * Main object structure */ typedef struct _GmMcpAwnsPing GmMcpAwnsPing; struct _GmMcpAwnsPing { GmMcpPackage parent; /*< private > */ GmMcpAwnsPingPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpAwnsPingClass GmMcpAwnsPingClass; struct _GmMcpAwnsPingClass { GmMcpPackageClass parent_class; /* Signals void (* proto) (GmMcpAwnsPing *obj); */ }; GType gm_mcp_awns_ping_get_type(void) G_GNUC_CONST; GmMcpAwnsPing *gm_mcp_awns_ping_new(void); G_END_DECLS #endif /* __GM_MCP_AWNS_PING_H__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-playerdb.c�������������������������������������������������0000644�0001750�0001750�00000023134�10416450065�021127� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <stdlib.h> #include "gm-mcp-icecrew-playerdb.h" #include "gm-mcp.h" #include "gm-marshal.h" #include "gm-debug.h" #include "gm-support.h" #include "gm-string.h" #define GM_MCP_ICECREW_PLAYERDB_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_ICECREW_PLAYERDB, GmMcpIcecrewPlayerdbPrivate)) struct _GmMcpIcecrewPlayerdbPrivate { gint self; GList *db; GList *last_init_keys; }; /* Signals */ enum { ADD, SET, DELETE, NUM_SIGNALS }; static guint gm_mcp_icecrew_playerdb_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmMcpIcecrewPlayerdb, gm_mcp_icecrew_playerdb, GM_TYPE_MCP_PACKAGE) void gm_mcp_icecrew_playerdb_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); gboolean gm_mcp_icecrew_playerdb_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values); static void gm_mcp_icecrew_playerdb_finalize(GObject *object) { GmMcpIcecrewPlayerdb *obj = GM_MCP_ICECREW_PLAYERDB(object); GmPlayerdbPlayerInfo *ppi; GList *f; for (f = obj->priv->db; f; f = f->next) { ppi = (GmPlayerdbPlayerInfo *)(f->data); g_hash_table_destroy(ppi->values); g_free(ppi); } g_list_free(obj->priv->db); gm_mcp_list_free(obj->priv->last_init_keys); G_OBJECT_CLASS(gm_mcp_icecrew_playerdb_parent_class)->finalize(object); } static void gm_mcp_icecrew_playerdb_class_init(GmMcpIcecrewPlayerdbClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_icecrew_playerdb_finalize; gm_mcp_icecrew_playerdb_signals[ADD] = g_signal_new("add", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpIcecrewPlayerdbClass, add), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); gm_mcp_icecrew_playerdb_signals[SET] = g_signal_new("set", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpIcecrewPlayerdbClass, set), NULL, NULL, gm_marshal_VOID__POINTER_STRING_STRING_STRING, G_TYPE_NONE, 4, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); gm_mcp_icecrew_playerdb_signals[DELETE] = g_signal_new("delete", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpIcecrewPlayerdbClass, delete), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); pklass->name = "dns-nl-icecrew-playerdb"; pklass->handle_simple = &gm_mcp_icecrew_playerdb_handle_simple; pklass->handle_multi = &gm_mcp_icecrew_playerdb_handle_multi; pklass->min_version = 1.0; pklass->max_version = 1.1; g_type_class_add_private(object_class, sizeof(GmMcpIcecrewPlayerdbPrivate)); } static void gm_mcp_icecrew_playerdb_init(GmMcpIcecrewPlayerdb *obj) { obj->priv = GM_MCP_ICECREW_PLAYERDB_GET_PRIVATE(obj); obj->priv->self = 0; obj->priv->db = NULL; obj->priv->last_init_keys = NULL; } GmMcpIcecrewPlayerdb * gm_mcp_icecrew_playerdb_new() { GmMcpIcecrewPlayerdb *obj = GM_MCP_ICECREW_PLAYERDB(g_object_new( GM_TYPE_MCP_ICECREW_PLAYERDB, NULL)); return obj; } GmPlayerdbPlayerInfo * gm_mcp_icecrew_playerdb_find(GmMcpIcecrewPlayerdb *package, gint id) { GmPlayerdbPlayerInfo *ppi; GList *item; for (item = package->priv->db; item; item = item->next) { ppi = (GmPlayerdbPlayerInfo *)(item->data); if (ppi->id == id) { return ppi; } } return NULL; } gchar const * gm_playerdb_player_info_get_prop(GmPlayerdbPlayerInfo *ppi, gchar const *key) { return g_hash_table_lookup(ppi->values, key); } gboolean gm_mcp_icecrew_playerdb_initializing(GmMcpIcecrewPlayerdb *package) { return package->priv->last_init_keys != NULL; } void gm_mcp_icecrew_playerdb_find_players_with(GmMcpIcecrewPlayerdb *package, gchar const *key, gchar const *value, PlayerdbFindFunc func, gpointer user_data) { GmPlayerdbPlayerInfo *ppi; gchar const *v; GList *db; for (db = package->priv->db; db; db = db->next) { ppi = (GmPlayerdbPlayerInfo *)(db->data); v = gm_playerdb_player_info_get_prop(ppi, key); if (v != NULL && (value == NULL || strcmp(v, value) == 0)) { func(ppi, user_data); } } } GList * gm_mcp_icecrew_playerdb_players(GmMcpIcecrewPlayerdb *db) { return db->priv->db; } void gm_mcp_icecrew_playerdb_set_prop(GmMcpIcecrewPlayerdb *package, GmPlayerdbPlayerInfo *ppi, gchar const *key, gchar const *value, gboolean add) { gchar *old; if (strcmp(key, "id") == 0) { return; } gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewPlayerdb.SetProp: key: %s, value: %s", key, value); old = g_strdup(gm_playerdb_player_info_get_prop(ppi, key)); if (old && strcmp(old, value) == 0) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewPlayerdb.SetProp: new value is " "the same as old value, no changes made"); g_free(old); return; } g_hash_table_insert(ppi->values, g_strdup(key), g_strdup(value)); if (!add) { g_signal_emit(package, gm_mcp_icecrew_playerdb_signals[SET], 0, ppi, key, value, old); } g_free(old); } void gm_mcp_icecrew_playerdb_modify_prop(GmMcpIcecrewPlayerdb *package, GmPlayerdbPlayerInfo *ppi, gchar const *key, gchar const *value, gboolean add) { if (ppi) { gm_mcp_icecrew_playerdb_set_prop(package, ppi, key, value, add); } } void gm_mcp_icecrew_playerdb_modify_prop_list(GmMcpIcecrewPlayerdb *package, GmPlayerdbPlayerInfo *ppi, GList *fields, gboolean add) { GmKeyValuePair *data; if (ppi) { for (; fields; fields = fields->next) { data = (GmKeyValuePair *)(fields->data); gm_mcp_icecrew_playerdb_set_prop(package, ppi, data->key, data->value, add); } } } void gm_mcp_icecrew_playerdb_remove_player(GmMcpIcecrewPlayerdb *package, gint id) { GmPlayerdbPlayerInfo *ppi; if ((ppi = gm_mcp_icecrew_playerdb_find(package, id))) { g_signal_emit(package, gm_mcp_icecrew_playerdb_signals[DELETE], 0, ppi); package->priv->db = g_list_remove(package->priv->db, ppi); g_hash_table_destroy(ppi->values); } } GmPlayerdbPlayerInfo * gm_mcp_icecrew_playerdb_add_player(GmMcpIcecrewPlayerdb *package, gint id) { GmPlayerdbPlayerInfo *ppi = g_new(GmPlayerdbPlayerInfo, 1); ppi->values = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); ppi->id = id; package->priv->db = g_list_append(package->priv->db, ppi); gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewPlayerdb.AddPlayer: adding id %d", id); return ppi; } void gm_mcp_icecrew_playerdb_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB(package); gchar const *value; GmPlayerdbPlayerInfo *ppi; gint id, add; if (strcasecmp(suffix, "self") == 0) { if ((value = gm_mcp_find_value(fields, "id"))) { playerdb->priv->self = atoi(value); } } else if ((add = strcasecmp(suffix, "add")) == 0 || strcasecmp(suffix, "set") == 0) { if ((value = gm_mcp_find_value(fields, "id"))) { id = atoi(value); ppi = gm_mcp_icecrew_playerdb_find(playerdb, id); if (add == 0 && !ppi) { ppi = gm_mcp_icecrew_playerdb_add_player(playerdb, id); gm_mcp_icecrew_playerdb_modify_prop_list(playerdb, ppi, fields, TRUE); g_signal_emit(playerdb, gm_mcp_icecrew_playerdb_signals[ADD], 0, ppi); } else if (add != 0 && ppi) { gm_mcp_icecrew_playerdb_modify_prop_list(playerdb, ppi, fields, FALSE); } } } else if (strcasecmp(suffix, "del") == 0) { if ((value = gm_mcp_find_value(fields, "id"))) { id = atoi(value); gm_mcp_icecrew_playerdb_remove_player(playerdb, id); } } else if (strcasecmp(suffix, "init") == 0) { if ((value = gm_mcp_find_value(fields, "keys"))) { if (playerdb->priv->last_init_keys) { gm_mcp_list_free(playerdb->priv->last_init_keys); } playerdb->priv->last_init_keys = gm_mcp_parse_list(value); } } } gboolean gm_mcp_icecrew_playerdb_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values) { GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB(package); gint i; guint counter; gchar *id, *list; gchar const *ptr = value; GList *l; GmPlayerdbPlayerInfo *ppi; gunichar uc; if (key != NULL) { /* We should have a value something like <NUM> <LIST> */ gm_string_skip_space(&value); ptr = value; gm_string_skip_nonspace(&ptr); if (*ptr == '\0') { return TRUE; } id = g_strndup(value, ptr - value); gm_string_skip_space(&ptr); value = ptr; if (g_utf8_get_char(ptr) == '"') { ptr = g_utf8_next_char(ptr); value = ptr; i = 0; while (*ptr != '\0' && (uc = g_utf8_get_char(ptr)) != '"') { ptr = g_utf8_next_char(ptr); if (uc == '\\' && g_utf8_get_char(ptr) != '\0') { ptr = g_utf8_next_char(ptr); } } list = g_strndup(value, ptr - value); l = gm_mcp_parse_list(list); if (g_list_length(l) == g_list_length(playerdb->priv->last_init_keys)) { i = atoi(id); if ((ppi = gm_mcp_icecrew_playerdb_find(playerdb, i))) { gm_mcp_icecrew_playerdb_remove_player(playerdb, i); } ppi = gm_mcp_icecrew_playerdb_add_player(playerdb, i); for (counter = 0; counter < g_list_length(l); ++counter) { gm_mcp_icecrew_playerdb_modify_prop(playerdb, ppi, g_list_nth_data(playerdb->priv->last_init_keys, counter), g_list_nth_data(l, counter), TRUE); } g_signal_emit(playerdb, gm_mcp_icecrew_playerdb_signals[ADD], 0, ppi); } g_free(list); gm_mcp_list_free(l); } g_free(id); } else { gm_mcp_list_free(playerdb->priv->last_init_keys); playerdb->priv->last_init_keys = NULL; } return TRUE; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-playerdb.h�������������������������������������������������0000644�0001750�0001750�00000005203�10416450040�021122� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_ICECREW_PLAYERDB_H__ #define __GM_MCP_ICECREW_PLAYERDB_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_ICECREW_PLAYERDB (gm_mcp_icecrew_playerdb_get_type()) #define GM_MCP_ICECREW_PLAYERDB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_ICECREW_PLAYERDB, GmMcpIcecrewPlayerdb)) #define GM_MCP_ICECREW_PLAYERDB_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_ICECREW_PLAYERDB, GmMcpIcecrewPlayerdb const)) #define GM_MCP_ICECREW_PLAYERDB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_ICECREW_PLAYERDB, GmMcpIcecrewPlayerdbClass)) #define GM_IS_MCP_ICECREW_PLAYERDB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_ICECREW_PLAYERDB)) #define GM_IS_MCP_ICECREW_PLAYERDB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_ICECREW_PLAYERDB)) #define GM_MCP_ICECREW_PLAYERDB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_ICECREW_PLAYERDB, GmMcpIcecrewPlayerdbClass)) /* Private structure type */ typedef struct _GmMcpIcecrewPlayerdbPrivate GmMcpIcecrewPlayerdbPrivate; /* * Main object structure */ typedef struct _GmMcpIcecrewPlayerdb GmMcpIcecrewPlayerdb; struct _GmMcpIcecrewPlayerdb { GmMcpPackage parent; /*< private > */ GmMcpIcecrewPlayerdbPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpIcecrewPlayerdbClass GmMcpIcecrewPlayerdbClass; struct _GmMcpIcecrewPlayerdbClass { GmMcpPackageClass parent_class; /* Signals */ void (* add) (GmMcpIcecrewPlayerdb *obj, gpointer player_info); void (* set) (GmMcpIcecrewPlayerdb *obj, gpointer player_info, gchar const *key, gchar const *value, gchar const *old_value); void (* delete) (GmMcpIcecrewPlayerdb *obj, gpointer player_info); }; typedef struct _GmPlayerdbPlayerInfo { gint id; GHashTable *values; } GmPlayerdbPlayerInfo; typedef void (*PlayerdbFindFunc) (GmPlayerdbPlayerInfo *, gpointer user_data); GType gm_mcp_icecrew_playerdb_get_type(void) G_GNUC_CONST; GmMcpIcecrewPlayerdb *gm_mcp_icecrew_playerdb_new(void); GList *gm_mcp_icecrew_playerdb_players(GmMcpIcecrewPlayerdb *db); GmPlayerdbPlayerInfo *gm_mcp_icecrew_playerdb_find( GmMcpIcecrewPlayerdb *package, gint id); gchar const *gm_playerdb_player_info_get_prop(GmPlayerdbPlayerInfo *ppi, gchar const *key); void gm_mcp_icecrew_playerdb_find_players_with(GmMcpIcecrewPlayerdb *package, gchar const *key, gchar const *value, PlayerdbFindFunc func, gpointer user_data); gboolean gm_mcp_icecrew_playerdb_initializing(GmMcpIcecrewPlayerdb *package); G_END_DECLS #endif /* __GM_MCP_ICECREW_PLAYERDB_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-userlist.c�������������������������������������������������0000644�0001750�0001750�00000104000�10507467226�021177� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib.h> #include <string.h> #include <glob.h> #include <unistd.h> #include <errno.h> #include "gm-mcp-icecrew-userlist.h" #include "gm-iuserlist.h" #include "gm-mcp-userlist-view.h" #include "gm-mcp-icecrew-playerdb.h" #include "gm-mcp-session.h" #include "gm-mcp.h" #include "gm-support.h" #include "gm-marshal.h" #include "gm-debug.h" #include "gm-world.h" #include "gm-triggers.h" #define GM_MCP_ICECREW_USERLIST_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_ICECREW_USERLIST, GmMcpIcecrewUserlistPrivate)) #define USERLIST_ICON_SIZE 22 static GmKeyValuePair default_states[] = { {"away+idle", "ice-userlist/away+idle.svg"}, {"busy+idle", "ice-userlist/busy+idle.svg"}, {"avail+idle", "ice-userlist/avail+idle.svg"}, {"away", "ice-userlist/away.svg"}, {"busy", "ice-userlist/busy.svg"}, {NULL, NULL} }; static GmKeyValuePair default_ranks[] = { {"inhabitant", "ice-userlist/inhabitant.svg"}, {"programmer", "ice-userlist/programmer.svg"}, {"wizard", "ice-userlist/wizard.svg"}, {NULL, NULL} }; struct _GmMcpIcecrewUserlistPrivate { GList *state_icons; GList *rank_icons; GList *state_alternatives; GList *rank_alternatives; GList *key_datatags; GmFetchHandle *rank_fetch; GmFetchHandle *state_fetch; gchar *rank_dir; gchar *state_dir; gchar **property_names; GList *menu; gboolean initializing; }; static gchar *gm_mcp_icecrew_userlist_depends[] = { "dns-nl-icecrew-playerdb", NULL }; static gchar *gm_mcp_icecrew_userlist_overrides[] = { "dns-com-vmoo-userlist", NULL }; enum { P_NAME, P_RANK, P_STATE, P_STATE_MSG }; static gchar *gm_mcp_icecrew_userlist_property_names0[] = { "P_NAME", "P_RANK", "P_STATE", "P_STATE_MSG" }; static gchar *gm_mcp_icecrew_userlist_property_names1[] = { "name", "rank", "state", "state_msg" }; /* Signals enum { NUM_SIGNALS }; */ //static guint gm_mcp_icecrew_userlist_signals[NUM_SIGNALS] = {0}; static void gm_mcp_icecrew_userlist_iface_init(GmIUserlistInterface *iface); G_DEFINE_TYPE_EXTENDED(GmMcpIcecrewUserlist, gm_mcp_icecrew_userlist, \ GM_TYPE_MCP_PACKAGE, 0, G_IMPLEMENT_INTERFACE(GM_TYPE_IUSERLIST, \ gm_mcp_icecrew_userlist_iface_init)) void on_gm_mcp_icecrew_userlist_add(GmMcpIcecrewPlayerdb *playerdb, GmPlayerdbPlayerInfo *ppi, GmMcpIcecrewUserlist *userlist); void on_gm_mcp_icecrew_userlist_set(GmMcpIcecrewPlayerdb *playerdb, GmPlayerdbPlayerInfo *ppi, gchar const *key, gchar const *value, gchar const *old, GmMcpIcecrewUserlist *userlist); void on_gm_mcp_icecrew_userlist_delete(GmMcpIcecrewPlayerdb *playerdb, GmPlayerdbPlayerInfo *ppi, GmMcpIcecrewUserlist *userlist); void on_gm_mcp_icecrew_userlist_fetch_progress(GmFetchHandle *g, GmMcpIcecrewUserlist *package); gboolean gm_mcp_icecrew_userlist_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values); void gm_mcp_icecrew_userlist_set_session(GmMcpPackage *package, GObject *session); void gm_mcp_icecrew_userlist_create_view(GmMcpPackage *package, GObject *parent); void gm_mcp_icecrew_userlist_fetch_progress(GmFetchHandle *g, GmMcpIcecrewUserlist *package); GList *gm_mcp_icecrew_userlist_get_menu(GmIUserlist *userlist, gint id); gboolean gm_mcp_icecrew_userlist_supports_status(GmIUserlist *userlist); gchar *gm_mcp_icecrew_userlist_get_status(GmIUserlist *userlist, gint id); gchar const *gm_mcp_icecrew_userlist_get_name(GmIUserlist *userlist, gint id); gchar const *gm_mcp_icecrew_userlist_get_icon(GmIUserlist *userlist, gint id, gboolean use_state); gint gm_mcp_icecrew_userlist_get_rank_priority(GmIUserlist *userlist, gint id); gint gm_mcp_icecrew_userlist_get_state_priority(GmIUserlist *userlist, gint id); static void gm_mcp_icecrew_userlist_iface_init( GmIUserlistInterface *iface) { iface->get_menu = gm_mcp_icecrew_userlist_get_menu; iface->get_status = gm_mcp_icecrew_userlist_get_status; iface->get_name = gm_mcp_icecrew_userlist_get_name; iface->get_icon = gm_mcp_icecrew_userlist_get_icon; iface->get_rank_priority = gm_mcp_icecrew_userlist_get_rank_priority; iface->get_state_priority = gm_mcp_icecrew_userlist_get_state_priority; } void gm_mcp_icecrew_userlist_pair_free(GmKeyValuePair *pair) { g_free(pair->key); g_free(pair->value); g_free(pair); } void gm_mcp_icecrew_userlist_free_list(GList *rs) { GList *item; for (item = rs; item; item = item->next) { gm_mcp_icecrew_userlist_pair_free((GmKeyValuePair *)(item->data)); } g_list_free(rs); } static void gm_mcp_icecrew_userlist_free_menu(GmMcpIcecrewUserlist *obj) { gm_mcp_icecrew_userlist_free_list(obj->priv->menu); obj->priv->menu = NULL; } static void gm_mcp_icecrew_userlist_finalize(GObject *object) { GmMcpIcecrewUserlist *obj = GM_MCP_ICECREW_USERLIST(object); GmMcpPackage *playerdb = gm_mcp_session_find_package( GM_MCP_PACKAGE_SESSION(obj), "dns-nl-icecrew-playerdb"); if (playerdb) { g_signal_handlers_disconnect_by_func(playerdb, on_gm_mcp_icecrew_userlist_add, obj); g_signal_handlers_disconnect_by_func(playerdb, on_gm_mcp_icecrew_userlist_set, obj); g_signal_handlers_disconnect_by_func(playerdb, on_gm_mcp_icecrew_userlist_delete, obj); } if (obj->priv->rank_fetch) { obj->priv->rank_fetch->aborted = TRUE; } if (obj->priv->state_fetch) { obj->priv->state_fetch->aborted = TRUE; } gm_mcp_icecrew_userlist_free_list(obj->priv->state_icons); gm_mcp_icecrew_userlist_free_list(obj->priv->rank_icons); gm_mcp_icecrew_userlist_free_list(obj->priv->key_datatags); gm_mcp_icecrew_userlist_free_menu(obj); gm_mcp_icecrew_userlist_free_list(obj->priv->rank_alternatives); gm_mcp_icecrew_userlist_free_list(obj->priv->state_alternatives); g_free(obj->priv->rank_dir); g_free(obj->priv->state_dir); G_OBJECT_CLASS(gm_mcp_icecrew_userlist_parent_class)->finalize(object); } static void gm_mcp_icecrew_userlist_class_init(GmMcpIcecrewUserlistClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_icecrew_userlist_finalize; pklass->name = "dns-nl-icecrew-userlist"; pklass->depends = gm_mcp_icecrew_userlist_depends; pklass->overrides = gm_mcp_icecrew_userlist_overrides; pklass->min_version = 1.0; pklass->max_version = 1.1; pklass->set_session = &gm_mcp_icecrew_userlist_set_session; pklass->handle_multi = &gm_mcp_icecrew_userlist_handle_multi; pklass->create_view = &gm_mcp_icecrew_userlist_create_view; g_type_class_add_private(object_class, sizeof(GmMcpIcecrewUserlistPrivate)); } GmKeyValuePair * gm_mcp_icecrew_userlist_url_map_new(gchar const *name, gchar const *filename) { GmKeyValuePair *r = g_new(GmKeyValuePair, 1); r->key = g_strdup(name); r->value = g_strdup(filename); return r; } GList * gm_mcp_icecrew_userlist_find_icon_names(GList *icons, gchar const *path) { GList *item, *res = NULL; GmKeyValuePair *map; if (path == NULL || icons == NULL) { return NULL; } for (item = icons; item; item = item->next) { map = (GmKeyValuePair *)(item->data); if (map->value != NULL && strcmp(map->value, path) == 0) { res = g_list_append(res, map->key); } } return res; } guint gm_mcp_icecrew_userlist_find_path(GList *icons, gchar const *name, gchar const **path) { GList *item; GmKeyValuePair *map; guint position = 0; if (name == NULL) { if (path != NULL) { *path = NULL; } return 0; } for (item = icons; item; item = item->next) { map = (GmKeyValuePair *)(item->data); if (map->key != NULL && strcmp(map->key, name) == 0) { if (path != NULL) { *path = map->value; } return position; } ++position; } if (path != NULL) { *path = NULL; } return position + 1; } void gm_mcp_icecrew_userlist_remove_datatag(GmMcpIcecrewUserlist *package, gchar const *datatag) { GList *item; GmKeyValuePair *map; if (datatag == NULL) { return; } for (item = package->priv->key_datatags; item; item = item->next) { map = (GmKeyValuePair *)(item->data); if (strcmp(map->value, datatag) == 0) { gm_mcp_icecrew_userlist_pair_free(map); package->priv->key_datatags = g_list_remove_link( package->priv->key_datatags, item); g_list_free_1(item); return; } } } gchar const * gm_mcp_icecrew_userlist_find_key(GmMcpIcecrewUserlist *package, gchar const *datatag) { GList *item; GmKeyValuePair *map; if (datatag == NULL) { return NULL; } for (item = package->priv->key_datatags; item; item = item->next) { map = (GmKeyValuePair *)(item->data); if (map->value != NULL && strcmp(map->value, datatag) == 0) { return map->key; } } return NULL; } gchar const * gm_mcp_icecrew_userlist_find_name(gchar const *name, GmKeyValuePair def[]) { GmKeyValuePair *pair = def; if (name == NULL) { return NULL; } while (!(pair->key == NULL && pair->value == NULL)) { if (pair->key != NULL && strcmp(pair->key, name) == 0) { return pair->value; } ++pair; } return NULL; } void gm_mcp_icecrew_userlist_init_states(GmMcpIcecrewUserlist *package) { GmKeyValuePair *pair = default_states; package->priv->state_icons = NULL; while (!(pair->key == NULL && pair->value == NULL)) { package->priv->state_icons = g_list_append(package->priv->state_icons, gm_mcp_icecrew_userlist_url_map_new(pair->key, pair->value)); ++pair; } } void gm_mcp_icecrew_userlist_init_ranks(GmMcpIcecrewUserlist *package) { GmKeyValuePair *pair = default_ranks; package->priv->rank_icons = NULL; while (!(pair->key == NULL && pair->value == NULL)) { package->priv->rank_icons = g_list_append(package->priv->rank_icons, gm_mcp_icecrew_userlist_url_map_new(pair->key, pair->value)); ++pair; } } static void gm_mcp_icecrew_userlist_init(GmMcpIcecrewUserlist *obj) { obj->priv = GM_MCP_ICECREW_USERLIST_GET_PRIVATE(obj); obj->priv->rank_alternatives = NULL; obj->priv->state_alternatives = NULL; obj->priv->key_datatags = NULL; obj->priv->rank_dir = NULL; obj->priv->state_dir = NULL; obj->priv->rank_fetch = NULL; obj->priv->state_fetch = NULL; gm_mcp_icecrew_userlist_init_states(obj); gm_mcp_icecrew_userlist_init_ranks(obj); } GmMcpIcecrewUserlist * gm_mcp_icecrew_userlist_new() { GmMcpIcecrewUserlist *obj = GM_MCP_ICECREW_USERLIST(g_object_new( GM_TYPE_MCP_ICECREW_USERLIST, NULL)); return obj; } gchar * gm_mcp_icecrew_userlist_remote_to_local_path(gchar const *url, gchar const *dirname) { gchar *base = g_path_get_basename(url); gchar *result; result = g_strconcat(dirname, G_DIR_SEPARATOR_S, base, NULL); g_free(base); return result; } void gm_mcp_icecrew_userlist_remove_alternatives(GmMcpIcecrewUserlist *package, gchar const *path, gint n, gboolean rank) { GList *item, **alter; gint i; GmKeyValuePair *map; gchar *name, *pathd, *dir; if (path == NULL) { return; } alter = rank ? &(package->priv->rank_alternatives) : &(package->priv->state_alternatives); dir = rank ? package->priv->rank_dir : package->priv->state_dir; for (item = *alter; item; item = item->next) { map = (GmKeyValuePair *)(item->data); pathd = gm_mcp_icecrew_userlist_remote_to_local_path(map->value, dir); if (pathd != NULL && strcmp(pathd, path) == 0) { name = g_strdup(map->key); i = 0; if (name != NULL) { while (item && (n == 0 || i < n)) { map = (GmKeyValuePair *)(item->data); ++i; if (map->key != NULL && strcmp(map->key, name) == 0) { item = item->next; *alter = g_list_remove(*alter, map); gm_mcp_icecrew_userlist_pair_free(map); } else { break; } } } g_free(name); break; } g_free(pathd); } } gchar const * gm_mcp_icecrew_userlist_icon_path(GmMcpIcecrewUserlist *package, GmPlayerdbPlayerInfo *ppi, gboolean use_state) { gchar const *state; gchar const *icon_path = NULL; state = gm_playerdb_player_info_get_prop(ppi, package->priv->property_names[P_STATE]); if (!use_state || (state != NULL && strcmp(state, "avail") == 0)) { gm_mcp_icecrew_userlist_find_path(package->priv->rank_icons, gm_playerdb_player_info_get_prop(ppi, package->priv->property_names[P_RANK]), &icon_path); } else { gm_mcp_icecrew_userlist_find_path(package->priv->state_icons, state, &icon_path); } return icon_path; } void gm_mcp_icecrew_userlist_update_rank_icon(GmPlayerdbPlayerInfo *ppi, gpointer user_data) { g_signal_emit_by_name(user_data, "rank-changed", ppi->id); } void gm_mcp_icecrew_userlist_update_state_icon(GmPlayerdbPlayerInfo *ppi, gpointer user_data) { g_signal_emit_by_name(user_data, "state-changed", ppi->id); } void gm_mcp_icecrew_userlist_new_rank_state_icon(GmMcpIcecrewUserlist *package, gchar *path, gboolean rank) { GList *names; GList *tmp; GmMcpPackage *playerdb; playerdb = gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(package), "dns-nl-icecrew-playerdb"); g_return_if_fail(playerdb != NULL); if (rank) { names = gm_mcp_icecrew_userlist_find_icon_names( package->priv->rank_icons, path); } else { names = gm_mcp_icecrew_userlist_find_icon_names( package->priv->state_icons, path); } if (names == NULL) { return; } for (tmp = names; tmp; tmp = tmp->next) { if (rank) { gm_mcp_icecrew_playerdb_find_players_with( GM_MCP_ICECREW_PLAYERDB(playerdb), package->priv->property_names[P_RANK], (gchar *)(tmp->data), gm_mcp_icecrew_userlist_update_rank_icon, package); } else { gm_mcp_icecrew_playerdb_find_players_with( GM_MCP_ICECREW_PLAYERDB(playerdb), package->priv->property_names[P_STATE], (gchar *)(tmp->data), gm_mcp_icecrew_userlist_update_state_icon, package); } } g_list_free(names); } void gm_mcp_icecrew_userlist_remove_not_used_icons(GList *icons, gchar *dir) { glob_t gl; guint i; GList *names; gchar *g = g_strconcat(dir, G_DIR_SEPARATOR_S, "*", NULL); glob(g, 0, NULL, &gl); for (i = 0; i < gl.gl_pathc; ++i) { names = gm_mcp_icecrew_userlist_find_icon_names(icons, gl.gl_pathv[i]); if (!names) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.RemoveNotUsedIcons: " "removing %s", gl.gl_pathv[i]); if (unlink(gl.gl_pathv[i]) == -1) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.RemoveNotUsedIcons: " "error %s", strerror(errno)); } } else { g_list_free(names); } } g_free(g); globfree(&gl); } void gm_mcp_icecrew_userlist_fetch_next_alternatives(GmMcpIcecrewUserlist *package, gboolean rank) { GList *source_uri = NULL, *dest_uri = NULL; gchar *prev_name = NULL, *path; GList *item, **alter, *iter; GmKeyValuePair *map, *itermap; /* Select unique name alternatives */ alter = rank ? &(package->priv->rank_alternatives) : &(package->priv->state_alternatives); item = *alter; while (item) { map = (GmKeyValuePair *)(item->data); gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.FetchNextAlternatives: " "checking: %s", map->value); /* Skip alternatives with names we've already stored to be fetched */ if (prev_name == NULL || (map->key != NULL && strcmp(map->key, prev_name) != 0)) { prev_name = map->key; path = gm_mcp_icecrew_userlist_remote_to_local_path(map->value, rank ? package->priv->rank_dir : package->priv->state_dir); gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist." "FetchNextAlternatives: adding to be fetched: %s => %s", map->key, map->value); source_uri = g_list_append(source_uri, map->value); dest_uri = g_list_append(dest_uri, path); unlink(path); for (iter = rank ? package->priv->rank_icons : package->priv->state_icons; iter; iter = iter->next) { itermap = (GmKeyValuePair *)(iter->data); if (itermap->key != NULL && strcmp(itermap->key, map->key) == 0) { g_free(itermap->value); itermap->value = g_strdup(path); break; } } } if (source_uri != NULL) break; item = item->next; } if (source_uri != NULL) { if (rank) { package->priv->rank_fetch = gm_fetch(source_uri, dest_uri, (GFunc)gm_mcp_icecrew_userlist_fetch_progress, package); } else { package->priv->state_fetch = gm_fetch(source_uri, dest_uri, (GFunc)gm_mcp_icecrew_userlist_fetch_progress, package); } gm_g_list_free_simple(dest_uri); } else { if (rank) { gm_mcp_icecrew_userlist_remove_not_used_icons( package->priv->rank_icons, package->priv->rank_dir); } else { gm_mcp_icecrew_userlist_remove_not_used_icons( package->priv->state_icons, package->priv->state_dir); } } } void gm_mcp_icecrew_userlist_fetch_progress(GmFetchHandle *g, GmMcpIcecrewUserlist *package) { gchar *path; gboolean rank; GdkPixbuf *pixtest; GError *err = NULL; if (g->aborted) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.FetchProgress: " "fetch aborted!"); return; } rank = (package->priv->rank_fetch == g); if (g->done) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.FetchProgress: " "fetch done!"); /* Remove this one from the alternatives */ gm_mcp_icecrew_userlist_remove_alternatives(package, gnome_vfs_uri_get_path((GnomeVFSURI *)(g->dest_uri->data)), 1, rank); if (rank) { package->priv->rank_fetch = NULL; gm_mcp_icecrew_userlist_fetch_next_alternatives(package, TRUE); } else { package->priv->state_fetch = NULL; gm_mcp_icecrew_userlist_fetch_next_alternatives(package, FALSE); } return; } if (g->status == GNOME_VFS_XFER_PROGRESS_STATUS_VFSERROR) { /* Skip to the next alternative (in the next run, see on done */ gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.FetchProgress: error"); } if (g->cur_phase == GNOME_VFS_XFER_PHASE_FILECOMPLETED) { path = gnome_vfs_get_local_path_from_uri(g->cur_file_name); gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.FetchProgress: " "%s fetched!", path); pixtest = gdk_pixbuf_new_from_file(path, &err); if (pixtest) { /* Remove alternatives which don't need to be fetched anymore */ g_object_unref(pixtest); gm_mcp_icecrew_userlist_remove_alternatives(package, path, 0, rank); if (rank) { gm_mcp_icecrew_userlist_new_rank_state_icon(package, path, TRUE); } else { gm_mcp_icecrew_userlist_new_rank_state_icon(package, path, FALSE); } } else { /* This failed! */ gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.FetchProgress: " "error, couldn't load file: %s", err->message); g_error_free(err); gm_mcp_icecrew_userlist_remove_alternatives(package, path, 1, rank); } g_free(path); } } #define MAX_MATCHES 10 void gm_mcp_icecrew_userlist_process_triggers(GmMcpIcecrewUserlist *package, gchar const *username, GmTriggerConditionType condition) { GmWorld *world; GmTriggers *triggers; GList const *item; GmTrigger *trigger; regmatch_t matches[MAX_MATCHES]; gint num; GmMcpPackage *playerdb = gm_mcp_session_find_package( GM_MCP_PACKAGE_SESSION(package), "dns-nl-icecrew-playerdb"); if (gm_mcp_icecrew_playerdb_initializing( GM_MCP_ICECREW_PLAYERDB(playerdb))) { return; } world = GM_MCP_SESSION_WORLD(GM_MCP_PACKAGE_SESSION(package)); triggers = gm_world_triggers(world); for (item = gm_triggers_list(triggers); item; item = item->next) { trigger = (GmTrigger *)(item->data); if (trigger->event == TT_USERS) { if ((num = gm_trigger_match_user(trigger, username, condition, matches, MAX_MATCHES))) { gm_world_apply_trigger(world, trigger, username, matches, num); } } } } gchar * gm_mcp_icecrew_userlist_menu_item_subst(GmMcpIcecrewUserlist *package, gchar *str, GmPlayerdbPlayerInfo *info) { GString *result; gchar *ptr = str, *subst = NULL, *tmp, *prop; gchar const *value; gunichar ch, cnum; gboolean substituted; if (str == NULL) { return NULL; } result = g_string_sized_new(strlen(str)); while ((ch = g_utf8_get_char(ptr)) != '\0') { substituted = FALSE; if (ch == '$') { tmp = subst = g_utf8_next_char(ptr); while ((cnum = g_utf8_get_char(subst)) && (cnum == '_' || g_unichar_isalpha(cnum))) { subst = g_utf8_next_char(subst); } prop = g_strndup(tmp, subst - tmp); if (strcmp(prop, "ID") == 0 || strcmp(prop, "id") == 0) { tmp = g_strdup_printf("#%d", info->id); result = g_string_append(result, tmp); g_free(tmp); substituted = TRUE; } else { value = gm_playerdb_player_info_get_prop(info, prop); if (value) { for (; *value != '\0'; value = g_utf8_next_char(value)) { ch = g_utf8_get_char(value); if (ch == '_') { result = g_string_append_c(result, '_'); } result = g_string_append_unichar(result, ch); } substituted = TRUE; } } } if (!substituted) { result = g_string_append_unichar(result, ch); } if (*ptr == '\0') { break; } if (!substituted) { ptr = g_utf8_next_char(ptr); } else { ptr = subst; } } ptr = result->str; g_string_free(result, FALSE); return ptr; } GmKeyValuePair * gm_mcp_icecrew_userlist_get_menu_item(GmMcpIcecrewUserlist *package, GmKeyValuePair *menuitem, GmPlayerdbPlayerInfo *info) { GmKeyValuePair *result = g_new0(GmKeyValuePair, 1); if (!menuitem) { return result; } result->key = gm_mcp_icecrew_userlist_menu_item_subst(package, menuitem->key, info); result->value = gm_mcp_icecrew_userlist_menu_item_subst(package, menuitem->value, info); return result; } /* Interface */ GList * gm_mcp_icecrew_userlist_get_menu(GmIUserlist *userlist, gint id) { GmMcpIcecrewUserlist *object = GM_MCP_ICECREW_USERLIST(userlist); GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB( gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(userlist), "dns-nl-icecrew-playerdb")); GmPlayerdbPlayerInfo *info = gm_mcp_icecrew_playerdb_find(playerdb, id); GList *item, *result = NULL; for (item = object->priv->menu; item; item = item->next) { result = g_list_append(result, gm_mcp_icecrew_userlist_get_menu_item( object, (GmKeyValuePair *)(item->data), info)); } return result; } gchar const * gm_mcp_icecrew_userlist_get_name(GmIUserlist *userlist, gint id) { GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB( gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(userlist), "dns-nl-icecrew-playerdb")); GmPlayerdbPlayerInfo *info = gm_mcp_icecrew_playerdb_find(playerdb, id); return gm_playerdb_player_info_get_prop(info, GM_MCP_ICECREW_USERLIST(userlist)->priv->property_names[P_NAME]); } gchar const * gm_mcp_icecrew_userlist_get_icon(GmIUserlist *userlist, gint id, gboolean use_state) { GmMcpIcecrewUserlist *package = GM_MCP_ICECREW_USERLIST(userlist); GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB( gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(package), "dns-nl-icecrew-playerdb")); GmPlayerdbPlayerInfo *info = gm_mcp_icecrew_playerdb_find(playerdb, id); return gm_mcp_icecrew_userlist_icon_path(package, info, use_state); } gint gm_mcp_icecrew_userlist_get_rank_priority(GmIUserlist *userlist, gint id) { GmMcpIcecrewUserlist *package = GM_MCP_ICECREW_USERLIST(userlist); GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB( gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(userlist), "dns-nl-icecrew-playerdb")); GmPlayerdbPlayerInfo *info = gm_mcp_icecrew_playerdb_find(playerdb, id); gchar const *rank = gm_playerdb_player_info_get_prop(info, package->priv->property_names[P_RANK]); return g_list_length(package->priv->rank_icons) - gm_mcp_icecrew_userlist_find_path(package->priv->rank_icons, rank, NULL) - 1; } gint gm_mcp_icecrew_userlist_get_state_priority(GmIUserlist *userlist, gint id) { GmMcpIcecrewUserlist *package = GM_MCP_ICECREW_USERLIST(userlist); GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB( gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(userlist), "dns-nl-icecrew-playerdb")); GmPlayerdbPlayerInfo *info = gm_mcp_icecrew_playerdb_find(playerdb, id); gchar const *state = gm_playerdb_player_info_get_prop(info, package->priv->property_names[P_STATE]); return g_list_length(package->priv->state_icons) - gm_mcp_icecrew_userlist_find_path(package->priv->state_icons, state, NULL) + 1; } gchar * gm_mcp_icecrew_userlist_get_status(GmIUserlist *userlist, gint id) { GmMcpIcecrewPlayerdb *playerdb = GM_MCP_ICECREW_PLAYERDB( gm_mcp_session_find_package(GM_MCP_PACKAGE_SESSION(userlist), "dns-nl-icecrew-playerdb")); GmPlayerdbPlayerInfo *info = gm_mcp_icecrew_playerdb_find(playerdb, id); GmMcpIcecrewUserlist *package = GM_MCP_ICECREW_USERLIST(userlist); gchar const *state = gm_playerdb_player_info_get_prop(info, package->priv->property_names[P_STATE]); gchar const *msg = gm_playerdb_player_info_get_prop(info, package->priv->property_names[P_STATE_MSG]); gchar const *caption; if (state == NULL || strcmp(state, "avail") == 0) { return strdup(_("Available")); } if (strstr(state, "away") != NULL) { caption = _("Away"); } else if (strstr(state, "busy") != NULL) { caption = _("Busy"); } else if (strstr(state, "idle") != NULL) { caption = _("Idle"); } else { return NULL; } if (msg == NULL || *msg == '\0') { return strdup(caption); } else { return g_strconcat(caption, ": ", msg, NULL); } } void gm_mcp_icecrew_userlist_handle_menu(GmMcpIcecrewUserlist *package, GList *values) { GmKeyValuePair *pair; GList *item, *data; gm_mcp_icecrew_userlist_free_menu(package); for (item = values; item; item = item->next) { data = (GList *)(item->data); pair = g_new0(GmKeyValuePair, 1); if (g_list_length(data) == 2) { pair->key = g_strdup(data->data); pair->value = g_strdup(data->next->data); } package->priv->menu = g_list_append(package->priv->menu, pair); } } void gm_mcp_icecrew_userlist_handle_ranks_states(GmMcpIcecrewUserlist *package, GList *values, gboolean rank) { GList *tmp, *data, *new_list = NULL; gchar *name, **alternatives, *path, **ptr; gchar const *cpath; /* Abort a previous fetch if needed */ if (rank && package->priv->rank_fetch) { package->priv->rank_fetch = NULL; gm_mcp_icecrew_userlist_free_list(package->priv->rank_alternatives); package->priv->rank_alternatives = NULL; package->priv->rank_fetch->aborted = TRUE; } else if (!rank && package->priv->state_fetch) { package->priv->state_fetch = NULL; gm_mcp_icecrew_userlist_free_list(package->priv->state_alternatives); package->priv->state_alternatives = NULL; package->priv->state_fetch->aborted = TRUE; } for (tmp = values; tmp; tmp = tmp->next) { data = (GList *)(tmp->data); if (data == NULL ) { continue; } name = (gchar *)(data->data); gm_mcp_icecrew_userlist_find_path(new_list, name, &cpath); if (cpath) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.HandleRanksStates: " "duplicate %s, ignored!", name); continue; } if (data->next == NULL) { if (rank) { cpath = gm_mcp_icecrew_userlist_find_name(name, default_ranks); } else { cpath = gm_mcp_icecrew_userlist_find_name(name, default_states); } if (cpath) { new_list = g_list_append(new_list, gm_mcp_icecrew_userlist_url_map_new(name, cpath)); } else { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist." "HandleRanksStates: couldn't find %s, ignored!", name); } } else { alternatives = g_strsplit(g_list_nth_data(data, 1), ";", 0); ptr = alternatives; while (*ptr) { /* Initialize to first alternative */ if (ptr == alternatives) { path = gm_mcp_icecrew_userlist_remote_to_local_path( *ptr, rank ? package->priv->rank_dir : package->priv->state_dir); new_list = g_list_append(new_list, gm_mcp_icecrew_userlist_url_map_new(name, path)); g_free(path); } gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewUserlist.HandleRanksStates: " "adding alternative: %s => %s", name, *ptr); if (rank) { package->priv->rank_alternatives = g_list_append( package->priv->rank_alternatives, gm_mcp_icecrew_userlist_url_map_new(name, *ptr)); } else { package->priv->state_alternatives = g_list_append( package->priv->state_alternatives, gm_mcp_icecrew_userlist_url_map_new(name, *ptr)); } ++ptr; } g_strfreev(alternatives); } } if (rank) { gm_mcp_icecrew_userlist_free_list(package->priv->rank_icons); package->priv->rank_icons = new_list; } else { gm_mcp_icecrew_userlist_free_list(package->priv->state_icons); package->priv->state_icons = new_list; } if (rank && package->priv->rank_alternatives) { gm_mcp_icecrew_userlist_fetch_next_alternatives(package, rank); } else if (!rank && package->priv->state_alternatives) { gm_mcp_icecrew_userlist_fetch_next_alternatives(package, rank); } } gboolean gm_mcp_icecrew_userlist_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values) { GmMcpIcecrewUserlist *userlist = GM_MCP_ICECREW_USERLIST(package); GList *tmp, *l, *vals = NULL; GmKeyValuePair *m; if (key) { if (!gm_mcp_icecrew_userlist_find_key(userlist, data_tag)) { m = g_new(GmKeyValuePair, 1); m->key = g_strdup(key); m->value = g_strdup(data_tag); userlist->priv->key_datatags = g_list_append( userlist->priv->key_datatags, m); } } else if ((key = gm_mcp_icecrew_userlist_find_key(userlist, data_tag)) != NULL) { for (tmp = all_values; tmp; tmp = tmp->next) { l = gm_mcp_parse_list((gchar *)(tmp->data)); vals = g_list_append(vals, l); } if (strcmp(key, "rank") == 0) { gm_mcp_icecrew_userlist_handle_ranks_states(userlist, vals, TRUE); } else if (strcmp(key, "state") == 0) { gm_mcp_icecrew_userlist_handle_ranks_states(userlist, vals, FALSE); } else if (strcmp(key, "menu") == 0) { gm_mcp_icecrew_userlist_handle_menu(userlist, vals); } gm_mcp_icecrew_userlist_remove_datatag(userlist, data_tag); } else { gm_debug_msg(DEBUG_ALWAYS, "Datatag %s not found", data_tag); } for (tmp = vals; tmp; tmp = tmp->next) { gm_mcp_list_free((GList *)(tmp->data)); } g_list_free(vals); return FALSE; } void gm_mcp_icecrew_userlist_set_session(GmMcpPackage *package, GObject *session) { GmMcpPackageClass *parent_class = g_type_class_peek_parent( GM_MCP_ICECREW_USERLIST_GET_CLASS(package)); gchar *icons_dir; GmMcpPackage *playerdb; GmMcpIcecrewUserlist *userlist = GM_MCP_ICECREW_USERLIST(package); GmMcpSession *ses; gdouble version; parent_class->set_session(package, session); ses = GM_MCP_SESSION(session); playerdb = gm_mcp_session_find_package(ses, "dns-nl-icecrew-playerdb"); g_return_if_fail(playerdb != NULL); version = gm_mcp_package_get_version(GM_MCP_PACKAGE(playerdb)); if (version == 1.1) { userlist->priv->property_names = gm_mcp_icecrew_userlist_property_names1; } else { userlist->priv->property_names = gm_mcp_icecrew_userlist_property_names0; } icons_dir = g_strconcat(gm_world_path(GM_MCP_SESSION_WORLD(ses)), G_DIR_SEPARATOR_S, "icons", NULL); userlist->priv->rank_dir = g_strconcat(icons_dir, G_DIR_SEPARATOR_S, "ranks", NULL); userlist->priv->state_dir = g_strconcat(icons_dir, G_DIR_SEPARATOR_S, "states", NULL); if (!g_file_test(icons_dir, G_FILE_TEST_EXISTS)) mkdir(icons_dir, 0755); if (!g_file_test(userlist->priv->rank_dir, G_FILE_TEST_EXISTS)) mkdir(userlist->priv->rank_dir, 0755); if (!g_file_test(userlist->priv->state_dir, G_FILE_TEST_EXISTS)) mkdir(userlist->priv->state_dir, 0755); g_free(icons_dir); g_signal_connect(playerdb, "add", G_CALLBACK(on_gm_mcp_icecrew_userlist_add), package); g_signal_connect(playerdb, "set", G_CALLBACK(on_gm_mcp_icecrew_userlist_set), package); g_signal_connect(playerdb, "delete", G_CALLBACK(on_gm_mcp_icecrew_userlist_delete), package); } void gm_mcp_icecrew_userlist_create_view(GmMcpPackage *package, GObject *parent) { gm_mcp_userlist_view_new(package, parent); } void gm_mcp_icecrew_userlist_process_state_changed(GmMcpIcecrewUserlist *userlist, GmPlayerdbPlayerInfo *ppi, gchar const *value, gchar const *old) { gboolean was_away, was_idle; gboolean is_away, is_idle; gchar const *name = gm_playerdb_player_info_get_prop(ppi, userlist->priv->property_names[P_NAME]); was_away = (strstr(old, "away") != NULL || strstr(old, "busy") != NULL); was_idle = (strstr(old, "idle") != NULL); is_away = (strstr(value, "away") != NULL || strstr(value, "busy") != NULL); is_idle = (strstr(value, "idle") != NULL); if (was_away && !is_away) { gm_mcp_icecrew_userlist_process_triggers(userlist, name, TCT_USER_AWAY_OFF); } else if (!was_away && is_away) { gm_mcp_icecrew_userlist_process_triggers(userlist, name, TCT_USER_AWAY); } if (was_idle && !is_idle) { gm_mcp_icecrew_userlist_process_triggers(userlist, name, TCT_USER_IDLE_OFF); } else if (!was_idle && is_idle) { gm_mcp_icecrew_userlist_process_triggers(userlist, name, TCT_USER_IDLE); } } /* Callbacks */ void on_gm_mcp_icecrew_userlist_add(GmMcpIcecrewPlayerdb *playerdb, GmPlayerdbPlayerInfo *ppi, GmMcpIcecrewUserlist *userlist) { gchar const *name = gm_playerdb_player_info_get_prop(ppi, userlist->priv->property_names[P_NAME]); g_signal_emit_by_name(userlist, "player-added", ppi->id); gm_mcp_icecrew_userlist_process_triggers(userlist, name, TCT_USER_ONLINE); } void on_gm_mcp_icecrew_userlist_set(GmMcpIcecrewPlayerdb *playerdb, GmPlayerdbPlayerInfo *ppi, gchar const *key, gchar const *value, gchar const *old, GmMcpIcecrewUserlist *userlist) { if (strcmp(key, userlist->priv->property_names[P_STATE]) == 0) { g_signal_emit_by_name(userlist, "state-changed", ppi->id); gm_mcp_icecrew_userlist_process_state_changed(userlist, ppi, value, old); } else if (strcmp(key, userlist->priv->property_names[P_RANK]) == 0) { g_signal_emit_by_name(userlist, "rank-changed", ppi->id); } else if (strcmp(key, userlist->priv->property_names[P_NAME]) == 0) { g_signal_emit_by_name(userlist, "name-changed", ppi->id); } else if (strcmp(key, userlist->priv->property_names[P_STATE_MSG]) == 0) { g_signal_emit_by_name(userlist, "state-changed", ppi->id); } } void on_gm_mcp_icecrew_userlist_delete(GmMcpIcecrewPlayerdb *playerdb, GmPlayerdbPlayerInfo *ppi, GmMcpIcecrewUserlist *userlist) { gchar const *name = gm_playerdb_player_info_get_prop(ppi, userlist->priv->property_names[P_NAME]); g_signal_emit_by_name(userlist, "player-removed", ppi->id); gm_mcp_icecrew_userlist_process_triggers(userlist, name, TCT_USER_OFFLINE); } gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-userlist.h�������������������������������������������������0000644�0001750�0001750�00000003322�10413512147�021176� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_ICECREW_USERLIST_H__ #define __GM_MCP_ICECREW_USERLIST_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_ICECREW_USERLIST \ (gm_mcp_icecrew_userlist_get_type()) #define GM_MCP_ICECREW_USERLIST(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_MCP_ICECREW_USERLIST, \ GmMcpIcecrewUserlist)) #define GM_MCP_ICECREW_USERLIST_CONST(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_MCP_ICECREW_USERLIST, \ GmMcpIcecrewUserlist const)) #define GM_MCP_ICECREW_USERLIST_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_MCP_ICECREW_USERLIST, \ GmMcpIcecrewUserlistClass)) #define GM_IS_MCP_ICECREW_USERLIST(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_MCP_ICECREW_USERLIST)) #define GM_IS_MCP_ICECREW_USERLIST_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_MCP_ICECREW_USERLIST)) #define GM_MCP_ICECREW_USERLIST_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_MCP_ICECREW_USERLIST, \ GmMcpIcecrewUserlistClass)) /* Private structure type */ typedef struct _GmMcpIcecrewUserlistPrivate GmMcpIcecrewUserlistPrivate; /* * Main object structure */ typedef struct _GmMcpIcecrewUserlist GmMcpIcecrewUserlist; struct _GmMcpIcecrewUserlist { GmMcpPackage parent; /*< private > */ GmMcpIcecrewUserlistPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpIcecrewUserlistClass GmMcpIcecrewUserlistClass; struct _GmMcpIcecrewUserlistClass { GmMcpPackageClass parent_class; }; GType gm_mcp_icecrew_userlist_get_type(void) G_GNUC_CONST; GmMcpIcecrewUserlist *gm_mcp_icecrew_userlist_new(void); G_END_DECLS #endif /* __GM_MCP_ICECREW_USERLIST_H__ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-mcpreset.c�������������������������������������������������0000644�0001750�0001750�00000003644�10410766736�021164� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "gm-mcp-icecrew-mcpreset.h" #include "gm-mcp-session.h" #define GM_MCP_ICECREW_MCPRESET_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_ICECREW_MCPRESET, GmMcpIcecrewMcpresetPrivate)) /*struct _GmMcpIcecrewMcpresetPrivate { };*/ /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_mcp_icecrew_mcpreset_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmMcpIcecrewMcpreset, gm_mcp_icecrew_mcpreset, GM_TYPE_MCP_PACKAGE) void gm_mcp_icecrew_mcpreset_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); static void gm_mcp_icecrew_mcpreset_finalize(GObject *object) { //GmMcpIcecrewMcpreset *obj = GM_MCP_ICECREW_MCPRESET(object); G_OBJECT_CLASS(gm_mcp_icecrew_mcpreset_parent_class)->finalize(object); } static void gm_mcp_icecrew_mcpreset_class_init(GmMcpIcecrewMcpresetClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_icecrew_mcpreset_finalize; /*gm_mcp_icecrew_mcpreset_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpIcecrewMcpresetClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ pklass->name = "dns-nl-icecrew-mcpreset"; pklass->handle_simple = &gm_mcp_icecrew_mcpreset_handle_simple; //g_type_class_add_private(object_class, sizeof(GmMcpIcecrewMcpresetPrivate)); } static void gm_mcp_icecrew_mcpreset_init(GmMcpIcecrewMcpreset *obj) { //obj->priv = GM_MCP_ICECREW_MCPRESET_GET_PRIVATE(obj); } GmMcpIcecrewMcpreset * gm_mcp_icecrew_mcpreset_new() { GmMcpIcecrewMcpreset *obj = GM_MCP_ICECREW_MCPRESET(g_object_new(GM_TYPE_MCP_ICECREW_MCPRESET, NULL)); return obj; } void gm_mcp_icecrew_mcpreset_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { gm_mcp_session_reset(GM_MCP_PACKAGE_SESSION(package)); } ��������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-mcpreset.h�������������������������������������������������0000644�0001750�0001750�00000003404�10410766736�021163� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_ICECREW_MCPRESET_H__ #define __GM_MCP_ICECREW_MCPRESET_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_ICECREW_MCPRESET (gm_mcp_icecrew_mcpreset_get_type()) #define GM_MCP_ICECREW_MCPRESET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_ICECREW_MCPRESET, GmMcpIcecrewMcpreset)) #define GM_MCP_ICECREW_MCPRESET_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_ICECREW_MCPRESET, GmMcpIcecrewMcpreset const)) #define GM_MCP_ICECREW_MCPRESET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_ICECREW_MCPRESET, GmMcpIcecrewMcpresetClass)) #define GM_IS_MCP_ICECREW_MCPRESET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_ICECREW_MCPRESET)) #define GM_IS_MCP_ICECREW_MCPRESET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_ICECREW_MCPRESET)) #define GM_MCP_ICECREW_MCPRESET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_ICECREW_MCPRESET, GmMcpIcecrewMcpresetClass)) /* Private structure type */ typedef struct _GmMcpIcecrewMcpresetPrivate GmMcpIcecrewMcpresetPrivate; /* * Main object structure */ typedef struct _GmMcpIcecrewMcpreset GmMcpIcecrewMcpreset; struct _GmMcpIcecrewMcpreset { GmMcpPackage parent; /*< private > */ GmMcpIcecrewMcpresetPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpIcecrewMcpresetClass GmMcpIcecrewMcpresetClass; struct _GmMcpIcecrewMcpresetClass { GmMcpPackageClass parent_class; /* Signals void (* proto) (GmMcpIcecrewMcpreset *obj); */ }; GType gm_mcp_icecrew_mcpreset_get_type(void) G_GNUC_CONST; GmMcpIcecrewMcpreset *gm_mcp_icecrew_mcpreset_new(void); G_END_DECLS #endif /* __GM_MCP_ICECREW_MCPRESET_H__ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-serverinfo.c�����������������������������������������������0000644�0001750�0001750�00000026377�10507214057�021523� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include "gm-mcp-icecrew-serverinfo.h" #include "gm-mcp.h" #include "gm-mcp-session.h" #include "widgets/gm-app-view.h" #include "gm-world.h" #include "dialogs/gm-world-info-dialog.h" #include "gm-support.h" #include "gm-debug.h" #include "gm-options.h" #define GM_MCP_ICECREW_SERVERINFO_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_ICECREW_SERVERINFO, GmMcpIcecrewServerinfoPrivate)) typedef struct _GmMcpIcecrewServerinfoView { GmAppView *view; GmMcpIcecrewServerinfo *package; } GmMcpIcecrewServerinfoView; struct _GmMcpIcecrewServerinfoPrivate { gboolean has_info; GmWorldInfo info; GmFetchHandle *handle; }action; /* Signals */ enum { GOT_INFO, NUM_SIGNALS }; static guint gm_mcp_icecrew_serverinfo_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmMcpIcecrewServerinfo, gm_mcp_icecrew_serverinfo, GM_TYPE_MCP_PACKAGE) void gm_mcp_icecrew_serverinfo_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); void gm_mcp_icecrew_serverinfo_create_view(GmMcpPackage *package, GObject *parent); void gm_mcp_icecrew_serverinfo_set_session(GmMcpPackage *package, GObject *session); void gm_mcp_icecrew_serverinfo_free_info(GmMcpIcecrewServerinfo *obj) { g_free(obj->priv->info.homepage); g_free(obj->priv->info.location); g_free(obj->priv->info.admin); g_free(obj->priv->info.contact); g_free(obj->priv->info.charset); g_free(obj->priv->info.language); g_free(obj->priv->info.system); g_free(obj->priv->info.logo); if (obj->priv->handle) { obj->priv->handle->aborted = TRUE; } memset(&(obj->priv->info), 0, sizeof(GmWorldInfo)); } static void gm_mcp_icecrew_serverinfo_finalize(GObject *object) { GmMcpIcecrewServerinfo *obj = GM_MCP_ICECREW_SERVERINFO(object); gm_mcp_icecrew_serverinfo_free_info(obj); G_OBJECT_CLASS(gm_mcp_icecrew_serverinfo_parent_class)->finalize(object); } static void gm_mcp_icecrew_serverinfo_class_init(GmMcpIcecrewServerinfoClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_icecrew_serverinfo_finalize; gm_mcp_icecrew_serverinfo_signals[GOT_INFO] = g_signal_new("got_info", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpIcecrewServerinfoClass, got_info), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); pklass->name = "dns-nl-icecrew-serverinfo"; pklass->handle_simple = &gm_mcp_icecrew_serverinfo_handle_simple; pklass->create_view = &gm_mcp_icecrew_serverinfo_create_view; pklass->set_session = &gm_mcp_icecrew_serverinfo_set_session; pklass->min_version = 1.0; pklass->max_version = 1.1; g_type_class_add_private(object_class, sizeof(GmMcpIcecrewServerinfoPrivate)); } static void gm_mcp_icecrew_serverinfo_init(GmMcpIcecrewServerinfo *obj) { obj->priv = GM_MCP_ICECREW_SERVERINFO_GET_PRIVATE(obj); obj->priv->has_info = FALSE; } GmMcpIcecrewServerinfo * gm_mcp_icecrew_serverinfo_new() { GmMcpIcecrewServerinfo *obj = GM_MCP_ICECREW_SERVERINFO(g_object_new( \ GM_TYPE_MCP_ICECREW_SERVERINFO, NULL)); return obj; } void gm_mcp_icecrew_serverinfo_fetch_progress(GmFetchHandle *g, GmMcpIcecrewServerinfo *package) { gchar *path; GdkPixbuf *pixtest; GError *err = NULL; if (g->aborted) { if (GM_IS_MCP_ICECREW_SERVERINFO(package)) { package->priv->handle = NULL; } gm_debug_msg(DEBUG_MCP, "GmIcecrewServerInfo.FetchProgress: " "fetch aborted!"); return; } if (g->done) { if (GM_IS_MCP_ICECREW_SERVERINFO(package)) { package->priv->handle = NULL; } gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewServerinfo.FetchProgress: " "fetch done!"); return; } if (g->cur_phase == GNOME_VFS_XFER_PHASE_FILECOMPLETED) { path = gnome_vfs_get_local_path_from_uri(g->cur_file_name); pixtest = gdk_pixbuf_new_from_file(path, &err); gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewServerinfo.FetchProgress: %s " "fetched!", path); if (pixtest) { g_object_unref(pixtest); package->priv->info.logo = path; gm_options_set(gm_world_options(GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(package))), "logo", path); g_signal_emit(package, gm_mcp_icecrew_serverinfo_signals[GOT_INFO], 0); g->aborted = TRUE; } else { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewServerinfo.FetchProgress: " "Error on loading %s: %s", path, err->message); g_error_free(err); g_free(path); } } } void gm_mcp_icecrew_serverinfo_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { GmMcpIcecrewServerinfo *serverinfo = GM_MCP_ICECREW_SERVERINFO(package); gchar *base, *path, **alternatives, **ptr; gchar const *logo; GList *source = NULL, *dest = NULL; GnomeVFSResult result; GnomeVFSFileInfo *finfo; if (strcmp(suffix, "set") == 0) { gm_mcp_icecrew_serverinfo_free_info(serverinfo); serverinfo->priv->info.name = g_strdup(gm_mcp_find_value(fields, "name")); serverinfo->priv->info.homepage = g_strdup(gm_mcp_find_value(fields, "homepage")); serverinfo->priv->info.location = g_strdup(gm_mcp_find_value(fields, "location")); serverinfo->priv->info.admin = g_strdup(gm_mcp_find_value(fields, "admin")); serverinfo->priv->info.contact = g_strdup(gm_mcp_find_value(fields, "contact")); serverinfo->priv->info.charset = g_strdup(gm_mcp_find_value(fields, "charset")); serverinfo->priv->info.language = g_strdup(gm_mcp_find_value(fields, "language")); serverinfo->priv->info.system = g_strdup(gm_mcp_find_value(fields, "system")); gm_options_set(gm_world_options(GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(package))), "mooname", serverinfo->priv->info.name); if ((logo = gm_mcp_find_value(fields, "logo")) != NULL) { alternatives = g_strsplit(logo, ";", 0); ptr = alternatives; while (*ptr) { finfo = gnome_vfs_file_info_new(); result = gnome_vfs_get_file_info(*ptr, finfo, GNOME_VFS_FILE_INFO_DEFAULT); gnome_vfs_file_info_unref(finfo); if (result != GNOME_VFS_OK) { gm_debug_msg(DEBUG_MCP, "GmMcpIcecrewServerinfo.HandleSimple: " "Ignore logo alternative %s because it's invalid: %s", *ptr, gnome_vfs_result_to_string(result)); } else { base = g_path_get_basename(*ptr); if (base && *base != '\0' && base[1] != '\0') { path = g_strconcat(gm_world_path(GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(package))), G_DIR_SEPARATOR_S, "pixmaps", G_DIR_SEPARATOR_S, base, NULL); source = g_list_append(source, g_strdup(*ptr)); dest = g_list_append(dest, path); } g_free(base); } ++ptr; } g_strfreev(alternatives); if (source != NULL) { if (serverinfo->priv->handle) { serverinfo->priv->handle->aborted = TRUE; while (serverinfo->priv->handle != NULL) { gm_do_events(); } } if (serverinfo->priv->info.logo) { if (g_file_test(serverinfo->priv->info.logo, G_FILE_TEST_EXISTS)) { unlink(serverinfo->priv->info.logo); } g_free(serverinfo->priv->info.logo); serverinfo->priv->info.logo = NULL; } gm_fetch(source, dest, (GFunc)gm_mcp_icecrew_serverinfo_fetch_progress, serverinfo); gm_g_list_free_simple(source); gm_g_list_free_simple(dest); } } serverinfo->priv->has_info = TRUE; g_signal_emit(serverinfo, gm_mcp_icecrew_serverinfo_signals[GOT_INFO], 0); } } void gm_mcp_icecrew_serverinfo_set_session(GmMcpPackage *package, GObject *session) { GmMcpPackageClass *parent_class = g_type_class_peek_parent( GM_MCP_ICECREW_SERVERINFO_GET_CLASS(package)); gchar *path; parent_class->set_session(package, session); path = g_strconcat(gm_world_path(GM_MCP_SESSION_WORLD( GM_MCP_SESSION(session))), G_DIR_SEPARATOR_S, "pixmaps", NULL); if (!g_file_test(path, G_FILE_TEST_EXISTS)) { mkdir(path, 0755); } g_free(path); if (gm_mcp_package_get_version(package) == 1.0) { gm_mcp_session_send_simple(GM_MCP_SESSION(session), "dns-nl-icecrew-serverinfo-get", NULL); } } gboolean gm_mcp_icecrew_serverinfo_has_info(GmMcpIcecrewServerinfo *package) { return package->priv->has_info; } GmWorldInfo const * gm_mcp_icecrew_serverinfo_info(GmMcpIcecrewServerinfo *package) { return &(package->priv->info); } /* GmMcpIcecrewServerinfoView */ void on_gm_mcp_icecrew_serverinfo_view_activate(GtkMenuItem *item, GmMcpIcecrewServerinfoView *view) { gm_world_info_dialog_new(gm_mcp_icecrew_serverinfo_info(view->package)); } void gm_mcp_icecrew_serverinfo_view_set_visible(GmMcpIcecrewServerinfoView *view, gboolean visible) { GtkAction *action = gm_app_view_action(view->view, "/MenuBar/WorldMenu/WorldInfoMenu"); if (gtk_action_get_visible(action) == visible) { return; } gtk_action_set_visible(action, visible); if (visible) { g_signal_connect(action, "activate", G_CALLBACK(on_gm_mcp_icecrew_serverinfo_view_activate), view); } else { g_signal_handlers_disconnect_by_func(action, on_gm_mcp_icecrew_serverinfo_view_activate, view); } } void on_gm_mcp_icecrew_serverinfo_view_active_changed(GmWorld *world, GParamSpec *pspec, GmMcpIcecrewServerinfoView *view) { gboolean active = gm_world_active(world); if (active && gm_mcp_icecrew_serverinfo_has_info(view->package)) { gm_mcp_icecrew_serverinfo_view_set_visible(view, TRUE); } else if (!active) { gm_mcp_icecrew_serverinfo_view_set_visible(view, FALSE); } } void on_gm_mcp_icecrew_serverinfo_view_weak_notify(gpointer data, GObject *obj) { GmMcpIcecrewServerinfoView *view = (GmMcpIcecrewServerinfoView *)(data); GmWorld *world = GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(view->package)); g_signal_handlers_disconnect_by_func(world, on_gm_mcp_icecrew_serverinfo_view_active_changed, view); if (gm_world_active(world)) { gm_mcp_icecrew_serverinfo_view_set_visible(view, FALSE); } g_free(data); } void on_gm_mcp_icecrew_serverinfo_view_got_info(GmMcpIcecrewServerinfo *package, GmMcpIcecrewServerinfoView *view) { if (gm_world_active(GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(package)))) { gm_mcp_icecrew_serverinfo_view_set_visible(view, TRUE); } /* Set the charset */ if (package->priv->info.charset && *package->priv->info.charset != '\0') gm_options_set(gm_world_options(GM_MCP_SESSION_WORLD( GM_MCP_PACKAGE_SESSION(package))), "charset", package->priv->info.charset); // TODO: set logo for world menu item } void gm_mcp_icecrew_serverinfo_create_view(GmMcpPackage *package, GObject *parent) { GmMcpIcecrewServerinfoView *view; if (!GM_IS_APP_VIEW(parent)) { return; } view = g_new(GmMcpIcecrewServerinfoView, 1); view->view = GM_APP_VIEW(parent); view->package = GM_MCP_ICECREW_SERVERINFO(package); // Connect the got_info signal to know when new information has arrived g_signal_connect(package, "got_info", G_CALLBACK(on_gm_mcp_icecrew_serverinfo_view_got_info), view); // Connect to active_changed signal of the world to alter the sensitivity // of the info menu item g_signal_connect(GM_MCP_SESSION_WORLD(GM_MCP_PACKAGE_SESSION(package)), "notify::active", G_CALLBACK(on_gm_mcp_icecrew_serverinfo_view_active_changed), view); // Connect a weak ref notifier to the McpPackage to know when to destroy // ourselfs g_object_weak_ref(G_OBJECT(package), on_gm_mcp_icecrew_serverinfo_view_weak_notify, view); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-icecrew-serverinfo.h�����������������������������������������������0000644�0001750�0001750�00000003513�10410766736�021524� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_ICECREW_SERVERINFO_H__ #define __GM_MCP_ICECREW_SERVERINFO_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_ICECREW_SERVERINFO (gm_mcp_icecrew_serverinfo_get_type()) #define GM_MCP_ICECREW_SERVERINFO(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_ICECREW_SERVERINFO, GmMcpIcecrewServerinfo)) #define GM_MCP_ICECREW_SERVERINFO_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_ICECREW_SERVERINFO, GmMcpIcecrewServerinfo const)) #define GM_MCP_ICECREW_SERVERINFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_ICECREW_SERVERINFO, GmMcpIcecrewServerinfoClass)) #define GM_IS_MCP_ICECREW_SERVERINFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_ICECREW_SERVERINFO)) #define GM_IS_MCP_ICECREW_SERVERINFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_ICECREW_SERVERINFO)) #define GM_MCP_ICECREW_SERVERINFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_ICECREW_SERVERINFO, GmMcpIcecrewServerinfoClass)) /* Private structure type */ typedef struct _GmMcpIcecrewServerinfoPrivate GmMcpIcecrewServerinfoPrivate; /* * Main object structure */ typedef struct _GmMcpIcecrewServerinfo GmMcpIcecrewServerinfo; struct _GmMcpIcecrewServerinfo { GmMcpPackage parent; /*< private > */ GmMcpIcecrewServerinfoPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpIcecrewServerinfoClass GmMcpIcecrewServerinfoClass; struct _GmMcpIcecrewServerinfoClass { GmMcpPackageClass parent_class; /* Signals */ void (* got_info) (GmMcpIcecrewServerinfo *obj); }; GType gm_mcp_icecrew_serverinfo_get_type(void) G_GNUC_CONST; GmMcpIcecrewServerinfo *gm_mcp_icecrew_serverinfo_new(void); G_END_DECLS #endif /* __GM_MCP_ICECREW_SERVERINFO_H__ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-vmoo-userlist.c����������������������������������������������������0000644�0001750�0001750�00000045225�10416432054�020541� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <strings.h> #include <string.h> #include "gm-mcp-vmoo-userlist.h" #include "gm-mcp-userlist-view.h" #include "gm-iuserlist.h" #include "gm-mcp-session.h" #include "gm-mcp.h" #include "gm-support.h" #include "gm-marshal.h" #include "gm-debug.h" #include "gm-world.h" #include "list.h" #define GM_MCP_VMOO_USERLIST_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_VMOO_USERLIST, GmMcpVmooUserlistPrivate)) static const GmKeyValuePair icon_mapping[] = { {"newbie", "userlist/newbie.svg"}, {"inhabitant", "userlist/inhabitant.svg"}, {"inhabitant+", "userlist/inhabitantplus.svg"}, {"schooled", "userlist/schooled.svg"}, {"key", "userlist/key.svg"}, {"star", "userlist/star.svg"}, {"wizard", "userlist/wizard.svg"}, {NULL, NULL} }; typedef enum _UserState { U_NORMAL, U_AWAY, U_IDLE, U_IDLEAWAY } UserState; typedef struct _UserInfo { gint nr; guint icon; gchar *name; UserState state; } UserInfo; struct _GmMcpVmooUserlistPrivate { gint you; GList *fields; GList *icons; GList *users; GList *menu; gboolean initializing; }; /* Signals enum { NUM_SIGNALS };*/ //static guint gm_mcp_vmoo_userlist_signals[NUM_SIGNALS] = {0}; static void gm_mcp_vmoo_userlist_iface_init(GmIUserlistInterface *iface); G_DEFINE_TYPE_EXTENDED(GmMcpVmooUserlist, gm_mcp_vmoo_userlist, \ GM_TYPE_MCP_PACKAGE, 0, G_IMPLEMENT_INTERFACE(GM_TYPE_IUSERLIST, \ gm_mcp_vmoo_userlist_iface_init)) void gm_mcp_vmoo_userlist_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); gboolean gm_mcp_vmoo_userlist_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values); void gm_mcp_vmoo_userlist_create_view(GmMcpPackage *package, GObject *parent); GList *gm_mcp_vmoo_userlist_get_menu(GmIUserlist *userlist, gint id); gchar const *gm_mcp_vmoo_userlist_get_name(GmIUserlist *userlist, gint id); gchar const *gm_mcp_vmoo_userlist_get_icon(GmIUserlist *userlist, gint id, gboolean use_state); gint gm_mcp_vmoo_userlist_get_rank_priority(GmIUserlist *userlist, gint id); gint gm_mcp_vmoo_userlist_get_state_priority(GmIUserlist *userlist, gint id); static void gm_mcp_vmoo_userlist_iface_init( GmIUserlistInterface *iface) { iface->get_menu = gm_mcp_vmoo_userlist_get_menu; iface->get_name = gm_mcp_vmoo_userlist_get_name; iface->get_icon = gm_mcp_vmoo_userlist_get_icon; iface->get_rank_priority = gm_mcp_vmoo_userlist_get_rank_priority; iface->get_state_priority = gm_mcp_vmoo_userlist_get_state_priority; } void gm_mcp_vmoo_userlist_remove_users(GmMcpVmooUserlist *package) { GList *users = g_list_copy(package->priv->users); GList *field; UserInfo *info; for (field = users; field; field = field->next) { info = (UserInfo *)(field->data); package->priv->users = g_list_remove(package->priv->users, field->data); g_free(info->name); g_free(info); } g_list_free(users); } static void gm_mcp_vmoo_userlist_free_menu(GmMcpVmooUserlist *obj) { GList *field; GmKeyValuePair *pair; for (field = obj->priv->menu; field; field = field->next) { pair = (GmKeyValuePair *)(field->data); g_free(pair->key); g_free(pair->value); g_free(pair); } obj->priv->menu = NULL; } static void gm_mcp_vmoo_userlist_finalize(GObject *object) { GmMcpVmooUserlist *obj = GM_MCP_VMOO_USERLIST(object); GList *field; for (field = obj->priv->fields; field; field = field->next) { g_free(field->data); } g_list_free(obj->priv->fields); for (field = obj->priv->icons; field; field = field->next) { g_free(field->data); } g_list_free(obj->priv->icons); gm_mcp_vmoo_userlist_free_menu(obj); gm_mcp_vmoo_userlist_remove_users(obj); g_list_free(obj->priv->users); G_OBJECT_CLASS(gm_mcp_vmoo_userlist_parent_class)->finalize(object); } static void gm_mcp_vmoo_userlist_class_init(GmMcpVmooUserlistClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_vmoo_userlist_finalize; pklass->name = "dns-com-vmoo-userlist"; pklass->handle_simple = &gm_mcp_vmoo_userlist_handle_simple; pklass->handle_multi = &gm_mcp_vmoo_userlist_handle_multi; pklass->create_view = &gm_mcp_vmoo_userlist_create_view; g_type_class_add_private(object_class, sizeof(GmMcpVmooUserlistPrivate)); } static void gm_mcp_vmoo_userlist_init(GmMcpVmooUserlist *obj) { obj->priv = GM_MCP_VMOO_USERLIST_GET_PRIVATE(obj); obj->priv->you = 0; obj->priv->fields = NULL; obj->priv->icons = NULL; obj->priv->users = NULL; } GmMcpVmooUserlist * gm_mcp_vmoo_userlist_new() { GmMcpVmooUserlist *obj = GM_MCP_VMOO_USERLIST(g_object_new( \ GM_TYPE_MCP_VMOO_USERLIST, NULL)); return obj; } #define MAX_MATCHES 10 void gm_mcp_vmoo_userlist_process_triggers(GmMcpVmooUserlist *package, gchar const *username, GmTriggerConditionType condition) { GmWorld *world; GmTriggers *triggers; GList const *item; GmTrigger *trigger; gint num; regmatch_t matches[MAX_MATCHES]; if (package->priv->initializing) { return; } world = GM_MCP_SESSION_WORLD(GM_MCP_PACKAGE_SESSION(package)); triggers = gm_world_triggers(world); for (item = gm_triggers_list(triggers); item; item = item->next) { trigger = (GmTrigger *)(item->data); if (trigger->event == TT_USERS) { if ((num = gm_trigger_match_user(trigger, username, condition, matches, MAX_MATCHES))) { gm_world_apply_trigger(world, trigger, username, matches, num); } } } } void gm_mcp_vmoo_userlist_handle_fields(GmMcpVmooUserlist *package, MOOVar *list) { MOOVar *field; for (field = list->list; field; field = field->next) { if (field->type == STRING) { package->priv->fields = g_list_append(package->priv->fields, g_strdup(field->s)); } } } gchar const * gm_mcp_vmoo_userlist_icon_path(GmMcpVmooUserlist *package, UserInfo *ui, gboolean use_state) { gchar *field; guint index = ui->icon; GmKeyValuePair const *pair; if (index < 1 || index > g_list_length(package->priv->icons)) { return NULL; } else { if (!use_state || ui->state == U_NORMAL) { field = (gchar *)(g_list_nth_data(package->priv->icons, index - 1)); pair = icon_mapping; while (!(pair->key == NULL && pair->value == NULL)) { if (strcasecmp(pair->key, field) == 0) { return pair->value; } ++pair; } } else { switch (ui->state) { case U_IDLE: return "userlist/idle.svg"; break; case U_AWAY: return "userlist/away.svg"; break; case U_IDLEAWAY: return "userlist/idleaway.svg"; break; default: break; } } } return NULL; } void gm_mcp_vmoo_userlist_handle_icons(GmMcpVmooUserlist *package, MOOVar *list) { MOOVar *field; for (field = list->list; field; field = field->next) { if (field->type == STRING) { package->priv->icons = g_list_append(package->priv->icons, g_strdup(field->s)); } } } void gm_mcp_vmoo_userlist_handle_menu(GmMcpVmooUserlist *package, MOOVar *list) { MOOVar *field; GmKeyValuePair *pair; for (field = list->list; field; field = field->next) { pair = g_new0(GmKeyValuePair, 1); if (field->type == LIST && field->i == 2) { pair->key = g_strdup(field->list->s); pair->value = g_strdup(field->list->next->s); package->priv->menu = g_list_append(package->priv->menu, pair); } else if (field->type != LIST) { package->priv->menu = g_list_append(package->priv->menu, pair); } else { g_free(pair); } } } gchar * gm_mcp_vmoo_userlist_get_string(GmMcpVmooUserlist *package, MOOVar *v, MOOType type, gchar *cmp) { GList *fields = package->priv->fields; while (fields && strcasecmp(((gchar *) (fields->data)), cmp) != 0) { fields = fields->next; if (v) { v = v->next; } } if (v && v->type == type) { return g_strdup(v->s); } return NULL; } gint gm_mcp_vmoo_userlist_get_int(GmMcpVmooUserlist *package, MOOVar *v, MOOType type, gchar *cmp) { GList *fields = package->priv->fields; while (fields && strcasecmp(((gchar *) (fields->data)), cmp) != 0) { fields = fields->next; if (v) { v = v->next; } } if (v && v->type == type) { return v->i; } return 0; } UserInfo * gm_mcp_vmoo_userlist_find_user(GmMcpVmooUserlist *package, gint nr) { UserInfo *result; GList *users; for (users = package->priv->users; users; users = users->next) { result = (UserInfo *) (users->data); if (result->nr == nr) { return result; } } return NULL; } gchar * gm_mcp_vmoo_userlist_menu_item_subst(GmMcpVmooUserlist *package, gchar *str, UserInfo *info) { GString *result; gchar *ptr = str, *subst, *tmp; gunichar ch, cnum; gint num; gboolean substituted; if (str == NULL) { return NULL; } result = g_string_sized_new(strlen(str)); while ((ch = g_utf8_get_char(ptr)) != '\0') { substituted = FALSE; if (ch == '&') { result = g_string_append_c(result, '_'); substituted = TRUE; } else if (ch == '$') { subst = g_utf8_next_char(ptr); if (g_utf8_get_char(subst) == '(') { subst = g_utf8_next_char(subst); num = 0; while (g_unichar_isdigit((cnum = g_utf8_get_char(subst)))) { num = (num * 10) + g_unichar_digit_value(cnum); subst = g_utf8_next_char(subst); } if (g_utf8_get_char(subst) == ')') { switch (num) { case 1: tmp = g_strdup_printf("#%d", info->nr); result = g_string_append(result, tmp); g_free(tmp); break; case 2: for (tmp = info->name; *tmp != '\0'; tmp = g_utf8_next_char(tmp)) { ch = g_utf8_get_char(tmp); if (ch == '_') { result = g_string_append_c(result, '_'); } result = g_string_append_unichar(result, ch); } break; default: break; } ptr = subst; substituted = TRUE; } } } if (!substituted) { result = g_string_append_unichar(result, ch); } ptr = g_utf8_next_char(ptr); } ptr = result->str; g_string_free(result, FALSE); return ptr; } GmKeyValuePair * gm_mcp_vmoo_userlist_get_menu_item(GmMcpVmooUserlist *package, GmKeyValuePair *menuitem, UserInfo *info) { GmKeyValuePair *result = g_new0(GmKeyValuePair, 1); if (!menuitem) { return result; } result->key = gm_mcp_vmoo_userlist_menu_item_subst(package, menuitem->key, info); result->value = gm_mcp_vmoo_userlist_menu_item_subst(package, menuitem->value, info); return result; } GList * gm_mcp_vmoo_userlist_get_menu(GmIUserlist *userlist, gint id) { GmMcpVmooUserlist *package = (GmMcpVmooUserlist *)(userlist); UserInfo *info = gm_mcp_vmoo_userlist_find_user(package, id); GList *item, *menu = NULL; GmKeyValuePair *pair; if (!info) { return NULL; } for (item = package->priv->menu; item; item = item->next) { pair = (GmKeyValuePair *)(item->data); menu = g_list_append(menu, gm_mcp_vmoo_userlist_get_menu_item(package, pair, info)); } return menu; } gchar const * gm_mcp_vmoo_userlist_get_name(GmIUserlist *userlist, gint id) { GmMcpVmooUserlist *package = GM_MCP_VMOO_USERLIST(userlist); UserInfo *info = gm_mcp_vmoo_userlist_find_user(package, id); return info->name; } gchar const * gm_mcp_vmoo_userlist_get_icon(GmIUserlist *userlist, gint id, gboolean use_state) { GmMcpVmooUserlist *package = GM_MCP_VMOO_USERLIST(userlist); UserInfo *info = gm_mcp_vmoo_userlist_find_user(package, id); return gm_mcp_vmoo_userlist_icon_path(package, info, use_state); } gint gm_mcp_vmoo_userlist_get_rank_priority(GmIUserlist *userlist, gint id) { GmMcpVmooUserlist *package = GM_MCP_VMOO_USERLIST(userlist); UserInfo *info = gm_mcp_vmoo_userlist_find_user(package, id); return g_list_length(package->priv->icons) - info->icon; } gint gm_mcp_vmoo_userlist_get_state_priority(GmIUserlist *userlist, gint id) { GmMcpVmooUserlist *package = GM_MCP_VMOO_USERLIST(userlist); UserInfo *info = gm_mcp_vmoo_userlist_find_user(package, id); return info->state; } void gm_mcp_vmoo_userlist_remove_user(GmMcpVmooUserlist *package, gint nr) { GList *elem; UserInfo *ui; for (elem = package->priv->users; elem; elem = elem->next) { ui = (UserInfo *) (elem->data); if (ui->nr == nr) { gm_mcp_vmoo_userlist_process_triggers(package, ui->name, TCT_USER_OFFLINE); package->priv->users = g_list_remove(package->priv->users, ui); break; } } g_signal_emit_by_name(package, "player-removed", nr); } void gm_mcp_vmoo_userlist_handle_user_update(GmMcpVmooUserlist *package, MOOVar *v) { gint nr = gm_mcp_vmoo_userlist_get_int(package, v, OBJECT, "object"); gchar *name = gm_mcp_vmoo_userlist_get_string(package, v, STRING, "name"); gint icon = gm_mcp_vmoo_userlist_get_int(package, v, INT, "icon"); UserInfo *ui; if ((ui = gm_mcp_vmoo_userlist_find_user(package, nr)) == NULL) { // Add the user ui = g_new(UserInfo, 1); ui->name = name; ui->state = U_NORMAL; ui->icon = icon; ui->nr = nr; package->priv->users = g_list_append(package->priv->users, ui); g_signal_emit_by_name(package, "player-added", nr); gm_mcp_vmoo_userlist_process_triggers(package, ui->name, TCT_USER_ONLINE); } else { if (ui->name || strcmp(ui->name, name) != 0) { g_free(ui->name); ui->name = name; g_signal_emit_by_name(package, "name-changed", nr); } else { g_free(name); } if (ui->icon != (guint)icon) { ui->icon = (guint)icon; g_signal_emit_by_name(package, "rank-changed", nr); } } } void gm_mcp_vmoo_userlist_handle_set(GmMcpVmooUserlist *package, MOOVar *v) { MOOVar *ui; if (v->type != LIST) { return; } package->priv->initializing = TRUE; gm_mcp_vmoo_userlist_remove_users(package); for (ui = v->list; ui; ui = ui->next) { if (ui->type != LIST) { return; } gm_mcp_vmoo_userlist_handle_user_update(package, ui->list); } package->priv->initializing = FALSE; } void gm_mcp_vmoo_userlist_handle_add(GmMcpVmooUserlist *package, MOOVar *v) { if (v->type != LIST) { return; } gm_mcp_vmoo_userlist_handle_user_update(package, v->list); } void gm_mcp_vmoo_userlist_handle_remove(GmMcpVmooUserlist *package, MOOVar *v) { MOOVar *nr; if (v->type != LIST) { return; } for (nr = v->list; nr; nr = nr->next) { if (nr->type == OBJECT) { gm_mcp_vmoo_userlist_remove_user(package, nr->i); } } } void gm_mcp_vmoo_userlist_handle_update(GmMcpVmooUserlist *package, MOOVar *v) { if (v->type != LIST) { return; } gm_mcp_vmoo_userlist_handle_user_update(package, v->list); } void gm_mcp_vmoo_userlist_handle_state(GmMcpVmooUserlist *package, MOOVar *v, UserState state, gboolean onOff) { MOOVar *nr; UserInfo *u; GmTriggerConditionType condition = 0; if (v->type != LIST) { return; } for (nr = v->list; nr; nr = nr->next) { if (nr->type == OBJECT) { if ((u = gm_mcp_vmoo_userlist_find_user(package, nr->i))) { switch (state) { case U_IDLE: if (u->state == U_IDLEAWAY && !onOff) { u->state = U_AWAY; } else if (u->state == U_AWAY && onOff) { u->state = U_IDLEAWAY; } else if (onOff) { u->state = U_IDLE; } else if (u->state == U_IDLE) { u->state = U_NORMAL; } if (onOff) { condition = TCT_USER_IDLE; } else { condition = TCT_USER_IDLE_OFF; } break; case U_AWAY: if (u->state == U_IDLEAWAY && !onOff) { u->state = U_IDLE; } else if (u->state == U_IDLE && onOff) { u->state = U_IDLEAWAY; } else if (onOff) { u->state = U_AWAY; } else if (u->state == U_AWAY) { u->state = U_NORMAL; } if (onOff) { condition = TCT_USER_AWAY; } else { condition = TCT_USER_AWAY_OFF; } break; default: break; } g_signal_emit_by_name(package, "state-changed", u->nr); if (condition != 0) { gm_mcp_vmoo_userlist_process_triggers(package, u->name, condition); } } else { gm_debug_msg(DEBUG_MCP, "User %d does not exist!", nr->i); } } else { gm_debug_msg(DEBUG_MCP, "Nr is not an object: %d", nr->type); } } } void gm_mcp_vmoo_userlist_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { MOOVar *v = NULL; GmMcpVmooUserlist *userlist = GM_MCP_VMOO_USERLIST(package); gchar const *value; if (suffix) { if (strcmp(suffix, "you") == 0) { v = MOOVar_parse(gm_mcp_find_value(fields, "nr")); if (v->type == OBJECT) { userlist->priv->you = v->i; } else { gm_debug_msg(DEBUG_MCP, "GmMcpVmooUserlist.HandleSimple: " "you is not an object!"); } } else if (strcmp(suffix, "menu") == 0) { value = gm_mcp_find_value(fields, "menu"); v = MOOVar_parse(value); if (!v || v->type != LIST) { gm_debug_msg(DEBUG_MCP, "GmMcpVmooUserlist.HandleMulti: " "invalid value: %s", value); } else { gm_mcp_vmoo_userlist_free_menu(userlist); gm_mcp_vmoo_userlist_handle_menu(userlist, v); } } } if (v) { MOOVar_free(v); } } gboolean gm_mcp_vmoo_userlist_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values) { MOOVar *v = NULL; GmMcpVmooUserlist *userlist = GM_MCP_VMOO_USERLIST(package); if (key) { if (strcmp(key, "fields") == 0) { v = MOOVar_parse(value); if (!v || v->type != LIST) { gm_debug_msg(DEBUG_MCP, "GmMcpVmooUserlist.HandleMulti: " "invalid value: %s", value); } else { gm_mcp_vmoo_userlist_handle_fields(userlist, v); } } else if (strcmp(key, "icons") == 0) { v = MOOVar_parse(value); if (!v || v->type != LIST) { gm_debug_msg(DEBUG_MCP, "GmMcpVmooUserlist.HandleMulti: " "invalid value: %s", value); } else { gm_mcp_vmoo_userlist_handle_icons(userlist, v); } } else if (strcmp(key, "d") == 0) { v = MOOVar_parse(value + 1); if (!v) { gm_debug_msg(DEBUG_MCP, "GmMcpVmooUserlist.HandleMulti: " "invalid value: %s", value + 1); } else { switch (*value) { case '=': gm_mcp_vmoo_userlist_handle_set(userlist, v); break; case '+': gm_mcp_vmoo_userlist_handle_add(userlist, v); break; case '-': gm_mcp_vmoo_userlist_handle_remove(userlist, v); break; case '*': gm_mcp_vmoo_userlist_handle_update(userlist, v); break; case '<': gm_mcp_vmoo_userlist_handle_state(userlist, v, U_IDLE, TRUE); break; case '>': gm_mcp_vmoo_userlist_handle_state(userlist, v, U_IDLE, FALSE); break; case '[': gm_mcp_vmoo_userlist_handle_state(userlist, v, U_AWAY, TRUE); break; case ']': gm_mcp_vmoo_userlist_handle_state(userlist, v, U_AWAY, FALSE); break; case '(': gm_mcp_vmoo_userlist_handle_remove(userlist, v); break; default: break; } } } } if (v) { MOOVar_free(v); } return TRUE; } void gm_mcp_vmoo_userlist_create_view(GmMcpPackage *package, GObject *parent) { gm_mcp_userlist_view_new(package, parent); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-vmoo-userlist.h����������������������������������������������������0000644�0001750�0001750�00000003144�10413557306�020545� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_VMOO_USERLIST_H__ #define __GM_MCP_VMOO_USERLIST_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_VMOO_USERLIST (gm_mcp_vmoo_userlist_get_type()) #define GM_MCP_VMOO_USERLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_VMOO_USERLIST, GmMcpVmooUserlist)) #define GM_MCP_VMOO_USERLIST_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_VMOO_USERLIST, GmMcpVmooUserlist const)) #define GM_MCP_VMOO_USERLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_VMOO_USERLIST, GmMcpVmooUserlistClass)) #define GM_IS_MCP_VMOO_USERLIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_VMOO_USERLIST)) #define GM_IS_MCP_VMOO_USERLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_VMOO_USERLIST)) #define GM_MCP_VMOO_USERLIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_VMOO_USERLIST, GmMcpVmooUserlistClass)) /* Private structure type */ typedef struct _GmMcpVmooUserlistPrivate GmMcpVmooUserlistPrivate; /* * Main object structure */ typedef struct _GmMcpVmooUserlist GmMcpVmooUserlist; struct _GmMcpVmooUserlist { GmMcpPackage parent; /*< private > */ GmMcpVmooUserlistPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpVmooUserlistClass GmMcpVmooUserlistClass; struct _GmMcpVmooUserlistClass { GmMcpPackageClass parent_class; }; GType gm_mcp_vmoo_userlist_get_type(void) G_GNUC_CONST; GmMcpVmooUserlist *gm_mcp_vmoo_userlist_new(void); G_END_DECLS #endif /* __GM_MCP_VMOO_USERLIST_H__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-mud-moo-simpleedit.c�����������������������������������������������0000644�0001750�0001750�00000014340�10415727701�021422� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "gm-mcp-mud-moo-simpleedit.h" #include "gm-mcp-session.h" #include "gm-mcp.h" #include "gm-debug.h" #include "gm-world.h" #include "gm-editor.h" #define GM_MCP_MUD_MOO_SIMPLEEDIT_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT, GmMcpMudMooSimpleeditPrivate)) struct _GmMcpMudMooSimpleeditPrivate { gchar *ref; gchar *name; gchar *type; GSList *editors; }; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_mcp_mud_moo_simpleedit_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmMcpMudMooSimpleedit, gm_mcp_mud_moo_simpleedit, GM_TYPE_MCP_PACKAGE) void gm_mcp_mud_moo_simpleedit_set_session(GmMcpPackage *package, GObject *session); void gm_mcp_mud_moo_simpleedit_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields); gboolean gm_mcp_mud_moo_simpleedit_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values); void on_gm_mcp_mud_moo_simpleedit_editor_save(GmEditor *editor, GmMcpMudMooSimpleedit *package); static void gm_mcp_mud_moo_simpleedit_remove_editor(GmMcpMudMooSimpleedit *simpleedit, GmEditor *editor) { g_signal_handlers_disconnect_by_func(editor, on_gm_mcp_mud_moo_simpleedit_editor_save, simpleedit); simpleedit->priv->editors = g_slist_remove(simpleedit->priv->editors, editor); } static void gm_mcp_mud_moo_simpleedit_finalize(GObject *object) { GmMcpMudMooSimpleedit *obj = GM_MCP_MUD_MOO_SIMPLEEDIT(object); g_free(obj->priv->ref); g_free(obj->priv->name); g_free(obj->priv->type); while (obj->priv->editors) { g_object_weak_unref(G_OBJECT(obj->priv->editors->data), (GWeakNotify)gm_mcp_mud_moo_simpleedit_remove_editor, obj); gm_mcp_mud_moo_simpleedit_remove_editor(obj, GM_EDITOR(obj->priv->editors->data)); } G_OBJECT_CLASS(gm_mcp_mud_moo_simpleedit_parent_class)->finalize(object); } static void gm_mcp_mud_moo_simpleedit_class_init(GmMcpMudMooSimpleeditClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmMcpPackageClass *pklass = GM_MCP_PACKAGE_CLASS(klass); object_class->finalize = gm_mcp_mud_moo_simpleedit_finalize; /*gm_mcp_mud_moo_simpleedit_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmMcpMudMooSimpleeditClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ pklass->name = "dns-org-mud-moo-simpleedit"; pklass->set_session = gm_mcp_mud_moo_simpleedit_set_session; pklass->handle_simple = gm_mcp_mud_moo_simpleedit_handle_simple; pklass->handle_multi = gm_mcp_mud_moo_simpleedit_handle_multi; g_type_class_add_private(object_class, sizeof(GmMcpMudMooSimpleeditPrivate)); } static void gm_mcp_mud_moo_simpleedit_init(GmMcpMudMooSimpleedit *obj) { obj->priv = GM_MCP_MUD_MOO_SIMPLEEDIT_GET_PRIVATE(obj); } GmMcpMudMooSimpleedit * gm_mcp_mud_moo_simpleedit_new() { GmMcpMudMooSimpleedit *obj = GM_MCP_MUD_MOO_SIMPLEEDIT(g_object_new(GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT, NULL)); return obj; } void gm_mcp_mud_moo_simpleedit_handle_simple(GmMcpPackage *package, gchar *suffix, GList *fields) { gchar const *name, *ref, *type; GmMcpMudMooSimpleedit *simpleedit = GM_MCP_MUD_MOO_SIMPLEEDIT(package); if (g_strcasecmp(suffix, "content") == 0) { if (!(name = gm_mcp_find_value(fields, "name"))) { gm_debug_msg(DEBUG_MCP, "GmMcpMooMudSimpleedit.HandleSimple: " "no name found, ignoring!"); } else if (!(ref = gm_mcp_find_value(fields, "reference"))) { gm_debug_msg(DEBUG_MCP, "GmMcpMooMudSimpleedit.HandleSimple: " "no reference found, ignoring!"); } else if (!(type = gm_mcp_find_value(fields, "type"))) { gm_debug_msg(DEBUG_MCP, "GmMcpMooMudSimpleedit.HandleSimple: " "no type found, ignoring!"); } else { gm_debug_msg(DEBUG_MCP, "GmMcpMooMudSimpleedit.HandleSimple: " "accept content: name = %s, reference = %s, type = %s", name, ref, type); simpleedit->priv->name = g_strdup(name); simpleedit->priv->ref = g_strdup(ref); simpleedit->priv->type = g_strdup(type); } } else { gm_debug_msg(DEBUG_MCP, "GmMcpMooMudSimpleedit.HandleSimple: " "unknown suffix: %s", suffix); } } static void gm_mcp_mud_moo_simpleedit_add_editor(GmMcpMudMooSimpleedit *package, GmEditor *editor) { g_signal_connect(editor, "save", G_CALLBACK(on_gm_mcp_mud_moo_simpleedit_editor_save), package); package->priv->editors = g_slist_prepend(package->priv->editors, editor); g_object_weak_ref(G_OBJECT(editor), (GWeakNotify)gm_mcp_mud_moo_simpleedit_remove_editor, package); } gboolean gm_mcp_mud_moo_simpleedit_handle_multi(GmMcpPackage *package, gchar const *data_tag, gchar const *key, gchar const *value, GList *all_values) { GmEditor *editor; GmMcpMudMooSimpleedit *simpleedit = GM_MCP_MUD_MOO_SIMPLEEDIT(package); if (key) { return FALSE; } else { // All values arrived! Yeah! editor = gm_editor_new_mcp(simpleedit->priv->name, simpleedit->priv->ref, simpleedit->priv->type, all_values); gm_mcp_mud_moo_simpleedit_add_editor(simpleedit, editor); gm_world_add_editor(GM_MCP_SESSION_WORLD(GM_MCP_PACKAGE_SESSION( package)), editor); } return TRUE; } void gm_mcp_mud_moo_simpleedit_set_session(GmMcpPackage *package, GObject *session) { GmMcpPackageClass *parent_class = g_type_class_peek_parent( GM_MCP_MUD_MOO_SIMPLEEDIT_GET_CLASS(package)); GSList const *editors = gm_world_editors(GM_MCP_SESSION_WORLD( GM_MCP_SESSION(session))); GmMcpMudMooSimpleedit *simpleedit = GM_MCP_MUD_MOO_SIMPLEEDIT(package); parent_class->set_session(package, session); for (; editors; editors = editors->next) { gm_mcp_mud_moo_simpleedit_add_editor(simpleedit, GM_EDITOR(editors->data)); } } /* Callbacks */ void on_gm_mcp_mud_moo_simpleedit_editor_save(GmEditor *editor, GmMcpMudMooSimpleedit *package) { GmMcpSession *session = GM_MCP_PACKAGE_SESSION(package); gchar *data_tag = gm_mcp_generate_data_tag(); if (session) { gm_mcp_session_send_simple(session, "dns-org-mud-moo-simpleedit-set", "reference", gm_editor_upload_cmd(editor), "type", gm_editor_mcp_type(editor), "content*", "", "_data-tag", data_tag, NULL); gm_mcp_session_send_multiline(session, data_tag, "content", gm_editor_lines(editor)); gm_editor_saved(editor); } g_free(data_tag); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/mcp/gm-mcp-mud-moo-simpleedit.h�����������������������������������������������0000644�0001750�0001750�00000003471�10410766736�021440� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_MCP_MUD_MOO_SIMPLEEDIT_H__ #define __GM_MCP_MUD_MOO_SIMPLEEDIT_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-mcp-package.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT (gm_mcp_mud_moo_simpleedit_get_type()) #define GM_MCP_MUD_MOO_SIMPLEEDIT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT, GmMcpMudMooSimpleedit)) #define GM_MCP_MUD_MOO_SIMPLEEDIT_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT, GmMcpMudMooSimpleedit const)) #define GM_MCP_MUD_MOO_SIMPLEEDIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT, GmMcpMudMooSimpleeditClass)) #define GM_IS_MCP_MUD_MOO_SIMPLEEDIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT)) #define GM_IS_MCP_MUD_MOO_SIMPLEEDIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT)) #define GM_MCP_MUD_MOO_SIMPLEEDIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_MCP_MUD_MOO_SIMPLEEDIT, GmMcpMudMooSimpleeditClass)) /* Private structure type */ typedef struct _GmMcpMudMooSimpleeditPrivate GmMcpMudMooSimpleeditPrivate; /* * Main object structure */ typedef struct _GmMcpMudMooSimpleedit GmMcpMudMooSimpleedit; struct _GmMcpMudMooSimpleedit { GmMcpPackage parent; /*< private > */ GmMcpMudMooSimpleeditPrivate *priv; }; /* * Class definition */ typedef struct _GmMcpMudMooSimpleeditClass GmMcpMudMooSimpleeditClass; struct _GmMcpMudMooSimpleeditClass { GmMcpPackageClass parent_class; /* Signals void (* proto) (GmMcpMudMooSimpleedit *obj); */ }; GType gm_mcp_mud_moo_simpleedit_get_type(void) G_GNUC_CONST; GmMcpMudMooSimpleedit *gm_mcp_mud_moo_simpleedit_new(void); G_END_DECLS #endif /* __GM_MCP_MUD_MOO_SIMPLEEDIT_H__ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/����������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753113�015252� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/Makefile.include������������������������������������������������������0000644�0001750�0001750�00000002310�10416440360�020323� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Process this file with automake to produce Makefile.in widgetsdir = widgets gnoemoe_SOURCES += \ $(widgetsdir)/gm-app-view.c $(widgetsdir)/gm-app-view.h \ $(widgetsdir)/gm-commands.c $(widgetsdir)/gm-commands.h \ $(widgetsdir)/gm-world-view.c $(widgetsdir)/gm-world-view.h \ $(widgetsdir)/gm-world-text-view.c $(widgetsdir)/gm-world-text-view.h \ $(widgetsdir)/gm-world-input-view.c $(widgetsdir)/gm-world-input-view.h \ $(widgetsdir)/gm-world-tab.c $(widgetsdir)/gm-world-tab.h \ $(widgetsdir)/gm-text-scroller.c $(widgetsdir)/gm-text-scroller.h \ $(widgetsdir)/gm-editor-view.c $(widgetsdir)/gm-editor-view.h \ $(widgetsdir)/gm-searchable.c $(widgetsdir)/gm-searchable.h \ $(widgetsdir)/gm-embedded-view.c $(widgetsdir)/gm-embedded-view.h \ $(widgetsdir)/gm-external-view.c $(widgetsdir)/gm-external-view.h \ $(widgetsdir)/gm-log-view.c $(widgetsdir)/gm-log-view.h \ $(widgetsdir)/gm-tray.c $(widgetsdir)/gm-tray.h \ $(widgetsdir)/eggtrayicon.c $(widgetsdir)/eggtrayicon.h \ $(widgetsdir)/eggnotificationbubble.c \ $(widgetsdir)/eggnotificationbubble.h \ $(widgetsdir)/gm-worlds-view.c $(widgetsdir)/gm-worlds-view.h \ $(widgetsdir)/gm-source-style-scheme.c \ $(widgetsdir)/gm-source-style-scheme.h ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-app-view.c���������������������������������������������������������0000644�0001750�0001750�00000146375�10507240670�017565� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include <glade/glade.h> #include <libgnomeui/libgnomeui.h> #include <libgnome/gnome-url.h> #include <vte/vte.h> #include "gm-debug.h" #include "gm-app-view.h" #include "gm-ui.h" #include "gm-world-view.h" #include "gm-world.h" #include "dialogs/gm-worlds-list-dialog.h" #include "dialogs/gm-open-world-dialog.h" #include "dialogs/gm-world-logs-dialog.h" #include "dialogs/gm-world-properties-dialog.h" #include "dialogs/gm-scripts-dialog.h" #include "dialogs/gm-preferences-dialog.h" #include "gm-world-tab.h" #include "gm-editor-view.h" #include "mcp/gm-mcp-session.h" #include "mcp/gm-mcp-package.h" #include "gm-searchable.h" #include "gm-tray.h" #include "gm-pixbuf.h" #include "gm-support.h" #include "gm-marshal.h" void on_gm_app_view_entry_find_activate(GtkEntry *entry, GmAppView *view); void on_gm_app_view_entry_find_changed(GtkEditable *editable, GmAppView *view); gboolean on_gm_app_view_entry_find_key_press(GtkWidget *widget, GdkEventKey *event, GmAppView *view); void on_gm_app_view_button_find_close_clicked(GtkButton *button, GmAppView *view); void on_gm_app_view_button_replace_clicked(GtkButton *button, GmAppView *view); void on_gm_app_view_button_replace_all_clicked(GtkButton *button, GmAppView *view); void on_gm_app_view_expander_replace(GObject *object, GParamSpec *param_spec, GmAppView *view); void on_gm_app_view_notebook_switch_page(GtkNotebook * notebook, GtkNotebookPage * page, guint page_num, GmAppView *view); void on_gm_app_view_world_view_notebook_switch_page(GtkNotebook * notebook, GtkNotebookPage * page, guint page_num, GmAppView *view); gboolean on_gm_app_view_notebook_button_press(GtkNotebook *notebook, GdkEventButton *event, GmAppView *view); gboolean on_gm_app_view_notebook_button_release(GtkNotebook *notebook, GdkEventButton *event, GmAppView *view); void on_gm_app_view_check_button_search_direction_toggled( GtkToggleButton *button, GmAppView *view); void on_gm_app_view_check_button_search_sensitive_toggled( GtkToggleButton *button, GmAppView *view); gboolean on_gm_app_view_tray_button_press(GmTray *tray, GdkEventButton *event, GmAppView *view); void on_gm_app_view_tray_message_clicked(GmTray *tray, GmAppView *view); void on_gm_app_view_tray_destroy(GtkWidget *caller, GmAppView *view); void on_gm_app_view_world_mcp_package_created(GmMcpSession *session, GmMcpPackage *package, GmAppView *view); void on_gm_app_view_option_changed(GmOptions *options, gchar const *key, GmAppView *view); typedef struct _AccelInfo AccelInfo; struct _AccelInfo { int num; GmAppView *view; }; void on_gm_app_view_accel_switch_page(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info); void on_gm_app_view_accel_switch_edit(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info); void on_gm_app_view_accel_cycle_page(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info); void on_gm_app_view_world_added(GmApp *app, GmWorld *world, GmAppView *view); void on_gm_app_view_world_removed(GmApp *app, GmWorld *world, GmAppView *view); void on_gm_app_view_world_activate(GtkAction * action, GmWorld *world); void on_gm_app_view_world_load(GmWorld *world, GmAppView *view); void on_gm_app_view_world_unload(GmWorld *world, GmAppView *view); void on_gm_app_view_world_activate_request(GmWorld *world, GmAppView *view); void on_gm_app_view_world_name_changed(GmWorld *world, GParamSpec *pspec, GmAppView *view); void on_gm_app_view_world_active_changed(GmWorld *world, GParamSpec *pspec, GmAppView *view); void on_gm_app_view_world_activity_changed(GmWorld *world, GParamSpec *pspec, GmAppView *view); void on_gm_app_view_world_state_changing(GmWorld *world, GmNetState state, GmAppView *view); void on_gm_app_view_world_notify_message(GmWorld *world, gchar const *message, GmAppView *view); void on_gm_app_view_world_view_destroy(GmWorldView *world_view, GmAppView *view); #define GM_APP_VIEW_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_APP_VIEW, GmAppViewPrivate)) typedef struct _GmAppViewWorldMenuItem GmAppViewWorldMenuItem; struct _GmAppViewWorldMenuItem { guint merge_id; GtkAction *action; }; void gm_app_view_destroy_world_menu_item(GmAppViewWorldMenuItem *item); struct _GmAppViewPrivate { GmApp *application; GtkUIManager *manager; GtkActionGroup *sensitive_action_group; GtkActionGroup *action_group; GtkActionGroup *worlds_action_group; GtkActionGroup *editor_action_group; GHashTable *world_menu_items; GmTray *tray; GtkNotebook *notebook; GmWorld *active_world; GtkMenuBar *menu; GtkToolbar *toolbar; GtkLabel *label_replace; GtkExpander *expander_replace; GtkEntry *entry_find; GtkEntry *entry_replace; GtkVBox *vbox_find; GtkHBox *hbox_control_find; GtkHBox *hbox_replace; GtkCheckButton *check_button_search_direction; GtkCheckButton *check_button_search_sensitive; gboolean ignore_toggling; gboolean drag_in_progress; gint motion_notify_handler_id; gint x_start; gint y_start; gint tab; GdkCursor *cursor; guint tray_idle_create; gint position_left; gint position_top; }; /* Signals */ enum { ACTIVE_WORLD_CHANGED, NUM_SIGNALS }; static guint gm_app_view_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmAppView, gm_app_view, GTK_TYPE_WINDOW) static void gm_app_view_finalize(GObject *object) { GmAppView *view = GM_APP_VIEW(object); #ifdef HAVE_RUBY gm_scripts_dialog_fini(); #endif if (view->priv->cursor) { gdk_cursor_unref(view->priv->cursor); } if (view->priv->tray_idle_create) { g_source_remove(view->priv->tray_idle_create); } if (view->priv->tray) { g_signal_handlers_disconnect_by_func(view->priv->tray, on_gm_app_view_tray_destroy, view); gtk_widget_destroy(GTK_WIDGET(view->priv->tray)); g_object_unref(view->priv->tray); } g_hash_table_destroy(view->priv->world_menu_items); G_OBJECT_CLASS(gm_app_view_parent_class)->finalize(object); } static gboolean gm_app_view_delete_event(GtkWidget *widget, GdkEventAny *event) { gboolean ret = FALSE; if (GTK_WIDGET_CLASS(gm_app_view_parent_class)->delete_event) { ret = GTK_WIDGET_CLASS(gm_app_view_parent_class)->delete_event(widget, event); } gtk_main_quit(); return ret; } static gboolean gm_app_view_focus_in_event(GtkWidget *widget, GdkEventFocus *event) { GmAppView *view = GM_APP_VIEW(widget); GmWorld *world; world = gm_app_view_active_world(view); if (world) { gm_world_set_active(world, TRUE); } if (view->priv->tray) { gm_tray_normal(view->priv->tray); } gtk_window_set_urgency_hint(GTK_WINDOW(view), FALSE); if (GTK_WIDGET_CLASS(gm_app_view_parent_class)->focus_in_event) { return GTK_WIDGET_CLASS(gm_app_view_parent_class)->focus_in_event( widget, event); } return FALSE; } static gboolean gm_app_view_focus_out_event(GtkWidget *widget, GdkEventFocus *event) { GmAppView *view = GM_APP_VIEW(widget); GmWorld *world; world = gm_app_view_active_world(view); if (world) { // Set the world to inactive so activity is counted and tray will // update properly gm_world_set_active(world, FALSE); } if (GTK_WIDGET_CLASS(gm_app_view_parent_class)->focus_out_event) { return GTK_WIDGET_CLASS(gm_app_view_parent_class)->focus_out_event( widget, event); } return FALSE; } static void gm_app_view_size_allocate(GtkWidget *widget, GtkAllocation *allocation) { GmAppView *view = GM_APP_VIEW(widget); GdkWindowState state = 0; if (GDK_IS_WINDOW(widget->window)) state = gdk_window_get_state(widget->window); if (!(state & (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_ICONIFIED))) { gm_options_set_int(gm_app_options(view->priv->application), "width", allocation->width); gm_options_set_int(gm_app_options(view->priv->application), "height", allocation->height); } if (GTK_WIDGET_CLASS(gm_app_view_parent_class)->size_allocate) { GTK_WIDGET_CLASS(gm_app_view_parent_class)->size_allocate(widget, allocation); } } static gboolean gm_app_view_window_state_event(GtkWidget *widget, GdkEventWindowState *event) { GmAppView *view = GM_APP_VIEW(widget); if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED && GTK_WIDGET_VISIBLE(widget)) { gm_options_set_int(gm_app_options(view->priv->application), "maximized", (event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) != 0); } if (GTK_WIDGET_CLASS(gm_app_view_parent_class)->window_state_event) { return GTK_WIDGET_CLASS(gm_app_view_parent_class)->window_state_event( widget, event); } return FALSE; } static void gm_app_view_class_init(GmAppViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); object_class->finalize = gm_app_view_finalize; widget_class->delete_event = gm_app_view_delete_event; widget_class->focus_in_event = gm_app_view_focus_in_event; widget_class->focus_out_event = gm_app_view_focus_out_event; widget_class->size_allocate = gm_app_view_size_allocate; widget_class->window_state_event = gm_app_view_window_state_event; gm_app_view_signals[ACTIVE_WORLD_CHANGED] = g_signal_new("active_world_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmAppViewClass, active_world_changed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); g_type_class_add_private(object_class, sizeof(GmAppViewPrivate)); } void gm_app_view_create_ui(GmAppView *view) { GError *error = NULL; GtkActionGroup *action_group; GtkAction *action; #ifdef HAVE_PARSER guint merge_id; #endif view->priv->manager = gtk_ui_manager_new(); gtk_window_add_accel_group(GTK_WINDOW(view), gtk_ui_manager_get_accel_group(view->priv->manager)); gtk_ui_manager_add_ui_from_file(view->priv->manager, PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-ui.xml", &error); if (error) { gm_debug_msg(DEBUG_ALWAYS, "Could not merge UI file"); g_error_free(error); g_object_unref(view->priv->manager); view->priv->manager = NULL; return; } /* World sensitive actions */ action_group = gtk_action_group_new("GmAppViewSensitiveActions"); gtk_action_group_set_translation_domain(action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions(action_group, gm_sensitive_menu_entries, G_N_ELEMENTS(gm_sensitive_menu_entries), view); gtk_action_group_add_toggle_actions(action_group, gm_toggle_menu_entries, G_N_ELEMENTS(gm_toggle_menu_entries), view); gtk_ui_manager_insert_action_group(view->priv->manager, action_group, 0); view->priv->sensitive_action_group = action_group; gtk_action_group_set_sensitive(action_group, TRUE); /* World insensitive actions */ action_group = gtk_action_group_new("GmAppViewActions"); gtk_action_group_set_translation_domain(action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions(action_group, gm_menu_entries, G_N_ELEMENTS(gm_menu_entries), view); gtk_ui_manager_insert_action_group(view->priv->manager, action_group, 0); view->priv->action_group = action_group; gtk_action_group_set_sensitive(action_group, FALSE); /* Worlds list action group */ view->priv->worlds_action_group = gtk_action_group_new("GmAppViewWorldsActions"); gtk_action_group_set_translation_domain(view->priv->worlds_action_group, GETTEXT_PACKAGE); gtk_ui_manager_insert_action_group(view->priv->manager, view->priv->worlds_action_group, 0); /* Editor action group */ view->priv->editor_action_group = gtk_action_group_new("GmAppViewEditorActions"); gtk_action_group_set_translation_domain(view->priv->editor_action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions(view->priv->editor_action_group, gm_editor_entries, G_N_ELEMENTS(gm_editor_entries), view); gtk_ui_manager_insert_action_group(view->priv->manager, view->priv->editor_action_group, 0); gtk_action_group_set_visible(view->priv->editor_action_group, FALSE); gtk_action_group_set_sensitive(view->priv->editor_action_group, FALSE); #ifndef HAVE_RUBY gtk_action_set_sensitive(gm_app_view_action(view, "/MenuBar/EditMenu/EditScriptsMenu"), FALSE); #endif #ifdef HAVE_PARSER merge_id = gtk_ui_manager_new_merge_id(view->priv->manager); gtk_ui_manager_add_ui(view->priv->manager, merge_id, "/MenuBar/EditorMenu/EditorMenuAdditions", "EditorParseMenu", "EditorParse", GTK_UI_MANAGER_MENUITEM, FALSE); merge_id = gtk_ui_manager_new_merge_id(view->priv->manager); gtk_ui_manager_add_ui(view->priv->manager, merge_id, "/ToolBar/EditorToolAdditions", "EditorParseTool", "EditorParse", GTK_UI_MANAGER_TOOLITEM, FALSE); #endif action = gm_app_view_action(view, "/MenuBar/WorldMenu/WorldOpenMenu"); g_object_set(action, "short-label", _("Open"), NULL); /* Show or hide the toolbar/userlist */ action = gm_app_view_action(view, "/MenuBar/ViewMenu/ViewToolbarMenu"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), gm_options_get_int(gm_app_options(gm_app_instance()), "show_toolbar")); action = gm_app_view_action(view, "/MenuBar/ViewMenu/ViewUserlistMenu"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), gm_options_get_int(gm_app_options(gm_app_instance()), "show_userlist")); } GtkWidget * create_button(gchar *label, gchar *stock) { GtkWidget *align = gtk_alignment_new(0.5, 0.5, 0.0, 0.0); GtkWidget *button = gtk_button_new(); GtkWidget *hbox = gtk_hbox_new(FALSE, 2); gtk_container_add(GTK_CONTAINER(button), align); gtk_container_add(GTK_CONTAINER(align), hbox); gtk_box_pack_start(GTK_BOX(hbox), gtk_image_new_from_stock( stock, GTK_ICON_SIZE_BUTTON), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), gtk_label_new(label), FALSE, FALSE, 0); return button; } GtkWidget * gm_app_view_create_search_box(GmAppView *view) { GtkWidget *vbox = gtk_vbox_new(FALSE, 3); GtkWidget *table = gtk_table_new(2, 2, FALSE); GtkWidget *hbox; GtkWidget *hbox_control = gtk_hbox_new(FALSE, 6); GtkWidget *lbl; GtkWidget *entry; GtkWidget *button; GtkWidget *align; GtkWidget *check_button; GtkWidget *button_close = gtk_button_new_from_stock(GTK_STOCK_CLOSE); GtkWidget *separator = gtk_hseparator_new(); GtkWidget *expander = gtk_expander_new(NULL); gtk_container_set_border_width(GTK_CONTAINER(table), 3); hbox = gtk_hbox_new(FALSE, 6); lbl = gtk_label_new(_("Find:")); gtk_misc_set_alignment(GTK_MISC(lbl), 1.0, 0.5); gtk_widget_set_sensitive(expander, FALSE); align = gtk_alignment_new(0.0, 0.5, 0.0, 0.0); gtk_container_add(GTK_CONTAINER(align), expander); g_signal_connect(expander, "notify::expanded", G_CALLBACK(on_gm_app_view_expander_replace), view); gtk_box_pack_start(GTK_BOX(hbox), align, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), lbl, FALSE, FALSE, 0); gtk_table_attach(GTK_TABLE(table), hbox, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0.0, 0.0); lbl = gtk_label_new(_("Replace:")); view->priv->label_replace = GTK_LABEL(lbl); gtk_misc_set_alignment(GTK_MISC(lbl), 1.0, 0.5); gtk_table_attach(GTK_TABLE(table), lbl, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0.0, 0.0); hbox = gtk_hbox_new(FALSE, 6); gtk_container_set_border_width(GTK_CONTAINER(hbox), 3); gtk_table_attach(GTK_TABLE(table), hbox, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_SHRINK | GTK_FILL, 0.0, 0.0); gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, TRUE, 0); entry = gtk_entry_new(); view->priv->entry_find = GTK_ENTRY(entry); button = create_button(_("Find next"), GTK_STOCK_FIND); g_signal_connect(button, "clicked", G_CALLBACK(on_gm_app_view_entry_find_activate), view); g_signal_connect(entry, "key_press_event", G_CALLBACK(on_gm_app_view_entry_find_key_press), view); g_signal_connect(entry, "activate", G_CALLBACK(on_gm_app_view_entry_find_activate), view); g_signal_connect(entry, "changed", G_CALLBACK(on_gm_app_view_entry_find_changed), view); gtk_box_pack_start(GTK_BOX(hbox_control), entry, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox_control), button, FALSE, FALSE, 0); check_button = gtk_check_button_new_with_label(_("Search backwards")); g_signal_connect(check_button, "toggled", G_CALLBACK(on_gm_app_view_check_button_search_direction_toggled), view); view->priv->check_button_search_direction = GTK_CHECK_BUTTON(check_button); gtk_box_pack_start(GTK_BOX(hbox_control), check_button, FALSE, FALSE, 0); check_button = gtk_check_button_new_with_label(_("Match case")); g_signal_connect(check_button, "toggled", G_CALLBACK(on_gm_app_view_check_button_search_sensitive_toggled), view); view->priv->check_button_search_sensitive = GTK_CHECK_BUTTON(check_button); gtk_box_pack_start(GTK_BOX(hbox_control), check_button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), hbox_control, FALSE, FALSE, 0); gtk_box_pack_end(GTK_BOX(hbox), button_close, FALSE, FALSE, 0); hbox = gtk_hbox_new(FALSE, 6); gtk_container_set_border_width(GTK_CONTAINER(hbox), 3); entry = gtk_entry_new(); g_signal_connect(entry, "key_press_event", G_CALLBACK(on_gm_app_view_entry_find_key_press), view); view->priv->entry_replace = GTK_ENTRY(entry); gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, FALSE, 0); button = create_button(_("Replace"), GTK_STOCK_FIND_AND_REPLACE); g_signal_connect(button, "clicked", G_CALLBACK(on_gm_app_view_button_replace_clicked), view); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); button = gtk_button_new_with_label(_("Replace all")); g_signal_connect(button, "clicked", G_CALLBACK(on_gm_app_view_button_replace_all_clicked), view); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_table_attach(GTK_TABLE(table), hbox, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_SHRINK | GTK_FILL, 0.0, 0.0); view->priv->expander_replace = GTK_EXPANDER(expander); view->priv->hbox_replace = GTK_HBOX(hbox); view->priv->vbox_find = GTK_VBOX(vbox); view->priv->hbox_control_find = GTK_HBOX(hbox_control); view->priv->ignore_toggling = FALSE; gtk_widget_show_all(vbox); gtk_widget_hide(GTK_WIDGET(view->priv->label_replace)); gtk_widget_hide(GTK_WIDGET(view->priv->hbox_replace)); gtk_widget_hide(vbox); g_signal_connect(button_close, "clicked", G_CALLBACK(on_gm_app_view_button_find_close_clicked), view); return vbox; } void gm_app_view_create_keybindings(GmAppView *view) { GtkAccelGroup *grp; GClosure *closure; int i; gchar num[2] = { 0, 0 }; AccelInfo *info; grp = gtk_accel_group_new(); // Setting up Alt-1/Ctrl-1 -> Alt-9/Ctrl-9 accelerators for (i = 0; i < 9; i++) { info = g_new0(AccelInfo, 1); info->num = i; info->view = view; num[0] = '1' + i; closure = g_cclosure_new(G_CALLBACK(on_gm_app_view_accel_switch_page), info, NULL); gtk_accel_group_connect(grp, gdk_keyval_from_name(num), GDK_MOD1_MASK, GTK_ACCEL_VISIBLE, closure); g_closure_unref(closure); closure = g_cclosure_new(G_CALLBACK(on_gm_app_view_accel_switch_edit), info, NULL); gtk_accel_group_connect(grp, gdk_keyval_from_name(num), GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE, closure); g_closure_unref(closure); } info = g_new0(AccelInfo, 1); info->num = 1; info->view = view; // Next page closure = g_cclosure_new(G_CALLBACK(on_gm_app_view_accel_cycle_page), info, NULL); gtk_accel_group_connect(grp, GDK_Page_Up, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE, closure); g_closure_unref(closure); info = g_new0(AccelInfo, 1); info->num = -1; info->view = view; // Previous page closure = g_cclosure_new(G_CALLBACK(on_gm_app_view_accel_cycle_page), info, NULL); gtk_accel_group_connect(grp, GDK_Page_Down, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE, closure); g_closure_unref(closure); gtk_window_add_accel_group(GTK_WINDOW(view), grp); } static void gm_app_view_create_tray(GmAppView *view) { view->priv->tray = g_object_ref(gm_tray_new(_("GnoeMoe Gnome MOO Client"))); gm_tray_set_icon(view->priv->tray, TRAY_STATE_NORMAL, gm_pixbuf_get("tray/default.svg")); gm_tray_set_icon(view->priv->tray, TRAY_STATE_ACTIVE, gm_pixbuf_get("tray/active.svg")); gm_tray_set_icon(view->priv->tray, TRAY_STATE_NOTIFY, gm_pixbuf_get("tray/notify.svg")); gm_tray_set_icon(view->priv->tray, TRAY_STATE_ACTIVITY, gm_pixbuf_get("tray/activity.svg")); gtk_widget_show(GTK_WIDGET(view->priv->tray)); g_signal_connect(view->priv->tray, "message-clicked", G_CALLBACK(on_gm_app_view_tray_message_clicked), view); g_signal_connect(view->priv->tray, "button-press-event", G_CALLBACK(on_gm_app_view_tray_button_press), view); g_signal_connect(view->priv->tray, "destroy", G_CALLBACK(on_gm_app_view_tray_destroy), view); } static void gm_app_view_init(GmAppView *view) { GtkWidget *menu = NULL; GtkWidget *toolbar = NULL; GtkWidget *search; GtkWidget *vbox; GtkWidget *note; view->priv = GM_APP_VIEW_GET_PRIVATE(view); vbox = gtk_vbox_new(FALSE, 3); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(view), vbox); gm_app_view_create_ui(view); if (view->priv->manager) { menu = gtk_ui_manager_get_widget(view->priv->manager, "/MenuBar"); if (menu) { gtk_widget_show(menu); gtk_box_pack_start(GTK_BOX(vbox), menu, FALSE, TRUE, 0); } toolbar = gtk_ui_manager_get_widget(view->priv->manager, "/ToolBar"); if (toolbar) { gtk_widget_show(toolbar); gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, TRUE, 0); } } search = gm_app_view_create_search_box(view); gtk_box_pack_start(GTK_BOX(vbox), search, FALSE, TRUE, 0); note = gtk_notebook_new(); gtk_widget_show(note); gtk_container_set_border_width(GTK_CONTAINER(note), 3); gtk_notebook_set_show_border(GTK_NOTEBOOK(note), FALSE); GTK_WIDGET_UNSET_FLAGS(note, GTK_CAN_FOCUS); gtk_widget_add_events(GTK_WIDGET(note), GDK_BUTTON1_MOTION_MASK); gtk_box_pack_start(GTK_BOX(vbox), note, TRUE, TRUE, 0); gm_app_view_create_keybindings(view); view->priv->menu = GTK_MENU_BAR(menu); view->priv->toolbar = GTK_TOOLBAR(toolbar); view->priv->notebook = GTK_NOTEBOOK(note); gtk_window_set_title(GTK_WINDOW(view), "GnoeMoe"); gtk_window_set_icon(GTK_WINDOW(view), gm_pixbuf_get("gnoemoe_logo.svg")); /* Signals for tab reordering */ g_signal_connect_after(note, "switch-page", G_CALLBACK(on_gm_app_view_notebook_switch_page), view); g_signal_connect(note, "button-press-event", G_CALLBACK(on_gm_app_view_notebook_button_press), view); g_signal_connect(note, "button-release-event", G_CALLBACK(on_gm_app_view_notebook_button_release), view); view->priv->world_menu_items = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)gm_app_view_destroy_world_menu_item); view->priv->drag_in_progress = FALSE; view->priv->motion_notify_handler_id = 0; view->priv->x_start = 0; view->priv->y_start = 0; view->priv->cursor = NULL; #ifdef HAVE_RUBY gm_scripts_dialog_init(); #endif gm_app_view_create_tray(view); } static void gm_app_view_store_position(GmAppView *view) { gtk_window_get_position(GTK_WINDOW(view), &(view->priv->position_left), &(view->priv->position_top)); } static void gm_app_view_restore_position(GmAppView *view) { gtk_window_move(GTK_WINDOW(view), view->priv->position_left, view->priv->position_top); } static void gm_app_view_restore_size(GmAppView *view) { gint width, height; width = gm_options_get_int(gm_app_options(view->priv->application), "width"); height = gm_options_get_int(gm_app_options(view->priv->application), "height"); if (height > 10 && width > 10) gtk_window_set_default_size(GTK_WINDOW(view), width, height); else gtk_window_set_default_size(GTK_WINDOW(view), 400, 300); if (gm_options_get_int(gm_app_options(view->priv->application), "maximized")) { gtk_window_maximize(GTK_WINDOW(view)); } } // Public functions GmAppView * gm_app_view_new(GmApp *application) { GmAppView *view = GM_APP_VIEW(g_object_new(GM_TYPE_APP_VIEW, NULL)); view->priv->application = application; view->priv->active_world = NULL; // Set stored width and height gm_app_view_restore_size(view); // Toggle search direction gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( view->priv->check_button_search_direction), gm_options_get_int(gm_app_options(application), "search_direction_world")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( view->priv->check_button_search_sensitive), gm_options_get_int(gm_app_options(application), "search_sensitive")); g_signal_connect(application, "world_added", G_CALLBACK(on_gm_app_view_world_added), view); g_signal_connect(application, "world_removed", G_CALLBACK(on_gm_app_view_world_removed), view); g_signal_connect(gm_app_options(application), "option-changed", G_CALLBACK(on_gm_app_view_option_changed), view); return view; } GmApp const * gm_app_view_application(GmAppView *view) { return view->priv->application; } GtkNotebook * gm_app_view_notebook(GmAppView *view) { return view->priv->notebook; } void gm_app_view_destroy_world_menu_item(GmAppViewWorldMenuItem *item) { g_object_unref(item->action); g_free(item); } void on_gm_app_view_world_removed(GmApp *app, GmWorld *world, GmAppView *view) { GmAppViewWorldMenuItem *item = (GmAppViewWorldMenuItem *) g_hash_table_lookup(view->priv->world_menu_items, world); gtk_ui_manager_remove_ui(view->priv->manager, item->merge_id); gtk_action_group_remove_action(view->priv->worlds_action_group, item->action); g_hash_table_remove(view->priv->world_menu_items, world); } void gm_app_view_set_sensitivity(GmAppView *view, gboolean sens) { gtk_action_group_set_sensitive(view->priv->action_group, sens); if (sens == TRUE) { gtk_action_set_visible(gtk_action_group_get_action( view->priv->action_group, "WorldInfo"), FALSE); } if (!sens) { gtk_widget_hide(GTK_WIDGET(view->priv->vbox_find)); } } GmWorldView * gm_app_view_active_world_view(GmAppView *view) { gint n; n = gtk_notebook_get_current_page(view->priv->notebook); if (n == -1) { return NULL; } return GM_WORLD_VIEW(gtk_notebook_get_nth_page(view->priv->notebook, n)); } GmWorld * gm_app_view_active_world(GmAppView *view) { GmWorldView *world_view = gm_app_view_active_world_view(view); if (world_view != NULL) { return gm_world_view_world(world_view); } else { return NULL; } } void gm_app_view_update_title(GmAppView *view) { gchar *title; GmWorld *world = gm_app_view_active_world(view); if (world == NULL) { gtk_window_set_title(GTK_WINDOW(view), "GnoeMoe"); } else { title = g_strconcat(gm_world_name(world), " - GnoeMoe", NULL); gtk_window_set_title(GTK_WINDOW(view), title); g_free(title); } } GtkMenuItem * gm_app_view_menu_item(GmAppView *view, gchar const *path) { GtkMenuItem *img = GTK_MENU_ITEM( gtk_ui_manager_get_widget(view->priv->manager, path)); return img; } GtkAction * gm_app_view_action(GmAppView *view, gchar const *path) { GtkAction *action = gtk_ui_manager_get_action(view->priv->manager, path); return action; } void gm_app_view_update_connect_button(GmAppView *view, gboolean connected) { GtkAction *action = gm_app_view_action(view, "/MenuBar/WorldMenu/WorldConnectMenu"); if (!connected) { g_object_set(action, "stock-id", GTK_STOCK_CONNECT, NULL); g_object_set(action, "label", _("Connect"), NULL); g_object_set(action, "tooltip", _("Connect the current world"), NULL); } else { g_object_set(action, "stock-id", GTK_STOCK_DISCONNECT, NULL); g_object_set(action, "label", _("Disconnect"), NULL); g_object_set(action, "tooltip", _("Disconnect the current world"), NULL); } } void gm_app_view_worlds_unloaded(GmAppView *view) { gm_app_view_set_sensitivity(view, FALSE); gm_app_view_update_connect_button(view, FALSE); gm_app_view_update_title(view); } void gm_app_view_worlds_loaded(GmAppView *view) { gm_app_view_set_sensitivity(view, TRUE); gtk_action_set_sensitive(gm_app_view_action(view, "/MenuBar/EditMenu/EditReplaceMenu"), FALSE); } void gm_app_view_update_tray(GmAppView *view) { GList *worlds; GmWorld *world; gchar *tmp; gboolean active = gtk_window_is_active(GTK_WINDOW(view)); gint activity; GString *str = NULL; if (!view->priv->tray) { return; } if (!active) { for (worlds = gm_app_worlds(view->priv->application); worlds; worlds = worlds->next) { world = GM_WORLD(worlds->data); activity = gm_world_activity(world); if (gm_world_loaded(world) && activity) { if (!str) { tmp = g_strdup_printf(_("Activity in:\n%s (%d)"), gm_world_name(world), activity); str = g_string_new(NULL); } else { tmp = g_strdup_printf(", %s (%d)", gm_world_name(world), activity); } str = g_string_append(str, tmp); g_free(tmp); } } if (str) { gm_tray_activate(view->priv->tray); } else if (gm_tray_get_state(view->priv->tray) != TRAY_STATE_NOTIFY) { gm_tray_normal(view->priv->tray); } if (gm_tray_get_state(view->priv->tray) != TRAY_STATE_NOTIFY) { if (str) { gm_tray_set_tip(view->priv->tray, str->str); } else { gm_tray_set_tip(view->priv->tray, NULL); } } if (str) { g_string_free(str, TRUE); } } else { gm_tray_normal(view->priv->tray); } } void gm_app_view_toggle_visibility(GmAppView *view) { gboolean visible = GTK_WIDGET_VISIBLE(view); if (!visible || !gtk_window_is_active(GTK_WINDOW(view))) { if (!visible) { gm_app_view_restore_size(view); gm_app_view_restore_position(view); } gtk_widget_show(GTK_WIDGET(view)); gtk_window_present(GTK_WINDOW(view)); gtk_widget_grab_focus(GTK_WIDGET(view)); if (view->priv->tray) { gm_tray_normal(view->priv->tray); } } else if (view->priv->tray) { gm_app_view_store_position(view); gtk_widget_hide(GTK_WIDGET(view)); } } GmWorldView * gm_app_view_world_view_from_world(GmAppView *view, GmWorld *world) { GtkNotebook *book = view->priv->notebook; GmWorldView *current_view; gint i; for (i = 0; i < gtk_notebook_get_n_pages(book); i++) { current_view = GM_WORLD_VIEW(gtk_notebook_get_nth_page(book, i)); if (gm_world_view_world(current_view) == world) { return current_view; } } return NULL; } /* Callbacks */ void on_gm_app_view_world_close_from_tab(GmWorldTab *tab, GmWorld *world) { gm_world_unload(world); } void on_gm_app_view_world_name_changed(GmWorld *world, GParamSpec *pspec, GmAppView *view) { GmAppViewWorldMenuItem *item = (GmAppViewWorldMenuItem *) g_hash_table_lookup(view->priv->world_menu_items, world); g_object_set(G_OBJECT(item->action), "label", gm_world_name(world), NULL); if (world == gm_app_view_active_world(view)) { gm_app_view_update_title(view); } } void on_gm_app_view_world_added(GmApp *app, GmWorld *world, GmAppView *view) { GmAppViewWorldMenuItem *item = g_new0(GmAppViewWorldMenuItem, 1); gchar *name = g_strconcat("WorldItem", gm_world_name(world), NULL); gchar *tooltip = g_strconcat(_("Open world "), gm_world_name(world), NULL); gchar *path; GList *worlds, *position; gboolean top; // Find the world previous to this one worlds = gm_app_worlds(app); position = g_list_find(worlds, world); if (!position || !position->prev) { path = g_strdup("/MenuBar/WorldMenu/WorldMenuAdditions"); top = TRUE; } else { path = g_strconcat("/MenuBar/WorldMenu/WorldMenuAdditions/WorldItem", gm_world_name((GmWorld *)(position->prev->data)), NULL); top = FALSE; } /* TODO: add custom icon from logo */ item->merge_id = gtk_ui_manager_new_merge_id(view->priv->manager); item->action = gtk_action_new(name, gm_world_name(world), tooltip, NULL); gtk_action_group_add_action(view->priv->worlds_action_group, item->action); gtk_ui_manager_add_ui(view->priv->manager, item->merge_id, path, name, name, GTK_UI_MANAGER_MENUITEM, top); g_free(path); gtk_ui_manager_ensure_update(view->priv->manager); g_signal_connect(item->action, "activate", G_CALLBACK(on_gm_app_view_world_activate), world); g_signal_connect(world, "load", G_CALLBACK(on_gm_app_view_world_load), view); g_signal_connect(world, "unload", G_CALLBACK(on_gm_app_view_world_unload), view); g_signal_connect(world, "activate_request", G_CALLBACK(on_gm_app_view_world_activate_request), view); g_signal_connect(world, "notify::name", G_CALLBACK(on_gm_app_view_world_name_changed), view); g_signal_connect(world, "state_changing", G_CALLBACK(on_gm_app_view_world_state_changing), view); g_signal_connect(world, "notify::active", G_CALLBACK(on_gm_app_view_world_active_changed), view); g_signal_connect(world, "notify::activity", G_CALLBACK(on_gm_app_view_world_activity_changed), view); g_signal_connect(world, "notify_message", G_CALLBACK(on_gm_app_view_world_notify_message), view); g_hash_table_insert(view->priv->world_menu_items, world, item); g_free(name); g_free(tooltip); } void on_gm_app_view_world_state_changing(GmWorld *world, GmNetState state, GmAppView *view) { if (world == gm_app_view_active_world(view)) { switch (state) { case GM_NET_STATE_CONNECTING: gm_app_view_update_connect_button(view, TRUE); break; case GM_NET_STATE_DISCONNECTED: gm_app_view_update_connect_button(view, FALSE); break; default: break; } } } void on_gm_app_view_world_load(GmWorld *world, GmAppView *view) { GtkWidget *world_view = gm_world_view_new(world); GmWorldTab *tab = gm_world_tab_new(world); g_signal_connect(tab, "close", G_CALLBACK(on_gm_app_view_world_close_from_tab), world); g_signal_connect(gm_world_get_mcp_session(world), "package_created", G_CALLBACK(on_gm_app_view_world_mcp_package_created), view); g_signal_connect(world_view, "switch_page", G_CALLBACK(on_gm_app_view_world_view_notebook_switch_page), view); g_signal_connect(world_view, "destroy", G_CALLBACK(on_gm_app_view_world_view_destroy), view); gtk_notebook_append_page(view->priv->notebook, world_view, GTK_WIDGET(tab)); gtk_widget_show_all(world_view); if (gtk_notebook_get_n_pages(view->priv->notebook) == 1) { gm_app_view_worlds_loaded(view); } } void on_gm_app_view_world_unload(GmWorld *world, GmAppView *view) { GmWorldView *world_view = gm_app_view_world_view_from_world(view, world); g_signal_handlers_disconnect_by_func(gm_world_get_mcp_session(world), on_gm_app_view_world_mcp_package_created, view); if (world_view != NULL) { gtk_notebook_remove_page(view->priv->notebook, gtk_notebook_page_num(view->priv->notebook, GTK_WIDGET(world_view))); if (gtk_notebook_get_n_pages(view->priv->notebook) == 0) { gm_app_view_worlds_unloaded(view); } } } void on_gm_app_view_world_activate_request(GmWorld *world, GmAppView *view) { gm_world_set_active(world, TRUE); } void on_gm_app_view_world_notify_message(GmWorld *world, gchar const *message, GmAppView *view) { if (!gtk_window_is_active(GTK_WINDOW(view))) { if (view->priv->tray) { gm_tray_notify(view->priv->tray, message); } gtk_window_set_urgency_hint(GTK_WINDOW(view), TRUE); } } void on_gm_app_view_accel_switch_page(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info) { gtk_notebook_set_current_page(info->view->priv->notebook, info->num); } void on_gm_app_view_accel_switch_edit(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info) { GmWorldView *view = gm_app_view_active_world_view(info->view); if (view) { gtk_notebook_set_current_page(GTK_NOTEBOOK(view), info->num); } } void on_gm_app_view_accel_cycle_page(GtkAccelGroup * accelgroup, GObject * arg1, guint arg2, GdkModifierType arg3, AccelInfo *info) { GtkNotebook *note = info->view->priv->notebook; gint p = gtk_notebook_get_current_page(note) + info->num; if (p < 0) { gtk_notebook_set_current_page(note, gtk_notebook_get_n_pages(note) - 1); } else if (p > gtk_notebook_get_n_pages(note) - 1) { gtk_notebook_set_current_page(note, 0); } else { gtk_notebook_set_current_page(note, p); } } void on_gm_app_view_world_activate(GtkAction * action, GmWorld *world) { gm_world_load(world); } GmSearchableSearchFlags gm_app_view_search_flags(GmAppView *view) { GmSearchableSearchFlags flags = 0; gboolean active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( view->priv->check_button_search_direction)); gboolean sensitive = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( view->priv->check_button_search_sensitive)); if (active) { flags = GM_SEARCHABLE_SEARCH_BACKWARDS; } else { flags = GM_SEARCHABLE_SEARCH_FORWARDS; } if (!sensitive) { flags |= GM_SEARCHABLE_SEARCH_CASE_INSENSITIVE; } return flags; } gboolean gm_app_view_find_first(GmAppView *view) { GmWorldView *world_view = gm_app_view_active_world_view(view); GdkColor red; GtkEntry *entry = view->priv->entry_find; gchar const *text; if (world_view) { gdk_color_parse ("#ff6666", &red); text = gtk_entry_get_text(entry); if (gm_world_view_find_first(world_view, text, gm_app_view_search_flags(view)) || *text == '\0') { gtk_widget_modify_base(GTK_WIDGET(entry), GTK_STATE_NORMAL, NULL); } else { gtk_widget_modify_base(GTK_WIDGET(entry), GTK_STATE_NORMAL, &red); } } return FALSE; } void on_gm_app_view_entry_find_changed(GtkEditable *editable, GmAppView *view) { g_idle_add((GSourceFunc)gm_app_view_find_first, view); } void on_gm_app_view_entry_find_activate(GtkEntry *entry, GmAppView *view) { on_gm_app_view_edit_find_next(NULL, view); } void gm_app_view_show_replace_box(GmAppView *view) { if (!GTK_WIDGET_VISIBLE(view->priv->hbox_replace)) { gtk_widget_show(GTK_WIDGET(view->priv->label_replace)); gtk_widget_show(GTK_WIDGET(view->priv->hbox_replace)); } } void gm_app_view_show_find_box(GmAppView *view) { if (!GTK_WIDGET_VISIBLE(view->priv->vbox_find)) { gtk_widget_show(GTK_WIDGET(view->priv->vbox_find)); } } void on_gm_app_view_edit_find(GtkMenuItem * menuitem, GmAppView *view) { GtkWidget *entry = GTK_WIDGET(view->priv->entry_find); gm_app_view_show_find_box(view); gtk_widget_grab_focus(entry); gtk_widget_modify_base(entry, GTK_STATE_NORMAL, NULL); } void on_gm_app_view_edit_find_next(GtkMenuItem * menuitem, GmAppView *view) { gm_app_view_show_find_box(view); gm_world_view_find_next(gm_app_view_active_world_view(view), gtk_entry_get_text(view->priv->entry_find), gm_app_view_search_flags(view)); } void on_gm_app_view_edit_replace(GtkMenuItem * menuitem, GmAppView *view) { GtkWidget *entry = GTK_WIDGET(view->priv->entry_replace); gm_app_view_show_find_box(view); gm_app_view_show_replace_box(view); gtk_widget_grab_focus(entry); } void on_gm_app_view_button_find_clicked(GtkButton *button, gpointer user_data) { on_gm_app_view_edit_find_next(NULL, NULL); } void on_gm_app_view_button_replace_clicked(GtkButton *button, GmAppView *view) { if (gm_world_view_replace(gm_app_view_active_world_view(view), gtk_entry_get_text(view->priv->entry_replace))) { gm_world_view_find_next(gm_app_view_active_world_view(view), gtk_entry_get_text(view->priv->entry_find), gm_app_view_search_flags(view)); } } void on_gm_app_view_button_replace_all_clicked(GtkButton *button, GmAppView *view) { gm_world_view_replace_all(gm_app_view_active_world_view(view), gtk_entry_get_text(view->priv->entry_find), gtk_entry_get_text(view->priv->entry_replace), gm_app_view_search_flags(view)); } void on_gm_app_view_expander_replace(GObject *object, GParamSpec *param_spec, GmAppView *view) { gboolean exp = gtk_expander_get_expanded(view->priv->expander_replace); if (exp) { gm_app_view_show_replace_box(view); } else { gtk_widget_hide(GTK_WIDGET(view->priv->label_replace)); gtk_widget_hide(GTK_WIDGET(view->priv->hbox_replace)); } } gboolean on_gm_app_view_entry_find_key_press(GtkWidget *widget, GdkEventKey *event, GmAppView *view) { if (event->keyval == GDK_Escape) { on_gm_app_view_button_find_close_clicked(NULL, view); gtk_widget_grab_focus(GTK_WIDGET(gm_app_view_active_world_view(view))); return TRUE; } else { return FALSE; } } void on_gm_app_view_button_find_close_clicked(GtkButton *button, GmAppView *view) { GmWorldView *world_view = gm_app_view_active_world_view(view); gtk_widget_hide(GTK_WIDGET(view->priv->vbox_find)); if (world_view) { gm_world_view_set_focus(world_view); } } void on_gm_app_view_check_button_search_sensitive_toggled(GtkToggleButton *button, GmAppView *view) { gboolean active = gtk_toggle_button_get_active(button); gm_options_set_int(gm_app_options(view->priv->application), "search_sensitive", active ? 1 : 0); } void on_gm_app_view_check_button_search_direction_toggled(GtkToggleButton *button, GmAppView *view) { GmWorldView *active_view; gboolean active; if (view->priv->ignore_toggling) { return; } active_view = gm_app_view_active_world_view(view); if (active_view == NULL) { return; } active = gtk_toggle_button_get_active(button); if (gtk_notebook_get_current_page(GTK_NOTEBOOK(active_view)) == 0) { gm_options_set_int(gm_app_options(view->priv->application), "search_direction_world", active ? 1 : 0); } else { gm_options_set_int(gm_app_options(view->priv->application), "search_direction", active ? 1 : 0); } } /* Tab moving from gedit */ gint gm_app_view_find_tab_num_at_pos(GmAppView *view, gint abs_x, gint abs_y) { GtkNotebook *notebook = view->priv->notebook; GtkPositionType tab_pos; int page_num = 0; GtkWidget *page; tab_pos = gtk_notebook_get_tab_pos(notebook); if (notebook->first_tab == NULL) { return -1; } /* For some reason unfullscreen + quick click can cause a wrong click event to be reported to the tab */ /*if (!is_in_notebook_window(notebook, abs_x, abs_y)) { return -1; }*/ while ((page = gtk_notebook_get_nth_page(notebook, page_num)) != NULL) { GtkWidget *tab; gint max_x, max_y; gint x_root, y_root; tab = gtk_notebook_get_tab_label(notebook, page); g_return_val_if_fail(tab != NULL, -1); if (!GTK_WIDGET_MAPPED(GTK_WIDGET(tab))) { ++page_num; continue; } gdk_window_get_origin(GDK_WINDOW(tab->window), &x_root, &y_root); max_x = x_root + tab->allocation.x + tab->allocation.width; max_y = y_root + tab->allocation.y + tab->allocation.height; if (((tab_pos == GTK_POS_TOP) || (tab_pos == GTK_POS_BOTTOM)) && (abs_x <= max_x)) { return page_num; } else if (((tab_pos == GTK_POS_LEFT) || (tab_pos == GTK_POS_RIGHT)) && (abs_y <= max_y)) { return page_num; } ++page_num; } return -1; } void gm_app_view_drag_stop(GmAppView *view) { view->priv->drag_in_progress = FALSE; if (view->priv->motion_notify_handler_id != 0) { g_signal_handler_disconnect(G_OBJECT(view->priv->notebook), view->priv->motion_notify_handler_id); view->priv->motion_notify_handler_id = 0; } } void gm_app_view_drag_start(GmAppView *view, guint32 time) { view->priv->drag_in_progress = TRUE; /* get a new cursor, if necessary */ /* FIXME multi-head */ if (view->priv->cursor == NULL) view->priv->cursor = gdk_cursor_new(GDK_FLEUR); /* grab the pointer */ gtk_grab_add(GTK_WIDGET(view->priv->notebook)); /* FIXME multi-head */ if (!gdk_pointer_is_grabbed()) { gdk_pointer_grab(GTK_WIDGET(view->priv->notebook)->window, FALSE, GDK_BUTTON1_MOTION_MASK | GDK_BUTTON_RELEASE_MASK, NULL, view->priv->cursor, time); } } void gm_app_view_move_current_tab(GmAppView *view, gint dest_position) { gint cur_page_num; cur_page_num = gtk_notebook_get_current_page(view->priv->notebook); if (dest_position != cur_page_num) { GtkWidget *cur_tab; cur_tab = gtk_notebook_get_nth_page(view->priv->notebook, cur_page_num); gtk_notebook_reorder_child(view->priv->notebook, cur_tab, dest_position); } } gboolean on_gm_app_view_motion_notify(GtkWidget *widget, GdkEventMotion *event, GmAppView *view) { gint page_num; if (view->priv->drag_in_progress == FALSE) { if (gtk_drag_check_threshold(widget, view->priv->x_start, view->priv->y_start, event->x_root, event->y_root)) { gm_app_view_drag_start(view, event->time); return TRUE; } return FALSE; } page_num = gm_app_view_find_tab_num_at_pos(view, event->x_root, event->y_root); if (page_num != -1) { gm_app_view_move_current_tab(view, page_num); } return FALSE; } gboolean on_gm_app_view_notebook_button_press(GtkNotebook *notebook, GdkEventButton *event, GmAppView *view) { gint tab_clicked; if (view->priv->drag_in_progress) return TRUE; tab_clicked = gm_app_view_find_tab_num_at_pos(view, event->x_root, event->y_root); if ((event->button == 1) && (event->type == GDK_BUTTON_PRESS) && (tab_clicked >= 0)) { view->priv->x_start = event->x_root; view->priv->y_start = event->y_root; view->priv->tab = tab_clicked; view->priv->motion_notify_handler_id = g_signal_connect(G_OBJECT(notebook), "motion-notify-event", G_CALLBACK(on_gm_app_view_motion_notify), view); } else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 3)) { if (tab_clicked == -1) { /* Don't show context menu for non tabs */ return TRUE; } else { /* Switch to the page the mouse is over, but don't consume the event */ gtk_notebook_set_current_page(GTK_NOTEBOOK (notebook), tab_clicked); } } return FALSE; } gboolean on_gm_app_view_notebook_button_release(GtkNotebook *notebook, GdkEventButton *event, GmAppView *view) { if (view->priv->drag_in_progress) { gint cur_page_num; GtkWidget *cur_page; cur_page_num = gtk_notebook_get_current_page(notebook); cur_page = gtk_notebook_get_nth_page(notebook, cur_page_num); /* ungrab the pointer if it's grabbed */ if (gdk_pointer_is_grabbed()) { gdk_pointer_ungrab(event->time); } gtk_grab_remove(GTK_WIDGET(notebook)); } /* This must be called even if a drag isn't happening */ gm_app_view_drag_stop(view); return FALSE; } void on_gm_app_view_world_view_notebook_switch_page(GtkNotebook *notebook, GtkNotebookPage * p, guint page_num, GmAppView *view) { GmWorldView *world_view = GM_WORLD_VIEW(notebook); GtkWidget *page; gboolean direction; gboolean can_replace; gboolean can_find; if (!GTK_IS_WIDGET(view) || !GTK_IS_WIDGET(view->priv->hbox_control_find)) return; can_find = gm_world_view_page_can_find(world_view, page_num); gtk_action_set_sensitive(gm_app_view_action(view, "/MenuBar/EditMenu/EditFindMenu"), can_find); gtk_action_set_sensitive(gm_app_view_action(view, "/MenuBar/EditMenu/EditFindNextMenu"), can_find); gtk_widget_set_sensitive(GTK_WIDGET(view->priv->hbox_control_find), can_find); can_replace = gm_world_view_page_can_replace(world_view, page_num); gtk_action_set_sensitive(gm_app_view_action(view, "/MenuBar/EditMenu/EditReplaceMenu"), can_replace); if (!can_replace) { gtk_widget_hide(GTK_WIDGET(view->priv->hbox_replace)); gtk_widget_hide(GTK_WIDGET(view->priv->label_replace)); gtk_expander_set_expanded(view->priv->expander_replace, FALSE); gtk_widget_set_sensitive(GTK_WIDGET(view->priv->expander_replace), FALSE); } else { gtk_widget_set_sensitive(GTK_WIDGET(view->priv->expander_replace), TRUE); } if (page_num == 0) { direction = gm_options_get_int(gm_app_options(view->priv->application), "search_direction_world"); } else { direction = gm_options_get_int(gm_app_options(view->priv->application), "search_direction"); } view->priv->ignore_toggling = TRUE; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( view->priv->check_button_search_direction), direction); view->priv->ignore_toggling = FALSE; /* Enable/disable editor toolbar */ page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(world_view), page_num); gtk_action_group_set_visible(view->priv->editor_action_group, GM_IS_EDITOR_VIEW(page)); gtk_action_group_set_sensitive(view->priv->editor_action_group, GM_IS_EDITOR_VIEW(page)); #ifdef HAVE_PARSER if (GM_IS_EDITOR_VIEW(page)) { gtk_action_set_sensitive(gm_app_view_action(view, "/ToolBar/EditorToolAdditions/EditorParseTool"), gm_editor_is_code( gm_editor_view_editor(GM_EDITOR_VIEW(page)))); } #endif } void on_gm_app_view_notebook_switch_page(GtkNotebook * notebook, GtkNotebookPage * page, guint page_num, GmAppView *view) { GmWorld *world = gm_app_view_active_world(view); if (view->priv->active_world == world) { return; } if (view->priv->active_world) { gm_world_set_active(view->priv->active_world, FALSE); } if (world) { view->priv->active_world = world; gm_world_set_active(view->priv->active_world, TRUE); on_gm_app_view_world_view_notebook_switch_page(GTK_NOTEBOOK( gm_app_view_active_world_view(view)), NULL, 0, view); } g_signal_emit(view, gm_app_view_signals[ACTIVE_WORLD_CHANGED], 0, gm_app_view_active_world_view(view)); } GmEditorView * gm_app_view_active_editor_view(GmAppView *view) { GmWorldView *world_view = gm_app_view_active_world_view(view); gint page = gtk_notebook_get_current_page(GTK_NOTEBOOK(world_view)); return GM_EDITOR_VIEW(gtk_notebook_get_nth_page(GTK_NOTEBOOK(world_view), page)); } void on_gm_app_view_world_active_changed(GmWorld *world, GParamSpec *pspec, GmAppView *view) { GmWorldView *world_view = gm_app_view_world_view_from_world(view, world); if (gm_world_active(world)) { gtk_notebook_set_current_page(view->priv->notebook, gtk_notebook_page_num(view->priv->notebook, GTK_WIDGET(world_view))); gm_app_view_update_title(view); switch (gm_world_state(world)) { case GM_NET_STATE_CONNECTING: case GM_NET_STATE_CONNECTED: gm_app_view_update_connect_button(view, TRUE); break; case GM_NET_STATE_DISCONNECTED: gm_app_view_update_connect_button(view, FALSE); break; default: break; } } } void on_gm_app_view_world_activity_changed(GmWorld *world, GParamSpec *pspec, GmAppView *view) { gm_app_view_update_tray(view); } void on_gm_app_view_world_mcp_package_created(GmMcpSession *session, GmMcpPackage *package, GmAppView *view) { gm_mcp_package_create_view(package, G_OBJECT(view)); } void on_gm_app_view_world_view_destroy(GmWorldView *world_view, GmAppView *view) { GmWorld *world = gm_world_view_world(world_view); if (gm_world_loaded(world)) { // This only happens when the main view is destroyed when there are // still worlds active. The thing is we need to unload the world here // so that anything GUI related (like mcp things) can proper finalize // Disconnect the unload handler to avoid strange things to happen g_signal_handlers_disconnect_by_func(world, on_gm_app_view_world_unload, view); gm_world_unload(world); } } gboolean on_gm_app_view_tray_button_press(GmTray *tray, GdkEventButton *event, GmAppView *view) { if (event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) { return FALSE; } if (event->button == 1) { gm_app_view_toggle_visibility(view); } return FALSE; } void on_gm_app_view_tray_message_clicked(GmTray *tray, GmAppView *view) { gboolean visible = GTK_WIDGET_VISIBLE(view); if (!visible || !gtk_window_is_active(GTK_WINDOW(view))) { gm_app_view_toggle_visibility(view); gdk_window_focus(GTK_WIDGET(view)->window, GDK_CURRENT_TIME); } } gboolean idle_create_tray(gpointer user_data) { GmAppView *view = GM_APP_VIEW(user_data); view->priv->tray_idle_create = 0; gm_app_view_create_tray(view); if (!gm_tray_has_manager() && !GTK_WIDGET_VISIBLE(view)) { gm_app_view_toggle_visibility(view); gtk_window_present(GTK_WINDOW(view)); } return FALSE; } void on_gm_app_view_tray_destroy(GtkWidget *caller, GmAppView *view) { // Make sure the view is visible g_object_unref(G_OBJECT(caller)); view->priv->tray = NULL; view->priv->tray_idle_create = g_idle_add(idle_create_tray, view); } void on_gm_app_view_option_changed(GmOptions *options, gchar const *key, GmAppView *view) { if (strcmp(key, "show_toolbar") == 0) { if (gm_options_get_int(options, "show_toolbar")) gtk_widget_show(GTK_WIDGET(view->priv->toolbar)); else gtk_widget_hide(GTK_WIDGET(view->priv->toolbar)); } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-app-view.h���������������������������������������������������������0000644�0001750�0001750�00000004200�10416440447�017551� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_APP_VIEW_H__ #define __GM_APP_VIEW_H__ #include <gtk/gtk.h> #include <glib.h> #include <glade/glade.h> #include "gm-world.h" #include "gm-world-view.h" #include "gm-editor-view.h" #include "gm-app.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_APP_VIEW (gm_app_view_get_type()) #define GM_APP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_APP_VIEW, GmAppView)) #define GM_APP_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_APP_VIEW, GmAppView const)) #define GM_APP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_APP_VIEW, GmAppViewClass)) #define GM_IS_APP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_APP_VIEW)) #define GM_IS_APP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_APP_VIEW)) #define GM_APP_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_APP_VIEW, GmAppViewClass)) /* Private structure type */ typedef struct _GmAppViewPrivate GmAppViewPrivate; /* * Main object structure */ typedef struct _GmAppView GmAppView; struct _GmAppView { GtkWindow window; /*< private > */ GmAppViewPrivate *priv; }; /* * Class definition */ typedef struct _GmAppViewClass GmAppViewClass; struct _GmAppViewClass { GtkWindowClass parent_class; /* Signals */ void (* active_world_changed) (GmAppView *view, GmWorldView *world_view); }; GType gm_app_view_get_type(void) G_GNUC_CONST; GmAppView *gm_app_view_new(GmApp *application); GmApp const *gm_app_view_application(GmAppView *view); GtkNotebook *gm_app_view_notebook(GmAppView *view); GtkMenuItem *gm_app_view_menu_item(GmAppView *view, gchar const *path); GtkAction *gm_app_view_action(GmAppView *view, gchar const *path); GmWorld *gm_app_view_active_world(GmAppView *view); GmWorldView *gm_app_view_active_world_view(GmAppView *view); GmEditorView *gm_app_view_active_editor_view(GmAppView *view); /* Callbacks */ void on_gm_app_view_edit_find(GtkMenuItem * menuitem, GmAppView *view); void on_gm_app_view_edit_find_next(GtkMenuItem * menuitem, GmAppView *view); void on_gm_app_view_edit_replace(GtkMenuItem * menuitem, GmAppView *view); G_END_DECLS #endif /* __GM_APP_VIEW__ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-commands.c���������������������������������������������������������0000644�0001750�0001750�00000014553�10507241654�017631� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "gm-app-view.h" #include "gm-commands.h" #include "gm-pixbuf.h" #include "dialogs/gm-world-properties-dialog.h" #include "dialogs/gm-open-world-dialog.h" #include "dialogs/gm-world-paste-dialog.h" #include "dialogs/gm-world-logs-dialog.h" #include "dialogs/gm-worlds-list-dialog.h" #include "dialogs/gm-preferences-dialog.h" #include "dialogs/gm-scripts-dialog.h" /* World callbacks */ void on_action_world_new(GtkAction *action, GmAppView *view) { gm_world_properties_dialog_run_new(NULL); } void on_action_world_open(GtkAction *action, GmAppView *view) { gm_open_world_dialog_run(); } void on_action_world_connect(GtkAction *action, GmAppView *view) { GmWorld *world = gm_app_view_active_world(view); if (world != NULL) { if (gm_world_disconnected(world)) { gm_world_connect(world); } else { gm_world_disconnect(world); } } } void on_action_world_paste(GtkAction *action, GmAppView *view) { gm_world_paste_dialog_run(view); } void on_action_world_logs(GtkAction *action, GmAppView *view) { GtkDialog *dlg; GtkTreeView *tview; GtkTreeModel *smodel; gchar *tmp, *tmp2; GtkTreeIter iter; gboolean done = FALSE; GdkCursor *wait_cursor; GmWorld *world = gm_app_view_active_world(view); dlg = gm_world_logs_dialog_new(gm_app_view_active_world(view), &tview); if (dlg != NULL) { smodel = gtk_tree_view_get_model(tview); while (!done) { done = TRUE; switch (gtk_dialog_run(dlg)) { case GTK_RESPONSE_OK: if (gtk_tree_selection_get_selected( gtk_tree_view_get_selection(tview), &smodel, &iter)) { gtk_tree_model_get(smodel, &iter, 0, &tmp, -1); tmp2 = g_strconcat(gm_world_path(world), G_DIR_SEPARATOR_S, "logs", G_DIR_SEPARATOR_S, tmp, NULL); gtk_widget_set_sensitive(GTK_WIDGET(dlg), FALSE); wait_cursor = gdk_cursor_new(GDK_WATCH); gdk_window_set_cursor(GTK_WIDGET(dlg)->window, wait_cursor); gdk_cursor_unref(wait_cursor); gm_world_view_open_log( gm_app_view_active_world_view(view), tmp2); gdk_window_set_cursor(GTK_WIDGET(dlg)->window, NULL); g_free(tmp2); g_free(tmp); } else { gm_error_dialog(_("You didn't select a log file"), NULL); done = FALSE; } break; default: break; } } gtk_widget_destroy(GTK_WIDGET(dlg)); } } void on_action_world_close(GtkAction *action, GmAppView *view) { GmWorld *world = gm_app_view_active_world(view); if (world) { gm_world_unload(world); } } void on_action_world_quit(GtkAction *action, GmAppView *view) { gtk_widget_destroy(GTK_WIDGET(view)); } /* Edit callbacks */ void on_action_edit_cut(GtkAction *action, GmAppView *view) { GtkWidget *active = gtk_window_get_focus(GTK_WINDOW(view)); GtkClipboard *clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); GtkTextBuffer *buf; if (active && GTK_IS_TEXT_VIEW(active)) { buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(active)); gtk_text_buffer_cut_clipboard(buf, clip, TRUE); } } void on_action_edit_copy(GtkAction *action, GmAppView *view) { GtkWidget *active = gtk_window_get_focus(GTK_WINDOW(view)); GtkClipboard *clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); GtkTextBuffer *buf; GtkTextIter start, end; GmWorldView *world_view; world_view = gm_app_view_active_world_view(view); if (world_view && active == GTK_WIDGET(gm_world_view_input(world_view))) { buf = gm_world_view_buffer(world_view); if (gtk_text_buffer_get_selection_bounds(buf, &start, &end)) { gtk_text_buffer_copy_clipboard(buf, clip); return; } } if (active && GTK_IS_TEXT_VIEW(active)) { buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(active)); gtk_text_buffer_copy_clipboard(buf, clip); } } void on_action_edit_paste(GtkAction *action, GmAppView *view) { GtkWidget *active = gtk_window_get_focus(GTK_WINDOW(view)); GtkClipboard *clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); GtkTextBuffer *buf; if (active && GTK_IS_TEXT_VIEW(active)) { buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(active)); gtk_text_buffer_paste_clipboard(buf, clip, NULL, TRUE); } } void on_action_edit_world(GtkAction *action, GmAppView *view) { GmWorld *active = gm_app_view_active_world(view); gm_world_properties_dialog_run(active); } void on_action_edit_worlds(GtkAction *action, GmAppView *view) { gm_worlds_list_dialog_run(); } void on_action_edit_preferences(GtkAction *action, GmAppView *view) { gm_preferences_dialog_run(); } void on_action_edit_scripts(GtkAction *action, GmAppView *view) { #ifdef HAVE_RUBY gm_scripts_dialog_run(view); #endif } /* View callbacks */ void on_action_view_toolbar(GtkAction *action, GmAppView *view) { gm_options_set_int(gm_app_options(gm_app_instance()), "show_toolbar", gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action)) ? 1 : 0); } void on_action_view_userlist(GtkAction *action, GmAppView *view) { gm_options_set_int(gm_app_options(gm_app_instance()), "show_userlist", gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action)) ? 1 : 0); } /* Editor callbacks */ void on_action_editor_save(GtkAction *action, GmAppView *view) { gm_editor_view_save(gm_app_view_active_editor_view(view)); } void on_action_editor_save_close(GtkAction *action, GmAppView *view) { GmEditorView *editor_view = gm_app_view_active_editor_view(view); gm_editor_view_save(editor_view); gm_editor_close(gm_editor_view_editor(editor_view)); } #ifdef HAVE_PARSER void on_action_editor_parse(GtkAction *action, GmAppView *view) { gm_editor_view_check_syntax(gm_app_view_active_editor_view(view)); } #endif void on_action_editor_close(GtkAction *action, GmAppView *view) { gm_editor_close(gm_editor_view_editor( gm_app_view_active_editor_view(view))); } /* Toolbar callbacks */ void on_action_edit_triggers(GtkAction *action, GmAppView *view) { GmWorld *active = gm_app_view_active_world(view); gm_world_properties_dialog_run_triggers(active); } /* Help callbacks */ static const gchar *authors[] = { N_("Jesse van den Kieboom"), N_("Sjoerd Simons (debian package)"), NULL }; static const gchar *artists[] = { N_("Simon Gijsen"), NULL }; void on_action_help_about(GtkAction *action, GmAppView *view) { gtk_show_about_dialog(GTK_WINDOW(view), "name", _("GnoeMoe"), "version", PACKAGE_VERSION, "copyright", _("(C) 2004-2005 Icecrew.nl"), "comments", _("GnoeMoe Gnome MOO Client"), "authors", authors, "artists", artists, "logo", gm_pixbuf_get("gnoemoe_logo.svg"), NULL); } �����������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-commands.h���������������������������������������������������������0000644�0001750�0001750�00000002742�10507237503�017631� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_COMMANDS_H__ #define __GM_COMMANDS_H__ void on_action_world_new(GtkAction *action, GmAppView *view); void on_action_world_open(GtkAction *action, GmAppView *view); void on_action_world_connect(GtkAction *action, GmAppView *view); void on_action_world_paste(GtkAction *action, GmAppView *view); void on_action_world_logs(GtkAction *action, GmAppView *view); void on_action_world_close(GtkAction *action, GmAppView *view); void on_action_world_quit(GtkAction *action, GmAppView *view); void on_action_edit_cut(GtkAction *action, GmAppView *view); void on_action_edit_copy(GtkAction *action, GmAppView *view); void on_action_edit_paste(GtkAction *action, GmAppView *view); void on_action_edit_worlds(GtkAction *action, GmAppView *view); void on_action_edit_world(GtkAction *action, GmAppView *view); void on_action_edit_preferences(GtkAction *action, GmAppView *view); void on_action_edit_scripts(GtkAction *action, GmAppView *view); void on_action_view_toolbar(GtkAction *action, GmAppView *view); void on_action_view_userlist(GtkAction *action, GmAppView *view); void on_action_editor_save(GtkAction *action, GmAppView *view); void on_action_editor_save_close(GtkAction *action, GmAppView *view); void on_action_editor_parse(GtkAction *action, GmAppView *view); void on_action_editor_close(GtkAction *action, GmAppView *view); void on_action_edit_triggers(GtkAction *action, GmAppView *view); void on_action_help_about(GtkAction *action, GmAppView *view); #endif /* __GM_COMMANDS_H__ */ ������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-view.c�������������������������������������������������������0000644�0001750�0001750�00000067716�10507243032�020130� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <gdk/gdkkeysyms.h> #include <string.h> #include "gm-app.h" #include "gm-world-view.h" #include "gm-world-text-view.h" #include "gm-world-input-view.h" #include "gm-text-scroller.h" #include "gm-editor-view.h" #include "gm-embedded-view.h" #include "gm-external-view.h" #include "gm-log-view.h" #include "gm-debug.h" #include "gm-support.h" #include "gm-color-table.h" #include "mcp/gm-mcp-package.h" #include "mcp/gm-mcp-session.h" #include "gm-editor.h" #include "gm-searchable.h" #define GM_WORLD_VIEW_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_WORLD_VIEW, GmWorldViewPrivate)) struct _GmWorldViewPrivate { GmWorld *world; GtkStatusbar *statusbar; gchar *status_msg; guint status_timeout; GtkHPaned *hpaned; GmWorldTextView *text_view_world; GmWorldInputView *text_view_input; GmTextScroller *text_scroller_world; GList *external_editors; }; void on_gm_world_view_world_text_received(GmWorld *world, gchar *text, GmWorldView *view); void on_gm_world_view_world_error(GmWorld *world, gchar *text, gint code, GmWorldView *view); void on_gm_world_input_view_world_text_activate(GmWorldInputView *iview, gchar *text, GmWorldView *view); void on_gm_world_view_world_state_changing(GmWorld *world, guint state, GmWorldView *view); void on_gm_world_view_world_active_changed(GmWorld *world, GParamSpec *pspec, GmWorldView *view); void on_gm_world_view_world_highlight(GmWorld *world, gint start, gint end, gchar *color, GmWorldView *view); void on_gm_world_view_world_editor_added(GmWorld *world, GmEditor *editor, GmWorldView *view); void on_gm_world_view_world_editor_removed(GmWorld *world, GmEditor *editor, GmWorldView *view); void on_gm_world_view_world_mcp_package_created(GmMcpSession *session, GmMcpPackage *package, GmWorldView *view); void on_gm_world_view_editor_view_modified_changed(GmEditorView *editor_view, gboolean modified, GmWorldView *view); gboolean on_gm_world_view_world_text_view_scroll_event(GmWorldView *view, GdkEventScroll *event, GmWorldTextView *text); void on_gm_world_view_world_text_view_url_activate(GmWorldView *view, gchar const *url); void on_gm_world_view_editor_view_close_clicked(GtkButton *button, GtkWidget *view); void on_gm_world_view_log_view_close_clicked(GtkButton *button, GtkWidget *view); gboolean on_gm_world_view_world_input_view_key_pressed(GtkWidget *widget, GdkEventKey *event, GmWorldView *view); /* Signals enum { NUM_SIGNALS }; static guint gm_world_view_signals[NUM_SIGNALS] = {0};*/ static void gm_world_view_searchable_iface_init( GmSearchableInterface *iface); static GtkTextView *gm_world_view_searchable_get_text_view(GmSearchable *sea); G_DEFINE_TYPE_EXTENDED(GmWorldView, gm_world_view, GTK_TYPE_NOTEBOOK, 0, \ G_IMPLEMENT_INTERFACE(GM_TYPE_SEARCHABLE, \ gm_world_view_searchable_iface_init)) static void gm_world_view_searchable_iface_init(GmSearchableInterface *iface) { iface->get_text_view = gm_world_view_searchable_get_text_view; } static GtkTextView * gm_world_view_searchable_get_text_view(GmSearchable *sea) { GmWorldView *view = (GmWorldView *)(sea); g_return_val_if_fail(GM_IS_WORLD_VIEW(sea), NULL); return GTK_TEXT_VIEW(view->priv->text_view_world); } static void gm_world_view_finalize(GObject *object) { GmWorldView *view = GM_WORLD_VIEW(object); GList *ext; for (ext = view->priv->external_editors; ext; ext = ext->next) { gm_external_view_destroy(GM_EXTERNAL_VIEW(ext->data)); } if (view->priv->status_timeout) { g_source_remove(view->priv->status_timeout); } g_free(view->priv->status_msg); g_list_free(view->priv->external_editors); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_text_received), view); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_error), view); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_state_changing), view); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_active_changed), view); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_highlight), view); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_editor_added), view); g_signal_handlers_disconnect_by_func(view->priv->world, G_CALLBACK(on_gm_world_view_world_editor_removed), view); g_signal_handlers_disconnect_by_func( gm_world_get_mcp_session(view->priv->world), G_CALLBACK(on_gm_world_view_world_mcp_package_created), view); g_object_unref(view->priv->world); G_OBJECT_CLASS(gm_world_view_parent_class)->finalize(object); } static void gm_world_view_destroy(GtkObject *object) { GmWorldView *view = GM_WORLD_VIEW(object); if (!GM_IS_WORLD_VIEW(view) || !GTK_IS_WIDGET(view->priv->hpaned)) { return; } gm_options_set_int(gm_world_options(view->priv->world), "pane_position", GTK_WIDGET(view->priv->hpaned)->allocation.width - gtk_paned_get_position(GTK_PANED(view->priv->hpaned))); gm_options_save(gm_world_options(view->priv->world)); if (GTK_OBJECT_CLASS(gm_world_view_parent_class)->destroy) { GTK_OBJECT_CLASS(gm_world_view_parent_class)->destroy(object); } } static gboolean gm_world_view_input_grab_focus(GmWorldView *view) { gtk_widget_grab_focus(GTK_WIDGET(view->priv->text_view_input)); return FALSE; } static void gm_world_view_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num) { if (GTK_NOTEBOOK_CLASS(gm_world_view_parent_class)->switch_page) { GTK_NOTEBOOK_CLASS(gm_world_view_parent_class)->switch_page(notebook, page, page_num); } if (page_num == 0) { g_idle_add((GSourceFunc)gm_world_view_input_grab_focus, GM_WORLD_VIEW(notebook)); } } static void gm_world_view_remove_page(GtkContainer *container, GtkWidget *page) { GtkNotebook *notebook = GTK_NOTEBOOK(container); if (GTK_CONTAINER_CLASS(gm_world_view_parent_class)->remove) { GTK_CONTAINER_CLASS(gm_world_view_parent_class)->remove(container, page); } if (gtk_notebook_get_n_pages(notebook) == 1) { gtk_notebook_set_show_tabs(notebook, FALSE); } } static void gm_world_view_class_init(GmWorldViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS(klass); GtkContainerClass *container_class = GTK_CONTAINER_CLASS(klass); object_class->finalize = gm_world_view_finalize; gtk_object_class->destroy = gm_world_view_destroy; GTK_NOTEBOOK_CLASS(klass)->switch_page = gm_world_view_switch_page; container_class->remove = gm_world_view_remove_page; g_type_class_add_private(object_class, sizeof(GmWorldViewPrivate)); } static void gm_world_view_ensure_show_tabs(GmWorldView *view) { if (!gtk_notebook_get_show_tabs(GTK_NOTEBOOK(view))) { gtk_notebook_set_show_tabs(GTK_NOTEBOOK(view), TRUE); } } /*gboolean timeout_text(gpointer user_data) { GtkTextView *view = GTK_TEXT_VIEW(user_data); GtkTextBuffer *buffer = gtk_text_view_get_buffer(view); GtkTextIter end, start; static GdkEvent *event_press = NULL; static GdkEvent *event_release = NULL; gboolean result; gtk_text_buffer_get_bounds(buffer, &start, &end); if (gtk_text_iter_get_offset(&end) > 80) { gtk_text_buffer_delete(buffer, &start, &end); } else { if (!event_press) { gtk_widget_realize(GTK_WIDGET(view)); event_press = gdk_event_new(GDK_KEY_PRESS); event_press->key.keyval = 119; event_press->key.window = gtk_text_view_get_window(view, GTK_TEXT_WINDOW_TEXT); event_release = gdk_event_new(GDK_KEY_RELEASE); event_release->key.keyval = 119; event_release->key.window = event_press->key.window; } event_press->key.time = gtk_get_current_event_time(); event_release->key.time = gtk_get_current_event_time(); g_signal_emit_by_name(GTK_WIDGET(view), "key_press_event", event_press, &result); g_signal_emit_by_name(GTK_WIDGET(view), "key_release_event", event_release, &result); } return TRUE; }*/ GtkWidget * gm_world_view_create_input_text_view(GmWorldView *view) { GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL); GtkWidget *input_text_view = gm_world_input_view_new_with_color_table( gm_app_color_table(gm_app_instance())); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_NEVER, GTK_POLICY_NEVER); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_window), GTK_SHADOW_IN); gtk_container_add(GTK_CONTAINER(scrolled_window), input_text_view); view->priv->text_view_input = GM_WORLD_INPUT_VIEW(input_text_view); g_signal_connect(input_text_view, "key_press_event", G_CALLBACK(on_gm_world_view_world_input_view_key_pressed), view); return scrolled_window; } GtkWidget * gm_world_view_create_world_text_view(GmWorldView *view) { GtkWidget *world_text_view = gm_world_text_view_new_with_color_table( gm_app_color_table(gm_app_instance())); GtkWidget *scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_window), GTK_SHADOW_IN); gtk_container_add(GTK_CONTAINER(scrolled_window), world_text_view); view->priv->text_view_world = GM_WORLD_TEXT_VIEW(world_text_view); // Create new text scroller, this object will take care of itself and will // destroy itself when the view dies, neat! view->priv->text_scroller_world = gm_text_scroller_new(GTK_TEXT_VIEW(view->priv->text_view_world)); g_signal_connect(world_text_view, "scroll_event", G_CALLBACK(on_gm_world_view_world_text_view_scroll_event), view); g_signal_connect(world_text_view, "url_activate", G_CALLBACK(on_gm_world_view_world_text_view_url_activate), view); return scrolled_window; } void gm_world_view_update_status(GmWorldView *view, gchar const *status) { gtk_statusbar_pop(view->priv->statusbar, 0); if (status == NULL) { gtk_statusbar_push(view->priv->statusbar, 0, _("Welcome to GnoeMoe, explorer of new worlds!")); } else { gtk_statusbar_push(view->priv->statusbar, 0, status); } } void gm_world_view_flash_status(GmWorldView *view, gchar const *status, guint seconds) { } GtkWidget * gm_world_view_log_page_new(GmWorldView *view, gchar const *filename) { gchar *text = gm_read_file(filename); gchar *base; GmLabelInfo info; GtkWidget *log_view; GtkWidget *label; if (text == NULL) { return NULL; } base = g_path_get_basename(filename); label = gm_create_tab_label("editor_text.xpm", base, TRUE, &info); g_free(base); log_view = GTK_WIDGET(gm_log_view_new()); gtk_widget_show(log_view); gtk_notebook_append_page(GTK_NOTEBOOK(view), log_view, label); gm_world_view_ensure_show_tabs(view); gtk_notebook_set_current_page(GTK_NOTEBOOK(view), gtk_notebook_page_num(GTK_NOTEBOOK(view), log_view)); g_signal_connect(info.button_exit, "clicked", G_CALLBACK(on_gm_world_view_log_view_close_clicked), log_view); gm_log_view_set_text(GM_LOG_VIEW(log_view), text); g_free(text); return log_view; } GtkWidget * gm_world_view_editor_create_view(GmWorldView *view, GmEditor *editor) { GtkWidget *editor_view; GmOptions *options = gm_app_options(gm_app_instance()); if (strcmp(gm_options_get(options, "editor_alternative"), "0") != 0) { if (gm_options_get_int(options, "editor_embed")) { editor_view = GTK_WIDGET(gm_embedded_view_new(view->priv->world, editor)); } else { view->priv->external_editors = g_list_append( view->priv->external_editors, gm_external_view_new(view->priv->world, editor)); return NULL; } } else { editor_view = GTK_WIDGET(gm_editor_view_new(view->priv->world, editor)); g_signal_connect(editor_view, "modified-changed", G_CALLBACK(on_gm_world_view_editor_view_modified_changed), view); } gtk_widget_show(editor_view); return editor_view; } GtkWidget * gm_world_view_editor_page_new(GmWorldView *view, GmEditor *editor) { GtkWidget *label; GtkWidget *editor_view; GmLabelInfo info; gchar const *icon; if (gm_editor_is_code(editor)) { icon = "editor_verb.xpm"; } else { icon = "editor_text.xpm"; } label = gm_create_tab_label("editor_verb.xpm", gm_editor_name(editor), TRUE, &info); editor_view = gm_world_view_editor_create_view(view, editor); if (editor_view == NULL) { return NULL; } gm_world_view_ensure_show_tabs(view); gtk_notebook_append_page(GTK_NOTEBOOK(view), editor_view, label); gtk_notebook_set_current_page(GTK_NOTEBOOK(view), gtk_notebook_page_num(GTK_NOTEBOOK(view), editor_view)); g_signal_connect(info.button_exit, "clicked", G_CALLBACK(on_gm_world_view_editor_view_close_clicked), editor_view); return editor_view; } GtkWidget * gm_world_view_world_page_new(GmWorldView *view) { GtkWidget *vbox = gtk_vbox_new(FALSE, 0); GtkWidget *hpaned = gtk_hpaned_new(); GtkWidget *status = gtk_statusbar_new(); GtkWidget *vbox_world = gtk_vbox_new(FALSE, 3); gtk_box_pack_start(GTK_BOX(vbox_world), gm_world_view_create_world_text_view(view), TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox_world), gm_world_view_create_input_text_view(view), FALSE, FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox_world), 3); gtk_paned_pack1(GTK_PANED(hpaned), vbox_world, TRUE, TRUE); gtk_statusbar_set_has_resize_grip(GTK_STATUSBAR(status), FALSE); gtk_box_pack_start(GTK_BOX(vbox), hpaned, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), status, FALSE, FALSE, 0); view->priv->statusbar = GTK_STATUSBAR(status); view->priv->hpaned = GTK_HPANED(hpaned); gm_world_view_update_status(view, NULL); return vbox; } static gboolean paned_restore_size(GmWorldView *view) { GtkWidget *widget = GTK_WIDGET(view->priv->hpaned); gtk_paned_set_position(GTK_PANED(widget), widget->allocation.width - gm_options_get_int(gm_world_options(view->priv->world), "pane_position")); return FALSE; } static void gm_world_view_restore_paned_size(GtkWidget *widget, GmWorldView *view) { g_idle_add((GSourceFunc)paned_restore_size, view); /* CHECK: chain up */ /* only run this once */ g_signal_handlers_disconnect_by_func(widget, gm_world_view_restore_paned_size, view); } static void gm_world_view_init(GmWorldView *view) { GtkWidget *label; GmLabelInfo info; view->priv = GM_WORLD_VIEW_GET_PRIVATE(view); gtk_notebook_set_show_tabs(GTK_NOTEBOOK(view), FALSE); gtk_notebook_set_show_border(GTK_NOTEBOOK(view), FALSE); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(view), GTK_POS_BOTTOM); gtk_notebook_set_scrollable(GTK_NOTEBOOK(view), TRUE); label = gm_create_tab_label("world.svg", _("World"), FALSE, &info); gtk_notebook_append_page(GTK_NOTEBOOK(view), gm_world_view_world_page_new(view), label); g_signal_connect(view->priv->hpaned, "map", G_CALLBACK(gm_world_view_restore_paned_size), view); } GtkWidget * gm_world_view_new(GmWorld *world) { GmWorldView *view = GM_WORLD_VIEW(g_object_new(GM_TYPE_WORLD_VIEW, NULL)); view->priv->world = g_object_ref(world); gm_world_input_view_set_history(view->priv->text_view_input, gm_world_history(view->priv->world)); g_signal_connect(world, "text_received", G_CALLBACK(on_gm_world_view_world_text_received), view); g_signal_connect(world, "world_error", G_CALLBACK(on_gm_world_view_world_error), view); g_signal_connect(world, "state_changing", G_CALLBACK(on_gm_world_view_world_state_changing), view); g_signal_connect(world, "notify::active", G_CALLBACK(on_gm_world_view_world_active_changed), view); g_signal_connect(world, "highlight", G_CALLBACK(on_gm_world_view_world_highlight), view); g_signal_connect(world, "editor_added", G_CALLBACK(on_gm_world_view_world_editor_added), view); g_signal_connect(world, "editor_removed", G_CALLBACK(on_gm_world_view_world_editor_removed), view); g_signal_connect(gm_world_get_mcp_session(world), "package_created", G_CALLBACK(on_gm_world_view_world_mcp_package_created), view); g_signal_connect(view->priv->text_view_input, "text_activate", G_CALLBACK(on_gm_world_input_view_world_text_activate), view); return GTK_WIDGET(view); } gboolean gm_world_view_text_active(GmWorldView *view) { return gtk_notebook_get_current_page(GTK_NOTEBOOK(view)) == 0; } gboolean gm_world_view_page_can_find(GmWorldView *view, gint page_num) { GtkWidget *page; GmSearchable *sea; if (page_num == -1) { return FALSE; } else if (page_num == 0) { return gm_searchable_can_find(GM_SEARCHABLE(view)); } else { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), page_num); if (GM_IS_SEARCHABLE(page)) { sea = GM_SEARCHABLE(page); return gm_searchable_can_find(sea); } } return FALSE; } gboolean gm_world_view_can_find(GmWorldView *view) { gint np = gtk_notebook_get_current_page(GTK_NOTEBOOK(view)); return gm_world_view_page_can_find(view, np); } gboolean gm_world_view_find_first(GmWorldView *view, const gchar *str, GmSearchableSearchFlags flags) { gint np = gtk_notebook_get_current_page(GTK_NOTEBOOK(view)); GtkWidget *page; GmSearchable *sea; if (np == 0) { return gm_searchable_find_first(GM_SEARCHABLE(view), str, flags); } else { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), np); if (GM_IS_SEARCHABLE(page)) { sea = GM_SEARCHABLE(page); if (gm_searchable_can_find(sea)) { return gm_searchable_find_first(sea, str, flags); } } } return FALSE; } gboolean gm_world_view_find_next(GmWorldView *view, const gchar *str, GmSearchableSearchFlags flags) { gint np = gtk_notebook_get_current_page(GTK_NOTEBOOK(view)); GtkWidget *page; GmSearchable *sea; if (np == 0) { return gm_searchable_find_next(GM_SEARCHABLE(view), str, flags); } else { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), np); if (GM_IS_SEARCHABLE(page)) { sea = GM_SEARCHABLE(page); if (gm_searchable_can_find(sea)) { return gm_searchable_find_next(sea, str, flags); } } } return FALSE; } gboolean gm_world_view_replace(GmWorldView *view, gchar const *replace) { gint np = gtk_notebook_get_current_page(GTK_NOTEBOOK(view)); GtkWidget *page; GmSearchable *sea; if (np == 0) { return FALSE; } else { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), np); if (GM_IS_SEARCHABLE(page)) { sea = GM_SEARCHABLE(page); if (gm_searchable_can_replace(sea)) { return gm_searchable_replace(sea, replace); } } } return FALSE; } gboolean gm_world_view_replace_all(GmWorldView *view, gchar const *str, gchar const *replace, GmSearchableSearchFlags flags) { gint np = gtk_notebook_get_current_page(GTK_NOTEBOOK(view)); GtkWidget *page; GmSearchable *sea; if (np == 0) { return FALSE; } else { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), np); if (GM_IS_SEARCHABLE(page)) { sea = GM_SEARCHABLE(page); if (gm_searchable_can_replace(sea)) { return gm_searchable_replace_all(sea, str, replace, flags); } } } return FALSE; } gboolean gm_world_view_can_replace(GmWorldView *view) { gint np = gtk_notebook_get_current_page(GTK_NOTEBOOK(view)); return gm_world_view_page_can_replace(view, np); } gboolean gm_world_view_page_can_replace(GmWorldView *view, gint page_num) { GtkWidget *page; GmSearchable *sea; if (page_num == -1) { return FALSE; } else if (page_num == 0) { return gm_searchable_can_replace(GM_SEARCHABLE(view)); } else { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), page_num); if (GM_IS_SEARCHABLE(page)) { sea = GM_SEARCHABLE(page); return gm_searchable_can_replace(sea); } } return FALSE; } GmWorld * gm_world_view_world(GmWorldView *view) { return view->priv->world; } GmWorldInputView * gm_world_view_input(GmWorldView *view) { return view->priv->text_view_input; } GmWorldTextView * gm_world_view_text_view(GmWorldView *view) { return view->priv->text_view_world; } GtkTextBuffer * gm_world_view_buffer(GmWorldView *view) { return gtk_text_view_get_buffer(GTK_TEXT_VIEW(view->priv->text_view_world)); } GtkHPaned * gm_world_view_hpaned(GmWorldView *view) { return view->priv->hpaned; } void gm_world_view_open_log(GmWorldView *view, const gchar *filename) { gm_world_view_log_page_new(view, filename); } void gm_world_view_set_userlist_width(GmWorldView *view, gint width) { gtk_paned_set_position(GTK_PANED(view->priv->hpaned), GTK_WIDGET(view->priv->hpaned)->allocation.width - width); } void gm_world_view_set_focus(GmWorldView *view) { gtk_widget_grab_focus(GTK_WIDGET(view->priv->text_view_input)); } void gm_world_view_change_font_size(GmWorldView *view, gint size_change) { GtkStyle *style = gtk_widget_get_style(GTK_WIDGET(view)); PangoFontDescription *desc = style->font_desc; PangoFontDescription *copy = pango_font_description_copy(desc); gchar *new_font; pango_font_description_set_size(copy, pango_font_description_get_size(copy) + (size_change * PANGO_SCALE)); new_font = pango_font_description_to_string(copy); gm_color_table_set_font_description(gm_app_color_table(gm_app_instance()), new_font); pango_font_description_free(copy); g_free(new_font); } /* Callbacks */ void on_gm_world_input_view_world_text_activate(GmWorldInputView *iview, gchar *text, GmWorldView *view) { gm_world_process_input(view->priv->world, text); gm_text_scroller_scroll_end(view->priv->text_scroller_world); } void on_gm_world_view_world_text_received(GmWorld *world, gchar *text, GmWorldView *view) { gchar *inserted = gm_world_text_view_insert(view->priv->text_view_world, text); g_free(inserted); } void on_gm_world_view_editor_save(GmEditor *editor, GmWorldView *view) { gtk_notebook_set_current_page(GTK_NOTEBOOK(view), 0); gtk_widget_grab_focus(GTK_WIDGET(view->priv->text_view_input)); } void on_gm_world_view_editor_view_close_clicked(GtkButton *button, GtkWidget *view) { // TODO: make this into an interface if (GM_IS_EDITOR_VIEW(view)) { gm_editor_close(gm_editor_view_editor(GM_EDITOR_VIEW(view))); } else if (GM_IS_EMBEDDED_VIEW(view)) { gm_editor_close(gm_embedded_view_editor(GM_EMBEDDED_VIEW(view))); } } void on_gm_world_view_log_view_close_clicked(GtkButton *button, GtkWidget *view) { gtk_widget_destroy(view); } void on_gm_world_view_editor_view_modified_changed(GmEditorView *editor_view, gboolean modified, GmWorldView *view) { gint i, n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(view)); GtkWidget *page; GtkLabel *label; gchar *str; // Find this view then for (i = 1; i < n; ++i) { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), i); if (GM_IS_EDITOR_VIEW(page) && GM_EDITOR_VIEW(page) == editor_view) { label = GTK_LABEL(gm_container_item(GTK_CONTAINER( gtk_notebook_get_tab_label(GTK_NOTEBOOK(view), page)), GTK_TYPE_LABEL)); if (!modified) { gtk_label_set_label(label, gm_editor_name(gm_editor_view_editor( GM_EDITOR_VIEW(page)))); } else { str = g_strconcat(gm_editor_name(gm_editor_view_editor( GM_EDITOR_VIEW(page))), "*", NULL); gtk_label_set_label(label, str); g_free(str); } } } } void on_gm_world_view_world_editor_added(GmWorld *world, GmEditor *editor, GmWorldView *view) { gm_world_view_editor_page_new(view, editor); g_signal_connect(editor, "save", G_CALLBACK(on_gm_world_view_editor_save), view); } void on_gm_world_view_world_editor_removed(GmWorld *world, GmEditor *editor, GmWorldView *view) { gint i, n = gtk_notebook_get_n_pages(GTK_NOTEBOOK(view)); GtkWidget *page; gboolean found = FALSE; GList *ext; for (i = 1; i < n; ++i) { page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(view), i); found = GM_IS_EDITOR_VIEW(page) && gm_editor_view_editor( GM_EDITOR_VIEW(page)) == editor; found = found || (GM_IS_EMBEDDED_VIEW(page) && gm_embedded_view_editor( GM_EMBEDDED_VIEW(page)) == editor); if (found) { g_signal_handlers_disconnect_by_func(editor, on_gm_world_view_editor_save, view); gtk_widget_destroy(page); gtk_notebook_set_current_page(GTK_NOTEBOOK(view), 0); gtk_widget_grab_focus(GTK_WIDGET(view->priv->text_view_input)); break; } } if (!found) { // Might be an external editor? for (ext = view->priv->external_editors; ext; ext = ext->next) { if ((GM_EXTERNAL_VIEW(ext->data))->editor == editor) { g_signal_handlers_disconnect_by_func(editor, on_gm_world_view_editor_save, view); gm_external_view_destroy(GM_EXTERNAL_VIEW(ext->data)); view->priv->external_editors = g_list_remove_link(view->priv->external_editors, ext); g_list_free_1(ext); break; } } } } void on_gm_world_view_world_error(GmWorld *world, gchar *text, gint code, GmWorldView *view) { gchar *line; switch (code) { case GM_NET_ERROR_CONNECTING: line = g_strdup_printf(_("Connect failed: %s"), text); break; case GM_NET_ERROR_DISCONNECTED: line = g_strdup_printf(_("Connection lost... (%s)"), text); break; default: line = g_strdup_printf(_("Error: %s"), text); break; } gm_world_status(world, line); g_free(line); } void on_gm_world_view_world_state_changing(GmWorld *world, guint state, GmWorldView *view) { gchar *line = NULL; GmNetState pstate = gm_world_state(world); switch (state) { case GM_NET_STATE_TRY_ADDRESS: line = g_strdup_printf(_("Trying %s port %s"), gm_world_current_host(world), gm_world_current_port(world)); break; case GM_NET_STATE_CONNECTING: line = g_strdup_printf(_("Connecting to %s port %s"), gm_world_current_host(world), gm_world_current_port(world)); break; case GM_NET_STATE_CONNECTED: line = g_strdup(_("Connected")); break; case GM_NET_STATE_DISCONNECTED: if (pstate == GM_NET_STATE_CONNECTED || pstate == GM_NET_STATE_DISCONNECTING) { line = g_strdup(_("Disconnected")); } gm_world_view_update_status(view, NULL); break; case GM_NET_STATE_DISCONNECTING: line = g_strdup(_("Disconnecting")); break; default: break; } if (line) { gm_world_status(world, line); g_free(line); } } void on_gm_world_view_world_active_changed(GmWorld *world, GParamSpec *pspec, GmWorldView *view) { if (gm_world_active(world)) { gtk_widget_grab_focus(GTK_WIDGET(view->priv->text_view_input)); } } void on_gm_world_view_world_highlight(GmWorld *world, gint start, gint end, gchar *color, GmWorldView *view) { GtkTextIter istart, iend; GtkTextBuffer *buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(view->priv->text_view_world)); gtk_text_buffer_get_end_iter(buffer, &iend); istart = iend; gtk_text_iter_backward_line(&istart); if (start != -1) { gtk_text_iter_forward_chars(&istart, start); iend = istart; gtk_text_iter_forward_chars(&iend, end); } gtk_text_buffer_apply_tag_by_name(buffer, color, &istart, &iend); } gboolean on_gm_world_view_world_text_view_scroll_event(GmWorldView *view, GdkEventScroll *event, GmWorldTextView *text) { if (event->state & GDK_CONTROL_MASK) { switch (event->direction) { case GDK_SCROLL_UP: // Decrease font size gm_world_view_change_font_size(view, -1); break; case GDK_SCROLL_DOWN: // Increase font size gm_world_view_change_font_size(view, 1); break; default: break; } return TRUE; } else { return FALSE; } return FALSE; } gboolean on_gm_world_view_world_input_view_key_pressed(GtkWidget *widget, GdkEventKey *event, GmWorldView *view) { switch (event->keyval) { case GDK_Home: case GDK_End: if ((event->state | GDK_CONTROL_MASK) == event->state) { if (event->keyval == GDK_End) { gm_text_scroller_scroll_end( view->priv->text_scroller_world); } else { gm_text_scroller_scroll_begin( view->priv->text_scroller_world); } return TRUE; } break; case GDK_Page_Up: case GDK_Page_Down: if (!(event->state & GDK_CONTROL_MASK && !(event->state & GDK_SHIFT_MASK))) { if (event->keyval == GDK_Page_Up) { gm_text_scroller_scroll_page( view->priv->text_scroller_world, -1); } else { gm_text_scroller_scroll_page( view->priv->text_scroller_world, 1); } return TRUE; } default: break; } return FALSE; } void on_gm_world_view_world_mcp_package_created(GmMcpSession *session, GmMcpPackage *package, GmWorldView *view) { gm_mcp_package_create_view(package, G_OBJECT(view)); } void on_gm_world_view_world_text_view_url_activate(GmWorldView *view, gchar const *url) { gm_open_url(url); } ��������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-view.h�������������������������������������������������������0000644�0001750�0001750�00000005505�10417215326�020126� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_VIEW_H__ #define __GM_WORLD_VIEW_H__ #include <gtk/gtk.h> #include "gm-support.h" #include "gm-world.h" #include "gm-world-input-view.h" #include "gm-world-text-view.h" #include "gm-searchable.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_WORLD_VIEW (gm_world_view_get_type()) #define GM_WORLD_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_WORLD_VIEW, GmWorldView)) #define GM_WORLD_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_WORLD_VIEW, GmWorldView const)) #define GM_WORLD_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_WORLD_VIEW, GmWorldViewClass)) #define GM_IS_WORLD_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_WORLD_VIEW)) #define GM_IS_WORLD_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_WORLD_VIEW)) #define GM_WORLD_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_WORLD_VIEW, GmWorldViewClass)) /* Private structure type */ typedef struct _GmWorldViewPrivate GmWorldViewPrivate; /* * Main object structure */ typedef struct _GmWorldView GmWorldView; struct _GmWorldView { GtkNotebook notebook; /*< private > */ GmWorldViewPrivate *priv; }; /* * Class definition */ typedef struct _GmWorldViewClass GmWorldViewClass; struct _GmWorldViewClass { GtkNotebookClass parent_class; /* Signals */ }; GType gm_world_view_get_type(void) G_GNUC_CONST; GtkWidget *gm_world_view_new(GmWorld *world); gboolean gm_world_view_find_first(GmWorldView *view, const gchar *str, GmSearchableSearchFlags flags); gboolean gm_world_view_find_next(GmWorldView *view, const gchar *str, GmSearchableSearchFlags flags); gboolean gm_world_view_can_find(GmWorldView *view); gboolean gm_world_view_page_can_find(GmWorldView *view, gint page_num); gboolean gm_world_view_replace(GmWorldView *view, gchar const *replace); gboolean gm_world_view_replace_all(GmWorldView *view, gchar const *str, gchar const *replace, GmSearchableSearchFlags flags); gboolean gm_world_view_can_replace(GmWorldView *view); gboolean gm_world_view_page_can_replace(GmWorldView *view, gint page_num); GmWorld *gm_world_view_world(GmWorldView *view); GmWorldInputView *gm_world_view_input(GmWorldView *view); GmWorldTextView *gm_world_view_text_view(GmWorldView *view); GtkHPaned *gm_world_view_hpaned(GmWorldView *view); GtkTextBuffer *gm_world_view_buffer(GmWorldView *view); gboolean gm_world_view_text_active(GmWorldView *view); void gm_world_view_open_log(GmWorldView *view, const gchar *filename); void gm_world_view_set_userlist_width(GmWorldView *view, gint width); void gm_world_view_set_focus(GmWorldView *view); void gm_world_view_update_status(GmWorldView *view, gchar const *status); void gm_world_view_flash_status(GmWorldView *view, gchar const *status, guint seconds); G_END_DECLS #endif /* __GM_WORLD_VIEW_H__ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-text-view.c��������������������������������������������������0000644�0001750�0001750�00000122712�10507207125�021101� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <gtk/gtk.h> #include <string.h> #include <gdk/gdk.h> #include "gm-world-text-view.h" #include "gm-color-table.h" #include "gm-marshal.h" #include "gm-ansi.h" #include "gm-debug.h" #include "gm-support.h" static gboolean gm_world_text_view_button_press_event(GtkWidget *widget, GdkEventButton *event); static gboolean gm_world_text_view_button_release_event(GtkWidget *widget, GdkEventButton *event); static gboolean gm_world_text_view_leave_event(GtkWidget *widget, GdkEventCrossing *event); static void gm_world_text_view_drag_data_get(GtkWidget *widget, GdkDragContext *context, GtkSelectionData *data, guint info, guint time); static void gm_world_text_view_drag_end(GtkWidget *widget, GdkDragContext *context); static void gm_world_text_view_style_set(GtkWidget *widget, GtkStyle *previous_style); static void gm_world_text_view_populate_popup(GtkTextView *text_view, GtkMenu *menu); /* Callback definitions */ // Popup menu actions callbacks static void on_gm_world_text_view_copy_address(GtkMenuItem *item, GmWorldTextView *view); static void on_gm_world_text_view_open_address(GtkMenuItem *item, GmWorldTextView *view); static gboolean on_gm_world_text_view_url_event(GtkTextTag *tag, GObject *object, GdkEvent *event, GtkTextIter *iter, GmWorldTextView *view); static gboolean on_gm_world_text_view_event(GmWorldTextView *view, GdkEventMotion *event, GtkTextTag *tag); /*void on_gm_world_text_view_color_table_bold_toggled(GmColorTable *table, gboolean bold, GmWorldTextView *view);*/ static void on_gm_world_text_view_color_table_color_changed(GmColorTable *table, gchar *name, GmWorldTextView *view); static void on_gm_world_text_view_color_table_font_changed(GmColorTable *table, gchar *font_description, GmWorldTextView *view); static void gm_world_text_view_create_tags(GmWorldTextView *view); static void gm_world_text_view_init_tags(GmWorldTextView *view); static void gm_world_text_view_update_font(GmWorldTextView *view); #define GM_WORLD_TEXT_VIEW_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE( \ (object), GM_TYPE_WORLD_TEXT_VIEW, GmWorldTextViewPrivate)) #define GM_WORLD_TEXT_VIEW_BUFFER(view) gtk_text_view_get_buffer( \ GTK_TEXT_VIEW(view)) typedef struct _GmWorldTextViewInsertInfo GmWorldTextViewInsertInfo; typedef struct _BlinkInfo { guint blink; GtkTextBuffer *text; gchar *fill; guint timeout; GmWorldTextView *view; GtkTextMark *begin; } BlinkInfo; static void blink_info_free(BlinkInfo *info); struct _GmWorldTextViewInsertInfo { GList *tags; gboolean bold; gboolean inverse; guint blink; gchar *text; }; struct _GmWorldTextViewPrivate { GSList *blinkers; guint blink_state; GtkTextTag *tag_blink; GtkTextTag *tag_blink_fast; guint blink_timeout_id; guint character_width; guint character_height; gint max_lines; GmWorldTextViewInsertInfo last_info; GmColorTable *color_table; gboolean drag_url; gchar *drag_url_text; guint drag_x; guint drag_y; GtkTargetList *source_target_list; gboolean is_hand; }; /* Signals */ enum { URL_ACTIVATE, CHARACTER_SIZE_CHANGED, NUM_SIGNALS }; static guint world_text_view_signals[NUM_SIGNALS] = {0}; static GtkTextViewClass *parent_class = NULL; G_DEFINE_TYPE(GmWorldTextView, gm_world_text_view, GTK_TYPE_TEXT_VIEW) /* Class object functions etc */ static void gm_world_text_view_finalize(GObject *object) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(object); GSList *item; BlinkInfo *info; gm_world_text_view_set_color_table(view, NULL); if (view->priv->blink_timeout_id) { g_source_remove(view->priv->blink_timeout_id); } for (item = view->priv->blinkers; item; item = item->next) { info = (BlinkInfo *)(item->data); g_source_remove(info->timeout); blink_info_free(info); } g_slist_free(view->priv->blinkers); g_list_free(view->priv->last_info.tags); g_free(view->priv->last_info.text); gtk_target_list_unref(view->priv->source_target_list); G_OBJECT_CLASS(gm_world_text_view_parent_class)->finalize(object); } static void gm_world_text_view_class_init(GmWorldTextViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); GtkTextViewClass *text_view_class = GTK_TEXT_VIEW_CLASS(klass); parent_class = GTK_TEXT_VIEW_CLASS(g_type_class_peek_parent(klass)); text_view_class->populate_popup = gm_world_text_view_populate_popup; object_class->finalize = gm_world_text_view_finalize; widget_class->button_press_event = gm_world_text_view_button_press_event; widget_class->button_release_event = gm_world_text_view_button_release_event; widget_class->leave_notify_event = gm_world_text_view_leave_event; widget_class->drag_data_get = gm_world_text_view_drag_data_get; widget_class->drag_end = gm_world_text_view_drag_end; widget_class->style_set = gm_world_text_view_style_set; world_text_view_signals[URL_ACTIVATE] = g_signal_new("url_activate", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldTextViewClass, url_activate), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); world_text_view_signals[CHARACTER_SIZE_CHANGED] = g_signal_new("character_size_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldTextViewClass, character_size_changed), NULL, NULL, gm_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2, G_TYPE_UINT, G_TYPE_UINT); g_type_class_add_private(object_class, sizeof(GmWorldTextViewPrivate)); } enum { DRAG_URL, DRAG_URI_LIST, DRAG_TEXT, NUM_TARGETS }; static const GtkTargetEntry drag_targets[] = { {"_NETSCAPE_URL", 0, DRAG_URL}, {"text/uri-list", 0, DRAG_URI_LIST}, {"text/plain", 0, DRAG_TEXT}, }; static void gm_world_text_view_init(GmWorldTextView *view) { view->priv = GM_WORLD_TEXT_VIEW_GET_PRIVATE(view); // This view can't focus GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(view), GTK_CAN_FOCUS); // Therefore we need the active state to be the selected state gtk_widget_modify_base(GTK_WIDGET(view), GTK_STATE_ACTIVE, &(GTK_WIDGET(view)->style->base[GTK_STATE_SELECTED])); gtk_widget_modify_text(GTK_WIDGET(view), GTK_STATE_ACTIVE, &(GTK_WIDGET(view)->style->text[GTK_STATE_SELECTED])); gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE); // Margins gtk_text_view_set_left_margin(GTK_TEXT_VIEW(view), 3); gtk_text_view_set_right_margin(GTK_TEXT_VIEW(view), 3); // Set default wrapping mode gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_WORD_CHAR); view->priv->color_table = NULL; view->priv->max_lines = 2000; view->priv->last_info.bold = FALSE; view->priv->last_info.inverse = FALSE; view->priv->last_info.tags = NULL; view->priv->last_info.text = NULL; view->priv->source_target_list = gtk_target_list_new(drag_targets, NUM_TARGETS); } /* Private functions */ static void blink_info_free(BlinkInfo *info) { if (!gtk_text_mark_get_deleted(info->begin)) gtk_text_buffer_delete_mark(GM_WORLD_TEXT_VIEW_BUFFER(info->view), info->begin); g_object_unref(info->begin); g_object_unref(info->text); g_free(info->fill); g_free(info); } static gboolean gm_world_text_view_button_press_event(GtkWidget *widget, GdkEventButton *event) { GtkTextView *text_view = GTK_TEXT_VIEW(widget); GmWorldTextView *view = GM_WORLD_TEXT_VIEW(widget); GtkTextIter start, end; GtkTextBuffer *buffer = gtk_text_view_get_buffer(text_view); GtkTextTag *tag; gint x, y; if (event->button == 1 && !(event->state & GDK_MOD1_MASK) && !(event->state & GDK_SHIFT_MASK) && event->window == gtk_text_view_get_window(text_view, GTK_TEXT_WINDOW_TEXT)) { // Are we at a link gtk_text_view_window_to_buffer_coords(text_view, GTK_TEXT_WINDOW_TEXT, event->x, event->y, &x, &y); gtk_text_view_get_iter_at_location(text_view, &start, x, y); tag = gtk_text_tag_table_lookup(gtk_text_buffer_get_tag_table(buffer), "url"); if (gtk_text_iter_has_tag(&start, tag)) { end = start; if (!gtk_text_iter_begins_tag(&start, tag)) { gtk_text_iter_backward_to_tag_toggle(&start, tag); } if (!gtk_text_iter_ends_tag(&end, tag)) { gtk_text_iter_forward_to_tag_toggle(&end, tag); } view->priv->drag_url_text = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); view->priv->drag_x = event->x; view->priv->drag_y = event->y; view->priv->drag_url = TRUE; return TRUE; } } if (GTK_WIDGET_CLASS(parent_class)->button_press_event) { return GTK_WIDGET_CLASS(parent_class)->button_press_event(widget, event); } return FALSE; } static void gm_world_text_view_no_selection(GmWorldTextView *view) { GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(view); GtkTextIter iter; gtk_text_buffer_get_iter_at_mark(buffer, &iter, gtk_text_buffer_get_insert(buffer)); gtk_text_buffer_move_mark(buffer, gtk_text_buffer_get_selection_bound(buffer), &iter); } static gboolean gm_world_text_view_button_release_event(GtkWidget *widget, GdkEventButton *event) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(widget); if (event->button == 1 && view->priv->drag_url) { gm_world_text_view_no_selection(view); view->priv->drag_url = FALSE; g_free(view->priv->drag_url_text); view->priv->drag_url_text = NULL; } if (GTK_WIDGET_CLASS(parent_class)->button_release_event) { return GTK_WIDGET_CLASS(parent_class)->button_release_event(widget, event); } return FALSE; } static gboolean gm_world_text_view_leave_event(GtkWidget *widget, GdkEventCrossing *event) { GM_WORLD_TEXT_VIEW(widget)->priv->drag_url = FALSE; if (GTK_WIDGET_CLASS(parent_class)->leave_notify_event) { return GTK_WIDGET_CLASS(parent_class)->leave_notify_event(widget, event); } return FALSE; } static void gm_world_text_view_drag_data_get(GtkWidget *widget, GdkDragContext *context, GtkSelectionData *data, guint info, guint time) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(widget); GdkAtom target = data->target; gchar *str = NULL; if (view->priv->drag_url_text) { if (target == gdk_atom_intern("_NETSCAPE_URL", FALSE) || target == gdk_atom_intern("text/plain", FALSE)) { str = g_strdup(view->priv->drag_url_text); } else if (target == gdk_atom_intern("text/uri-list", FALSE)) { str = g_strconcat(view->priv->drag_url_text, "\r\n", NULL); } else { g_assert_not_reached(); } } else if (GTK_WIDGET_CLASS(parent_class)->drag_data_get) { GTK_WIDGET_CLASS(parent_class)->drag_data_get(widget, context, data, info, time); return; } else { g_assert_not_reached(); } gtk_selection_data_set(data, target, 8, (const guchar *)str, strlen(str)); g_free(str); } static void gm_world_text_view_drag_end(GtkWidget *widget, GdkDragContext *context) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(widget); if (view->priv->drag_url_text) { g_free(view->priv->drag_url_text); view->priv->drag_url_text = NULL; } else if (GTK_WIDGET_CLASS(parent_class)->drag_end) { GTK_WIDGET_CLASS(parent_class)->drag_end(widget, context); } } static void gm_world_text_view_style_set(GtkWidget *widget, GtkStyle *previous_style) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(widget); GtkRcStyle *style; PangoContext *pc; PangoLayout *pl; gint cwidth, cheight; if (GTK_WIDGET_CLASS(parent_class)->style_set) { GTK_WIDGET_CLASS(parent_class)->style_set(widget, previous_style); } style = gtk_widget_get_modifier_style(widget); pc = gtk_widget_create_pango_context(widget); if (style->font_desc != NULL) { pango_context_set_font_description(pc, style->font_desc); pl = pango_layout_new(pc); pango_layout_set_text(pl, "G", 1); pango_layout_get_pixel_size(pl, &(cwidth), &(cheight)); if (view->priv->character_width != (guint)cwidth || view->priv->character_height != (guint)cheight) { view->priv->character_width = (guint)cwidth; view->priv->character_height = (guint)cheight; g_signal_emit(view, world_text_view_signals[CHARACTER_SIZE_CHANGED], 0, view->priv->character_width, view->priv->character_height); } g_object_unref(pl); } g_object_unref(pc); } static void gm_world_text_view_populate_popup(GtkTextView *text_view, GtkMenu *menu) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(text_view); GtkTextTagTable *table; GtkTextTag *tag; gint x, y; GtkTextIter iter, start, end; GtkWidget *item; gchar *str = NULL; if (parent_class->populate_popup) { parent_class->populate_popup(text_view, menu); } table = gtk_text_buffer_get_tag_table(GM_WORLD_TEXT_VIEW_BUFFER(view)); tag = gtk_text_tag_table_lookup(table, "url"); gtk_widget_get_pointer(GTK_WIDGET(view), &x, &y); gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(view), GTK_TEXT_WINDOW_WIDGET, x, y, &x, &y); gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(view), &iter, x, y); start = end = iter; if (gtk_text_iter_backward_to_tag_toggle(&start, tag) && gtk_text_iter_forward_to_tag_toggle(&end, tag)) { str = gtk_text_buffer_get_text(GM_WORLD_TEXT_VIEW_BUFFER(view), &start, &end, FALSE); } if (str == NULL || *str == '\0') { return; } item = gtk_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); gtk_widget_show(item); /* Set data just to get the string freed when not needed. */ g_object_set_data_full(G_OBJECT(menu), "url", str, (GDestroyNotify)g_free); item = gtk_menu_item_new_with_mnemonic(_("_Copy Link Address")); g_signal_connect(item, "activate", G_CALLBACK(on_gm_world_text_view_copy_address), view); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); gtk_widget_show(item); item = gtk_menu_item_new_with_mnemonic(_("_Open Link")); g_signal_connect(item, "activate", G_CALLBACK(on_gm_world_text_view_open_address), view); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); gtk_widget_show(item); } static void gm_world_text_view_update_color_tag(GmWorldTextView *view, const gchar *name, GtkTextTag *tag) { GtkTextBuffer *buf = GM_WORLD_TEXT_VIEW_BUFFER(view); GtkTextTagTable *table = gtk_text_buffer_get_tag_table(buf); GdkColor col; if (tag == NULL) { tag = gtk_text_tag_table_lookup(table, name); } if (view->priv->color_table != NULL) { gm_color_table_get(view->priv->color_table, name, &col); } if (name[0] == 'f') { if (view->priv->color_table == NULL) { gdk_color_parse("#ffffff", &col); } g_object_set(tag, "foreground-gdk", &col, NULL); if (strcmp(name, "fg_default") == 0) { // Update inverse_bg tag = gtk_text_tag_table_lookup(table, "inverse_bg"); g_object_set(tag, "background-gdk", &col, NULL); } } else { if (view->priv->color_table == NULL) { gdk_color_parse("#000000", &col); } g_object_set(tag, "background-gdk", &col, NULL); if (strcmp(name, "bg_default")) { // Update inverse_fg tag = gtk_text_tag_table_lookup(table, "inverse_fg"); g_object_set(tag, "foreground-gdk", &col, NULL); } } } static void gm_world_text_view_remove_blinkers(GmWorldTextView *view, GtkTextIter *start, GtkTextIter *end) { GtkTextIter blink; BlinkInfo *info; GSList *item, *list; GtkTextBuffer *buffer; list = g_slist_copy(view->priv->blinkers); buffer = GM_WORLD_TEXT_VIEW_BUFFER(view); for (item = list; item; item = item->next) { info = (BlinkInfo *)(item->data); gtk_text_buffer_get_iter_at_mark(buffer, &blink, info->begin); if (gtk_text_iter_in_range(&blink, start, end)) view->priv->blinkers = g_slist_remove(view->priv->blinkers, info); } g_slist_free(list); } static void gm_world_text_view_check_buffer_size(GmWorldTextView *view) { GtkTextBuffer *buf = GM_WORLD_TEXT_VIEW_BUFFER(view); GtkTextIter start, end; gint d = gtk_text_buffer_get_line_count(buf) - view->priv->max_lines; if (d > 0) { gtk_text_buffer_get_iter_at_line(buf, &start, 0); gtk_text_buffer_get_iter_at_line(buf, &end, d); /* Remove any blinkers in the line */ gm_world_text_view_remove_blinkers(view, &start, &end); gtk_text_buffer_delete(buf, &start, &end); } } static void gm_world_text_view_create_tags(GmWorldTextView *view) { /* Create all the tags */ int i; GtkTextTag *tag; GtkTextBuffer *buf = GM_WORLD_TEXT_VIEW_BUFFER(view); GdkColor col; /* Url tag */ tag = gtk_text_buffer_create_tag(buf, "url", "foreground", "steelblue", "underline", PANGO_UNDERLINE_SINGLE, NULL); g_signal_connect(tag, "event", G_CALLBACK(on_gm_world_text_view_url_event), view); g_signal_connect(view, "event", G_CALLBACK(on_gm_world_text_view_event), tag); view->priv->tag_blink = gtk_text_buffer_create_tag(buf, "blink", NULL); view->priv->tag_blink_fast = gtk_text_buffer_create_tag(buf, "blink-fast", NULL); gtk_text_buffer_create_tag(buf, "blink-after", "weight", PANGO_WEIGHT_ULTRABOLD, NULL); tag = gtk_text_buffer_create_tag(buf, "inverse_bg", NULL); if (view->priv->color_table != NULL) { gm_color_table_get(view->priv->color_table, "fg_default", &col); g_object_set(tag, "background-gdk", &col, NULL); } tag = gtk_text_buffer_create_tag(buf, "inverse_fg", NULL); if (view->priv->color_table != NULL) { gm_color_table_get(view->priv->color_table, "bg_default", &col); g_object_set(tag, "background-gdk", &col, NULL); } for (i = 0; i < (int)(sizeof(ansi_colors) / sizeof(ansinamepair)); i++) { tag = gtk_text_buffer_create_tag(buf, ansi_colors[i].name, NULL); gm_world_text_view_update_color_tag(view, ansi_colors[i].name, tag); } for (i = 0; i < (int)(sizeof(ansi_styles) / sizeof(ansinamepair)); i++) { tag = gtk_text_buffer_create_tag(buf, ansi_styles[i].name, NULL); switch (ansi_styles[i].code) { case A_BOLD: g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_ULTRABOLD, NULL); break; case A_BOLD_OFF: g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_NORMAL, NULL); break; case A_FAINT: g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_ULTRALIGHT, NULL); break; case A_UNDERLINE: g_object_set(G_OBJECT(tag), "underline", PANGO_UNDERLINE_SINGLE, NULL); break; case A_DOUBLE_UNDERLINE: g_object_set(G_OBJECT(tag), "underline", PANGO_UNDERLINE_DOUBLE, NULL); break; case A_UNDERLINE_OFF: g_object_set(G_OBJECT(tag), "underline", PANGO_UNDERLINE_NONE, NULL); break; case A_CROSSOUT: g_object_set(G_OBJECT(tag), "strikethrough", TRUE, NULL); break; case A_CROSSOUT_OFF: g_object_set(G_OBJECT(tag), "strikethrough", FALSE, NULL); break; case A_ITALIC: g_object_set(G_OBJECT(tag), "style", PANGO_STYLE_ITALIC, NULL); break; case A_ITALIC_OFF: g_object_set(G_OBJECT(tag), "style", PANGO_STYLE_NORMAL, NULL); break; case A_INVISIBLE: g_object_set(G_OBJECT(tag), "invisible", TRUE, NULL); break; case A_INVISIBLE_OFF: g_object_set(G_OBJECT(tag), "invisible", FALSE, NULL); break; case A_NOWRAP: g_object_set(G_OBJECT(tag), "wrap-mode", GTK_WRAP_NONE, NULL); break; default: gtk_text_tag_table_remove(gtk_text_buffer_get_tag_table(buf), tag); break; } } } static void gm_world_text_view_update_tags(GmWorldTextView *view) { gint i; for (i = 0; i < (int)(sizeof(ansi_colors) / sizeof(ansinamepair)); i++) { gm_world_text_view_update_color_tag(view, ansi_colors[i].name, NULL); } /* tag = gtk_text_tag_table_lookup(gtk_text_buffer_get_tag_table( GM_WORLD_TEXT_VIEW_BUFFER(view)), "bold"); if (gm_color_table_bold(view->priv->color_table)) { g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_NORMAL, NULL); } else { g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_ULTRABOLD, NULL); }*/ } static void gm_world_text_view_init_tags(GmWorldTextView *view) { GdkColor col; gm_color_table_get(view->priv->color_table, "fg_default", &col); gtk_widget_modify_text(GTK_WIDGET(view), GTK_STATE_NORMAL, &col); gm_color_table_get(view->priv->color_table, "bg_default", &col); gtk_widget_modify_base(GTK_WIDGET(view), GTK_STATE_NORMAL, &col); gm_world_text_view_update_tags(view); } static void gm_world_text_view_update_font(GmWorldTextView *view) { PangoFontDescription *f = pango_font_description_from_string( gm_color_table_font_description(view->priv->color_table)); if (f != NULL) { gtk_widget_modify_font(GTK_WIDGET(view), f); pango_font_description_free(f); } } static gboolean g_utf8_toint(gchar *str, guint *result) { gunichar c; *result = 0; while ((c = g_utf8_get_char(str)) != '\0') { if (g_unichar_isdigit(c)) { *result = (*result * 10) + g_unichar_digit_value(c); } else { return FALSE; } str = g_utf8_next_char(str); } return TRUE; } static void gm_world_text_view_blinker_iters(BlinkInfo *info, GtkTextIter *start, GtkTextIter *end, GtkTextTag **tag_blink) { GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(info->view); GtkTextTag *tag; if (info->blink == 1) { tag = info->view->priv->tag_blink; } else { tag = info->view->priv->tag_blink_fast; } gtk_text_buffer_get_iter_at_mark(buffer, start, info->begin); if (end != NULL) { *end = *start; gtk_text_iter_forward_chars(end, g_utf8_strlen(info->fill, -1)); } if (tag_blink != NULL) { *tag_blink = tag; } } static void gm_world_text_view_blinker_set_visible(BlinkInfo *info, gboolean visible) { GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(info->view); GtkTextIter start, end, s, e; GtkTextTag *tag; gm_world_text_view_blinker_iters(info, &start, &end, &tag); gtk_text_buffer_delete(buffer, &start, &end); gm_world_text_view_blinker_iters(info, &start, NULL, NULL); if (visible) { gtk_text_buffer_get_bounds(info->text, &s, &e); gtk_text_buffer_insert_range(buffer, &start, &s, &e); } else { gtk_text_buffer_insert_with_tags(buffer, &start, info->fill, -1, tag, NULL); } } static gboolean gm_world_text_view_blinker_timeout(BlinkInfo *info) { GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(info->view); GtkTextTag *tag; GtkTextIter start, end; gm_world_text_view_blinker_set_visible(info, TRUE); gm_world_text_view_blinker_iters(info, &start, &end, &tag); gtk_text_buffer_remove_tag(buffer, tag, &start, &end); gtk_text_buffer_apply_tag_by_name(buffer, "blink-after", &start, &end); info->view->priv->blinkers = g_slist_remove(info->view->priv->blinkers, info); blink_info_free(info); return FALSE; } static gboolean gm_world_text_view_blink_timeout(GmWorldTextView *view) { guint blink_state = view->priv->blink_state; GSList *blinker; BlinkInfo *info; if (!view->priv->blinkers) { view->priv->blink_state = 0; view->priv->blink_timeout_id = 0; return FALSE; } for (blinker = view->priv->blinkers; blinker; blinker = blinker->next) { info = (BlinkInfo *)(blinker->data); if (info->blink == 1 && (blink_state == 0 || blink_state == 2)) { gm_world_text_view_blinker_set_visible(info, blink_state == 2); } else if (info->blink == 2) { gm_world_text_view_blinker_set_visible(info, blink_state == 1 || blink_state == 3); } } if (blink_state == 3) { view->priv->blink_state = 0; } else { view->priv->blink_state = blink_state + 1; } return TRUE; } static const gchar * gm_world_text_view_tagname_from_code(guint code) { gint i, len; len = (sizeof(ansi_colors) / sizeof(ansinamepair)); for (i = 0; i < len; i++) { if (ansi_colors[i].code == code) { return ansi_colors[i].name; } } len = sizeof(ansi_styles) / sizeof(ansinamepair); for (i = 0; i < len; i++) { if (ansi_styles[i].code == code) { return ansi_styles[i].name; } } return NULL; } static GList * gm_world_text_view_tags_apply_bold(GmWorldTextView *view, GList *tags) { GList *t, *item; GtkTextTag *tag, *htag; gboolean fg_set; gchar *name, *hname; gboolean added = FALSE; GtkTextTagTable *tag_table = gtk_text_buffer_get_tag_table( GM_WORLD_TEXT_VIEW_BUFFER(view)); t = g_list_copy(tags); for (item = t; item; item = item->next) { tag = GTK_TEXT_TAG(item->data); g_object_get(G_OBJECT(tag), "foreground-set", &fg_set, NULL); g_object_get(G_OBJECT(tag), "name", &name, NULL); if (fg_set) { hname = g_strconcat(name, "_h", NULL); htag = gtk_text_tag_table_lookup(tag_table, hname); if (htag) { if (!g_list_find(tags, htag)) { tags = g_list_append(tags, htag); } added = TRUE; } g_free(hname); } g_free(name); } /* If there is no high color added than this means we have a default color */ if (!added) { tags = g_list_append(tags, gtk_text_tag_table_lookup(tag_table, "fg_default_h")); } g_list_free(t); return tags; } static GList * gm_world_text_view_tags_fix_for_inverse(GmWorldTextView *view, GList *tags) { gboolean bold = view->priv->last_info.bold; gboolean fg_changed = FALSE, bg_changed = FALSE; GList *new_tags = NULL, *item; GtkTextTag *tag; gchar *name, *base, *tagname; int i; GtkTextTagTable *tab = gtk_text_buffer_get_tag_table( GM_WORLD_TEXT_VIEW_BUFFER(view)); for (item = tags; item; item = item->next) { tag = GTK_TEXT_TAG(item->data); g_object_get(G_OBJECT(tag), "name", &name, NULL); if (strncmp(name, "fg_", 3) == 0) { base = name + 3; bg_changed = TRUE; i = 0; while (base[i] != '_' && base[i] != '\0') i++; base[i] = '\0'; tagname = g_strconcat("bg_", base, NULL); new_tags = g_list_append(new_tags, gtk_text_tag_table_lookup(tab, tagname)); g_free(tagname); } else if (strncmp(name, "bg_", 3) == 0) { base = name + 3; fg_changed = TRUE; if (bold) { tagname = g_strconcat("fg_", base, "_h", NULL); } else { tagname = g_strconcat("fg_", base, NULL); } new_tags = g_list_append(new_tags, gtk_text_tag_table_lookup(tab, tagname)); g_free(tagname); } else if (strcmp(name, "inverse_bg") == 0) { fg_changed = TRUE; new_tags = g_list_append(new_tags, gtk_text_tag_table_lookup(tab, "bg_default")); } else if (strcmp(name, "inverse_fg") == 0) { bg_changed = TRUE; new_tags = g_list_append(new_tags, gtk_text_tag_table_lookup(tab, "fg_default")); } else { new_tags = g_list_append(new_tags, tag); } g_free(name); } if (!bg_changed) { new_tags = g_list_append(new_tags, gtk_text_tag_table_lookup(tab, "inverse_bg")); } if (!fg_changed) { new_tags = g_list_append(new_tags, gtk_text_tag_table_lookup(tab, "inverse_fg")); } g_list_free(tags); return new_tags; } static const gchar * tag_checks[] = { "foreground-set", "background-set", "weight-set", "underline-set", "style-set", "wrap-mode-set", "invisible-set", NULL }; static gboolean gm_world_text_view_tags_overlap(GtkTextTag *t1, GtkTextTag *t2) { int i = 0; gboolean val1, val2; while (tag_checks[i]) { g_object_get(G_OBJECT(t1), tag_checks[i], &val1, NULL); g_object_get(G_OBJECT(t2), tag_checks[i], &val2, NULL); if (val1 && val2) { return TRUE; } ++i; } return FALSE; } static GList * gm_world_text_view_tags_remove_obsolete(GmWorldTextView *view, GList *tags, GtkTextTag *tag) { GList *t = g_list_copy(tags), *item; GtkTextTag *tag2; for (item = t; item; item = item->next) { tag2 = GTK_TEXT_TAG(item->data); if (gm_world_text_view_tags_overlap(tag, tag2)) { tags = g_list_remove(tags, tag2); } } g_list_free(t); return tags; } static GList * gm_world_text_view_tags_remove_bold(GmWorldTextView *view, GList *tags) { GList *t = g_list_copy(tags), *item; gchar *name; for (item = t; item; item = item->next) { g_object_get(G_OBJECT(item->data), "name", &name, NULL); if (strncmp(name, "fg_", 3) == 0 && name[strlen(name) - 1] == 'h') { tags = g_list_remove(tags, item->data); } g_free(name); } g_list_free(t); return tags; } static void gm_world_text_view_insert_text(GmWorldTextView *view, const gchar *text, GmWorldTextViewInsertInfo *insert_info) { GtkTextIter end_iter, start_iter, ins; GtkTextBuffer *tb = GM_WORLD_TEXT_VIEW_BUFFER(view); gint start_offset; BlinkInfo *info; GList *tags; if (insert_info->bold) { // If it needs to be bold then apply high colors for every color insert_info->tags = gm_world_text_view_tags_apply_bold(view, insert_info->tags); } else { // Remove all possible high colors insert_info->tags = gm_world_text_view_tags_remove_bold(view, insert_info->tags); } gtk_text_buffer_get_end_iter(tb, &end_iter); start_offset = gtk_text_iter_get_offset(&end_iter); gtk_text_buffer_insert(tb, &end_iter, text, -1); gtk_text_buffer_get_iter_at_offset(tb, &start_iter, start_offset); gtk_text_buffer_get_end_iter(tb, &end_iter); for (tags = insert_info->tags; tags; tags = tags->next) { gtk_text_buffer_apply_tag(tb, GTK_TEXT_TAG(tags->data), &start_iter, &end_iter); } if (insert_info->blink) { info = g_new0(BlinkInfo, 1); info->blink = insert_info->blink; info->begin = g_object_ref(gtk_text_buffer_create_mark(tb, NULL, &start_iter, TRUE)); info->view = view; if (insert_info->blink == 1) { gtk_text_buffer_apply_tag_by_name(tb, "blink", &start_iter, &end_iter); } else { gtk_text_buffer_apply_tag_by_name(tb, "blink-fast", &start_iter, &end_iter); } info->text = gtk_text_buffer_new(gtk_text_buffer_get_tag_table(tb)); gtk_text_buffer_get_iter_at_offset(info->text, &ins, 0); gtk_text_buffer_insert_range(info->text, &ins, &start_iter, &end_iter); info->fill = g_strnfill(g_utf8_strlen(text, -1), ' '); if (!view->priv->blink_timeout_id) { view->priv->blink_timeout_id = g_timeout_add(250, (GSourceFunc)gm_world_text_view_blink_timeout, view); } /* Let them blink for about... 10 seconds */ info->timeout = g_timeout_add(10000, (GSourceFunc)gm_world_text_view_blinker_timeout, info); view->priv->blinkers = g_slist_append(view->priv->blinkers, info); } } static GList * gm_world_text_view_tags_add(GmWorldTextView *view, GList *tags, GtkTextTag *tag) { tags = gm_world_text_view_tags_remove_obsolete(view, tags, tag); return g_list_append(tags, tag); } static void gm_world_text_view_tag_urls(GmWorldTextView *view, gchar *text, GtkTextIter *started, GtkTextIter *ended) { gint num_matches, i; GArray *start, *end; gint s = 0, e = 0; GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(view); GtkTextTag *url_tag = gtk_text_tag_table_lookup( gtk_text_buffer_get_tag_table(buffer), "url"); GtkTextIter urlstart, urlend; start = g_array_new(FALSE, FALSE, sizeof(gint)); end = g_array_new(FALSE, FALSE, sizeof(gint)); num_matches = gm_url_regex_match(text, strlen(text), start, end); for (i = 0; i < num_matches; i++) { urlstart = *started; urlend = *started; s = g_array_index(start, gint, i); e = g_array_index(end, gint, i); gtk_text_iter_forward_cursor_positions(&urlstart, g_utf8_pointer_to_offset(text, text + s)); gtk_text_iter_forward_cursor_positions(&urlend, g_utf8_pointer_to_offset(text, text + e)); gtk_text_buffer_apply_tag(buffer, url_tag, &urlstart, &urlend); } g_array_free(start, TRUE); g_array_free(end, TRUE); } /* Public/exported functions */ GtkWidget * gm_world_text_view_new() { GtkWidget *result; GmColorTable *table = gm_color_table_new(); result = gm_world_text_view_new_with_color_table(table); g_object_unref(table); return result; } GtkWidget * gm_world_text_view_new_with_color_table(GmColorTable *color_table) { GmWorldTextView *view = GM_WORLD_TEXT_VIEW(g_object_new( GM_TYPE_WORLD_TEXT_VIEW, NULL)); gm_world_text_view_create_tags(view); gm_world_text_view_set_color_table(view, color_table); return GTK_WIDGET(view); } void gm_world_text_view_set_color_table(GmWorldTextView *view, GmColorTable *color_table) { if (view->priv->color_table != NULL) { g_signal_handlers_disconnect_by_func(view->priv->color_table, on_gm_world_text_view_color_table_color_changed, view); g_signal_handlers_disconnect_by_func(view->priv->color_table, on_gm_world_text_view_color_table_font_changed, view); g_object_unref(view->priv->color_table); } if (color_table != NULL) { view->priv->color_table = g_object_ref(color_table); g_signal_connect(view->priv->color_table, "color_changed", G_CALLBACK(on_gm_world_text_view_color_table_color_changed), view); g_signal_connect(view->priv->color_table, "font_changed", G_CALLBACK(on_gm_world_text_view_color_table_font_changed), view); gm_world_text_view_init_tags(view); gm_world_text_view_update_font(view); } else { view->priv->color_table = NULL; } } GmColorTable * gm_world_text_view_color_table(GmWorldTextView *view) { return view->priv->color_table; } gchar * gm_world_text_view_insert(GmWorldTextView *view, const gchar *text) { gchar *ptr, *ansi_start, *ansi_stop, **ansis; gchar *name; int i; guint seq; GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(view); GtkTextTagTable *tab = gtk_text_buffer_get_tag_table(buffer); GmWorldTextViewInsertInfo *info = &(view->priv->last_info); GString *new_line = NULL; GtkTextIter started, ended; GtkTextMark *start_mark; GtkTextTag *tag; gboolean skip; g_return_val_if_fail(g_utf8_validate(text, -1, NULL), NULL); if (info->text != NULL) { new_line = g_string_new(info->text); g_free(info->text); info->text = NULL; } else { new_line = g_string_new(""); } g_string_append(new_line, text); if ((ptr = g_utf8_strchr(new_line->str, -1, '\x07'))) { gdk_beep(); while (ptr) { g_string_erase(new_line, g_utf8_pointer_to_offset(new_line->str, ptr), 1); ptr = g_utf8_strchr(new_line->str, -1, '\x07'); } } gm_debug_msg(DEBUG_DEFAULT, "GmWorldTextView.Insert: %s", new_line->str); gtk_text_buffer_get_end_iter(buffer, &started); start_mark = gtk_text_buffer_create_mark(buffer, "last-insertion", &started, TRUE); while (new_line != NULL && (ansi_start = strstr(new_line->str, "\x1B["))) { i = g_utf8_pointer_to_offset(new_line->str, ansi_start); if (i != 0) { ptr = g_strndup(new_line->str, ansi_start - new_line->str); gm_world_text_view_insert_text(view, ptr, info); g_free(ptr); } if ((ansi_stop = g_utf8_strchr(ansi_start, -1, 'm'))) { /* Advance to the ansi sequence */ ansi_start = ansi_start + 2; ptr = g_strndup(ansi_start, ansi_stop - ansi_start); ansis = g_strsplit(ptr, ";", -1); g_free(ptr); for (i = 0; ansis[i] != NULL; i++) { if (ansis[i][0] != '\0' && g_utf8_toint(ansis[i], &seq)) { skip = FALSE; switch (seq) { case A_FG_DEFAULT: case A_FG_BLACK: case A_FG_RED: case A_FG_GREEN: case A_FG_YELLOW: case A_FG_BLUE: case A_FG_PURPLE: case A_FG_CYAN: case A_FG_WHITE: if (info->inverse) { seq += 10; } break; case A_BG_DEFAULT: case A_BG_BLACK: case A_BG_RED: case A_BG_GREEN: case A_BG_YELLOW: case A_BG_BLUE: case A_BG_PURPLE: case A_BG_CYAN: case A_BG_WHITE: if (info->inverse) { seq -= 10; } break; case A_BOLD: info->bold = TRUE; if (info->inverse) skip = TRUE; break; case A_FAINT: info->bold = TRUE; if (info->inverse) skip = TRUE; break; case A_BOLD_OFF: info->bold = FALSE; if (info->inverse) skip = TRUE; break; case A_INVERSE: info->inverse = !(info->inverse); info->tags = gm_world_text_view_tags_fix_for_inverse( view, info->tags); break; case A_INVERSE_OFF: if (info->inverse) { info->tags = gm_world_text_view_tags_fix_for_inverse( view, info->tags); info->inverse = FALSE; } break; case A_BLINK: info->blink = 1; break; case A_BLINK_OFF: info->blink = 0; break; case A_BLINK_FAST: info->blink = 2; break; case A_BLINK_FAST_OFF: info->blink = 0; break; case A_DEFAULT: g_list_free(info->tags); info->tags = NULL; info->bold = FALSE; info->inverse = FALSE; info->blink = 0; break; } name = (gchar *)gm_world_text_view_tagname_from_code(seq); if (name != NULL && !skip) { tag = gtk_text_tag_table_lookup(tab, name); if (tag != NULL) { info->tags = gm_world_text_view_tags_add(view, info->tags, tag); } } } } g_strfreev(ansis); g_string_erase(new_line, 0, (ansi_stop - new_line->str) + 1); } else { info->text = g_strdup(ansi_start); g_string_free(new_line, TRUE); new_line = NULL; } } if (new_line && new_line->len != 0) { gm_world_text_view_insert_text(view, new_line->str, info); } if (new_line) { g_string_free(new_line, TRUE); } gm_world_text_view_check_buffer_size(view); gtk_text_buffer_get_iter_at_mark(buffer, &started, start_mark); gtk_text_buffer_get_end_iter(buffer, &ended); gtk_text_buffer_delete_mark(buffer, start_mark); ptr = gtk_text_buffer_get_text(buffer, &started, &ended, FALSE); gm_world_text_view_tag_urls(view, ptr, &started, &ended); return ptr; } void gm_world_text_view_get_metrics(GmWorldTextView *view, guint *width, guint *height) { *width = view->priv->character_width; *height = view->priv->character_height; } /* Callbacks */ static gboolean on_gm_world_text_view_url_event(GtkTextTag *tag, GObject *object, GdkEvent *event, GtkTextIter *iter, GmWorldTextView *view) { GtkTextIter start, end; gchar *str = NULL; GtkTextBuffer *buffer = GM_WORLD_TEXT_VIEW_BUFFER(view); if (event->type == GDK_BUTTON_RELEASE && event->button.button == 1 && !(event->button.state & GDK_CONTROL_MASK) && !(event->button.state & GDK_SHIFT_MASK) && !(event->button.state & GDK_MOD1_MASK)) { start = end = *iter; if (gtk_text_iter_backward_to_tag_toggle(&start, tag) && gtk_text_iter_forward_to_tag_toggle(&end, tag)) { str = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); } if (str == NULL) { return FALSE; } /* If the link is being selected, don't do anything. */ gtk_text_buffer_get_selection_bounds(buffer, &start, &end); if (!gtk_text_iter_equal(&start, &end)) { g_free(str); return FALSE; } g_signal_emit(view, world_text_view_signals[URL_ACTIVATE], 0, str); g_free(str); } return FALSE; } gboolean on_gm_world_text_view_event(GmWorldTextView *view, GdkEventMotion *event, GtkTextTag *tag) { static GdkCursor *hand = NULL; GtkTextWindowType type; GtkTextIter iter; GdkWindow *win; gint x, y, buf_x, buf_y; gboolean has_tag; type = gtk_text_view_get_window_type(GTK_TEXT_VIEW(view), event->window); if (type != GTK_TEXT_WINDOW_TEXT) { return FALSE; } if (event->type != GDK_MOTION_NOTIFY) { return FALSE; } /* Get where the pointer really is. */ win = gtk_text_view_get_window(GTK_TEXT_VIEW(view), type); gdk_window_get_pointer(win, &x, &y, NULL); /* Get the iter where the cursor is at */ gtk_text_view_window_to_buffer_coords(GTK_TEXT_VIEW(view), type, x, y, &buf_x, &buf_y); gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(view), &iter, buf_x, buf_y); if (!hand) { hand = gdk_cursor_new(GDK_HAND1); } has_tag = gtk_text_iter_has_tag(&iter, tag); if (has_tag && !view->priv->is_hand) { view->priv->is_hand = TRUE; gdk_window_set_cursor(win, hand); } else if (!has_tag && view->priv->is_hand) { view->priv->is_hand = FALSE; gdk_window_set_cursor(win, NULL); } if (view->priv->drag_url && gtk_drag_check_threshold(GTK_WIDGET(view), view->priv->drag_x, view->priv->drag_y, event->x, event->y)) { view->priv->drag_url = FALSE; gtk_drag_begin(GTK_WIDGET(view), view->priv->source_target_list, GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_ASK, 1, (GdkEvent *)event); } return FALSE; } static void on_gm_world_text_view_copy_address(GtkMenuItem *item, GmWorldTextView *view) { GtkClipboard *clipboard; gchar *url = (gchar *)(g_object_get_data(G_OBJECT(gtk_widget_get_parent( GTK_WIDGET(item))), "url")); clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); gtk_clipboard_set_text(clipboard, url, -1); } static void on_gm_world_text_view_open_address(GtkMenuItem *item, GmWorldTextView *view) { gchar *url = (gchar *)(g_object_get_data(G_OBJECT(gtk_widget_get_parent( GTK_WIDGET(item))), "url")); g_signal_emit(view, world_text_view_signals[URL_ACTIVATE], 0, url); } /* void gm_world_text_view_color_table_fix_high_color(GtkTextTag *tag, gpointer data) { gboolean bold = (gboolean)(GPOINTER_TO_INT(data)); gchar *name; GdkColor *col; g_object_get(G_OBJECT(tag), "name", &name, NULL); if (strncmp(name, "fg_", 3) == 0 && name[strlen(name) - 1] == 'h') { g_object_get(G_OBJECT(tag), "foreground-gdk", &col, NULL); if (bold) { g_object_set(G_OBJECT(tag), "foreground-gdk", col, NULL); } else { g_object_set(G_OBJECT(tag), "foreground-set", FALSE, NULL); } } g_free(name); } void on_gm_world_text_view_color_table_bold_toggled(GmColorTable *table, gboolean bold, GmWorldTextView *view) { GtkTextTag *tag; GtkTextBuffer *buf = GM_WORLD_TEXT_VIEW_BUFFER(view); GtkTextTagTable *tb = gtk_text_buffer_get_tag_table(buf); // Fix bold tag tag = gtk_text_tag_table_lookup(tb, "bold"); if (tag != NULL) { if (bold) { g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_NORMAL, NULL); } else { g_object_set(G_OBJECT(tag), "weight", PANGO_WEIGHT_ULTRABOLD, NULL); } // Fix high color tags gtk_text_tag_table_foreach(tb, gm_world_text_view_color_table_fix_high_color, GINT_TO_POINTER(bold)); } }*/ static void on_gm_world_text_view_color_table_color_changed(GmColorTable *table, gchar *name, GmWorldTextView *view) { GdkColor col; gm_world_text_view_update_color_tag(view, name, NULL); if (strcmp(name, "fg_default") == 0) { gm_color_table_get(view->priv->color_table, "fg_default", &col); gtk_widget_modify_text(GTK_WIDGET(view), GTK_STATE_NORMAL, &col); } else if (strcmp(name, "bg_default") == 0) { gm_color_table_get(view->priv->color_table, "bg_default", &col); gtk_widget_modify_base(GTK_WIDGET(view), GTK_STATE_NORMAL, &col); } } static void on_gm_world_text_view_color_table_font_changed(GmColorTable *table, gchar *font_description, GmWorldTextView *view) { gm_world_text_view_update_font(view); } ������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-text-view.h��������������������������������������������������0000644�0001750�0001750�00000004070�10410766740�021110� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_TEXT_VIEW_H__ #define __GM_WORLD_TEXT_VIEW_H__ #include <gtk/gtk.h> #include "gm-color-table.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_WORLD_TEXT_VIEW (gm_world_text_view_get_type()) #define GM_WORLD_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_WORLD_TEXT_VIEW, GmWorldTextView)) #define GM_WORLD_TEXT_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_WORLD_TEXT_VIEW, GmWorldTextView const)) #define GM_WORLD_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_WORLD_TEXT_VIEW, GmWorldTextViewClass)) #define GM_IS_WORLD_TEXT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_WORLD_TEXT_VIEW)) #define GM_IS_WORLD_TEXT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_WORLD_TEXT_VIEW)) #define GM_WORLD_TEXT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_WORLD_TEXT_VIEW, GmWorldTextViewClass)) /* Private structure type */ typedef struct _GmWorldTextViewPrivate GmWorldTextViewPrivate; /* * Main object structure */ typedef struct _GmWorldTextView GmWorldTextView; struct _GmWorldTextView { GtkTextView textview; /*< private > */ GmWorldTextViewPrivate *priv; }; /* * Class definition */ typedef struct _GmWorldTextViewClass GmWorldTextViewClass; struct _GmWorldTextViewClass { GtkTextViewClass parent_class; /* Signals */ void (* url_activate) (GmWorldTextView *view, const gchar *url); void (* character_size_changed) (GmWorldTextView *view, guint width, guint height); }; GType gm_world_text_view_get_type(void) G_GNUC_CONST; GtkWidget *gm_world_text_view_new(void); GtkWidget *gm_world_text_view_new_with_color_table(GmColorTable *color_table); gchar *gm_world_text_view_insert(GmWorldTextView *view, const gchar *text); GmColorTable *gm_world_text_view_color_table(GmWorldTextView *view); void gm_world_text_view_set_color_table(GmWorldTextView *view, GmColorTable *color_table); void gm_world_text_view_get_metrics(GmWorldTextView *view, guint *width, guint *height); G_END_DECLS #endif /* __GM_WORLD_TEXT_VIEW_H__ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-input-view.c�������������������������������������������������0000644�0001750�0001750�00000025210�10415224061�021243� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <gtk/gtk.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> #include "gm-world-input-view.h" #include "gm-world-view.h" #include "gm-world.h" #include "gm-color-table.h" #include "gm-debug.h" #define GM_WORLD_INPUT_VIEW_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_WORLD_INPUT_VIEW, GmWorldInputViewPrivate)) void on_gm_world_input_view_changed(GtkTextBuffer *buffer, GmWorldInputView *view); struct _GmWorldInputViewPrivate { GmColorTable *color_table; GList **history; GList *position; gchar *prefix; gulong changed_id; guint idle_scroll; gboolean is_scrolled; }; /* Signals */ enum { TEXT_ACTIVATE, NUM_SIGNALS }; static guint world_input_view_signals[NUM_SIGNALS] = {0}; static GtkWidgetClass *widget_parent_class; G_DEFINE_TYPE(GmWorldInputView, gm_world_input_view, GTK_TYPE_TEXT_VIEW) /* Private functions */ static void gm_world_input_view_finalize(GObject *object) { GmWorldInputView *view = GM_WORLD_INPUT_VIEW(object); gm_world_input_view_set_color_table(view, NULL); if (view->priv->idle_scroll) { g_source_remove(view->priv->idle_scroll); } G_OBJECT_CLASS(gm_world_input_view_parent_class)->finalize(object); } static gchar * gm_world_input_view_str_new_value(gchar *old, gchar *new) { g_free(old); if (new) { return g_strdup(new); } else { return NULL; } } void gm_world_input_view_set_text(GmWorldInputView *view, gchar *text, gint len) { GtkTextIter end; GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)); g_signal_handlers_block_by_func(buffer, on_gm_world_input_view_changed, view); gtk_text_buffer_set_text(buffer, text, len); gtk_text_buffer_get_end_iter(buffer, &end); gtk_text_buffer_place_cursor(buffer, &end); g_signal_handlers_unblock_by_func(buffer, on_gm_world_input_view_changed, view); } static void gm_world_input_view_reset_prefix(GmWorldInputView *view) { view->priv->prefix = gm_world_input_view_str_new_value( view->priv->prefix, NULL); } gboolean gm_world_input_view_key_press_event(GtkWidget *widget, GdkEventKey *event) { GmWorldInputView *view = GM_WORLD_INPUT_VIEW(widget); gchar *text; gboolean result = FALSE, isUp; GtkTextBuffer *buf; GtkTextIter start, end, cursor; GtkTextMark *insert; GList *item, *found = NULL; gint line, len; buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)); gtk_text_buffer_get_bounds(buf, &start, &end); switch (event->keyval) { case GDK_Up: case GDK_Down: isUp = event->keyval == GDK_Up; if (!view->priv->history) { break; } insert = gtk_text_buffer_get_insert(buf); gtk_text_buffer_get_iter_at_mark(buf, &cursor, insert); line = gtk_text_iter_get_line(&cursor); if ((isUp && line != 0) || (!isUp && line != gtk_text_buffer_get_line_count(buf) - 1)) { break; } text = gtk_text_buffer_get_text(buf, &start, &end, FALSE); // If the current position is empty then append a new history item if (!view->priv->position) { *view->priv->history = g_list_append(*view->priv->history, g_strdup(text)); view->priv->position = g_list_last(*view->priv->history); } // If there is nowhere to move, don't even bother if ((isUp && !view->priv->position->prev) || (!isUp && !view->priv->position->next)) { result = TRUE; break; } // If the current prefix is NULL then we set the new prefix to // the current text if (view->priv->prefix == NULL) { view->priv->prefix = g_strdup(text); } // If the prefix is an empty string then simply advance to the // next item if (*(view->priv->prefix) == '\0') { if (isUp) { found = view->priv->position->prev; } else { found = view->priv->position->next; } } else { // Else find the closest matching history line item = isUp ? view->priv->position->prev : view->priv->position->next; while (item) { if (strncmp((gchar *)item->data, view->priv->prefix, strlen(view->priv->prefix)) == 0) { // Change current position to the matched item found = item; break; } item = isUp ? item->prev : item->next; } } // If a match is found then set this history text if (found) { // Change the data of the current position to the text // now in the buffer. view->priv->position->data = gm_world_input_view_str_new_value( view->priv->position->data, text); gm_world_input_view_set_text(view, (gchar *)found->data, -1); view->priv->position = found; if (found == g_list_last(*view->priv->history)) { gm_world_input_view_reset_prefix(view); } } g_free(text); result = TRUE; break; case GDK_Return: // Emit the text_activate signal if (!(event->state & GDK_CONTROL_MASK) && !(event->state & GDK_SHIFT_MASK)) { text = gtk_text_buffer_get_text(buf, &start, &end, FALSE); g_signal_emit(view, world_input_view_signals[TEXT_ACTIVATE], 0, text); if (view->priv->history) { item = g_list_last(*view->priv->history); if (item) { item->data = gm_world_input_view_str_new_value( (gchar *)(item->data), text); } else { *view->priv->history = g_list_append(*view->priv->history, g_strdup(text)); } } len = g_list_length(*view->priv->history); for (line = 0; line < len - 500; ++line) { *view->priv->history = g_list_remove(*view->priv->history, (*view->priv->history)->data); } // Append new empty history item which will become our new // current item if (view->priv->history) { *view->priv->history = g_list_append(*view->priv->history, g_strdup("")); view->priv->position = g_list_last(*view->priv->history); } gm_world_input_view_reset_prefix(view); // Set textview text to an empty string gm_world_input_view_set_text(view, "", 0); on_gm_world_input_view_changed(buf, view); g_free(text); result = TRUE; } break; default: break; } if (!result) { if (widget_parent_class->key_press_event) { return widget_parent_class->key_press_event(widget, event); } } return result; } static void gm_world_input_view_class_init(GmWorldInputViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); object_class->finalize = gm_world_input_view_finalize; widget_class->key_press_event = gm_world_input_view_key_press_event; widget_parent_class = GTK_WIDGET_CLASS(gm_world_input_view_parent_class); world_input_view_signals[TEXT_ACTIVATE] = g_signal_new("text_activate", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldInputViewClass, text_activate), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); g_type_class_add_private(object_class, sizeof(GmWorldInputViewPrivate)); } static void gm_world_input_view_init(GmWorldInputView *view) { view->priv = GM_WORLD_INPUT_VIEW_GET_PRIVATE(view); view->priv->color_table = NULL; view->priv->history = NULL; view->priv->position = NULL; view->priv->prefix = NULL; gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_WORD_CHAR); gtk_text_view_set_accepts_tab(GTK_TEXT_VIEW(view), TRUE); gtk_text_view_set_left_margin(GTK_TEXT_VIEW(view), 3); gtk_text_view_set_right_margin(GTK_TEXT_VIEW(view), 3); gtk_text_view_set_pixels_above_lines(GTK_TEXT_VIEW(view), 1); gtk_text_view_set_pixels_below_lines(GTK_TEXT_VIEW(view), 1); g_signal_connect(gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)), "changed", G_CALLBACK(on_gm_world_input_view_changed), view); } /* Public functions */ GtkWidget * gm_world_input_view_new() { GtkWidget *result; GmColorTable *table = gm_color_table_new(); result = gm_world_input_view_new_with_color_table(table); g_object_unref(table); return result; } GtkWidget * gm_world_input_view_new_with_color_table(GmColorTable *color_table) { GmWorldInputView *view = GM_WORLD_INPUT_VIEW( g_object_new(GM_TYPE_WORLD_INPUT_VIEW, NULL)); gm_world_input_view_set_color_table(view, color_table); return GTK_WIDGET(view); } void gm_world_input_view_set_history(GmWorldInputView *view, GList **history) { view->priv->history = history; view->priv->position = NULL; gm_world_input_view_reset_prefix(view); } GList ** gm_world_input_view_history(GmWorldInputView *view) { return view->priv->history; } void gm_world_input_view_set_color_table(GmWorldInputView *view, GmColorTable *color_table) { // This will register the view as being schemed by color_table gm_register_schemed(GTK_WIDGET(view), color_table, GM_SCHEMED_COLORS | GM_SCHEMED_FONT); if (view->priv->color_table != NULL) { g_object_unref(view->priv->color_table); } if (color_table != NULL) { view->priv->color_table = g_object_ref(color_table); } else { view->priv->color_table = NULL; } } GmColorTable * gm_world_input_view_color_table(GmWorldInputView *view) { return view->priv->color_table; } /* Callbacks */ gboolean idle_scroll(gpointer user_data) { GmWorldInputView *view = GM_WORLD_INPUT_VIEW(user_data); GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)); view->priv->idle_scroll = 0; gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(view), gtk_text_buffer_get_insert(buffer), 0.0, TRUE, 0.5, 1.0); return FALSE; } void on_gm_world_input_view_changed(GtkTextBuffer *buffer, GmWorldInputView *view) { GtkTextIter start, end; GtkWidget *parent = gtk_widget_get_parent(GTK_WIDGET(view)); GtkScrolledWindow *sw; gint lineheight, y; if (view->priv->prefix) { gtk_text_buffer_get_bounds(buffer, &start, &end); if (gtk_text_iter_equal(&start, &end)) { // Reset position to the last item in the history view->priv->position = g_list_last(*view->priv->history); gm_world_input_view_reset_prefix(view); } } if (!GTK_IS_SCROLLED_WINDOW(parent)) { return; } if (!view->priv->is_scrolled && gtk_text_buffer_get_line_count(buffer) > 6) { sw = GTK_SCROLLED_WINDOW(parent); view->priv->is_scrolled = TRUE; gtk_text_buffer_get_start_iter(buffer, &start); gtk_text_view_get_line_yrange(GTK_TEXT_VIEW(view), &start, &y, &lineheight); gtk_widget_set_size_request(parent, -1, lineheight * 6 + gtk_container_get_border_width(GTK_CONTAINER(sw)) + 2); gtk_scrolled_window_set_policy(sw, GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); view->priv->idle_scroll = g_idle_add(idle_scroll, view); } else if (view->priv->is_scrolled && gtk_text_buffer_get_line_count(buffer) <= 6) { sw = GTK_SCROLLED_WINDOW(parent); view->priv->is_scrolled = FALSE; gtk_scrolled_window_set_policy(sw, GTK_POLICY_NEVER, GTK_POLICY_NEVER); gtk_widget_set_size_request(parent, -1, -1); } } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-input-view.h�������������������������������������������������0000644�0001750�0001750�00000003727�10410766740�021273� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_INPUT_VIEW_H__ #define __GM_WORLD_INPUT_VIEW_H__ #include <gtk/gtk.h> #include "gm-color-table.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_WORLD_INPUT_VIEW (gm_world_input_view_get_type()) #define GM_WORLD_INPUT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_WORLD_INPUT_VIEW, GmWorldInputView)) #define GM_WORLD_INPUT_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_WORLD_INPUT_VIEW, GmWorldInputView const)) #define GM_WORLD_INPUT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_WORLD_INPUT_VIEW, GmWorldInputViewClass)) #define GM_IS_WORLD_INPUT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_WORLD_INPUT_VIEW)) #define GM_IS_WORLD_INPUT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_WORLD_INPUT_VIEW)) #define GM_WORLD_INPUT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_WORLD_INPUT_VIEW, GmWorldInputViewClass)) /* Private structure type */ typedef struct _GmWorldInputViewPrivate GmWorldInputViewPrivate; /* * Main object structure */ typedef struct _GmWorldInputView GmWorldInputView; struct _GmWorldInputView { GtkTextView textview; /*< private > */ GmWorldInputViewPrivate *priv; }; /* * Class definition */ typedef struct _GmWorldInputViewClass GmWorldInputViewClass; struct _GmWorldInputViewClass { GtkTextViewClass parent_class; /* Signals */ void (* text_activate) (GmWorldInputView *view, const gchar *text); }; GType gm_world_input_view_get_type(void) G_GNUC_CONST; GtkWidget *gm_world_input_view_new(); GtkWidget *gm_world_input_view_new_with_color_table(GmColorTable *table); void gm_world_input_view_set_color_table(GmWorldInputView *view, GmColorTable *color_table); GmColorTable *gm_world_input_view_color_table(GmWorldInputView *view); void gm_world_input_view_set_history(GmWorldInputView *view, GList **history); GList **gm_world_input_view_history(GmWorldInputView *view); G_END_DECLS #endif /* __GM_WORLD_INPUT_VIEW_H__ */ �����������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-tab.c��������������������������������������������������������0000644�0001750�0001750�00000012520�10452166106�017710� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <gtk/gtk.h> #include "gm-world.h" #include "gm-world-tab.h" #include "gm-support.h" #include "gm-pixbuf.h" #include "gm-debug.h" #define GM_WORLD_TAB_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_WORLD_TAB, GmWorldTabPrivate)) void on_gm_world_tab_button_clicked(GtkButton *button, GmWorldTab *tab); void on_gm_world_tab_world_activity_changed(GmWorld *world, GParamSpec *pspec, GmWorldTab *tab); void on_gm_world_tab_world_name_changed(GmWorld *world, GParamSpec *pspec, GmWorldTab *tab); struct _GmWorldTabPrivate { GmWorld *world; GtkImage *image; GtkLabel *label; GtkButton *button; guint source_id; }; // Signals enum { CLOSE, NUM_SIGNALS }; static guint gm_world_tab_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmWorldTab, gm_world_tab, GTK_TYPE_HBOX) static void gm_world_tab_stop_recolor(GmWorldTab *tab) { if (tab->priv->source_id != 0) { g_source_remove(tab->priv->source_id); tab->priv->source_id = 0; } } static void gm_world_tab_finalize(GObject *object) { GmWorldTab *obj = GM_WORLD_TAB(object); gm_world_tab_stop_recolor(obj); if (obj->priv->world) { g_signal_handlers_disconnect_by_func(obj->priv->world, G_CALLBACK(on_gm_world_tab_world_activity_changed), obj); g_signal_handlers_disconnect_by_func(obj->priv->world, G_CALLBACK(on_gm_world_tab_world_name_changed), obj); g_object_unref(obj->priv->world); } G_OBJECT_CLASS(gm_world_tab_parent_class)->finalize(object); } static void gm_world_tab_class_init(GmWorldTabClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_world_tab_finalize; gm_world_tab_signals[CLOSE] = g_signal_new("close", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldTabClass, close), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_type_class_add_private(object_class, sizeof(GmWorldTabPrivate)); } static void gm_world_tab_create_interface(GmWorldTab *obj) { GtkWidget *image, *label, *button, *image_button; GtkSettings *settings; gint w, h; GtkRcStyle *rcstyle; image = gtk_image_new(); label = gtk_label_new(""); button = gtk_button_new(); image_button = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); settings = gtk_widget_get_settings(GTK_WIDGET(obj)); gtk_icon_size_lookup_for_settings(settings, GTK_ICON_SIZE_MENU, &w, &h); gtk_widget_set_size_request(button, w + 2, h + 2); gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_button_set_focus_on_click(GTK_BUTTON(button), FALSE); rcstyle = gtk_rc_style_new(); rcstyle->xthickness = rcstyle->ythickness = 0; gtk_widget_modify_style(button, rcstyle); gtk_rc_style_unref(rcstyle); gtk_container_add(GTK_CONTAINER(button), image_button); gtk_box_pack_start(GTK_BOX(obj), image, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(obj), label, FALSE, FALSE, 0); gtk_box_pack_end(GTK_BOX(obj), button, FALSE, FALSE, 0); gtk_box_set_spacing(GTK_BOX(obj), 3); obj->priv->image = GTK_IMAGE(image); obj->priv->label = GTK_LABEL(label); obj->priv->button = GTK_BUTTON(button); } static void gm_world_tab_init(GmWorldTab *obj) { obj->priv = GM_WORLD_TAB_GET_PRIVATE(obj); obj->priv->source_id = 0; obj->priv->world = NULL; gm_world_tab_create_interface(obj); g_signal_connect(obj->priv->button, "clicked", G_CALLBACK(on_gm_world_tab_button_clicked), obj); gtk_widget_show_all(GTK_WIDGET(obj)); gtk_widget_hide(GTK_WIDGET(obj)); } gboolean gm_world_tab_update_color(GmWorldTab *tab) { gchar *text; gint activity = gm_world_activity(tab->priv->world); text = g_strdup_printf("<span color=\"#0000%02x\">%s [%i]</span>", CALC_COLOR_RANGE(activity), gm_world_name(tab->priv->world), activity); gtk_label_set_markup(tab->priv->label, text); g_free(text); tab->priv->source_id = 0; return FALSE; } static void gm_world_tab_update(GmWorldTab *tab) { gint activity = gm_world_activity(tab->priv->world); gchar *text; gm_world_tab_stop_recolor(tab); if (activity) { text = g_strdup_printf("<span color=\"#%02x0000\">%s [%i]</span>", CALC_COLOR_RANGE(activity), gm_world_name(tab->priv->world), activity); gtk_image_set_from_pixbuf(tab->priv->image, gm_pixbuf_get_at_size("world_activity.svg", 16, 16)); tab->priv->source_id = g_idle_add((GSourceFunc) gm_world_tab_update_color, tab); } else { text = g_strdup(gm_world_name(tab->priv->world)); gtk_image_set_from_pixbuf(tab->priv->image, gm_pixbuf_get_at_size("world.svg", 16, 16)); } gtk_label_set_markup(tab->priv->label, text); g_free(text); } // Public GmWorldTab * gm_world_tab_new(GmWorld *world) { GmWorldTab *obj = GM_WORLD_TAB(g_object_new(GM_TYPE_WORLD_TAB, NULL)); obj->priv->world = g_object_ref(world); g_signal_connect(world, "notify::activity", G_CALLBACK(on_gm_world_tab_world_activity_changed), obj); g_signal_connect(world, "notify::name", G_CALLBACK(on_gm_world_tab_world_name_changed), obj); gm_world_tab_update(obj); return obj; } // Callbacks void on_gm_world_tab_button_clicked(GtkButton *button, GmWorldTab *tab) { g_signal_emit(tab, gm_world_tab_signals[CLOSE], 0); } void on_gm_world_tab_world_activity_changed(GmWorld *world, GParamSpec *pspec, GmWorldTab *tab) { gm_world_tab_update(tab); } void on_gm_world_tab_world_name_changed(GmWorld *world, GParamSpec *pspec, GmWorldTab *tab) { gm_world_tab_update(tab); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-world-tab.h��������������������������������������������������������0000644�0001750�0001750�00000002511�10410766740�017720� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_TAB_H__ #define __GM_WORLD_TAB_H__ #include <gtk/gtk.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_WORLD_TAB (gm_world_tab_get_type()) #define GM_WORLD_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_WORLD_TAB, GmWorldTab)) #define GM_WORLD_TAB_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_WORLD_TAB, GmWorldTab const)) #define GM_WORLD_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_WORLD_TAB, GmWorldTabClass)) #define GM_IS_WORLD_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_WORLD_TAB)) #define GM_IS_WORLD_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_WORLD_TAB)) #define GM_WORLD_TAB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_WORLD_TAB, GmWorldTabClass)) /* Private structure type */ typedef struct _GmWorldTabPrivate GmWorldTabPrivate; /* * Main object structure */ typedef struct _GmWorldTab GmWorldTab; struct _GmWorldTab { GtkHBox parent; /*< private > */ GmWorldTabPrivate *priv; }; /* * Class definition */ typedef struct _GmWorldTabClass GmWorldTabClass; struct _GmWorldTabClass { GtkHBoxClass parent_class; // Signals void (* close) (GmWorldTab *obj); }; GType gm_world_tab_get_type(void) G_GNUC_CONST; GmWorldTab *gm_world_tab_new(GmWorld *world); G_END_DECLS #endif /* __GM_WORLD_TAB_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-text-scroller.c����������������������������������������������������0000644�0001750�0001750�00000021603�10413340042�020614� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib-object.h> #include <gtk/gtk.h> #include <string.h> #include <stdlib.h> #include "gm-text-scroller.h" #include "gm-debug.h" #include "gm-support.h" #define GM_TEXT_SCROLLER_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_TEXT_SCROLLER, GmTextScrollerPrivate)) struct _GmTextScrollerPrivate { GtkTextView *text_view; GtkTextBuffer *text_buffer; GtkScrolledWindow *scrolled_window; gint character_height; gboolean end_scrolled; gint idle_handler; GtkAllocation allocation; }; void on_gm_text_scroller_text_view_style_set(GtkTextView *view, GtkStyle *previous_style, GmTextScroller *scroller); void on_gm_text_scroller_text_buffer_changed(GtkTextBuffer *text_buffer, GmTextScroller *scroller); void on_gm_text_scroller_text_view_notify(GtkTextView *text_view, GParamSpec *arg1, GmTextScroller *scroller); void on_gm_text_scroller_text_view_destroy(GtkTextView *text_view, GmTextScroller *scroller); /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_text_scroller_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmTextScroller, gm_text_scroller, G_TYPE_OBJECT) static void gm_text_scroller_finalize(GObject *object) { GmTextScroller *obj = GM_TEXT_SCROLLER(object); if (obj->priv->text_buffer != NULL) { g_signal_handlers_disconnect_by_func(obj->priv->text_buffer, G_CALLBACK(on_gm_text_scroller_text_buffer_changed), obj); g_object_unref(obj->priv->text_buffer); } if (obj->priv->idle_handler) { g_source_remove(obj->priv->idle_handler); } g_signal_handlers_disconnect_by_func(obj->priv->text_view, G_CALLBACK(on_gm_text_scroller_text_view_notify), obj); g_signal_handlers_disconnect_by_func(obj->priv->text_view, G_CALLBACK(on_gm_text_scroller_text_view_style_set), obj); g_signal_handlers_disconnect_by_func(obj->priv->text_view, G_CALLBACK(on_gm_text_scroller_text_view_destroy), obj); G_OBJECT_CLASS(gm_text_scroller_parent_class)->finalize(object); } static void gm_text_scroller_class_init(GmTextScrollerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_text_scroller_finalize; /*gm_text_scroller_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmTextScrollerClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ g_type_class_add_private(object_class, sizeof(GmTextScrollerPrivate)); } static void gm_text_scroller_init(GmTextScroller *obj) { obj->priv = GM_TEXT_SCROLLER_GET_PRIVATE(obj); obj->priv->character_height = 10; obj->priv->end_scrolled = FALSE; } void gm_text_scroller_update_text_buffer(GmTextScroller *scroller) { if (scroller->priv->text_buffer != NULL) { g_signal_handlers_disconnect_by_func(scroller->priv->text_buffer, G_CALLBACK(on_gm_text_scroller_text_buffer_changed), scroller); g_object_unref(scroller->priv->text_buffer); } scroller->priv->text_buffer = gtk_text_view_get_buffer(scroller->priv->text_view); if (scroller->priv->text_buffer != NULL) { g_object_ref(scroller->priv->text_buffer); g_signal_connect(scroller->priv->text_buffer, "changed", G_CALLBACK(on_gm_text_scroller_text_buffer_changed), scroller); } } void gm_text_scroller_scroll_end(GmTextScroller *scroller) { GtkTextMark *mark; GtkTextIter iter; g_return_if_fail(GTK_IS_TEXT_BUFFER(scroller->priv->text_buffer)); mark = gtk_text_buffer_get_mark(scroller->priv->text_buffer, "end-of-buffer"); if (mark == NULL) { gtk_text_buffer_get_end_iter(scroller->priv->text_buffer, &iter); mark = gtk_text_buffer_create_mark(scroller->priv->text_buffer, "end-of-buffer", &iter, FALSE); } gtk_text_view_scroll_to_mark(scroller->priv->text_view, mark, 0.0, TRUE, 1.0, 1.0); } void gm_text_scroller_scroll_begin(GmTextScroller *scroller) { GtkTextMark *mark; GtkTextIter iter; g_return_if_fail(GTK_IS_TEXT_BUFFER(scroller->priv->text_buffer)); mark = gtk_text_buffer_get_mark(scroller->priv->text_buffer, "begin-of-buffer"); if (mark == NULL) { gtk_text_buffer_get_start_iter(scroller->priv->text_buffer, &iter); mark = gtk_text_buffer_create_mark(scroller->priv->text_buffer, "begin-of-buffer", &iter, TRUE); } gtk_text_view_scroll_to_mark(scroller->priv->text_view, mark, 0.0, TRUE, 0.0, 0.0); } gboolean gm_text_scroller_scroll_end_idle(GmTextScroller *scroller) { scroller->priv->idle_handler = 0; gm_text_scroller_scroll_end(scroller); scroller->priv->end_scrolled = FALSE; return FALSE; } gboolean gm_text_scroller_is_end_scrolled_margin(GmTextScroller *scroller, gint margin) { GtkAdjustment *ad = gtk_scrolled_window_get_vadjustment( scroller->priv->scrolled_window); return scroller->priv->end_scrolled || ((ad->page_size + ad->value) >= ad->upper - (double)(scroller->priv->character_height) - margin); } gboolean gm_text_scroller_is_end_scrolled(GmTextScroller *scroller) { return gm_text_scroller_is_end_scrolled_margin(scroller, 0); } void gm_text_scroller_prepare(GmTextScroller *scroller) { scroller->priv->end_scrolled = gm_text_scroller_is_end_scrolled(scroller); if (scroller->priv->idle_handler == 0 && scroller->priv->end_scrolled) { gm_text_scroller_scroll_end(scroller); // Ensure the end scroll for large texts scroller->priv->idle_handler = g_idle_add((GSourceFunc) gm_text_scroller_scroll_end_idle, scroller); } } void gm_text_scroller_update_character_height(GmTextScroller *scroller) { GtkRcStyle *style = gtk_widget_get_modifier_style(GTK_WIDGET( scroller->priv->text_view)); PangoContext *pc = gtk_widget_create_pango_context(GTK_WIDGET( scroller->priv->text_view)); PangoLayout *pl; gint cwidth, cheight; if (style->font_desc != NULL) { pango_context_set_font_description(pc, style->font_desc); pl = pango_layout_new(pc); pango_layout_set_text(pl, "G", 1); pango_layout_get_pixel_size(pl, &(cwidth), &(cheight)); if (scroller->priv->character_height != cheight) { scroller->priv->character_height = cheight; } g_object_unref(pl); } g_object_unref(pc); } void on_gm_text_scroller_text_view_size_allocate(GtkWidget *widget, GtkAllocation *allocation, GmTextScroller *scroller) { if (gm_text_scroller_is_end_scrolled_margin(scroller, abs(allocation->height - scroller->priv->allocation.height))) { if (scroller->priv->idle_handler == 0) { gm_text_scroller_scroll_end(scroller); // Ensure the end scroll for large texts scroller->priv->idle_handler = g_idle_add((GSourceFunc) gm_text_scroller_scroll_end_idle, scroller); } } scroller->priv->allocation = *allocation; } GmTextScroller * gm_text_scroller_new(GtkTextView *text_view) { GmTextScroller *obj; GtkWidget *parent = gtk_widget_get_parent(GTK_WIDGET(text_view)); if (parent == NULL || !GTK_IS_SCROLLED_WINDOW(parent)) { return NULL; } obj = GM_TEXT_SCROLLER(g_object_new(GM_TYPE_TEXT_SCROLLER, NULL)); obj->priv->text_view = text_view; obj->priv->scrolled_window = GTK_SCROLLED_WINDOW(parent); obj->priv->allocation = (GTK_WIDGET(text_view)->allocation); gm_text_scroller_update_text_buffer(obj); gm_text_scroller_update_character_height(obj); g_signal_connect(text_view, "notify::buffer", G_CALLBACK(on_gm_text_scroller_text_view_notify), obj); g_signal_connect(text_view, "style-set", G_CALLBACK(on_gm_text_scroller_text_view_style_set), obj); g_signal_connect(text_view, "destroy", G_CALLBACK(on_gm_text_scroller_text_view_destroy), obj); g_signal_connect(text_view, "size-allocate", G_CALLBACK(on_gm_text_scroller_text_view_size_allocate), obj); obj->priv->idle_handler = g_idle_add((GSourceFunc) gm_text_scroller_scroll_end_idle, obj); return obj; } void gm_text_scroller_scroll_page(GmTextScroller *scroller, gint direction) { GtkScrolledWindow *srl = scroller->priv->scrolled_window; GtkAdjustment *adj = gtk_scrolled_window_get_vadjustment(srl); double value = adj->value + (adj->page_size * direction); if (value > adj->upper - adj->page_size) { gtk_adjustment_set_value(adj, adj->upper - adj->page_size); } else if (value < adj->lower) { gtk_adjustment_set_value(adj, adj->lower); } else { gtk_adjustment_set_value(adj, value); } } // Callbacks void on_gm_text_scroller_text_view_notify(GtkTextView *text_view, GParamSpec *arg1, GmTextScroller *scroller) { // Buffer changed gm_text_scroller_update_text_buffer(scroller); } void on_gm_text_scroller_text_view_style_set(GtkTextView *view, GtkStyle *previous_style, GmTextScroller *scroller) { g_return_if_fail(GM_IS_TEXT_SCROLLER(scroller)); gm_text_scroller_update_character_height(scroller); } void on_gm_text_scroller_text_buffer_changed(GtkTextBuffer *text_buffer, GmTextScroller *scroller) { g_return_if_fail(GM_IS_TEXT_SCROLLER(scroller)); gm_text_scroller_prepare(scroller); } void on_gm_text_scroller_text_view_destroy(GtkTextView *text_view, GmTextScroller *scroller) { // Remove ourselfs when the text view dies g_object_unref(scroller); } �����������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-text-scroller.h����������������������������������������������������0000644�0001750�0001750�00000003247�10413223357�020636� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_TEXT_SCROLLER_H__ #define __GM_TEXT_SCROLLER_H__ #include <glib-object.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_TEXT_SCROLLER (gm_text_scroller_get_type()) #define GM_TEXT_SCROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_TEXT_SCROLLER, GmTextScroller)) #define GM_TEXT_SCROLLER_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_TEXT_SCROLLER, GmTextScroller const)) #define GM_TEXT_SCROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_TEXT_SCROLLER, GmTextScrollerClass)) #define GM_IS_TEXT_SCROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_TEXT_SCROLLER)) #define GM_IS_TEXT_SCROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_TEXT_SCROLLER)) #define GM_TEXT_SCROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_TEXT_SCROLLER, GmTextScrollerClass)) /* Private structure type */ typedef struct _GmTextScrollerPrivate GmTextScrollerPrivate; /* * Main object structure */ typedef struct _GmTextScroller GmTextScroller; struct _GmTextScroller { GObject parent; /*< private > */ GmTextScrollerPrivate *priv; }; /* * Class definition */ typedef struct _GmTextScrollerClass GmTextScrollerClass; struct _GmTextScrollerClass { GObjectClass parent_class; /* Signals void (* proto) (GmTextScroller *obj); */ }; GType gm_text_scroller_get_type(void) G_GNUC_CONST; GmTextScroller *gm_text_scroller_new(GtkTextView *text_view); void gm_text_scroller_scroll_end(GmTextScroller *scroller); void gm_text_scroller_scroll_begin(GmTextScroller *scroller); void gm_text_scroller_scroll_page(GmTextScroller *scroller, gint direction); G_END_DECLS #endif /* __GM_TEXT_SCROLLER_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-editor-view.c������������������������������������������������������0000644�0001750�0001750�00000046247�10452311254�020264� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdlib.h> #include <string.h> #include <gtksourceview/gtksourceview.h> #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagesmanager.h> #include <gtksourceview/gtksourcetag.h> #include "gm-editor-view.h" #include "gm-pixbuf.h" #include "gm-support.h" #include "gm-debug.h" #include "gm-string.h" #include "gm-options.h" #include "gm-color-table.h" #include "gm-app.h" #include "gm-source-style-scheme.h" #include "gm-searchable.h" #ifdef HAVE_PARSER #include "parser/gm-parser.h" #endif #define GM_EDITOR_VIEW_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_EDITOR_VIEW, GmEditorViewPrivate)) struct _GmEditorViewPrivate { GmWorld *world; GmEditor *editor; #ifdef HAVE_PARSER GtkExpander *expander; GtkWidget *message_area; GtkWidget *error_area; GtkWidget *error_label; GtkWidget *warning_label; GtkWidget *error_frame; GtkWidget *warning_frame; gboolean set_style; guint timeout_handler; guint hide_error_handler; gboolean expanding; gboolean was_expanded; #endif GtkSourceView *source_view; }; static GtkSourceLanguage *language = NULL; /* Signals */ enum { MODIFIED_CHANGED, NUM_SIGNALS }; static guint gm_editor_view_signals[NUM_SIGNALS] = {0}; static void gm_editor_view_searchable_iface_init( GmSearchableInterface *iface); static GtkTextView *gm_editor_view_searchable_get_text_view(GmSearchable *sea); void on_gm_editor_view_save_clicked(GtkToolButton *button, GmEditorView *view); void on_gm_editor_view_saveclose_clicked(GtkToolButton *button, GmEditorView *view); void on_gm_editor_view_close_clicked(GtkToolButton *button, GmEditorView *view); void on_gm_editor_view_execute_clicked(GtkToolButton *button, GmEditorView *view); void on_gm_editor_view_editor_saved(GmEditor *editor, GmEditorView *view); void on_gm_editor_view_font_changed(GmColorTable *color_table, gchar const *desc, GmEditorView *view); void on_gm_editor_view_modified_changed(GtkTextBuffer *buffer, GmEditorView *view); #ifdef HAVE_PARSER void on_gm_editor_view_changed(GtkTextBuffer *buffer, GmEditorView *view); void on_gm_editor_view_expander(GObject *object, GParamSpec *param_spec, GmEditorView *view); #endif G_DEFINE_TYPE_EXTENDED(GmEditorView, gm_editor_view, GTK_TYPE_VBOX, 0, \ G_IMPLEMENT_INTERFACE(GM_TYPE_SEARCHABLE, \ gm_editor_view_searchable_iface_init)) static void gm_editor_view_searchable_iface_init(GmSearchableInterface *iface) { iface->get_text_view = gm_editor_view_searchable_get_text_view; } static GtkTextView * gm_editor_view_searchable_get_text_view(GmSearchable *sea) { GmEditorView *view = (GmEditorView *)(sea); g_return_val_if_fail(GM_IS_EDITOR_VIEW(sea), NULL); return GTK_TEXT_VIEW(view->priv->source_view); } static void gm_editor_view_finalize(GObject *object) { #ifdef HAVE_PARSER GmEditorView *obj = GM_EDITOR_VIEW(object); if (obj->priv->timeout_handler) { g_source_remove(obj->priv->timeout_handler); } if (obj->priv->hide_error_handler) { g_source_remove(obj->priv->hide_error_handler); } #endif G_OBJECT_CLASS(gm_editor_view_parent_class)->finalize(object); } void gm_editor_view_init_language() { GtkSourceLanguagesManager *manager; if (language == NULL) { manager = gtk_source_languages_manager_new(); language = g_object_ref(gtk_source_languages_manager_get_language_from_mime_type( manager, "text/x-moo")); gtk_source_language_set_style_scheme(language, gm_source_style_scheme_get_default()); g_object_unref(manager); } } static void gm_editor_view_class_init(GmEditorViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_editor_view_finalize; gm_editor_view_signals[MODIFIED_CHANGED] = g_signal_new("modified_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmEditorViewClass, modified_changed), NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); gm_editor_view_init_language(); g_type_class_add_private(object_class, sizeof(GmEditorViewPrivate)); } GtkSourceView * gm_editor_view_create_source_view(GmEditorView *view) { GtkTextBuffer *buffer; GtkWidget *source_view; GtkTextIter iter; gchar *line; GList *lines; PangoFontDescription *f; GtkSourceTagStyle *st; source_view = gtk_source_view_new(); buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(source_view)); if (language) { gtk_source_buffer_set_language(GTK_SOURCE_BUFFER(buffer), language); } gtk_source_buffer_begin_not_undoable_action(GTK_SOURCE_BUFFER(buffer)); gtk_text_buffer_get_end_iter(buffer, &iter); gm_register_schemed(source_view, gm_app_color_table(gm_app_instance()), GM_SCHEMED_COLORS | GM_SCHEMED_FONT); for (lines = gm_editor_lines(view->priv->editor); lines; lines = lines->next) { line = (gchar *) (lines->data); gtk_text_buffer_insert(buffer, &iter, line, -1); if (lines->next) { gtk_text_buffer_insert(buffer, &iter, "\r\n", 2); } } gtk_source_buffer_end_not_undoable_action(GTK_SOURCE_BUFFER(buffer)); gtk_text_buffer_set_modified(buffer, FALSE); st = gtk_source_tag_style_new(); st->mask = GTK_SOURCE_TAG_STYLE_USE_BACKGROUND; gdk_color_parse("#0000FF", &(st->background)); gtk_source_buffer_set_bracket_match_style(GTK_SOURCE_BUFFER(buffer), st); f = pango_font_description_from_string(gm_color_table_font_description( gm_app_color_table(gm_app_instance()))); if (f) { gtk_widget_modify_font(source_view, f); pango_font_description_free(f); } gtk_source_view_set_insert_spaces_instead_of_tabs(GTK_SOURCE_VIEW( source_view), TRUE); gtk_source_view_set_auto_indent(GTK_SOURCE_VIEW(source_view), TRUE); gtk_source_view_set_show_line_numbers(GTK_SOURCE_VIEW(source_view), TRUE); gtk_source_view_set_tabs_width(GTK_SOURCE_VIEW(source_view), 2); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(source_view), GTK_WRAP_WORD_CHAR); //gtk_text_view_set_left_margin(GTK_TEXT_VIEW(source_view), 6); //gtk_text_view_set_right_margin(GTK_TEXT_VIEW(source_view), 6); if (gm_editor_is_code(view->priv->editor)) { gtk_source_buffer_set_highlight(GTK_SOURCE_BUFFER(buffer), TRUE); #ifdef HAVE_PARSER g_signal_connect(buffer, "changed", G_CALLBACK(on_gm_editor_view_changed), view); #endif } else { gtk_source_buffer_set_highlight(GTK_SOURCE_BUFFER(buffer), FALSE); gtk_source_buffer_set_check_brackets(GTK_SOURCE_BUFFER(buffer), FALSE); } #ifdef HAVE_PARSER gtk_text_buffer_create_tag(buffer, "gm_error", "underline", PANGO_UNDERLINE_ERROR, NULL); #endif g_signal_connect(buffer, "modified_changed", G_CALLBACK(on_gm_editor_view_modified_changed), view); gtk_widget_show(source_view); return GTK_SOURCE_VIEW(source_view); } #ifdef HAVE_PARSER static gboolean gm_editor_view_paint_message_area(GtkWidget *widget, GdkEventExpose *event, GmEditorView *view) { gtk_paint_flat_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, widget, "tooltip", widget->allocation.x + 1, widget->allocation.y + 1, widget->allocation.width - 2, widget->allocation.height - 2); return FALSE; } static void gm_editor_view_message_area_style_set(GtkWidget *widget, GtkStyle *prev, GmEditorView *view) { GtkTooltips *tooltips; GtkStyle *style; if (view->priv->set_style) { return; } widget = view->priv->message_area; tooltips = gtk_tooltips_new(); g_object_ref(G_OBJECT(tooltips)); gtk_object_sink(GTK_OBJECT(tooltips)); gtk_tooltips_force_window(tooltips); gtk_widget_ensure_style(tooltips->tip_window); style = gtk_widget_get_style(tooltips->tip_window); style->bg[GTK_STATE_PRELIGHT] = style->bg[GTK_STATE_NORMAL]; view->priv->set_style = TRUE; gtk_widget_set_style(widget, style); gtk_widget_set_style(GTK_WIDGET(view->priv->expander), style); view->priv->set_style = FALSE; g_object_unref(tooltips); } static void gm_editor_view_create_message_area(GmEditorView *view) { GtkWidget *message_area = gtk_vbox_new(FALSE, 0); GtkWidget *align; GtkWidget *lbl; GtkWidget *expander; gtk_container_set_border_width(GTK_CONTAINER(message_area), 10); g_signal_connect(message_area, "expose_event", G_CALLBACK(gm_editor_view_paint_message_area), view); g_signal_connect(message_area, "style-set", G_CALLBACK(gm_editor_view_message_area_style_set), view); view->priv->message_area = message_area; align = gtk_alignment_new(0.0, 1.0, 0.0, 0.0); expander = gtk_expander_new(NULL); g_signal_connect(expander, "notify::expanded", G_CALLBACK(on_gm_editor_view_expander), view); gtk_container_add(GTK_CONTAINER(align), expander); gtk_box_pack_start(GTK_BOX(message_area), align, FALSE, FALSE, 0); view->priv->expander = GTK_EXPANDER(expander); g_signal_connect(expander, "style-set", G_CALLBACK(gm_editor_view_message_area_style_set), view); gtk_widget_show(expander); gtk_widget_show(align); view->priv->error_area = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(message_area), view->priv->error_area, TRUE, TRUE, 0); lbl = gtk_label_new(NULL); gtk_label_set_markup(GTK_LABEL(lbl), _("<b>Errors</b>")); view->priv->error_frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(view->priv->error_frame), GTK_SHADOW_NONE); gtk_frame_set_label_widget(GTK_FRAME(view->priv->error_frame), lbl); view->priv->error_label = gtk_label_new(NULL); gtk_misc_set_alignment(GTK_MISC(view->priv->error_label), 0.0, 0.0); align = gtk_alignment_new(0.0, 0.0, 0.0, 0.0); gtk_alignment_set_padding(GTK_ALIGNMENT(align), 0, 0, 12, 0); gtk_container_add(GTK_CONTAINER(align), view->priv->error_label); gtk_container_add(GTK_CONTAINER(view->priv->error_frame), align); gtk_box_pack_start(GTK_BOX(view->priv->error_area), view->priv->error_frame, TRUE, TRUE, 0); lbl = gtk_label_new(NULL); gtk_label_set_markup(GTK_LABEL(lbl), _("<b>Warnings</b>")); view->priv->warning_frame = gtk_frame_new(NULL); gtk_frame_set_shadow_type(GTK_FRAME(view->priv->warning_frame), GTK_SHADOW_NONE); gtk_frame_set_label_widget(GTK_FRAME(view->priv->warning_frame), lbl); view->priv->warning_label = gtk_label_new(NULL); gtk_misc_set_alignment(GTK_MISC(view->priv->warning_label), 0.0, 0.0); align = gtk_alignment_new(0.0, 0.0, 0.0, 0.0); gtk_alignment_set_padding(GTK_ALIGNMENT(align), 0, 0, 12, 0); gtk_container_add(GTK_CONTAINER(align), view->priv->warning_label); gtk_container_add(GTK_CONTAINER(view->priv->warning_frame), align); gtk_box_pack_start(GTK_BOX(view->priv->error_area), view->priv->warning_frame, TRUE, TRUE, 0); } #endif static void gm_editor_view_init(GmEditorView *obj) { obj->priv = GM_EDITOR_VIEW_GET_PRIVATE(obj); gtk_box_set_spacing(GTK_BOX(obj), 0); gtk_box_set_homogeneous(GTK_BOX(obj), FALSE); #ifdef HAVE_PARSER gm_editor_view_create_message_area(obj); gtk_box_pack_start(GTK_BOX(obj), obj->priv->message_area, FALSE, FALSE, 0); #endif } GmEditorView * gm_editor_view_new(GmWorld *world, GmEditor *editor) { GmEditorView *obj = GM_EDITOR_VIEW(g_object_new(GM_TYPE_EDITOR_VIEW, NULL)); GtkWidget *srl; obj->priv->editor = editor; obj->priv->world = world; obj->priv->source_view = gm_editor_view_create_source_view(obj); srl = gtk_scrolled_window_new(NULL, NULL); gtk_widget_show(srl); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(srl), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(srl), GTK_WIDGET(obj->priv->source_view)); gtk_box_pack_end(GTK_BOX(obj), srl, TRUE, TRUE, 0); g_signal_connect(gm_app_color_table(gm_app_instance()), "font_changed", G_CALLBACK(on_gm_editor_view_font_changed), obj); g_signal_connect(editor, "saved", G_CALLBACK(on_gm_editor_view_editor_saved), obj); return obj; } GmEditor * gm_editor_view_editor(GmEditorView *view) { return view->priv->editor; } GtkTextView * gm_editor_view_text_view(GmEditorView *view) { return GTK_TEXT_VIEW(view->priv->source_view); } void gm_editor_view_save(GmEditorView *view) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW( view->priv->source_view)); GtkTextIter start, end; gchar *text; gtk_text_buffer_get_bounds(buffer, &start, &end); text = gtk_text_buffer_get_text(buffer, &start, &end, FALSE); gm_editor_set_lines_from_string(view->priv->editor, text); g_free(text); gm_editor_save(view->priv->editor); } #ifdef HAVE_PARSER gboolean gm_editor_view_no_errors(GmEditorView *view) { gtk_widget_hide(view->priv->message_area); return FALSE; } void gm_editor_view_parse_error(GmEditorView *view, GmParserError *error, GString **str) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW( view->priv->source_view)); GtkTextIter start, end; gchar *msg; if (error->ch == 0) { gtk_text_buffer_get_iter_at_line(buffer, &start, error->line - 1); msg = g_markup_printf_escaped(_("<u>Line %d</u>: %s\n"), error->line, error->message); } else { // Underline line gtk_text_buffer_get_iter_at_line(buffer, &start, error->line); msg = g_markup_printf_escaped(_("<u>Line %d:%d</u>: %s\n"), error->line + 1, error->ch + 1, error->message); } if (!*str) { *str = g_string_new(msg); } else { *str = g_string_append(*str, msg); } g_free(msg); end = start; if (error->ch != 0) { gtk_text_iter_forward_chars(&start, error->ch - 1); } gtk_text_iter_forward_to_line_end(&end); gtk_text_buffer_apply_tag_by_name(buffer, "gm_error", &start, &end); } enum { SYNTAX_OK = 0, SYNTAX_ERRORS = 1 << 0, SYNTAX_WARNINGS = 1 << 1 }; int gm_editor_view_parse(GmEditorView *view) { gchar *text; GtkTextIter start, end; GList *lines; GmParserResult *result; GList *errors; GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW( view->priv->source_view)); gchar *msg; GString *str = NULL, *lbl = NULL; int ret = SYNTAX_OK; if (view->priv->hide_error_handler) { g_source_remove(view->priv->hide_error_handler); } gtk_text_buffer_get_bounds(buffer, &start, &end); text = gtk_text_buffer_get_text(buffer, &start, &end, TRUE); lines = gm_string_split(text); result = gm_parser_parse(lines); gtk_text_buffer_remove_tag_by_name(buffer, "gm_error", &start, &end); if (!result->isOk) { if (result->errors) { for (errors = result->errors; errors; errors = errors->next) { gm_editor_view_parse_error(view, (GmParserError *)(errors->data), &str); } str = g_string_truncate(str, str->len - 1); gtk_label_set_markup(GTK_LABEL(view->priv->error_label), str->str); gtk_widget_show_all(view->priv->error_frame); g_string_free(str, TRUE); str = NULL; if (g_list_length(result->errors) == 1) { msg = g_strdup(_("There is 1 error")); } else { msg = g_strdup_printf(_("There are %d errors"), g_list_length(result->errors)); } lbl = g_string_new(msg); g_free(msg); ret |= SYNTAX_ERRORS; } else { gtk_widget_hide(view->priv->error_frame); } if (result->warnings) { for (errors = result->warnings; errors; errors = errors->next) { gm_editor_view_parse_error(view, (GmParserError *)(errors->data), &str); } str = g_string_truncate(str, str->len - 1); gtk_label_set_markup(GTK_LABEL(view->priv->warning_label), str->str); gtk_widget_show_all(view->priv->warning_frame); g_string_free(str, TRUE); if (g_list_length(result->warnings) == 1) { if (!lbl) { msg = g_strdup(_("There is 1 warning")); } else { msg = g_strdup_printf(_(" and 1 warning")); } } else { if (!lbl) { msg = g_strdup_printf(_("There are %d warnings"), g_list_length(result->warnings)); } else { msg = g_strdup_printf(_(" and %d warnings"), g_list_length(result->warnings)); } } if (!lbl) { lbl = g_string_new(msg); } else { lbl = g_string_append(lbl, msg); } g_free(msg); ret |= SYNTAX_WARNINGS; } else { gtk_widget_hide(view->priv->warning_frame); } gtk_widget_set_sensitive(GTK_WIDGET(view->priv->expander), TRUE); gtk_expander_set_label(view->priv->expander, lbl->str); g_string_free(lbl, TRUE); gtk_widget_show(view->priv->message_area); if (view->priv->was_expanded && !gtk_expander_get_expanded(view->priv->expander)) { view->priv->expanding = TRUE; gtk_expander_set_expanded(view->priv->expander, TRUE); view->priv->expanding = FALSE; } gtk_widget_queue_draw(view->priv->message_area); } else { gtk_expander_set_label(view->priv->expander, _("There are no errors")); view->priv->expanding = TRUE; gtk_expander_set_expanded(view->priv->expander, FALSE); view->priv->expanding = FALSE; gtk_widget_set_sensitive(GTK_WIDGET(view->priv->expander), FALSE); gtk_widget_hide(view->priv->error_area); view->priv->hide_error_handler = g_timeout_add(3000, (GSourceFunc)gm_editor_view_no_errors, view); gtk_widget_queue_draw(view->priv->message_area); } gm_parser_result_free(result); gm_g_list_free_simple(lines); g_free(text); return ret; } static gboolean idle_grab_focus(gpointer user_data) { g_message("Grabbing focus"); gtk_widget_grab_focus(GTK_WIDGET(user_data)); return FALSE; } void gm_editor_view_check_syntax(GmEditorView *view) { int ret = gm_editor_view_parse(view); if (ret == SYNTAX_OK) { gtk_expander_set_expanded(view->priv->expander, FALSE); gtk_widget_hide(view->priv->message_area); gm_info_dialog(_("No errors are found"), GTK_WINDOW(gm_find_parent(GTK_WIDGET(view), GTK_TYPE_WINDOW))); g_timeout_add(100, idle_grab_focus, view->priv->source_view); } else { gtk_expander_set_expanded(view->priv->expander, TRUE); gtk_widget_show(view->priv->message_area); gtk_widget_show(view->priv->error_area); gtk_widget_queue_draw(view->priv->message_area); } } #endif /* Callbacks */ void on_gm_editor_view_font_changed(GmColorTable *color_table, gchar const *desc, GmEditorView *view) { PangoFontDescription *f; f = pango_font_description_from_string(gm_color_table_font_description( gm_app_color_table(gm_app_instance()))); if (f) { gtk_widget_modify_font(GTK_WIDGET(view->priv->source_view), f); pango_font_description_free(f); } } void on_gm_editor_view_editor_saved(GmEditor *editor, GmEditorView *view) { gtk_text_buffer_set_modified(gtk_text_view_get_buffer(GTK_TEXT_VIEW( view->priv->source_view)), FALSE); } void on_gm_editor_view_modified_changed(GtkTextBuffer *buffer, GmEditorView *view) { g_signal_emit(view, gm_editor_view_signals[MODIFIED_CHANGED], 0, gtk_text_buffer_get_modified(buffer)); } #ifdef HAVE_PARSER gboolean gm_editor_view_timeout(GmEditorView *view) { gm_editor_view_parse(view); view->priv->timeout_handler = 0; return FALSE; } void on_gm_editor_view_changed(GtkTextBuffer *buffer, GmEditorView *view) { if (view->priv->timeout_handler != 0) { g_source_remove(view->priv->timeout_handler); } if (gm_options_get_int(gm_app_options(gm_app_instance()), "auto_check_syntax")) { view->priv->timeout_handler = g_timeout_add(1000, (GSourceFunc)gm_editor_view_timeout, view); } } void on_gm_editor_view_expander(GObject *object, GParamSpec *param_spec, GmEditorView *view) { if (gtk_expander_get_expanded(view->priv->expander)) { if (!view->priv->expanding) { view->priv->was_expanded = TRUE; } gtk_widget_show(view->priv->error_area); } else { if (!view->priv->expanding) { view->priv->was_expanded = FALSE; } gtk_widget_hide(view->priv->error_area); } gtk_widget_queue_draw(view->priv->message_area); } #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-editor-view.h������������������������������������������������������0000644�0001750�0001750�00000003273�10413224172�020260� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_EDITOR_VIEW_H__ #define __GM_EDITOR_VIEW_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-editor.h" #include "gm-world.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_EDITOR_VIEW (gm_editor_view_get_type()) #define GM_EDITOR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_EDITOR_VIEW, GmEditorView)) #define GM_EDITOR_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_EDITOR_VIEW, GmEditorView const)) #define GM_EDITOR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_EDITOR_VIEW, GmEditorViewClass)) #define GM_IS_EDITOR_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_EDITOR_VIEW)) #define GM_IS_EDITOR_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_EDITOR_VIEW)) #define GM_EDITOR_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_EDITOR_VIEW, GmEditorViewClass)) /* Private structure type */ typedef struct _GmEditorViewPrivate GmEditorViewPrivate; /* * Main object structure */ typedef struct _GmEditorView GmEditorView; struct _GmEditorView { GtkVBox parent; /*< private > */ GmEditorViewPrivate *priv; }; /* * Class definition */ typedef struct _GmEditorViewClass GmEditorViewClass; struct _GmEditorViewClass { GtkVBoxClass parent_class; /* Signals */ void (* modified_changed) (GmEditorView *obj, gboolean modified); }; GType gm_editor_view_get_type(void) G_GNUC_CONST; GmEditorView *gm_editor_view_new(GmWorld *world, GmEditor *editor); GmEditor *gm_editor_view_editor(GmEditorView *view); void gm_editor_view_save(GmEditorView *view); void gm_editor_view_check_syntax(GmEditorView *view); G_END_DECLS #endif /* __GM_EDITOR_VIEW_H__ */ �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-searchable.c�������������������������������������������������������0000644�0001750�0001750�00000044447�10410766740�020127� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include "gm-searchable.h" #define GTK_TEXT_UNKNOWN_CHAR 0xFFFC GType gm_searchable_get_type() { static GType searchable_type = 0; if (searchable_type == 0) { static const GTypeInfo searchable_info = { sizeof (GmSearchableInterface), NULL, /* base_init */ NULL, /* base_finalize */ NULL, /* class_init */ NULL, /* class_finalize */ NULL, /* class_data */ 0, 0, /* n_preallocs */ NULL /* instance_init */ }; searchable_type = g_type_register_static(G_TYPE_INTERFACE, "GmSearchable", &searchable_info, 0); } return searchable_type; } /* Searching implementations */ static const gchar * pointer_from_offset_skipping_decomp (const gchar *str, gint offset) { gchar *casefold, *normal; const gchar *p, *q; p = str; while (offset > 0) { q = g_utf8_next_char (p); casefold = g_utf8_casefold (p, q - p); normal = g_utf8_normalize (casefold, -1, G_NORMALIZE_NFD); offset -= g_utf8_strlen (normal, -1); g_free (casefold); g_free (normal); p = q; } return p; } static const gchar * g_utf8_strcasestr (const gchar *haystack, const gchar *needle) { gsize needle_len; gsize haystack_len; const gchar *ret = NULL; gchar *p; gchar *casefold; gchar *caseless_haystack; gint i; g_return_val_if_fail (haystack != NULL, NULL); g_return_val_if_fail (needle != NULL, NULL); casefold = g_utf8_casefold (haystack, -1); caseless_haystack = g_utf8_normalize (casefold, -1, G_NORMALIZE_NFD); g_free (casefold); needle_len = g_utf8_strlen (needle, -1); haystack_len = g_utf8_strlen (caseless_haystack, -1); if (needle_len == 0) { ret = (gchar *)haystack; goto finally_1; } if (haystack_len < needle_len) { ret = NULL; goto finally_1; } p = (gchar*)caseless_haystack; needle_len = strlen (needle); i = 0; while (*p) { if ((strncmp (p, needle, needle_len) == 0)) { ret = pointer_from_offset_skipping_decomp (haystack, i); goto finally_1; } p = g_utf8_next_char (p); i++; } finally_1: g_free (caseless_haystack); return ret; } static const gchar * g_utf8_strrcasestr (const gchar *haystack, const gchar *needle) { gsize needle_len; gsize haystack_len; const gchar *ret = NULL; gchar *p; gchar *casefold; gchar *caseless_haystack; gint i; g_return_val_if_fail (haystack != NULL, NULL); g_return_val_if_fail (needle != NULL, NULL); casefold = g_utf8_casefold (haystack, -1); caseless_haystack = g_utf8_normalize (casefold, -1, G_NORMALIZE_NFD); g_free (casefold); needle_len = g_utf8_strlen (needle, -1); haystack_len = g_utf8_strlen (caseless_haystack, -1); if (needle_len == 0) { ret = (gchar *)haystack; goto finally_1; } if (haystack_len < needle_len) { ret = NULL; goto finally_1; } i = haystack_len - needle_len; p = g_utf8_offset_to_pointer (caseless_haystack, i); needle_len = strlen (needle); while (p >= caseless_haystack) { if (strncmp (p, needle, needle_len) == 0) { ret = pointer_from_offset_skipping_decomp (haystack, i); goto finally_1; } p = g_utf8_prev_char (p); i--; } finally_1: g_free (caseless_haystack); return ret; } static gboolean g_utf8_caselessnmatch (const char *s1, const char *s2, gssize n1, gssize n2) { gchar *casefold; gchar *normalized_s1; gchar *normalized_s2; gint len_s1; gint len_s2; gboolean ret = FALSE; g_return_val_if_fail (s1 != NULL, FALSE); g_return_val_if_fail (s2 != NULL, FALSE); g_return_val_if_fail (n1 > 0, FALSE); g_return_val_if_fail (n2 > 0, FALSE); casefold = g_utf8_casefold (s1, n1); normalized_s1 = g_utf8_normalize (casefold, -1, G_NORMALIZE_NFD); g_free (casefold); casefold = g_utf8_casefold (s2, n2); normalized_s2 = g_utf8_normalize (casefold, -1, G_NORMALIZE_NFD); g_free (casefold); len_s1 = strlen (normalized_s1); len_s2 = strlen (normalized_s2); if (len_s1 < len_s2) goto finally_2; ret = (strncmp (normalized_s1, normalized_s2, len_s2) == 0); finally_2: g_free (normalized_s1); g_free (normalized_s2); return ret; } static void forward_chars_with_skipping (GtkTextIter *iter, gint count, gboolean skip_decomp) { gint i; g_return_if_fail (count >= 0); i = count; while (i > 0) { gboolean ignored = FALSE; /* minimal workaround to avoid the infinite loop of bug #168247. * It doesn't fix the problemjust the symptom... */ if (gtk_text_iter_is_end (iter)) return; if (gtk_text_iter_get_char (iter) == GTK_TEXT_UNKNOWN_CHAR) ignored = TRUE; if (!ignored && /* _gtk_text_btree_char_is_invisible (iter)*/ FALSE) ignored = TRUE; if (!ignored && skip_decomp) { /* being UTF8 correct sucks; this accounts for extra offsets coming from canonical decompositions of UTF8 characters (e.g. accented characters) which g_utf8_normalize() performs */ gchar *normal; gchar buffer[6]; gint buffer_len; buffer_len = g_unichar_to_utf8 (gtk_text_iter_get_char (iter), buffer); normal = g_utf8_normalize (buffer, buffer_len, G_NORMALIZE_NFD); i -= (g_utf8_strlen (normal, -1) - 1); g_free (normal); } gtk_text_iter_forward_char (iter); if (!ignored) --i; } } static gboolean lines_match (const GtkTextIter *start, const gchar **lines, GtkTextIter *match_start, GtkTextIter *match_end) { GtkTextIter next; gchar *line_text; const gchar *found; gint offset; if (*lines == NULL || **lines == '\0') { if (match_start) *match_start = *start; if (match_end) *match_end = *start; return TRUE; } next = *start; gtk_text_iter_forward_line(&next); /* No more text in buffer, but *lines is nonempty */ if (gtk_text_iter_equal(start, &next)) return FALSE; line_text = gtk_text_iter_get_visible_text(start, &next); if (match_start) { /* if this is the first line we're matching */ found = g_utf8_strcasestr(line_text, *lines); } else { /* If it's not the first line, we have to match from the * start of the line. */ if (g_utf8_caselessnmatch(line_text, *lines, strlen (line_text), strlen (*lines))) found = line_text; else found = NULL; } if (found == NULL) { g_free(line_text); return FALSE; } /* Get offset to start of search string */ offset = g_utf8_strlen(line_text, found - line_text); next = *start; /* If match start needs to be returned, set it to the * start of the search string. */ forward_chars_with_skipping(&next, offset, FALSE); if (match_start) { *match_start = next; } /* Go to end of search string */ forward_chars_with_skipping(&next, g_utf8_strlen (*lines, -1), TRUE); g_free (line_text); ++lines; if (match_end) *match_end = next; /* pass NULL for match_start, since we don't need to find the * start again. */ return lines_match(&next, lines, NULL, match_end); } static gboolean backward_lines_match (const GtkTextIter *start, const gchar **lines, GtkTextIter *match_start, GtkTextIter *match_end) { GtkTextIter line, next; gchar *line_text; const gchar *found; gint offset; if (*lines == NULL || **lines == '\0') { if (match_start) *match_start = *start; if (match_end) *match_end = *start; return TRUE; } line = next = *start; if (gtk_text_iter_get_line_offset (&next) == 0) { if (!gtk_text_iter_backward_line (&next)) return FALSE; } else gtk_text_iter_set_line_offset (&next, 0); line_text = gtk_text_iter_get_visible_text (&next, &line); if (match_start) /* if this is the first line we're matching */ { found = g_utf8_strrcasestr (line_text, *lines); } else { /* If it's not the first line, we have to match from the * start of the line. */ if (g_utf8_caselessnmatch (line_text, *lines, strlen (line_text), strlen (*lines))) found = line_text; else found = NULL; } if (found == NULL) { g_free (line_text); return FALSE; } /* Get offset to start of search string */ offset = g_utf8_strlen (line_text, found - line_text); forward_chars_with_skipping (&next, offset, FALSE); /* If match start needs to be returned, set it to the * start of the search string. */ if (match_start) { *match_start = next; } /* Go to end of search string */ forward_chars_with_skipping (&next, g_utf8_strlen (*lines, -1), TRUE); g_free (line_text); ++lines; if (match_end) *match_end = next; /* try to match the rest of the lines forward, passing NULL * for match_start so lines_match will try to match the entire * line */ return lines_match (&next, lines, NULL, match_end); } static gchar ** strbreakup(const char *string, const char *delimiter, gint max_tokens) { GSList *string_list = NULL, *slist; gchar **str_array, *s, *casefold, *new_string; guint i, n = 1; g_return_val_if_fail (string != NULL, NULL); g_return_val_if_fail (delimiter != NULL, NULL); if (max_tokens < 1) max_tokens = G_MAXINT; s = strstr(string, delimiter); if (s) { guint delimiter_len = strlen(delimiter); do { guint len; len = s - string + delimiter_len; new_string = g_new(gchar, len + 1); strncpy(new_string, string, len); new_string[len] = 0; casefold = g_utf8_casefold(new_string, -1); g_free(new_string); new_string = g_utf8_normalize(casefold, -1, G_NORMALIZE_NFD); g_free(casefold); string_list = g_slist_prepend(string_list, new_string); n++; string = s + delimiter_len; s = strstr(string, delimiter); } while (--max_tokens && s); } if (*string) { n++; casefold = g_utf8_casefold(string, -1); new_string = g_utf8_normalize(casefold, -1, G_NORMALIZE_NFD); g_free(casefold); string_list = g_slist_prepend(string_list, new_string); } str_array = g_new(gchar*, n); i = n - 1; str_array[i--] = NULL; for (slist = string_list; slist; slist = slist->next) str_array[i--] = slist->data; g_slist_free (string_list); return str_array; } typedef gboolean (* search_fun)(const GtkTextIter *iter); gboolean gm_searchable_text_view_search_case_insensitive(GtkTextView *text_view, gchar const *str, GmSearchableSearchFlags flags, GtkTextIter *start, GtkTextIter *end) { gchar **lines; lines = strbreakup(str, "\n", -1); GtkTextIter search; gboolean retval = FALSE; if (flags & GM_SEARCHABLE_SEARCH_FORWARDS) { search = *end; do { /* This loop has an inefficient worst-case, where * gtk_text_iter_get_text () is called repeatedly on * a single line. */ if (lines_match(&search, (const gchar**)lines, start, end)) { retval = TRUE; break; } } while (gtk_text_iter_forward_line(&search)); } else { search = *start; while (TRUE) { /* This loop has an inefficient worst-case, where * gtk_text_iter_get_text () is called repeatedly on * a single line. */ if (backward_lines_match (&search, (const gchar**)lines, start, end)) { retval = TRUE; break; } if (gtk_text_iter_get_line_offset (&search) == 0) { if (!gtk_text_iter_backward_line (&search)) break; } else { gtk_text_iter_set_line_offset (&search, 0); } } } g_strfreev ((gchar**)lines); return retval; } gboolean gm_searchable_text_view_find_next(GtkTextView *text_view, const gchar *str, GmSearchableSearchFlags flags) { GtkTextBuffer *buffer = NULL; GtkTextIter end, start, match_start, match_end; gboolean found = FALSE; g_return_val_if_fail(text_view != NULL, FALSE); if (str == NULL || *str == '\0') { return FALSE; } buffer = gtk_text_view_get_buffer(text_view); if (buffer) { if (!gtk_text_buffer_get_selection_bounds(buffer, &start, &end)) { // For cursor_visibles, search from the insertion position if (gtk_text_view_get_cursor_visible(text_view)) { gtk_text_buffer_get_iter_at_mark(buffer, &end, gtk_text_buffer_get_insert(buffer)); } else { // For non cursor_visibles, search from start (or end, // depending on2 the search direction if (flags & GM_SEARCHABLE_SEARCH_FORWARDS) { gtk_text_buffer_get_start_iter(buffer, &end); } else { gtk_text_buffer_get_end_iter(buffer, &end); } } start = end; } if (flags & GM_SEARCHABLE_SEARCH_CASE_INSENSITIVE) { match_start = start; match_end = end; found = gm_searchable_text_view_search_case_insensitive(text_view, str, flags, &match_start, &match_end); } else if (flags & GM_SEARCHABLE_SEARCH_FORWARDS) { found = gtk_text_iter_forward_search(&end, str, GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY, &match_start, &match_end, NULL); } else { found = gtk_text_iter_backward_search(&start, str, GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY, &match_start, &match_end, NULL); } if (found) { gtk_text_buffer_place_cursor(buffer, &match_start); gtk_text_buffer_move_mark_by_name(buffer, "selection_bound", &match_end); gtk_text_view_scroll_to_iter(text_view, &match_start, 0.0, FALSE, 0.0, 0.0); } } return found; } gboolean gm_searchable_text_view_find_first(GtkTextView *text_view, const gchar *str, GmSearchableSearchFlags flags) { GtkTextIter iter; GtkTextBuffer *buffer; g_return_val_if_fail(text_view != NULL, FALSE); buffer = gtk_text_view_get_buffer(text_view); if (buffer) { if (flags & GM_SEARCHABLE_SEARCH_BACKWARDS) { gtk_text_buffer_get_end_iter(buffer, &iter); } else { gtk_text_buffer_get_start_iter(buffer, &iter); } gtk_text_buffer_place_cursor(buffer, &iter); if (*str == '\0') { gtk_text_buffer_move_mark(buffer, gtk_text_buffer_get_selection_bound(buffer), &iter); return FALSE; } else { return gm_searchable_text_view_find_next(text_view, str, flags); } } return FALSE; } gboolean gm_searchable_text_view_replace(GtkTextView *text_view, gchar const *replace) { GtkTextBuffer *buffer = NULL; GtkTextIter end, start; buffer = gtk_text_view_get_buffer(text_view); if (buffer) { if (!gtk_text_buffer_get_selection_bounds(buffer, &start, &end)) { return FALSE; } else { gtk_text_buffer_begin_user_action(buffer); gtk_text_buffer_delete(buffer, &start, &end); gtk_text_buffer_insert(buffer, &start, replace, -1); gtk_text_buffer_end_user_action(buffer); return TRUE; } } else { return FALSE; } } gboolean gm_searchable_text_view_replace_all(GtkTextView *text_view, gchar const *str, gchar const *replace, GmSearchableSearchFlags flags) { gboolean found = gm_searchable_text_view_find_first(text_view, str, flags); if (found) { while (found) { gm_searchable_text_view_replace(text_view, replace); found = gm_searchable_text_view_find_next(text_view, str, flags); } } else { return FALSE; } return TRUE; } GtkTextView * gm_searchable_interface_get_text_view(GmSearchable *self, GmSearchableInterface *iface) { g_return_val_if_fail(iface != NULL, FALSE); if (iface->get_text_view == NULL) { return NULL; } return (* iface->get_text_view) (self); } GtkTextView * gm_searchable_get_text_view(GmSearchable *self) { GmSearchableInterface *iface; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); return gm_searchable_interface_get_text_view(self, iface); } gboolean gm_searchable_can_find(GmSearchable *self) { GmSearchableInterface *iface; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); g_return_val_if_fail(iface != NULL, FALSE); if (iface->find_first == NULL || iface->find_next == NULL) { if (gm_searchable_interface_get_text_view(self, iface) != NULL) { return TRUE; } else { return FALSE; } } else { return TRUE; } } gboolean gm_searchable_find_first(GmSearchable *self, const gchar *str, GmSearchableSearchFlags flags) { GmSearchableInterface *iface; GtkTextView *text_view; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); g_return_val_if_fail(iface != NULL, FALSE); if (iface->find_first == NULL) { text_view = gm_searchable_interface_get_text_view(self, iface); if (text_view) { return gm_searchable_text_view_find_first(text_view, str, flags); } else { g_return_val_if_reached(FALSE); } } return (* iface->find_first) (self, str, flags); } gboolean gm_searchable_find_next(GmSearchable *self, const gchar *str, GmSearchableSearchFlags flags) { GmSearchableInterface *iface; GtkTextView *text_view; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); g_return_val_if_fail(iface != NULL, FALSE); if (iface->find_next == NULL) { text_view = gm_searchable_interface_get_text_view(self, iface); if (text_view) { return gm_searchable_text_view_find_next(text_view, str, flags); } else { g_return_val_if_reached(FALSE); } } return (* iface->find_next) (self, str, flags); } gboolean gm_searchable_can_replace(GmSearchable *self) { GmSearchableInterface *iface; GtkTextView *text_view; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); g_return_val_if_fail(iface != NULL, FALSE); if (iface->replace == NULL || iface->replace_all == NULL) { text_view = gm_searchable_interface_get_text_view(self, iface); if (text_view != NULL && gtk_text_view_get_editable(text_view)) { return TRUE; } else { return FALSE; } } else { return TRUE; } } gboolean gm_searchable_replace(GmSearchable *self, const gchar *replace) { GmSearchableInterface *iface; GtkTextView *text_view; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); g_return_val_if_fail(iface != NULL, FALSE); if (iface->replace == NULL) { text_view = gm_searchable_interface_get_text_view(self, iface); if (text_view && gtk_text_view_get_editable(text_view)) { return gm_searchable_text_view_replace(text_view, replace); } else { g_return_val_if_reached(FALSE); } } return (* iface->replace) (self, replace); } gboolean gm_searchable_replace_all(GmSearchable *self, gchar const *str, gchar const *replace, GmSearchableSearchFlags flags) { GmSearchableInterface *iface; GtkTextView *text_view; g_return_val_if_fail(GM_IS_SEARCHABLE(self), FALSE); iface = GM_SEARCHABLE_GET_INTERFACE(self); g_return_val_if_fail(iface != NULL, FALSE); if (iface->replace_all == NULL) { text_view = gm_searchable_interface_get_text_view(self, iface); if (text_view && gtk_text_view_get_editable(text_view)) { return gm_searchable_text_view_replace_all(text_view, str, replace, flags); } else { g_return_val_if_reached(FALSE); } } return (* iface->replace_all) (self, str, replace, flags); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-searchable.h�������������������������������������������������������0000644�0001750�0001750�00000004072�10410766740�020122� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_SEARCHABLE_H__ #define __GM_SEARCHABLE_H__ #include <gtk/gtk.h> #include <glib.h> #define GM_TYPE_SEARCHABLE (gm_searchable_get_type()) #define GM_SEARCHABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_SEARCHABLE, GmSearchable)) #define GM_SEARCHABLE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST((obj), \ GM_TYPE_SEARCHABLE, GmSearchableInterface)) #define GM_IS_SEARCHABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_SEARCHABLE)) #define GM_SEARCHABLE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE( \ (inst), GM_TYPE_SEARCHABLE, GmSearchableInterface)) typedef struct _GmSearchable GmSearchable; /* dummy object */ typedef struct _GmSearchableInterface GmSearchableInterface; typedef enum _GmSearchableSearchFlags { GM_SEARCHABLE_SEARCH_NONE = 0, GM_SEARCHABLE_SEARCH_FORWARDS = 1 << 0, GM_SEARCHABLE_SEARCH_BACKWARDS = 1 << 1, GM_SEARCHABLE_SEARCH_CASE_INSENSITIVE = 1 << 2 } GmSearchableSearchFlags; struct _GmSearchableInterface { GTypeInterface parent; GtkTextView *(* get_text_view) (GmSearchable *self); gboolean (* find_first) (GmSearchable *self, gchar const *str, GmSearchableSearchFlags flags); gboolean (* find_next) (GmSearchable *self, gchar const *str, GmSearchableSearchFlags flags); gboolean (* replace) (GmSearchable *self, gchar const *replace); gboolean (* replace_all) (GmSearchable *self, gchar const *str, gchar const *replace, GmSearchableSearchFlags flags); }; GType gm_searchable_get_type(); GtkTextView *gm_searchable_get_text_view(GmSearchable *self); gboolean gm_searchable_can_find(GmSearchable *self); gboolean gm_searchable_find_first(GmSearchable *self, const gchar *str, GmSearchableSearchFlags flags); gboolean gm_searchable_find_next(GmSearchable *self, const gchar *str, GmSearchableSearchFlags flags); gboolean gm_searchable_can_replace(GmSearchable *self); gboolean gm_searchable_replace(GmSearchable *self, gchar const *replace); gboolean gm_searchable_replace_all(GmSearchable *self, gchar const *str, gchar const *replace, GmSearchableSearchFlags flags); #endif /* __GM_SEARCHABLE_H__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-embedded-view.c����������������������������������������������������0000644�0001750�0001750�00000013100�10410766740�020515� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <vte/vte.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <libgnomevfs/gnome-vfs.h> #include <libgnome/libgnome.h> #include "gm-embedded-view.h" #include "gm-app.h" #include "gm-color-table.h" #include "gm-options.h" #include "gm-debug.h" #define GM_EMBEDDED_VIEW_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_EMBEDDED_VIEW, GmEmbeddedViewPrivate)) struct _GmEmbeddedViewPrivate { GmWorld *world; GmEditor *editor; VteTerminal *vte; gchar *filename; GnomeVFSMonitorHandle *monitor; time_t last_modified; }; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_embedded_view_signals[NUM_SIGNALS] = {0};*/ void on_gm_embedded_view_exited(VteTerminal *vte, GmEmbeddedView *embedded); void on_gm_embedded_view_file_changed(GnomeVFSMonitorHandle *handle, const gchar *monitor_uri, const gchar *info_uri, GnomeVFSMonitorEventType event_type, GmEmbeddedView *embedded); void on_gm_embedded_view_font_changed(GmColorTable *color_table, gchar const *desc, GmEmbeddedView *view); G_DEFINE_TYPE(GmEmbeddedView, gm_embedded_view, GTK_TYPE_HBOX) static void gm_embedded_view_finalize(GObject *object) { GmEmbeddedView *obj = GM_EMBEDDED_VIEW(object); struct stat buf; if (obj->priv->monitor) { gnome_vfs_monitor_cancel(obj->priv->monitor); } if (GM_IS_EDITOR(obj->priv->editor)) { if (stat(obj->priv->filename, &buf) != -1) { if (buf.st_mtime > obj->priv->last_modified) { gm_editor_save(obj->priv->editor); } } } if (obj->priv->filename) { unlink(obj->priv->filename); g_free(obj->priv->filename); } G_OBJECT_CLASS(gm_embedded_view_parent_class)->finalize(object); } static void gm_embedded_view_class_init(GmEmbeddedViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_embedded_view_finalize; /*gm_embedded_view_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmEmbeddedViewClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ g_type_class_add_private(object_class, sizeof(GmEmbeddedViewPrivate)); } static void gm_embedded_view_init(GmEmbeddedView *obj) { GtkWidget *vte; GtkWidget *vscroll; obj->priv = GM_EMBEDDED_VIEW_GET_PRIVATE(obj); gtk_box_set_homogeneous(GTK_BOX(obj), FALSE); gtk_box_set_spacing(GTK_BOX(obj), 6); vte = vte_terminal_new(); vte_terminal_set_font_from_string(VTE_TERMINAL(vte), gm_color_table_font_description(gm_app_color_table( gm_app_instance()))); vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(vte), TRUE); vte_terminal_set_scrollback_lines(VTE_TERMINAL(vte), 500); vte_terminal_set_scroll_on_output(VTE_TERMINAL(vte), FALSE); vte_terminal_set_word_chars(VTE_TERMINAL(vte), "-A-Za-z0-9,./?%&#:_"); vte_terminal_set_allow_bold(VTE_TERMINAL(vte), TRUE); vte_terminal_set_audible_bell(VTE_TERMINAL(vte), TRUE); gtk_widget_show(vte); vscroll = gtk_vscrollbar_new(VTE_TERMINAL(vte)->adjustment); gtk_widget_show(vscroll); gtk_box_pack_start(GTK_BOX(obj), vte, TRUE, TRUE, 0); gtk_box_pack_end(GTK_BOX(obj), vscroll, FALSE, FALSE, 0); g_signal_connect(gm_app_color_table(gm_app_instance()), "font_changed", G_CALLBACK(on_gm_embedded_view_font_changed), obj); obj->priv->vte = VTE_TERMINAL(vte); } void gm_embedded_view_update_last_modified(GmEmbeddedView *embedded) { struct stat buf; if (stat(embedded->priv->filename, &buf) != -1) { embedded->priv->last_modified = buf.st_mtime; } } GmEmbeddedView * gm_embedded_view_new(GmWorld *world, GmEditor *editor) { GmEmbeddedView *obj = GM_EMBEDDED_VIEW(g_object_new(GM_TYPE_EMBEDDED_VIEW, NULL)); gchar *cmd[4] = { NULL, NULL, NULL, NULL }; GmOptions *options = gm_app_options(gm_app_instance()); obj->priv->world = world; obj->priv->editor = editor; obj->priv->filename = gm_editor_write_lines(editor); gm_embedded_view_update_last_modified(obj); cmd[0] = gnome_util_user_shell(); if (!cmd[0]) { cmd[0] = g_strdup("/bin/sh"); } cmd[1] = "-c"; cmd[2] = g_strconcat(gm_options_get(options, "editor_alternative"), " ", obj->priv->filename, NULL); vte_terminal_fork_command(obj->priv->vte, cmd[0], cmd, NULL, g_get_home_dir(), FALSE, TRUE, TRUE); g_free(cmd[0]); g_free(cmd[2]); gnome_vfs_monitor_add(&(obj->priv->monitor), obj->priv->filename, GNOME_VFS_MONITOR_FILE, (GnomeVFSMonitorCallback)on_gm_embedded_view_file_changed, obj); g_signal_connect(obj->priv->vte, "child-exited", G_CALLBACK(on_gm_embedded_view_exited), obj); return obj; } GmEditor * gm_embedded_view_editor(GmEmbeddedView *view) { return view->priv->editor; } /* Callbacks */ void on_gm_embedded_view_file_changed(GnomeVFSMonitorHandle *handle, const gchar *monitor_uri, const gchar *info_uri, GnomeVFSMonitorEventType event_type, GmEmbeddedView *embedded) { switch (event_type) { case GNOME_VFS_MONITOR_EVENT_CHANGED: case GNOME_VFS_MONITOR_EVENT_CREATED: gm_debug_msg(DEBUG_DEFAULT, "GmEmbedded.OnFileChanged: " "change event detected!"); gm_editor_set_lines_from_file(embedded->priv->editor, embedded->priv->filename); gm_editor_save(embedded->priv->editor); gm_embedded_view_update_last_modified(embedded); break; default: break; } } void on_gm_embedded_view_exited(VteTerminal *vte, GmEmbeddedView *embedded) { gm_editor_close(embedded->priv->editor); } void on_gm_embedded_view_font_changed(GmColorTable *color_table, gchar const *desc, GmEmbeddedView *view) { vte_terminal_set_font_from_string(VTE_TERMINAL(view->priv->vte), gm_color_table_font_description(gm_app_color_table( gm_app_instance()))); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-embedded-view.h����������������������������������������������������0000644�0001750�0001750�00000003201�10410766740�020523� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_EMBEDDED_VIEW_H__ #define __GM_EMBEDDED_VIEW_H__ #include <glib-object.h> #include <gtk/gtk.h> #include "gm-editor.h" #include "gm-world.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_EMBEDDED_VIEW (gm_embedded_view_get_type()) #define GM_EMBEDDED_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_EMBEDDED_VIEW, GmEmbeddedView)) #define GM_EMBEDDED_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_EMBEDDED_VIEW, GmEmbeddedView const)) #define GM_EMBEDDED_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_EMBEDDED_VIEW, GmEmbeddedViewClass)) #define GM_IS_EMBEDDED_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_EMBEDDED_VIEW)) #define GM_IS_EMBEDDED_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_EMBEDDED_VIEW)) #define GM_EMBEDDED_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_EMBEDDED_VIEW, GmEmbeddedViewClass)) /* Private structure type */ typedef struct _GmEmbeddedViewPrivate GmEmbeddedViewPrivate; /* * Main object structure */ typedef struct _GmEmbeddedView GmEmbeddedView; struct _GmEmbeddedView { GtkHBox parent; /*< private > */ GmEmbeddedViewPrivate *priv; }; /* * Class definition */ typedef struct _GmEmbeddedViewClass GmEmbeddedViewClass; struct _GmEmbeddedViewClass { GtkHBoxClass parent_class; /* Signals void (* proto) (GmEmbeddedView *obj); */ }; GType gm_embedded_view_get_type(void) G_GNUC_CONST; GmEmbeddedView *gm_embedded_view_new(GmWorld *world, GmEditor *editor); GmEditor *gm_embedded_view_editor(GmEmbeddedView *view); G_END_DECLS #endif /* __GM_EMBEDDED_VIEW_H__ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-external-view.c����������������������������������������������������0000644�0001750�0001750�00000013627�10453441102�020611� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <libgnome/libgnome.h> #include <gconf/gconf-client.h> #include <stdlib.h> #include <string.h> #include "gm-external-view.h" #include "gm-debug.h" #include "gm-app.h" #include "gm-options.h" void on_gm_external_view_exited(GPid pid, gint status, GmExternalView *view); void on_gm_external_view_file_changed(GnomeVFSMonitorHandle *handle, const gchar *monitor_uri, const gchar *info_uri, GnomeVFSMonitorEventType event_type, GmExternalView *view); void gm_external_view_destroy(GmExternalView *view) { struct stat buf; if (view->monitor) { gnome_vfs_monitor_cancel(view->monitor); } g_source_remove(view->child_watch); g_spawn_close_pid(view->pid); if (GM_IS_EDITOR(view->editor)) { if (stat(view->filename, &buf) != -1) { if (buf.st_mtime > view->last_modified) { gm_editor_save(view->editor); } } } if (view->filename) { unlink(view->filename); g_free(view->filename); } } void gm_external_view_update_last_modified(GmExternalView *view) { struct stat buf; if (stat(view->filename, &buf) != -1) { view->last_modified = buf.st_mtime; } } gboolean gm_external_view_spawn(GmExternalView *view, gchar **argv) { GError *err = NULL; g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &(view->pid), &err); if (err) { gm_debug_msg(DEBUG_DEFAULT, "GmExternalView.Spawn: couldn't spawn " "editor: %s", err->message); g_error_free(err); return FALSE; } else { return TRUE; } } typedef struct { gchar const *terminal; gchar const *arguments; } Terminal; static Terminal terminals[] = { {"gnome-terminal", "--disable-factory"}, {"gnome-terminal.wrapper", "--disable-factory"}, {NULL, NULL} }; static gchar * resolve_file(gchar const *file) { GSList *paths = NULL; GSList *item; gchar *resolve; gchar *prog; prog = g_find_program_in_path(file); while (prog && g_file_test(prog, G_FILE_TEST_IS_SYMLINK)) { paths = g_slist_prepend(paths, prog); resolve = g_file_read_link(prog, NULL); if (g_slist_find_custom(paths, resolve, (GCompareFunc)strcmp)) { prog = NULL; g_free(resolve); break; } prog = resolve; } for (item = paths; item; item = item->next) if (item->data != prog) g_free(item->data); g_slist_free(paths); return prog; } static Terminal * find_terminal(gchar const *term) { gchar *prog; gchar *basename; Terminal *terminal; prog = resolve_file(term); if (prog) { basename = g_path_get_basename(prog); g_message("%s", basename); for (terminal = terminals; terminal->terminal != NULL; ++terminal) if (strcmp(terminal->terminal, basename) == 0) break; g_free(basename); g_free(prog); if (terminal->terminal) return terminal; } return NULL; } static gchar ** build_terminal_command(gchar const *editor_command) { GConfClient *client; gchar *term; gchar *term_extra_args = NULL; gchar *term_args = NULL; gchar **spawn_command = NULL; Terminal *terminal; gchar **argv; gint argc; gint i; client = gconf_client_get_default(); term = gconf_client_get_string(client, "/desktop/gnome/applications/terminal/exec", NULL); if (term != NULL) term_extra_args = gconf_client_get_string(client, "/desktop/gnome/applications/terminal/exec_arg", NULL); else { term = g_strdup(getenv("TERM")); if (term == NULL) term = g_strdup("xterm"); term_extra_args = g_strdup("-e"); } terminal = find_terminal(term); if (terminal) term_args = (gchar *)(terminal->arguments); if (term_args || (term_extra_args && *term_extra_args != '\0')) { term_args = g_strdup_printf("%s %s %s", term_args ? term_args : "", term_extra_args ? term_extra_args : "", editor_command); if (g_shell_parse_argv(term_args, &argc, &argv, NULL)) { spawn_command = g_new0(gchar *, argc + 2); spawn_command[0] = term; for (i = 0; i < argc; ++i) spawn_command[i + 1] = argv[i]; g_free(argv); } g_free(term_args); } g_free(term_extra_args); g_object_unref(client); for (i = 0; spawn_command[i]; ++i) printf("'%s' ", spawn_command[i]); printf("\n"); return spawn_command; } GmExternalView * gm_external_view_new(GmWorld *world, GmEditor *editor) { GmExternalView *obj = g_new0(GmExternalView, 1); gchar **spawn_command = NULL; gchar *filename; gchar *command; gint argc; GmOptions *options = gm_app_options(gm_app_instance()); obj->world = world; obj->editor = editor; obj->filename = gm_editor_write_lines(editor); gm_external_view_update_last_modified(obj); gnome_vfs_monitor_add(&(obj->monitor), obj->filename, GNOME_VFS_MONITOR_FILE, (GnomeVFSMonitorCallback)on_gm_external_view_file_changed, obj); filename = g_shell_quote(obj->filename); command = g_strconcat(gm_options_get(options, "editor_alternative"), " ", filename, NULL); g_free(filename); if (gm_options_get_int(options, "editor_needs_terminal")) { spawn_command = build_terminal_command(command); } else { g_shell_parse_argv(command, &argc, &spawn_command, NULL); } gm_external_view_spawn(obj, spawn_command); g_strfreev(spawn_command); g_free(command); obj->child_watch = g_child_watch_add(obj->pid, (GChildWatchFunc)on_gm_external_view_exited, obj); return obj; } /* Callbacks */ void on_gm_external_view_exited(GPid pid, gint status, GmExternalView *view) { gm_editor_close(view->editor); } void on_gm_external_view_file_changed(GnomeVFSMonitorHandle *handle, const gchar *monitor_uri, const gchar *info_uri, GnomeVFSMonitorEventType event_type, GmExternalView *view) { switch (event_type) { case GNOME_VFS_MONITOR_EVENT_CHANGED: case GNOME_VFS_MONITOR_EVENT_CREATED: gm_debug_msg(DEBUG_DEFAULT, "GmExternalView.OnFileChanged: " "change event detected!"); gm_editor_set_lines_from_file(view->editor, view->filename); gm_editor_save(view->editor); gm_external_view_update_last_modified(view); break; default: break; } } ���������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-external-view.h����������������������������������������������������0000644�0001750�0001750�00000000731�10410766740�020621� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib.h> #include <libgnomevfs/gnome-vfs.h> #include "gm-editor.h" #include "gm-world.h" #define GM_EXTERNAL_VIEW(obj) (GmExternalView *)(obj) typedef struct _GmExternalView { GmWorld *world; GmEditor *editor; gchar *filename; GnomeVFSMonitorHandle *monitor; time_t last_modified; GPid pid; guint child_watch; } GmExternalView; GmExternalView *gm_external_view_new(GmWorld *world, GmEditor *editor); void gm_external_view_destroy(GmExternalView *view); ���������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-log-view.c���������������������������������������������������������0000644�0001750�0001750�00000020500�10413602126�017535� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include "gm-log-view.h" #include "gm-searchable.h" #include "gm-app.h" #include "gm-color-table.h" #include "gm-support.h" #include "gm-options.h" #include "gm-debug.h" #define GM_LOG_VIEW_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_LOG_VIEW, GmLogViewPrivate)) struct _GmLogViewPrivate { GtkTextView *text_view; }; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_log_view_signals[NUM_SIGNALS] = {0};*/ static void gm_log_view_searchable_iface_init( GmSearchableInterface *iface); static GtkTextView *gm_log_view_searchable_get_text_view(GmSearchable *sea); void on_gm_log_view_filter_toggled(GtkToggleButton *button, GmLogView *view); G_DEFINE_TYPE_EXTENDED(GmLogView, gm_log_view, GTK_TYPE_VBOX, 0, \ G_IMPLEMENT_INTERFACE(GM_TYPE_SEARCHABLE, \ gm_log_view_searchable_iface_init)) static void gm_log_view_searchable_iface_init(GmSearchableInterface *iface) { iface->get_text_view = gm_log_view_searchable_get_text_view; } static GtkTextView * gm_log_view_searchable_get_text_view(GmSearchable *sea) { GmLogView *view = (GmLogView *)(sea); g_return_val_if_fail(GM_IS_LOG_VIEW(sea), NULL); return view->priv->text_view; } static void gm_log_view_finalize(GObject *object) { //GmLogView *obj = GM_LOG_VIEW(object); G_OBJECT_CLASS(gm_log_view_parent_class)->finalize(object); } static void gm_log_view_class_init(GmLogViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); GmOptions *options; object_class->finalize = gm_log_view_finalize; /*gm_log_view_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmLogViewClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ options = gm_app_options(gm_app_instance()); g_type_class_add_private(object_class, sizeof(GmLogViewPrivate)); } static void gm_log_view_create_tags(GmLogView *obj) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(obj->priv->text_view); gtk_text_buffer_create_tag(buffer, "in", NULL); gtk_text_buffer_create_tag(buffer, "out", NULL); gtk_text_buffer_create_tag(buffer, "status", NULL); gtk_text_buffer_create_tag(buffer, "mcp_in", NULL); gtk_text_buffer_create_tag(buffer, "mcp_out", NULL); gtk_text_buffer_create_tag(buffer, "mcp_status", NULL); } static void gm_log_view_create_text_view(GmLogView *obj) { GtkTextView *text_view = GTK_TEXT_VIEW(gtk_text_view_new()); gtk_text_view_set_editable(text_view, FALSE); // Margins gtk_text_view_set_left_margin(text_view, 3); gtk_text_view_set_right_margin(text_view, 3); // Set default wrapping mode gtk_text_view_set_wrap_mode(text_view, GTK_WRAP_WORD_CHAR); gtk_widget_show(GTK_WIDGET(text_view)); obj->priv->text_view = text_view; gm_log_view_create_tags(obj); } GtkWidget * gm_log_view_create_filter(GmLogView *obj) { GtkWidget *box = gtk_hbox_new(FALSE, 6); GtkWidget *label = gtk_label_new(_("Filter: ")); GtkWidget *check; GmOptions *options = gm_app_options(gm_app_instance()); gtk_box_pack_start(GTK_BOX(box), label, FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Incoming")); g_object_set_data_full(G_OBJECT(check), "option", g_strdup("in"), g_free); g_signal_connect(check, "toggled", G_CALLBACK(on_gm_log_view_filter_toggled), obj); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_filter_in")); gtk_box_pack_start(GTK_BOX(box), check, FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Outgoing")); g_object_set_data_full(G_OBJECT(check), "option", g_strdup("out"), g_free); g_signal_connect(check, "toggled", G_CALLBACK(on_gm_log_view_filter_toggled), obj); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_filter_out")); gtk_box_pack_start(GTK_BOX(box), check, FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Status")); g_object_set_data_full(G_OBJECT(check), "option", g_strdup("status"), g_free); g_signal_connect(check, "toggled", G_CALLBACK(on_gm_log_view_filter_toggled), obj); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_filter_status")); gtk_box_pack_start(GTK_BOX(box), check, FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Mcp incoming")); g_object_set_data_full(G_OBJECT(check), "option", g_strdup("mcp_in"), g_free); g_signal_connect(check, "toggled", G_CALLBACK(on_gm_log_view_filter_toggled), obj); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_filter_mcp_in")); gtk_box_pack_start(GTK_BOX(box), check, FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Mcp outgoing")); g_object_set_data_full(G_OBJECT(check), "option", g_strdup("mcp_out"), g_free); g_signal_connect(check, "toggled", G_CALLBACK(on_gm_log_view_filter_toggled), obj); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_filter_mcp_out")); gtk_box_pack_start(GTK_BOX(box), check, FALSE, FALSE, 0); check = gtk_check_button_new_with_label(_("Mcp status")); g_object_set_data_full(G_OBJECT(check), "option", g_strdup("mcp_status"), g_free); g_signal_connect(check, "toggled", G_CALLBACK(on_gm_log_view_filter_toggled), obj); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), gm_options_get_int(options, "logging_filter_mcp_status")); gtk_box_pack_start(GTK_BOX(box), check, FALSE, FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(box), 3); gtk_widget_show_all(box); return box; } static void gm_log_view_init(GmLogView *obj) { GtkWidget *srl; obj->priv = GM_LOG_VIEW_GET_PRIVATE(obj); gtk_box_set_spacing(GTK_BOX(obj), 6); gtk_box_set_homogeneous(GTK_BOX(obj), FALSE); gm_log_view_create_text_view(obj); //gtk_box_pack_start(GTK_BOX(obj), gm_log_view_create_filter(obj), FALSE, // FALSE, 0); srl = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(srl), GTK_SHADOW_IN); gtk_widget_show(srl); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(srl), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(srl), GTK_WIDGET(obj->priv->text_view)); gtk_box_pack_start(GTK_BOX(obj), srl, TRUE, TRUE, 0); gm_register_schemed(GTK_WIDGET(obj->priv->text_view), gm_app_color_table( gm_app_instance()), GM_SCHEMED_COLORS | GM_SCHEMED_FONT); } GmLogView * gm_log_view_new() { GmLogView *obj = GM_LOG_VIEW(g_object_new(GM_TYPE_LOG_VIEW, NULL)); return obj; } gchar const * gm_log_view_get_tag(gchar const *last) { switch (last[11]) { case '>': return "out"; break; case '<': return "in"; break; case '#': return "status"; break; case '[': switch (last[17]) { case '>': return "mcp_out"; break; case '<': return "mcp_in"; break; case '#': return "mcp_status"; break; } break; } return NULL; } void gm_log_view_set_text(GmLogView *view, gchar const *text) { GtkTextBuffer *buffer = gtk_text_view_get_buffer(view->priv->text_view); gchar *ptr; gchar const *last = text, *tag; GtkTextIter iter; gtk_text_buffer_get_end_iter(buffer, &iter); tag = gm_log_view_get_tag(text); gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, text, -1, tag, NULL); return; // log format: [hh:mm:ss] >|<|#|[MCP] <|[MCP] > text while ((ptr = g_utf8_strchr(last, -1, '\n'))) { gtk_text_buffer_get_end_iter(buffer, &iter); tag = gm_log_view_get_tag(last); gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, last, ptr - last + 1, tag, NULL); last = ptr + 1; } if (*last != '\0') { gtk_text_buffer_get_end_iter(buffer, &iter); tag = gm_log_view_get_tag(last); gtk_text_buffer_insert_with_tags_by_name(buffer, &iter, last, ptr - last + 1, tag, NULL); } } /* Callbacks */ void on_gm_log_view_filter_toggled(GtkToggleButton *button, GmLogView *view) { gchar *option = (gchar *)g_object_get_data(G_OBJECT(button), "option"); gchar *opt = g_strconcat("logging_filter_", option, NULL); gboolean active = gtk_toggle_button_get_active(button); GmOptions *options = gm_app_options(gm_app_instance()); GtkTextTag *tag = gtk_text_tag_table_lookup(gtk_text_buffer_get_tag_table( gtk_text_view_get_buffer(view->priv->text_view)), option); g_object_set(G_OBJECT(tag), "invisible", !active, NULL); gm_options_set_int(options, opt, active); g_free(opt); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-log-view.h���������������������������������������������������������0000644�0001750�0001750�00000002621�10410766740�017560� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_LOG_VIEW_H__ #define __GM_LOG_VIEW_H__ #include <glib-object.h> #include <gtk/gtk.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_LOG_VIEW (gm_log_view_get_type()) #define GM_LOG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_LOG_VIEW, GmLogView)) #define GM_LOG_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ GM_TYPE_LOG_VIEW, GmLogView const)) #define GM_LOG_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_LOG_VIEW, GmLogViewClass)) #define GM_IS_LOG_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_LOG_VIEW)) #define GM_IS_LOG_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_LOG_VIEW)) #define GM_LOG_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_LOG_VIEW, GmLogViewClass)) /* Private structure type */ typedef struct _GmLogViewPrivate GmLogViewPrivate; /* * Main object structure */ typedef struct _GmLogView GmLogView; struct _GmLogView { GtkVBox parent; /*< private > */ GmLogViewPrivate *priv; }; /* * Class definition */ typedef struct _GmLogViewClass GmLogViewClass; struct _GmLogViewClass { GtkVBoxClass parent_class; /* Signals void (* proto) (GmLogView *obj); */ }; GType gm_log_view_get_type(void) G_GNUC_CONST; GmLogView *gm_log_view_new(void); void gm_log_view_set_text(GmLogView *view, gchar const *text); G_END_DECLS #endif /* __GM_LOG_VIEW_H__ */ ���������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-tray.c�������������������������������������������������������������0000644�0001750�0001750�00000011007�10410766740�016777� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <gtk/gtk.h> #include "gm-tray.h" #include "eggtrayicon.h" #include "gm-debug.h" #define GM_TRAY_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_TRAY, GmTrayPrivate)) struct _GmTrayPrivate { GtkWidget *event_box; GtkImage *image; GtkTooltips *tooltips; guint flash_timeout; GmTrayState current_state; GmTrayState prev_state; GdkPixbuf *icons[NUM_TRAY_STATES]; }; /* Signals enum { NUM_SIGNALS }; static guint tray_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmTray, gm_tray, EGG_TYPE_TRAY_ICON) static void gm_tray_finalize(GObject *object) { GmTray *tray = GM_TRAY(object); guint i; if (tray->priv->flash_timeout) { g_source_remove(tray->priv->flash_timeout); } for (i = 0; i < NUM_TRAY_STATES; ++i) { g_object_unref(tray->priv->icons[i]); } G_OBJECT_CLASS(gm_tray_parent_class)->finalize(object); } static void gm_tray_class_init(GmTrayClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_tray_finalize; g_type_class_add_private(object_class, sizeof(GmTrayPrivate)); } static void gm_tray_init(GmTray *tray) { guint i; GtkWidget *image; tray->priv = GM_TRAY_GET_PRIVATE(tray); tray->priv->event_box = gtk_event_box_new(); tray->priv->current_state = TRAY_STATE_NORMAL; for (i = 0; i < NUM_TRAY_STATES; ++i) { tray->priv->icons[i] = NULL; } image = gtk_image_new(); gtk_container_add(GTK_CONTAINER(tray->priv->event_box), image); tray->priv->tooltips = gtk_tooltips_new(); gtk_widget_show(tray->priv->event_box); gtk_widget_show(image); gtk_container_add(GTK_CONTAINER(tray), tray->priv->event_box); gtk_widget_add_events(GTK_WIDGET(tray), GDK_BUTTON_PRESS_MASK); tray->priv->image = GTK_IMAGE(image); } static void gm_tray_update_icon(GmTray *tray) { gtk_image_set_from_pixbuf(tray->priv->image, tray->priv->icons[tray->priv->current_state]); } static void gm_tray_set_state(GmTray *tray, GmTrayState state) { if (tray->priv->current_state == state) { return; } if (tray->priv->flash_timeout) { g_source_remove(tray->priv->flash_timeout); tray->priv->flash_timeout = 0; } tray->priv->prev_state = tray->priv->current_state; tray->priv->current_state = state; gm_tray_update_icon(tray); } static gboolean gm_tray_restore_from_activity(gpointer user_data) { GmTray *tray = GM_TRAY(user_data); tray->priv->flash_timeout = 0; gm_tray_set_state(tray, tray->priv->prev_state); return FALSE; } /* Public */ GmTray * gm_tray_new(gchar const *title) { return g_object_new(GM_TYPE_TRAY, "title", title, NULL); } void gm_tray_activate(GmTray *tray) { if (tray->priv->flash_timeout) { g_source_remove(tray->priv->flash_timeout); } if (tray->priv->current_state == TRAY_STATE_NORMAL) { tray->priv->current_state = TRAY_STATE_ACTIVE; } gm_tray_set_state(tray, TRAY_STATE_ACTIVITY); tray->priv->flash_timeout = g_timeout_add(1000, gm_tray_restore_from_activity, tray); } void gm_tray_normal(GmTray *tray) { gm_tray_set_state(tray, TRAY_STATE_NORMAL); gm_tray_set_tip(tray, NULL); } void gm_tray_active(GmTray *tray) { gm_tray_set_state(tray, TRAY_STATE_ACTIVE); } void gm_tray_notify(GmTray *tray, gchar const *message) { gm_tray_set_state(tray, TRAY_STATE_NOTIFY); gm_tray_message(tray, message); gm_tray_set_tip(tray, message); } void gm_tray_set_icon(GmTray *tray, GmTrayState state, GdkPixbuf *icon) { if (tray->priv->icons[state]) { g_object_unref(tray->priv->icons[state]); } tray->priv->icons[state] = g_object_ref(icon); if (state == tray->priv->current_state) { gm_tray_update_icon(tray); } } void gm_tray_message(GmTray *tray, gchar const *message) { egg_tray_icon_send_message(EGG_TRAY_ICON(tray), 5000, message, g_utf8_strlen(message, -1)); } void gm_tray_set_tip(GmTray *tray, gchar const *message) { gtk_tooltips_set_tip(tray->priv->tooltips, tray->priv->event_box, message, message); } GmTrayState gm_tray_get_state(GmTray *tray) { if (tray->priv->current_state == TRAY_STATE_ACTIVITY) { return tray->priv->prev_state; } return tray->priv->current_state; } gboolean gm_tray_has_manager() { Screen *xscreen = DefaultScreenOfDisplay(gdk_display); Atom selection_atom; char *selection_atom_name; selection_atom_name = g_strdup_printf("_NET_SYSTEM_TRAY_S%d", XScreenNumberOfScreen(xscreen)); selection_atom = XInternAtom(DisplayOfScreen(xscreen), selection_atom_name, FALSE); g_free(selection_atom_name); if (XGetSelectionOwner(DisplayOfScreen(xscreen), selection_atom)) { return TRUE; } else { return FALSE; } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-tray.h�������������������������������������������������������������0000644�0001750�0001750�00000003424�10410766740�017010� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_TRAY_H__ #define __GM_TRAY_H__ #include <gtk/gtk.h> #include "eggtrayicon.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_TRAY (gm_tray_get_type()) #define GM_TRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_TRAY, GmTray)) #define GM_TRAY_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_TRAY, GmTray const)) #define GM_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_TRAY, GmTrayClass)) #define GM_IS_TRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_TRAY)) #define GM_IS_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_TRAY)) #define GM_TRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_TRAY, GmTrayClass)) /* Private structure type */ typedef struct _GmTrayPrivate GmTrayPrivate; typedef enum _GmTrayState { TRAY_STATE_NORMAL, TRAY_STATE_ACTIVE, TRAY_STATE_ACTIVITY, TRAY_STATE_NOTIFY, NUM_TRAY_STATES } GmTrayState; /* * Main object structure */ typedef struct _GmTray GmTray; struct _GmTray { EggTrayIcon trayicon; /*< private > */ GmTrayPrivate *priv; }; /* * Class definition */ typedef struct _GmTrayClass GmTrayClass; struct _GmTrayClass { EggTrayIconClass parent_class; /* Signals */ }; GType gm_tray_get_type(void) G_GNUC_CONST; GmTray *gm_tray_new(gchar const *title); void gm_tray_set_icon(GmTray *tray, GmTrayState state, GdkPixbuf *icon); void gm_tray_activate(GmTray *tray); void gm_tray_normal(GmTray *tray); void gm_tray_active(GmTray *tray); void gm_tray_notify(GmTray *tray, gchar const *message); void gm_tray_message(GmTray *tray, gchar const *message); void gm_tray_set_tip(GmTray *tray, gchar const *message); GmTrayState gm_tray_get_state(GmTray *tray); gboolean gm_tray_has_manager(); G_END_DECLS #endif /* __GM_TRAY_H__ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/eggtrayicon.c���������������������������������������������������������0000644�0001750�0001750�00000035325�10410766740�017743� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* eggtrayicon.c * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include <config.h> #include <string.h> #include <libintl.h> #include "eggtrayicon.h" #include "gm-pixbuf.h" #include <gdkconfig.h> #include <gtk/gtkimage.h> #include <gdk/gdkx.h> #include <X11/Xatom.h> #ifdef HAVE_NOTIFY #include <libnotify/notify.h> #endif #ifndef EGG_COMPILATION #ifndef _ #define _(x) dgettext (GETTEXT_PACKAGE, x) #define N_(x) x #endif #else #define _(x) x #define N_(x) x #endif #define SYSTEM_TRAY_REQUEST_DOCK 0 #define SYSTEM_TRAY_BEGIN_MESSAGE 1 #define SYSTEM_TRAY_CANCEL_MESSAGE 2 #define SYSTEM_TRAY_ORIENTATION_HORZ 0 #define SYSTEM_TRAY_ORIENTATION_VERT 1 enum { PROP_0, PROP_ORIENTATION }; #ifdef HAVE_NOTIFY struct _Notify { NotifyNotification *handle; }; #endif /* Signals */ enum { MESSAGE_CLICKED, NUM_SIGNALS }; static guint egg_tray_icon_signals[NUM_SIGNALS] = {0}; static GtkPlugClass *parent_class = NULL; static void egg_tray_icon_init (EggTrayIcon *icon); static void egg_tray_icon_class_init (EggTrayIconClass *klass); static void egg_tray_icon_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static void egg_tray_icon_realize (GtkWidget *widget); static void egg_tray_icon_unrealize (GtkWidget *widget); static void egg_tray_icon_update_manager_window (EggTrayIcon *icon, gboolean dock_if_realized); static void egg_tray_icon_manager_window_destroyed (EggTrayIcon *icon); GType egg_tray_icon_get_type (void) { static GType our_type = 0; if (our_type == 0) { static const GTypeInfo our_info = { sizeof (EggTrayIconClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) egg_tray_icon_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (EggTrayIcon), 0, /* n_preallocs */ (GInstanceInitFunc) egg_tray_icon_init }; our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon", &our_info, 0); } return our_type; } static void egg_tray_icon_init (EggTrayIcon *icon) { icon->stamp = 1; icon->orientation = GTK_ORIENTATION_HORIZONTAL; #ifdef HAVE_NOTIFY icon->notify = g_new0 (Notify, 1); #endif gtk_widget_add_events (GTK_WIDGET (icon), GDK_PROPERTY_CHANGE_MASK); } static void egg_tray_icon_class_init (EggTrayIconClass *klass) { GObjectClass *gobject_class = (GObjectClass *)klass; GtkWidgetClass *widget_class = (GtkWidgetClass *)klass; parent_class = g_type_class_peek_parent (klass); gobject_class->get_property = egg_tray_icon_get_property; widget_class->realize = egg_tray_icon_realize; widget_class->unrealize = egg_tray_icon_unrealize; g_object_class_install_property (gobject_class, PROP_ORIENTATION, g_param_spec_enum ("orientation", _("Orientation"), _("The orientation of the tray."), GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL, G_PARAM_READABLE)); egg_tray_icon_signals[MESSAGE_CLICKED] = g_signal_new("message-clicked", G_OBJECT_CLASS_TYPE(gobject_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(EggTrayIconClass, message_clicked), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); } static void egg_tray_icon_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { EggTrayIcon *icon = EGG_TRAY_ICON (object); switch (prop_id) { case PROP_ORIENTATION: g_value_set_enum (value, icon->orientation); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void egg_tray_icon_get_orientation_property (EggTrayIcon *icon) { Display *xdisplay; Atom type; int format; union { gulong *prop; guchar *prop_ch; } prop = { NULL }; gulong nitems; gulong bytes_after; int error, result; g_assert (icon->manager_window != None); xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); gdk_error_trap_push (); type = None; result = XGetWindowProperty (xdisplay, icon->manager_window, icon->orientation_atom, 0, G_MAXLONG, FALSE, XA_CARDINAL, &type, &format, &nitems, &bytes_after, &(prop.prop_ch)); error = gdk_error_trap_pop (); if (error || result != Success) return; if (type == XA_CARDINAL) { GtkOrientation orientation; orientation = (prop.prop [0] == SYSTEM_TRAY_ORIENTATION_HORZ) ? GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL; if (icon->orientation != orientation) { icon->orientation = orientation; g_object_notify (G_OBJECT (icon), "orientation"); } } if (prop.prop) XFree (prop.prop); } static GdkFilterReturn egg_tray_icon_manager_filter (GdkXEvent *xevent, GdkEvent *event, gpointer user_data) { EggTrayIcon *icon = user_data; XEvent *xev = (XEvent *)xevent; if (xev->xany.type == ClientMessage && xev->xclient.message_type == icon->manager_atom && (unsigned)(xev->xclient.data.l[1]) == icon->selection_atom) { egg_tray_icon_update_manager_window (icon, TRUE); } else if (xev->xany.window == icon->manager_window) { if (xev->xany.type == PropertyNotify && xev->xproperty.atom == icon->orientation_atom) { egg_tray_icon_get_orientation_property (icon); } if (xev->xany.type == DestroyNotify) { egg_tray_icon_manager_window_destroyed (icon); } } return GDK_FILTER_CONTINUE; } static void egg_tray_icon_unrealize (GtkWidget *widget) { EggTrayIcon *icon = EGG_TRAY_ICON (widget); GdkWindow *root_window; if (icon->manager_window != None) { GdkWindow *gdkwin; gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (widget), icon->manager_window); gdk_window_remove_filter (gdkwin, egg_tray_icon_manager_filter, icon); } root_window = gdk_screen_get_root_window (gtk_widget_get_screen (widget)); gdk_window_remove_filter (root_window, egg_tray_icon_manager_filter, icon); if (GTK_WIDGET_CLASS (parent_class)->unrealize) (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget); #ifdef HAVE_NOTIFY if (EGG_TRAY_ICON (widget)->notify->handle) { notify_notification_close (EGG_TRAY_ICON (widget)->notify->handle, NULL); } g_free (EGG_TRAY_ICON (widget)->notify); #endif } static void egg_tray_icon_send_manager_message (EggTrayIcon *icon, long message, Window window, long data1, long data2, long data3) { XClientMessageEvent ev; Display *display; ev.type = ClientMessage; ev.window = window; ev.message_type = icon->system_tray_opcode_atom; ev.format = 32; ev.data.l[0] = gdk_x11_get_server_time (GTK_WIDGET (icon)->window); ev.data.l[1] = message; ev.data.l[2] = data1; ev.data.l[3] = data2; ev.data.l[4] = data3; display = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); gdk_error_trap_push (); XSendEvent (display, icon->manager_window, False, NoEventMask, (XEvent *)&ev); XSync (display, False); gdk_error_trap_pop (); } static void egg_tray_icon_send_dock_request (EggTrayIcon *icon) { egg_tray_icon_send_manager_message (icon, SYSTEM_TRAY_REQUEST_DOCK, icon->manager_window, gtk_plug_get_id (GTK_PLUG (icon)), 0, 0); } static void egg_tray_icon_update_manager_window (EggTrayIcon *icon, gboolean dock_if_realized) { Display *xdisplay; if (icon->manager_window != None) return; xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); XGrabServer (xdisplay); icon->manager_window = XGetSelectionOwner (xdisplay, icon->selection_atom); if (icon->manager_window != None) XSelectInput (xdisplay, icon->manager_window, StructureNotifyMask|PropertyChangeMask); XUngrabServer (xdisplay); XFlush (xdisplay); if (icon->manager_window != None) { GdkWindow *gdkwin; gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)), icon->manager_window); gdk_window_add_filter (gdkwin, egg_tray_icon_manager_filter, icon); if (dock_if_realized && GTK_WIDGET_REALIZED (icon)) egg_tray_icon_send_dock_request (icon); egg_tray_icon_get_orientation_property (icon); } } static void egg_tray_icon_manager_window_destroyed (EggTrayIcon *icon) { GdkWindow *gdkwin; g_return_if_fail (icon->manager_window != None); gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)), icon->manager_window); gdk_window_remove_filter (gdkwin, egg_tray_icon_manager_filter, icon); icon->manager_window = None; egg_tray_icon_update_manager_window (icon, TRUE); } gboolean egg_tray_icon_have_manager (EggTrayIcon *icon) { GtkPlug * plug = GTK_PLUG (icon); if (plug->socket_window) return TRUE; else return FALSE; } static void egg_tray_icon_realize (GtkWidget *widget) { EggTrayIcon *icon = EGG_TRAY_ICON (widget); GdkScreen *screen; GdkDisplay *display; Display *xdisplay; char buffer[256]; GdkWindow *root_window; if (GTK_WIDGET_CLASS (parent_class)->realize) GTK_WIDGET_CLASS (parent_class)->realize (widget); screen = gtk_widget_get_screen (widget); display = gdk_screen_get_display (screen); xdisplay = gdk_x11_display_get_xdisplay (display); /* Now see if there's a manager window around */ g_snprintf (buffer, sizeof (buffer), "_NET_SYSTEM_TRAY_S%d", gdk_screen_get_number (screen)); icon->selection_atom = XInternAtom (xdisplay, buffer, False); icon->manager_atom = XInternAtom (xdisplay, "MANAGER", False); icon->system_tray_opcode_atom = XInternAtom (xdisplay, "_NET_SYSTEM_TRAY_OPCODE", False); icon->orientation_atom = XInternAtom (xdisplay, "_NET_SYSTEM_TRAY_ORIENTATION", False); egg_tray_icon_update_manager_window (icon, FALSE); egg_tray_icon_send_dock_request (icon); root_window = gdk_screen_get_root_window (screen); /* Add a root window filter so that we get changes on MANAGER */ gdk_window_add_filter (root_window, egg_tray_icon_manager_filter, icon); } EggTrayIcon * egg_tray_icon_new_for_screen(GdkScreen *screen, const char *name) { g_return_val_if_fail(GDK_IS_SCREEN(screen), NULL); return g_object_new(EGG_TYPE_TRAY_ICON, "screen", screen, "title", name, NULL); } EggTrayIcon* egg_tray_icon_new (const gchar *name) { return g_object_new(EGG_TYPE_TRAY_ICON, "title", name, NULL); } guint egg_tray_icon_send_message(EggTrayIcon *icon, gint timeout, const gchar *message, gint len) { g_return_val_if_fail(EGG_IS_TRAY_ICON(icon), 0); g_return_val_if_fail(timeout >= 0, 0); g_return_val_if_fail(message != NULL, 0); #ifdef HAVE_NOTIFY egg_tray_icon_notify(icon, timeout, _("Notification"), NULL, message); #else if (!icon->bubble) { icon->bubble = egg_notification_bubble_new(); egg_notification_bubble_attach(icon->bubble, GTK_WIDGET(icon)); } egg_notification_bubble_set(icon->bubble, _("Notification"), NULL, message); egg_notification_bubble_show(icon->bubble, timeout); #endif return 1; } void egg_tray_icon_cancel_message(EggTrayIcon *icon, guint id) { g_return_if_fail(EGG_IS_TRAY_ICON(icon)); #ifdef HAVE_NOTIFY if (icon->notify->handle) { notify_notification_close(icon->notify->handle, NULL); } #else g_return_if_fail(id > 0); g_return_if_fail(icon->bubble != NULL); egg_notification_bubble_hide(icon->bubble); #endif } GtkOrientation egg_tray_icon_get_orientation(EggTrayIcon *icon) { g_return_val_if_fail(EGG_IS_TRAY_ICON(icon), GTK_ORIENTATION_HORIZONTAL); return icon->orientation; } #ifndef HAVE_NOTIFY static void egg_tray_icon_hide_notify_cb(EggNotificationBubble *bubble, gpointer data) { egg_tray_icon_cancel_message(EGG_TRAY_ICON(data), 1); } #else static void egg_tray_icon_notify_default_cb(NotifyNotification *notify, gchar *action, gpointer userdata) { g_return_if_fail(EGG_IS_TRAY_ICON(userdata)); g_signal_emit(EGG_TRAY_ICON(userdata), egg_tray_icon_signals[MESSAGE_CLICKED], 0); } #endif void egg_tray_icon_notify(EggTrayIcon *icon, guint timeout, const char *primary, GtkWidget *msgicon, const char *secondary) { #ifdef HAVE_NOTIFY GtkRequisition size; GdkPixbuf *pixbuf; int x; int y; if (!notify_is_initted()) if (!notify_init("gnoemoe")) return; if (icon->notify->handle != NULL) { notify_notification_close (icon->notify->handle, NULL); } icon->notify->handle = notify_notification_new(primary, secondary, NULL, NULL); notify_notification_set_timeout (icon->notify->handle, timeout); if (msgicon) { pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(msgicon)); } else { GtkIconTheme *theme; gint width, height; theme = gtk_icon_theme_get_default(); gtk_icon_size_lookup(GTK_ICON_SIZE_LARGE_TOOLBAR, &width, &height); pixbuf = gm_pixbuf_get_at_size("gnoemoe_logo.svg", width, height); } if (pixbuf) { notify_notification_set_icon_from_pixbuf(icon->notify->handle, pixbuf); } gdk_window_get_origin(GTK_WIDGET(icon)->window, &x, &y); gtk_widget_size_request(GTK_WIDGET(icon), &size); x += size.width / 2; y += size.height; notify_notification_set_hint_int32(icon->notify->handle, "x", x); notify_notification_set_hint_int32(icon->notify->handle, "y", y); notify_notification_add_action(icon->notify->handle, "default", "default", egg_tray_icon_notify_default_cb, icon, NULL); if (!notify_notification_show(icon->notify->handle, NULL)) { g_warning("failed to send notification (%s)", primary); } #else gint x, y; gdk_window_get_origin(GTK_WIDGET (icon)->window, &x, &y); if (!icon->bubble) { icon->bubble = egg_notification_bubble_new(); egg_notification_bubble_attach(icon->bubble, GTK_WIDGET(icon)); g_signal_connect_object(icon->bubble, "clicked", G_CALLBACK (egg_tray_icon_hide_notify_cb), icon, 0); } egg_notification_bubble_set(icon->bubble, primary, msgicon, secondary); egg_notification_bubble_show(icon->bubble, timeout); #endif } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/eggtrayicon.h���������������������������������������������������������0000644�0001750�0001750�00000006021�10410766740�017737� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* eggtrayicon.h * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __EGG_TRAY_ICON_H__ #define __EGG_TRAY_ICON_H__ #include <config.h> #include <gtk/gtkplug.h> #include <gdk/gdkx.h> #ifdef HAVE_NOTIFY #include <libnotify/notify.h> #else #include "eggnotificationbubble.h" #endif G_BEGIN_DECLS #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type ()) #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon)) #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TRAY_ICON)) #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_TRAY_ICON)) #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) typedef struct _EggTrayIcon EggTrayIcon; typedef struct _EggTrayIconClass EggTrayIconClass; #ifdef HAVE_NOTIFY typedef struct _Notify Notify; #endif struct _EggTrayIcon { GtkPlug parent_instance; guint stamp; Atom selection_atom; Atom manager_atom; Atom system_tray_opcode_atom; Atom orientation_atom; Window manager_window; GtkOrientation orientation; #ifdef HAVE_NOTIFY Notify *notify; #else EggNotificationBubble *bubble; #endif }; struct _EggTrayIconClass { GtkPlugClass parent_class; /* Signals */ void (* message_clicked) (EggTrayIcon *icon); }; GType egg_tray_icon_get_type (void); EggTrayIcon *egg_tray_icon_new_for_screen (GdkScreen *screen, const gchar *name); EggTrayIcon *egg_tray_icon_new (const gchar *name); guint egg_tray_icon_send_message (EggTrayIcon *icon, gint timeout, const char *message, gint len); void egg_tray_icon_cancel_message (EggTrayIcon *icon, guint id); gboolean egg_tray_icon_have_manager (EggTrayIcon *icon); void egg_tray_icon_notify (EggTrayIcon *icon, guint timeout, const char *primary, GtkWidget *msgicon, const char *secondary); GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon); G_END_DECLS #endif /* __EGG_TRAY_ICON_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/eggnotificationbubble.c�����������������������������������������������0000644�0001750�0001750�00000036415�10410766740�021756� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* EggNotificationBubble * Copyright (C) 2005 Colin Walters <walters@verbum.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <gtk/gtk.h> #include "eggnotificationbubble.h" #define DEFAULT_DELAY 500 /* Default delay in ms */ #define STICKY_DELAY 0 /* Delay before popping up next bubble * if we're sticky */ #define STICKY_REVERT_DELAY 1000 /* Delay before sticky bubble revert * to normal */ #define BORDER_SIZE 15 static void egg_notification_bubble_class_init (EggNotificationBubbleClass *klass); static void egg_notification_bubble_init (EggNotificationBubble *bubble); static void egg_notification_bubble_destroy (GtkObject *object); static void egg_notification_bubble_detach (EggNotificationBubble *bubble); static void egg_notification_bubble_event_handler (GtkWidget *widget, GdkEvent *event, gpointer user_data); static gint egg_notification_bubble_paint_window (EggNotificationBubble *bubble); static void egg_notification_bubble_unset_bubble_window (EggNotificationBubble *bubble); static GtkObjectClass *parent_class; enum { NOTIFICATION_CLICKED, NOTIFICATION_TIMEOUT, LAST_SIGNAL }; static guint egg_notification_bubble_signals[LAST_SIGNAL] = { 0 }; GType egg_notification_bubble_get_type (void) { static GType bubble_type = 0; if (!bubble_type) { static const GTypeInfo bubble_info = { sizeof (EggNotificationBubbleClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) egg_notification_bubble_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (EggNotificationBubble), 0, /* n_preallocs */ (GInstanceInitFunc) egg_notification_bubble_init, }; bubble_type = g_type_register_static (GTK_TYPE_OBJECT, "EggNotificationBubble", &bubble_info, 0); } return bubble_type; } static void egg_notification_bubble_class_init (EggNotificationBubbleClass *class) { GtkObjectClass *object_class; object_class = (GtkObjectClass*) class; parent_class = g_type_class_peek_parent (class); object_class->destroy = egg_notification_bubble_destroy; egg_notification_bubble_signals[NOTIFICATION_CLICKED] = g_signal_new ("clicked", EGG_TYPE_NOTIFICATION_BUBBLE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EggNotificationBubbleClass, clicked), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); egg_notification_bubble_signals[NOTIFICATION_TIMEOUT] = g_signal_new ("timeout", EGG_TYPE_NOTIFICATION_BUBBLE, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (EggNotificationBubbleClass, timeout), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); } static void egg_notification_bubble_init (EggNotificationBubble *bubble) { bubble->bubble_window = NULL; } static void bubble_window_display_closed (GdkDisplay *display, gboolean was_error, EggNotificationBubble *bubble) { egg_notification_bubble_unset_bubble_window (bubble); } static void disconnect_bubble_window_display_closed (EggNotificationBubble *bubble) { g_signal_handlers_disconnect_by_func (gtk_widget_get_display (bubble->bubble_window), (gpointer) bubble_window_display_closed, bubble); } static void egg_notification_bubble_unset_bubble_window (EggNotificationBubble *bubble) { if (bubble->bubble_window) { disconnect_bubble_window_display_closed (bubble); gtk_widget_destroy (bubble->bubble_window); bubble->bubble_window = NULL; } } static void egg_notification_bubble_destroy (GtkObject *object) { EggNotificationBubble *bubble = EGG_NOTIFICATION_BUBBLE (object); g_return_if_fail (bubble != NULL); if (bubble->timeout_id) { g_source_remove (bubble->timeout_id); bubble->timeout_id = 0; } egg_notification_bubble_detach (bubble); egg_notification_bubble_unset_bubble_window (bubble); GTK_OBJECT_CLASS (parent_class)->destroy (object); } static void force_window (EggNotificationBubble *bubble) { g_return_if_fail (EGG_IS_NOTIFICATION_BUBBLE (bubble)); if (!bubble->bubble_window) { GtkWidget *vbox; bubble->bubble_window = gtk_window_new (GTK_WINDOW_POPUP); gtk_widget_add_events (bubble->bubble_window, GDK_BUTTON_PRESS_MASK); gtk_widget_set_app_paintable (bubble->bubble_window, TRUE); gtk_window_set_resizable (GTK_WINDOW (bubble->bubble_window), FALSE); gtk_widget_set_name (bubble->bubble_window, "gtk-tooltips"); gtk_container_set_border_width (GTK_CONTAINER (bubble->bubble_window), BORDER_SIZE + 5); g_signal_connect_swapped (bubble->bubble_window, "expose_event", G_CALLBACK (egg_notification_bubble_paint_window), bubble); bubble->bubble_header_label = gtk_label_new (NULL); bubble->bubble_body_label = gtk_label_new (NULL); gtk_label_set_line_wrap (GTK_LABEL (bubble->bubble_header_label), TRUE); gtk_label_set_line_wrap (GTK_LABEL (bubble->bubble_body_label), TRUE); gtk_misc_set_alignment (GTK_MISC (bubble->bubble_header_label), 0.5, 0.5); gtk_misc_set_alignment (GTK_MISC (bubble->bubble_body_label), 0.5, 0.5); gtk_widget_show (bubble->bubble_header_label); gtk_widget_show (bubble->bubble_body_label); bubble->main_hbox = gtk_hbox_new (FALSE, 10); gtk_container_add (GTK_CONTAINER (bubble->main_hbox), bubble->bubble_body_label); vbox = gtk_vbox_new (FALSE, 5); gtk_container_add (GTK_CONTAINER (vbox), bubble->bubble_header_label); gtk_container_add (GTK_CONTAINER (vbox), bubble->main_hbox); gtk_container_add (GTK_CONTAINER (bubble->bubble_window), vbox); g_signal_connect (bubble->bubble_window, "destroy", G_CALLBACK (gtk_widget_destroyed), &bubble->bubble_window); g_signal_connect_after (bubble->bubble_window, "event-after", G_CALLBACK (egg_notification_bubble_event_handler), bubble); } } void egg_notification_bubble_attach (EggNotificationBubble *bubble, GtkWidget *widget) { bubble->widget = widget; g_signal_connect_object (widget, "destroy", G_CALLBACK (g_object_unref), bubble, G_CONNECT_SWAPPED); } void egg_notification_bubble_set (EggNotificationBubble *bubble, const gchar *bubble_header_text, GtkWidget *icon, const gchar *bubble_body_text) { g_return_if_fail (EGG_IS_NOTIFICATION_BUBBLE (bubble)); g_free (bubble->bubble_header_text); g_free (bubble->bubble_body_text); if (bubble->icon) { if (bubble->active) gtk_container_remove (GTK_CONTAINER (bubble->main_hbox), bubble->icon); g_object_unref (G_OBJECT (bubble->icon)); bubble->icon = NULL; } bubble->bubble_header_text = g_strdup (bubble_header_text); bubble->bubble_body_text = g_strdup (bubble_body_text); if (icon) bubble->icon = g_object_ref (G_OBJECT (icon)); } static gint egg_notification_bubble_paint_window (EggNotificationBubble *bubble) { GtkRequisition req; gtk_widget_size_request (bubble->bubble_window, &req); gtk_paint_flat_box (bubble->bubble_window->style, bubble->bubble_window->window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, GTK_WIDGET (bubble->bubble_window), "notification", 0, 0, req.width, req.height); return FALSE; } static void subtract_rectangle (GdkRegion *region, GdkRectangle *rectangle) { GdkRegion *temp_region; temp_region = gdk_region_rectangle (rectangle); gdk_region_subtract (region, temp_region); gdk_region_destroy (temp_region); } static GdkRegion * add_bevels_to_rectangle (GdkRectangle *rectangle) { GdkRectangle temp_rect; GdkRegion *region = gdk_region_rectangle (rectangle); temp_rect.width = 5; temp_rect.height = 1; /* Top left */ temp_rect.x = rectangle->x; temp_rect.y = rectangle->y; subtract_rectangle (region, &temp_rect); temp_rect.y += 1; temp_rect.width -= 2; subtract_rectangle (region, &temp_rect); temp_rect.y += 1; temp_rect.width -= 1; subtract_rectangle (region, &temp_rect); temp_rect.y += 1; temp_rect.width -= 1; temp_rect.height = 2; subtract_rectangle (region, &temp_rect); /* Top right */ temp_rect.width = 5; temp_rect.height = 1; temp_rect.x = (rectangle->x + rectangle->width) - temp_rect.width; temp_rect.y = rectangle->y; subtract_rectangle (region, &temp_rect); temp_rect.y += 1; temp_rect.x += 2; subtract_rectangle (region, &temp_rect); temp_rect.y += 1; temp_rect.x += 1; subtract_rectangle (region, &temp_rect); temp_rect.y += 1; temp_rect.x += 1; temp_rect.height = 2; subtract_rectangle (region, &temp_rect); /* Bottom right */ temp_rect.width = 5; temp_rect.height = 1; temp_rect.x = (rectangle->x + rectangle->width) - temp_rect.width; temp_rect.y = (rectangle->y + rectangle->height) - temp_rect.height; subtract_rectangle (region, &temp_rect); temp_rect.y -= 1; temp_rect.x += 2; subtract_rectangle (region, &temp_rect); temp_rect.y -= 1; temp_rect.x += 1; subtract_rectangle (region, &temp_rect); temp_rect.y -= 1; temp_rect.x += 1; temp_rect.height = 2; subtract_rectangle (region, &temp_rect); /* Bottom left */ temp_rect.width = 5; temp_rect.height = 1; temp_rect.x = rectangle->x; temp_rect.y = rectangle->y + rectangle->height; subtract_rectangle (region, &temp_rect); temp_rect.y -= 1; temp_rect.width -= 2; subtract_rectangle (region, &temp_rect); temp_rect.y -= 1; temp_rect.width -= 1; subtract_rectangle (region, &temp_rect); temp_rect.y -= 1; temp_rect.width -= 1; temp_rect.height = 2; subtract_rectangle (region, &temp_rect); return region; } static gboolean idle_notification_expired (gpointer data) { EggNotificationBubble *bubble = data; GDK_THREADS_ENTER (); g_signal_emit (bubble, egg_notification_bubble_signals[NOTIFICATION_TIMEOUT], 0); egg_notification_bubble_hide (bubble); GDK_THREADS_LEAVE (); return FALSE; } static void draw_bubble (EggNotificationBubble *bubble, guint timeout) { GtkRequisition requisition; GtkWidget *widget; GtkStyle *style; gint x, y, w, h; GdkScreen *screen; gint monitor_num; GdkRectangle monitor; GdkPoint triangle_points[3]; char *markuptext; char *markupquoted; GdkRectangle rectangle; GdkRegion *region; GdkRegion *triangle_region; enum { ORIENT_TOP = 0, ORIENT_BOTTOM = 1 } orient; guint rectangle_border; guint triangle_offset; if (!bubble->bubble_window) force_window (bubble); gtk_widget_ensure_style (bubble->bubble_window); style = bubble->bubble_window->style; widget = bubble->widget; screen = gtk_widget_get_screen (widget); if (bubble->icon) { gtk_box_pack_start_defaults (GTK_BOX (bubble->main_hbox), bubble->icon); gtk_box_reorder_child (GTK_BOX (bubble->main_hbox), bubble->icon, 0); } markupquoted = g_markup_escape_text (bubble->bubble_header_text, -1); markuptext = g_strdup_printf ("<b>%s</b>", markupquoted); gtk_label_set_markup (GTK_LABEL (bubble->bubble_header_label), markuptext); g_free (markuptext); g_free (markupquoted); gtk_label_set_text (GTK_LABEL (bubble->bubble_body_label), bubble->bubble_body_text); gtk_window_move (GTK_WINDOW (bubble->bubble_window), 0, 2 * gdk_screen_get_height (screen)); gtk_widget_show_all (bubble->bubble_window); gtk_widget_size_request (bubble->bubble_window, &requisition); w = requisition.width; h = requisition.height; gdk_window_get_origin (widget->window, &x, &y); if (GTK_WIDGET_NO_WINDOW (widget)) { x += widget->allocation.x; y += widget->allocation.y; } orient = ORIENT_BOTTOM; triangle_offset = 20; x -= triangle_offset; monitor_num = gdk_screen_get_monitor_at_window (screen, widget->window); gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); if ((x + w) > monitor.x + monitor.width) { gint offset = (x + w) - (monitor.x + monitor.width); triangle_offset += offset; x -= offset; } else if (x < monitor.x) { gint offset = monitor.x - x; triangle_offset -= offset; x += offset; } if ((y + h + widget->allocation.height + 4) > monitor.y + monitor.height) { y -= (h - 4); orient = ORIENT_TOP; } else y = y + widget->allocation.height + 4; /* Overlap the arrow with the object slightly */ if (orient == ORIENT_BOTTOM) y -= 5; else y += 5; rectangle_border = BORDER_SIZE-2; rectangle.x = rectangle_border; rectangle.y = rectangle_border; rectangle.width = w - (rectangle_border * 2); rectangle.height = h - (rectangle_border * 2); region = add_bevels_to_rectangle (&rectangle); triangle_points[0].x = triangle_offset; triangle_points[0].y = orient == ORIENT_BOTTOM ? BORDER_SIZE : h - BORDER_SIZE; triangle_points[1].x = triangle_points[0].x + 20; triangle_points[1].y = triangle_points[0].y; triangle_points[2].x = (triangle_points[1].x + triangle_points[0].x) /2; triangle_points[2].y = orient == ORIENT_BOTTOM ? 0 : h; triangle_region = gdk_region_polygon (triangle_points, 3, GDK_WINDING_RULE); gdk_region_union (region, triangle_region); gdk_region_destroy (triangle_region); gdk_window_shape_combine_region (bubble->bubble_window->window, region, 0, 0); gtk_window_move (GTK_WINDOW (bubble->bubble_window), x, y); bubble->active = TRUE; if (bubble->timeout_id) { g_source_remove (bubble->timeout_id); bubble->timeout_id = 0; } if (timeout > 0) bubble->timeout_id = g_timeout_add (timeout, idle_notification_expired, bubble); } void egg_notification_bubble_show (EggNotificationBubble *bubble, guint timeout) { draw_bubble (bubble, timeout); } void egg_notification_bubble_hide (EggNotificationBubble *bubble) { if (bubble->bubble_window) gtk_widget_hide (bubble->bubble_window); if (bubble->timeout_id) { g_source_remove (bubble->timeout_id); bubble->timeout_id = 0; } } EggNotificationBubble* egg_notification_bubble_new (void) { return g_object_new (EGG_TYPE_NOTIFICATION_BUBBLE, NULL); } static void egg_notification_bubble_event_handler (GtkWidget *widget, GdkEvent *event, gpointer user_data) { EggNotificationBubble *bubble; bubble = EGG_NOTIFICATION_BUBBLE (user_data); switch (event->type) { case GDK_BUTTON_PRESS: g_signal_emit (bubble, egg_notification_bubble_signals[NOTIFICATION_CLICKED], 0); break; default: break; } } static void egg_notification_bubble_detach (EggNotificationBubble *bubble) { g_return_if_fail (bubble->widget); g_object_unref (bubble->widget); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/eggnotificationbubble.h�����������������������������������������������0000644�0001750�0001750�00000006671�10410766740�021764� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* EggNotificationBubble * Copyright (C) 2005 Colin Walters <walters@verbum.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __EGG_NOTIFICATION_BUBBLE_H__ #define __EGG_NOTIFICATION_BUBBLE_H__ #include <gtk/gtkwidget.h> #include <gtk/gtkwindow.h> G_BEGIN_DECLS #define EGG_TYPE_NOTIFICATION_BUBBLE (egg_notification_bubble_get_type ()) #define EGG_NOTIFICATION_BUBBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_NOTIFICATION_BUBBLE, EggNotificationBubble)) #define EGG_NOTIFICATION_BUBBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_NOTIFICATION_BUBBLE, EggNotificationBubbleClass)) #define EGG_IS_NOTIFICATION_BUBBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_NOTIFICATION_BUBBLE)) #define EGG_IS_NOTIFICATION_BUBBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_NOTIFICATION_BUBBLE)) #define EGG_NOTIFICATION_BUBBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_NOTIFICATION_BUBBLE, EggNotificationBubbleClass)) typedef struct _EggNotificationBubble EggNotificationBubble; typedef struct _EggNotificationBubbleClass EggNotificationBubbleClass; typedef struct _EggNotificationBubbleData EggNotificationBubbleData; struct _EggNotificationBubble { GtkObject parent_instance; GtkWidget *widget; guint timeout_id; char *bubble_header_text; char *bubble_body_text; GtkWidget *icon; gboolean active; GtkWidget *bubble_window; GtkWidget *main_hbox; GtkWidget *bubble_header_label; GtkWidget *bubble_body_label; }; struct _EggNotificationBubbleClass { GtkObjectClass parent_class; void (*clicked) (void); void (*timeout) (void); /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); void (*_gtk_reserved3) (void); void (*_gtk_reserved4) (void); }; GType egg_notification_bubble_get_type (void) G_GNUC_CONST; EggNotificationBubble* egg_notification_bubble_new (void); void egg_notification_bubble_attach (EggNotificationBubble *bubble, GtkWidget *widget); void egg_notification_bubble_set (EggNotificationBubble *bubble, const gchar *notification_header, GtkWidget *icon, const gchar *notification_body); void egg_notification_bubble_show (EggNotificationBubble *bubble, guint timeout); void egg_notification_bubble_hide (EggNotificationBubble *bubble); gboolean egg_notification_bubble_get_info_from_tip_window (GtkWindow *window, EggNotificationBubble **bubble, GtkWidget **current_widget); G_END_DECLS #endif /* __EGG_NOTIFICATION_BUBBLE_H__ */ �����������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-worlds-view.c������������������������������������������������������0000644�0001750�0001750�00000017162�10412343223�020277� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <gtk/gtk.h> #include <string.h> #include "gm-app.h" #include "gm-pixbuf.h" #include "gm-worlds-view.h" #include "gm-world.h" #include "gm-options.h" #include "gm-support.h" #define GM_WORLDS_VIEW_GET_PRIVATE(object)( \ G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_WORLDS_VIEW, GmWorldsViewPrivate)) static void on_gm_worlds_view_world_option_changed(GmOptions *options, gchar const *key, GmWorldsView *view); static void on_gm_worlds_view_app_world_added(GmApp *app, GmWorld *world, GmWorldsView *view); static void on_gm_worlds_view_app_world_removed(GmApp *app, GmWorld *world, GmWorldsView *view); struct _GmWorldsViewPrivate { GtkTreeModel *model; }; /* Signals enum { PROTO NUM_SIGNALS }; static guint gm_worlds_view_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmWorldsView, gm_worlds_view, GTK_TYPE_TREE_VIEW) static void gm_worlds_view_finalize(GObject *object) { GmWorldsView *obj = GM_WORLDS_VIEW(object); GtkTreeModel *model = obj->priv->model; GmWorld *list_world; GtkTreeIter iter; if (gtk_tree_model_get_iter_first(model, &iter)) { do { gtk_tree_model_get(model, &iter, GM_WORLDS_VIEW_WORLD_COLUMN, &list_world, -1); g_signal_handlers_disconnect_by_func(gm_world_options(list_world), G_CALLBACK(on_gm_worlds_view_world_option_changed), obj); } while (gtk_tree_model_iter_next(model, &iter)); } g_signal_handlers_disconnect_by_func(gm_app_instance(), G_CALLBACK(on_gm_worlds_view_app_world_added), obj); g_signal_handlers_disconnect_by_func(gm_app_instance(), G_CALLBACK(on_gm_worlds_view_app_world_removed), obj); G_OBJECT_CLASS(gm_worlds_view_parent_class)->finalize(object); } static void gm_worlds_view_class_init(GmWorldsViewClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_worlds_view_finalize; /*gm_worlds_view_signals[PROTO] = g_signal_new("proto", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldsViewClass, proto), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);*/ g_type_class_add_private(object_class, sizeof(GmWorldsViewPrivate)); } static void gm_worlds_view_init(GmWorldsView *obj) { obj->priv = GM_WORLDS_VIEW_GET_PRIVATE(obj); } static gchar * gm_worlds_view_world_text(GmWorldsView *view, GmWorld *world) { gchar *text; gchar const *player, *server; GmOptions *options = gm_world_options(world); player = gm_options_get(options, "player_name"); server = gm_options_get(options, "host"); text = g_strconcat("<b>", gm_options_get(options, "name"), _("</b>\n<small>Server: "), ((server && *server != '\0') ? server : _("<i>unspecified</i>")), _("\nPlayer: "), ((player && *player != '\0') ? player : _("<i>unspecified</i>")), "</small>", NULL); return text; } static void gm_worlds_view_populate_worlds(GmWorldsView *view) { GmApp *app = gm_app_instance(); GList *worlds = gm_app_worlds(app); GList *item; GmWorld *world; for (item = worlds; item; item = item->next) { world = (GmWorld *)(item->data); gm_worlds_view_add_world(view, world); } g_list_free(worlds); } static void gm_worlds_view_build(GmWorldsView *view) { GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkTreeView *tree_view = GTK_TREE_VIEW(view); view->priv->model = GTK_TREE_MODEL(gtk_list_store_new( GM_WORLDS_VIEW_N_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING)); gtk_tree_view_set_model(tree_view, view->priv->model); gtk_tree_selection_set_mode(gtk_tree_view_get_selection(tree_view), GTK_SELECTION_MULTIPLE); renderer = gtk_cell_renderer_pixbuf_new(); column = gtk_tree_view_column_new_with_attributes(_("Logo"), renderer, "pixbuf", GM_WORLDS_VIEW_LOGO_COLUMN, NULL); gtk_tree_view_column_set_min_width(column, 40); gtk_tree_view_append_column(tree_view, column); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Name"), renderer, "markup", GM_WORLDS_VIEW_NAME_COLUMN, NULL); gtk_tree_view_append_column(tree_view, column); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(view->priv->model), GM_WORLDS_VIEW_SORT_COLUMN, GTK_SORT_ASCENDING); gm_worlds_view_populate_worlds(view); } static gboolean gm_worlds_view_find_by_options(GmWorldsView *view, GmOptions *options, GtkTreeIter *iter, GmWorld **world) { GtkTreeModel *model = view->priv->model; GmWorld *list_world; if (gtk_tree_model_get_iter_first(model, iter)) { do { gtk_tree_model_get(model, iter, GM_WORLDS_VIEW_WORLD_COLUMN, &list_world, -1); if (options == gm_world_options(list_world)) { if (world != NULL) { *world = list_world; } return TRUE; } } while (gtk_tree_model_iter_next(model, iter)); } return FALSE; } static gboolean gm_worlds_view_find(GmWorldsView *view, GmWorld *world, GtkTreeIter *iter) { return gm_worlds_view_find_by_options(view, gm_world_options(world), iter, NULL); } /* Public */ GtkWidget * gm_worlds_view_new() { GmWorldsView *obj = GM_WORLDS_VIEW(g_object_new(GM_TYPE_WORLDS_VIEW, NULL)); gm_worlds_view_build(obj); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(obj), FALSE); g_signal_connect(gm_app_instance(), "world_added", G_CALLBACK(on_gm_worlds_view_app_world_added), obj); g_signal_connect(gm_app_instance(), "world_removed", G_CALLBACK(on_gm_worlds_view_app_world_removed), obj); return GTK_WIDGET(obj); } void gm_worlds_view_add_world(GmWorldsView *view, GmWorld *world) { GtkTreeIter iter; GdkPixbuf *pix_logo = NULL; gchar *name = gm_worlds_view_world_text(view, world); gchar const *logo = gm_options_get(gm_world_options(world), "logo"); GtkListStore *store = GTK_LIST_STORE(view->priv->model); if (logo) { pix_logo = gm_pixbuf_get_at_size(logo, 32, 32); } if (!pix_logo) { pix_logo = gm_pixbuf_get_at_size("world.svg", 32, 32); } gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, GM_WORLDS_VIEW_LOGO_COLUMN, pix_logo, GM_WORLDS_VIEW_NAME_COLUMN, name, GM_WORLDS_VIEW_WORLD_COLUMN, world, GM_WORLDS_VIEW_SORT_COLUMN, gm_world_name(world), -1); g_signal_connect(gm_world_options(world), "option_changed", G_CALLBACK(on_gm_worlds_view_world_option_changed), view); g_free(name); } GtkTreeModel * gm_worlds_view_model(GmWorldsView *view) { return view->priv->model; } /* Callbacks */ static void on_gm_worlds_view_world_option_changed(GmOptions *options, gchar const *key, GmWorldsView *view) { GtkTreeIter iter; GtkListStore *store = GTK_LIST_STORE(view->priv->model); gchar *text; gchar const *logo; GdkPixbuf *pix_logo; GmWorld *world; if (!gm_worlds_view_find_by_options(view, options, &iter, &world)) { return; } if (strcmp(key, "name") == 0 || strcmp(key, "player_name") == 0 || strcmp(key, "host") == 0) { text = gm_worlds_view_world_text(view, world); gtk_list_store_set(store, &iter, GM_WORLDS_VIEW_NAME_COLUMN, text, -1); g_free(text); } else if (strcmp(key, "logo")) { logo = gm_options_get(options, "logo"); if (logo) { pix_logo = gm_pixbuf_get_at_size(logo, 32, 32); } else { pix_logo = gm_pixbuf_get_at_size("world.svg", 32, 32); } gtk_list_store_set(store, &iter, GM_WORLDS_VIEW_LOGO_COLUMN, pix_logo, -1); } } static void on_gm_worlds_view_app_world_added(GmApp *app, GmWorld *world, GmWorldsView *view) { gm_worlds_view_add_world(view, world); } static void on_gm_worlds_view_app_world_removed(GmApp *app, GmWorld *world, GmWorldsView *view) { GtkTreeIter iter; if (gm_worlds_view_find(view, world, &iter)) { gtk_list_store_remove(GTK_LIST_STORE(view->priv->model), &iter); } } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-worlds-view.h������������������������������������������������������0000644�0001750�0001750�00000003277�10412332774�020317� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLDS_VIEW_H__ #define __GM_WORLDS_VIEW_H__ #include <gtk/gtk.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_WORLDS_VIEW (gm_worlds_view_get_type()) #define GM_WORLDS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_WORLDS_VIEW, GmWorldsView)) #define GM_WORLDS_VIEW_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_WORLDS_VIEW, GmWorldsView const)) #define GM_WORLDS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_WORLDS_VIEW, GmWorldsViewClass)) #define GM_IS_WORLDS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_WORLDS_VIEW)) #define GM_IS_WORLDS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_WORLDS_VIEW)) #define GM_WORLDS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_WORLDS_VIEW, GmWorldsViewClass)) enum { GM_WORLDS_VIEW_LOGO_COLUMN, GM_WORLDS_VIEW_NAME_COLUMN, GM_WORLDS_VIEW_WORLD_COLUMN, GM_WORLDS_VIEW_SORT_COLUMN, GM_WORLDS_VIEW_N_COLUMNS }; /* Private structure type */ typedef struct _GmWorldsViewPrivate GmWorldsViewPrivate; /* * Main object structure */ typedef struct _GmWorldsView GmWorldsView; struct _GmWorldsView { GtkTreeView parent; /*< private > */ GmWorldsViewPrivate *priv; }; /* * Class definition */ typedef struct _GmWorldsViewClass GmWorldsViewClass; struct _GmWorldsViewClass { GtkTreeViewClass parent_class; /* Signals void (* proto) (GmWorldsView *obj); */ }; GType gm_worlds_view_get_type(void) G_GNUC_CONST; GtkWidget *gm_worlds_view_new(); void gm_worlds_view_add_world(GmWorldsView *view, GmWorld *world); GtkTreeModel *gm_worlds_view_model(GmWorldsView *view); G_END_DECLS #endif /* __GM_WORLDS_VIEW_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-source-style-scheme.c����������������������������������������������0000644�0001750�0001750�00000020452�10413456744�021727� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <string.h> #include "gm-source-style-scheme.h" #include "gm-color-table.h" #include "gm-app.h" #include "gm-support.h" #include "gm-debug.h" #define GM_TYPE_SOURCE_STYLE_SCHEME (gm_source_style_scheme_get_type ()) #define GM_SOURCE_STYLE_SCHEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GM_TYPE_SOURCE_STYLE_SCHEME, GmSourceStyleScheme)) #define GM_SOURCE_STYLE_SCHEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GM_TYPE_SOURCE_STYLE_SCHEME, GmSourceStyleSchemeClass)) #define GM_IS_SOURCE_STYLE_SCHEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GM_TYPE_SOURCE_STYLE_SCHEME)) #define GM_IS_SOURCE_STYLE_SCHEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_SOURCE_STYLE_SCHEME)) #define GM_SOURCE_STYLE_SCHEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GM_TYPE_SOURCE_STYLE_SCHEME, GmSourceStyleSchemeClass)) typedef struct _GmSourceStyleScheme GmSourceStyleScheme; typedef struct _GmSourceStyleSchemeClass GmSourceStyleSchemeClass; struct _GmSourceStyleScheme { GObject parent_instance; GHashTable *mapping; GHashTable *styles; }; struct _GmSourceStyleSchemeClass { GObjectClass parent_class; }; static GObjectClass *parent_class = NULL; static GType gm_source_style_scheme_get_type (void); static void gm_source_style_scheme_class_init(GmSourceStyleSchemeClass *klass); static void gm_source_style_scheme_IFace_init(GtkSourceStyleSchemeClass *iface); static void gm_source_style_scheme_init(GmSourceStyleScheme *scheme); static void gm_source_style_scheme_finalize(GObject *object); static GtkSourceTagStyle *gm_source_style_scheme_get_tag_style( GtkSourceStyleScheme *scheme, const gchar *style_name); static const gchar *gm_source_style_scheme_get_name(GtkSourceStyleScheme *scheme); static GSList *gm_source_style_scheme_get_style_names(GtkSourceStyleScheme *scheme); static GType gm_source_style_scheme_get_type (void) { static GType type = 0; if (!type) { static const GTypeInfo info = { sizeof (GmSourceStyleSchemeClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) gm_source_style_scheme_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GmSourceStyleScheme), 0, /* n_preallocs */ (GInstanceInitFunc) gm_source_style_scheme_init, }; static const GInterfaceInfo iface_info = { (GInterfaceInitFunc) gm_source_style_scheme_IFace_init, /* interface_init */ NULL, /* interface_finalize */ NULL /* interface_data */ }; type = g_type_register_static (G_TYPE_OBJECT, "GmSourceStyleScheme", &info, 0); g_type_add_interface_static (type, GTK_TYPE_SOURCE_STYLE_SCHEME, &iface_info); } return type; } static void gm_source_style_scheme_class_init(GmSourceStyleSchemeClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS(klass); parent_class = g_type_class_peek_parent(klass); gobject_class->finalize = gm_source_style_scheme_finalize; } static void gm_source_style_scheme_IFace_init(GtkSourceStyleSchemeClass *iface) { iface->get_tag_style = gm_source_style_scheme_get_tag_style; iface->get_name = gm_source_style_scheme_get_name; iface->get_style_names = gm_source_style_scheme_get_style_names; } static GtkSourceTagStyle * new_tag_style(gchar const * foreground, gchar const * background, gboolean bold, gboolean italic) { GtkSourceTagStyle *ts; ts = gtk_source_tag_style_new(); gdk_color_parse(foreground, &ts->foreground); ts->mask |= GTK_SOURCE_TAG_STYLE_USE_FOREGROUND; if (background != NULL) { gdk_color_parse (background, &ts->background); ts->mask |= GTK_SOURCE_TAG_STYLE_USE_BACKGROUND; } ts->italic = italic; ts->bold = bold; ts->is_default = TRUE; return ts; } typedef struct _GmSourceStyleEntry { gchar const *name; gchar const *color_name; gboolean bold; gboolean italic; } GmSourceStyleEntry; static GmSourceStyleEntry entries[] = { {"Base-N Integer", "fg_purple_h"}, {"Character", "fg_purple_h"}, {"Comment", "fg_blue_h"}, {"Data Type", "fg_cyan", TRUE}, {"Function", "fg_green"}, {"Decimal", "fg_purple_h"}, {"Floating Point", "fg_purple_h"}, {"Keyword", "fg_red", TRUE}, {"String", "fg_purple_h"}, {NULL, NULL} }; static GmKeyValuePair mapping[] = { {"fg_purple_h", "Object@32@Number String"}, {"fg_cyan", "Builtin@32@Variables Types S-Ref Error"}, {"fg_green", "Builtin@32@Functions"}, {"fg_blue_h", "Line@32@Comment"}, {"fg_red", "Keywords"}, {NULL, NULL} }; static void gm_source_style_scheme_init_mapping(GmSourceStyleScheme *scheme) { GmKeyValuePair *entry; scheme->mapping = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_strfreev); for (entry = mapping; entry->key; ++entry) { g_hash_table_insert(scheme->mapping, g_strdup(entry->key), g_strsplit(entry->value, " ", 0)); } } static void gm_source_style_scheme_init(GmSourceStyleScheme *scheme) { GtkSourceTagStyle *ts; GmColorTable *table = gm_app_color_table(gm_app_instance()); GmSourceStyleEntry *entry; scheme->styles = g_hash_table_new_full((GHashFunc)g_str_hash, (GEqualFunc)g_str_equal, (GDestroyNotify)g_free, (GDestroyNotify)gtk_source_tag_style_free); for (entry = entries; entry->name; ++entry) { ts = new_tag_style(gm_color_table_get_hex(table, entry->color_name), NULL, entry->bold, entry->italic); g_hash_table_insert(scheme->styles, g_strdup(entry->name), ts); } gm_source_style_scheme_init_mapping(scheme); } static void gm_source_style_scheme_finalize(GObject *object) { GmSourceStyleScheme *scheme = GM_SOURCE_STYLE_SCHEME(object); g_hash_table_destroy(scheme->styles); g_hash_table_destroy(scheme->mapping); G_OBJECT_CLASS(parent_class)->finalize (object); } static GtkSourceTagStyle * gm_source_style_scheme_get_tag_style(GtkSourceStyleScheme *scheme, const gchar *style_name) { GmSourceStyleScheme *ds; const gpointer *style; g_return_val_if_fail(GM_IS_SOURCE_STYLE_SCHEME(scheme), NULL); g_return_val_if_fail(style_name != NULL, NULL); ds = GM_SOURCE_STYLE_SCHEME(scheme); style = g_hash_table_lookup(ds->styles, style_name); return (style != NULL) ? gtk_source_tag_style_copy((GtkSourceTagStyle *)style) : NULL; } static const gchar * gm_source_style_scheme_get_name(GtkSourceStyleScheme *scheme) { g_return_val_if_fail(GTK_IS_SOURCE_STYLE_SCHEME(scheme), NULL); return _("Gnoemoe"); } static void add_style_name(gpointer key, gpointer value, gpointer user_data) { GSList **l = user_data; *l = g_slist_append(*l, g_strdup(key)); } static GSList * gm_source_style_scheme_get_style_names(GtkSourceStyleScheme *scheme) { GmSourceStyleScheme *ds; GSList *l = NULL; g_return_val_if_fail(GTK_IS_SOURCE_STYLE_SCHEME(scheme), NULL); ds = GM_SOURCE_STYLE_SCHEME(scheme); g_hash_table_foreach(ds->styles, add_style_name, &l); return l; } /* Default style scheme */ static GtkSourceStyleScheme *gm_style_scheme = NULL; static void on_gm_source_style_scheme_color_changed(GmColorTable *table, gchar const *color) { gchar **ids; gchar const *hex = gm_color_table_get_hex(table, color); GmSourceStyleEntry *entry; GtkSourceTagStyle *style; for (entry = entries; entry->name; ++entry) { if (strcmp(entry->color_name, color) == 0) { style = g_hash_table_lookup( GM_SOURCE_STYLE_SCHEME(gm_style_scheme)->styles, entry->name); if (style != NULL) { gdk_color_parse(hex, &(style->foreground)); } } } ids = g_hash_table_lookup(GM_SOURCE_STYLE_SCHEME(gm_style_scheme)->mapping, color); if (ids) { for (; *ids; ++ids) { g_signal_emit_by_name(gm_style_scheme, "style_changed", *ids); } } } void gm_source_style_weak_destroy(gpointer data, GObject *object) { g_signal_handlers_disconnect_by_func(gm_app_color_table(gm_app_instance()), on_gm_source_style_scheme_color_changed, NULL); gm_style_scheme = NULL; } GtkSourceStyleScheme * gm_source_style_scheme_get_default(void) { if (gm_style_scheme == NULL) { gm_style_scheme = g_object_new(GM_TYPE_SOURCE_STYLE_SCHEME, NULL); g_object_weak_ref(G_OBJECT(gm_style_scheme), gm_source_style_weak_destroy, NULL); g_signal_connect(gm_app_color_table(gm_app_instance()), "color-changed", G_CALLBACK(on_gm_source_style_scheme_color_changed), NULL); } else { g_object_ref(gm_style_scheme); } return gm_style_scheme; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/widgets/gm-source-style-scheme.h����������������������������������������������0000644�0001750�0001750�00000000437�10413346377�021735� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_SOURCE_STYLE_SCHEME_H__ #define __GM_SOURCE_STYLE_SCHEME_H__ #include <glib-object.h> #include <gtksourceview/gtksourcestylescheme.h> /* Default style scheme */ GtkSourceStyleScheme *gm_source_style_scheme_get_default(void); #endif /* __GM_SOURCE_STYLE_SCHEME_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/Makefile.am�������������������������������������������������������������������0000644�0001750�0001750�00000003104�10452305647�015641� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## Process this file with automake to produce Makefile.in if HAS_PARSER SUBDIRS = parser endif CLEANFILES = INCLUDES = \ -I$(srcdir) \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ \ @NOTIFY_CFLAGS@ \ @RUBY_CFLAGS@ bin_PROGRAMS = gnoemoe BUILT_SOURCES = gm-marshal.c gm-marshal.h gnoemoe_SOURCES = include widgets/Makefile.include include dialogs/Makefile.include include mcp/Makefile.include include mcp/Makefile.classes gnoemoe_SOURCES += $(BUILT_SOURCES) \ gm-ansi.h gm-ui.h \ gm-app.c gm-app.h \ gm-options.c gm-options.h \ gm-color-table.c gm-color-table.h \ gm-net.c gm-net.h \ gm-triggers.c gm-triggers.h \ gm-world.c gm-world.h \ gm-string.c gm-string.h \ gm-support.c gm-support.h \ gm-editor.c gm-editor.h \ gm-pixbuf.c gm-pixbuf.h \ gm-debug.c gm-debug.h \ list.c list.h EXTRA_DIST = gm-marshal.list \ widgets/Makefile.include \ dialogs/Makefile.include \ mcp/Makefile.include \ mcp/Makefile.classes gnoemoe_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) @RUBY_LIBS@ @NOTIFY_LIBS@ if HAS_PARSER gnoemoe_LDADD += parser/libparser.la endif if HAS_RUBY gnoemoe_SOURCES += gm-scripts.c gm-scripts.h endif gm-marshal.h: gm-marshal.list $(GLIB_GENMARSHAL) $(GLIB_GENMARSHAL) $< --header --prefix=gm_marshal > $@ gm-marshal.c: gm-marshal.list $(GLIB_GENMARSHAL) echo "#include \"gm-marshal.h\"" > $@ && \ $(GLIB_GENMARSHAL) $< --body --prefix=gm_marshal >> $@ CLEANFILES += $(BUILT_SOURCES) dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) AM_CFLAGS = -Werror -Wall -Wsign-compare ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/Makefile.in�������������������������������������������������������������������0000644�0001750�0001750�00000370035�10517752444�015667� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = gnoemoe$(EXEEXT) DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/dialogs/Makefile.include \ $(srcdir)/mcp/Makefile.classes $(srcdir)/mcp/Makefile.include \ $(srcdir)/widgets/Makefile.include @HAS_PARSER_TRUE@am__append_1 = parser/libparser.la @HAS_RUBY_TRUE@am__append_2 = gm-scripts.c gm-scripts.h subdir = gnoemoe ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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__gnoemoe_SOURCES_DIST = $(widgetsdir)/gm-app-view.c \ $(widgetsdir)/gm-app-view.h $(widgetsdir)/gm-commands.c \ $(widgetsdir)/gm-commands.h $(widgetsdir)/gm-world-view.c \ $(widgetsdir)/gm-world-view.h \ $(widgetsdir)/gm-world-text-view.c \ $(widgetsdir)/gm-world-text-view.h \ $(widgetsdir)/gm-world-input-view.c \ $(widgetsdir)/gm-world-input-view.h \ $(widgetsdir)/gm-world-tab.c $(widgetsdir)/gm-world-tab.h \ $(widgetsdir)/gm-text-scroller.c \ $(widgetsdir)/gm-text-scroller.h \ $(widgetsdir)/gm-editor-view.c $(widgetsdir)/gm-editor-view.h \ $(widgetsdir)/gm-searchable.c $(widgetsdir)/gm-searchable.h \ $(widgetsdir)/gm-embedded-view.c \ $(widgetsdir)/gm-embedded-view.h \ $(widgetsdir)/gm-external-view.c \ $(widgetsdir)/gm-external-view.h $(widgetsdir)/gm-log-view.c \ $(widgetsdir)/gm-log-view.h $(widgetsdir)/gm-tray.c \ $(widgetsdir)/gm-tray.h $(widgetsdir)/eggtrayicon.c \ $(widgetsdir)/eggtrayicon.h \ $(widgetsdir)/eggnotificationbubble.c \ $(widgetsdir)/eggnotificationbubble.h \ $(widgetsdir)/gm-worlds-view.c $(widgetsdir)/gm-worlds-view.h \ $(widgetsdir)/gm-source-style-scheme.c \ $(widgetsdir)/gm-source-style-scheme.h \ $(dialogsdir)/gm-world-info-dialog.c \ $(dialogsdir)/gm-world-info-dialog.h \ $(dialogsdir)/gm-world-logs-dialog.c \ $(dialogsdir)/gm-world-logs-dialog.h \ $(dialogsdir)/gm-world-paste-dialog.c \ $(dialogsdir)/gm-world-paste-dialog.h \ $(dialogsdir)/gm-world-properties-dialog.c \ $(dialogsdir)/gm-world-properties-dialog.h \ $(dialogsdir)/gm-worlds-list-dialog.c \ $(dialogsdir)/gm-worlds-list-dialog.h \ $(dialogsdir)/gm-scripts-dialog.c \ $(dialogsdir)/gm-scripts-dialog.h \ $(dialogsdir)/gm-preferences-dialog.c \ $(dialogsdir)/gm-preferences-dialog.h \ $(dialogsdir)/gm-triggers-dialog.c \ $(dialogsdir)/gm-triggers-dialog.h \ $(dialogsdir)/gm-open-world-dialog.c \ $(dialogsdir)/gm-open-world-dialog.h \ $(mcpdir)/gm-mcp-classes.c $(mcpdir)/gm-mcp-classes.h \ $(mcpdir)/gm-mcp.c $(mcpdir)/gm-mcp.h \ $(mcpdir)/gm-mcp-session.c $(mcpdir)/gm-mcp-session.h \ $(mcpdir)/gm-mcp-package.c $(mcpdir)/gm-mcp-package.h \ $(mcpdir)/gm-iuserlist.c $(mcpdir)/gm-iuserlist.h \ $(mcpdir)/gm-mcp-userlist-view.c \ $(mcpdir)/gm-mcp-userlist-view.h \ $(mcpdir)/gm-cell-renderer-text.c \ $(mcpdir)/gm-cell-renderer-text.h $(mcpdir)/gm-mcp-negotiate.c \ $(mcpdir)/gm-mcp-negotiate.h $(mcpdir)/gm-mcp-awns-status.c \ $(mcpdir)/gm-mcp-awns-status.h $(mcpdir)/gm-mcp-vmoo-client.c \ $(mcpdir)/gm-mcp-vmoo-client.h $(mcpdir)/gm-mcp-awns-ping.c \ $(mcpdir)/gm-mcp-awns-ping.h \ $(mcpdir)/gm-mcp-icecrew-playerdb.c \ $(mcpdir)/gm-mcp-icecrew-playerdb.h \ $(mcpdir)/gm-mcp-icecrew-userlist.c \ $(mcpdir)/gm-mcp-icecrew-userlist.h \ $(mcpdir)/gm-mcp-icecrew-mcpreset.c \ $(mcpdir)/gm-mcp-icecrew-mcpreset.h \ $(mcpdir)/gm-mcp-icecrew-serverinfo.c \ $(mcpdir)/gm-mcp-icecrew-serverinfo.h \ $(mcpdir)/gm-mcp-vmoo-userlist.c \ $(mcpdir)/gm-mcp-vmoo-userlist.h \ $(mcpdir)/gm-mcp-mud-moo-simpleedit.c \ $(mcpdir)/gm-mcp-mud-moo-simpleedit.h gm-marshal.c \ gm-marshal.h gm-ansi.h gm-ui.h gm-app.c gm-app.h gm-options.c \ gm-options.h gm-color-table.c gm-color-table.h gm-net.c \ gm-net.h gm-triggers.c gm-triggers.h gm-world.c gm-world.h \ gm-string.c gm-string.h gm-support.c gm-support.h gm-editor.c \ gm-editor.h gm-pixbuf.c gm-pixbuf.h gm-debug.c gm-debug.h \ list.c list.h gm-scripts.c gm-scripts.h am__objects_1 = gm-marshal.$(OBJEXT) @HAS_RUBY_TRUE@am__objects_2 = gm-scripts.$(OBJEXT) am_gnoemoe_OBJECTS = gm-app-view.$(OBJEXT) gm-commands.$(OBJEXT) \ gm-world-view.$(OBJEXT) gm-world-text-view.$(OBJEXT) \ gm-world-input-view.$(OBJEXT) gm-world-tab.$(OBJEXT) \ gm-text-scroller.$(OBJEXT) gm-editor-view.$(OBJEXT) \ gm-searchable.$(OBJEXT) gm-embedded-view.$(OBJEXT) \ gm-external-view.$(OBJEXT) gm-log-view.$(OBJEXT) \ gm-tray.$(OBJEXT) eggtrayicon.$(OBJEXT) \ eggnotificationbubble.$(OBJEXT) gm-worlds-view.$(OBJEXT) \ gm-source-style-scheme.$(OBJEXT) \ gm-world-info-dialog.$(OBJEXT) gm-world-logs-dialog.$(OBJEXT) \ gm-world-paste-dialog.$(OBJEXT) \ gm-world-properties-dialog.$(OBJEXT) \ gm-worlds-list-dialog.$(OBJEXT) gm-scripts-dialog.$(OBJEXT) \ gm-preferences-dialog.$(OBJEXT) gm-triggers-dialog.$(OBJEXT) \ gm-open-world-dialog.$(OBJEXT) gm-mcp-classes.$(OBJEXT) \ gm-mcp.$(OBJEXT) gm-mcp-session.$(OBJEXT) \ gm-mcp-package.$(OBJEXT) gm-iuserlist.$(OBJEXT) \ gm-mcp-userlist-view.$(OBJEXT) gm-cell-renderer-text.$(OBJEXT) \ gm-mcp-negotiate.$(OBJEXT) gm-mcp-awns-status.$(OBJEXT) \ gm-mcp-vmoo-client.$(OBJEXT) gm-mcp-awns-ping.$(OBJEXT) \ gm-mcp-icecrew-playerdb.$(OBJEXT) \ gm-mcp-icecrew-userlist.$(OBJEXT) \ gm-mcp-icecrew-mcpreset.$(OBJEXT) \ gm-mcp-icecrew-serverinfo.$(OBJEXT) \ gm-mcp-vmoo-userlist.$(OBJEXT) \ gm-mcp-mud-moo-simpleedit.$(OBJEXT) $(am__objects_1) \ gm-app.$(OBJEXT) gm-options.$(OBJEXT) gm-color-table.$(OBJEXT) \ gm-net.$(OBJEXT) gm-triggers.$(OBJEXT) gm-world.$(OBJEXT) \ gm-string.$(OBJEXT) gm-support.$(OBJEXT) gm-editor.$(OBJEXT) \ gm-pixbuf.$(OBJEXT) gm-debug.$(OBJEXT) list.$(OBJEXT) \ $(am__objects_2) gnoemoe_OBJECTS = $(am_gnoemoe_OBJECTS) am__DEPENDENCIES_1 = @HAS_PARSER_TRUE@am__DEPENDENCIES_2 = parser/libparser.la gnoemoe_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) 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 --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(gnoemoe_SOURCES) DIST_SOURCES = $(am__gnoemoe_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = parser DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ @HAS_PARSER_TRUE@SUBDIRS = parser CLEANFILES = $(BUILT_SOURCES) INCLUDES = \ -I$(srcdir) \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ \ @NOTIFY_CFLAGS@ \ @RUBY_CFLAGS@ BUILT_SOURCES = gm-marshal.c gm-marshal.h gnoemoe_SOURCES = $(widgetsdir)/gm-app-view.c \ $(widgetsdir)/gm-app-view.h $(widgetsdir)/gm-commands.c \ $(widgetsdir)/gm-commands.h $(widgetsdir)/gm-world-view.c \ $(widgetsdir)/gm-world-view.h \ $(widgetsdir)/gm-world-text-view.c \ $(widgetsdir)/gm-world-text-view.h \ $(widgetsdir)/gm-world-input-view.c \ $(widgetsdir)/gm-world-input-view.h \ $(widgetsdir)/gm-world-tab.c $(widgetsdir)/gm-world-tab.h \ $(widgetsdir)/gm-text-scroller.c \ $(widgetsdir)/gm-text-scroller.h \ $(widgetsdir)/gm-editor-view.c $(widgetsdir)/gm-editor-view.h \ $(widgetsdir)/gm-searchable.c $(widgetsdir)/gm-searchable.h \ $(widgetsdir)/gm-embedded-view.c \ $(widgetsdir)/gm-embedded-view.h \ $(widgetsdir)/gm-external-view.c \ $(widgetsdir)/gm-external-view.h $(widgetsdir)/gm-log-view.c \ $(widgetsdir)/gm-log-view.h $(widgetsdir)/gm-tray.c \ $(widgetsdir)/gm-tray.h $(widgetsdir)/eggtrayicon.c \ $(widgetsdir)/eggtrayicon.h \ $(widgetsdir)/eggnotificationbubble.c \ $(widgetsdir)/eggnotificationbubble.h \ $(widgetsdir)/gm-worlds-view.c $(widgetsdir)/gm-worlds-view.h \ $(widgetsdir)/gm-source-style-scheme.c \ $(widgetsdir)/gm-source-style-scheme.h \ $(dialogsdir)/gm-world-info-dialog.c \ $(dialogsdir)/gm-world-info-dialog.h \ $(dialogsdir)/gm-world-logs-dialog.c \ $(dialogsdir)/gm-world-logs-dialog.h \ $(dialogsdir)/gm-world-paste-dialog.c \ $(dialogsdir)/gm-world-paste-dialog.h \ $(dialogsdir)/gm-world-properties-dialog.c \ $(dialogsdir)/gm-world-properties-dialog.h \ $(dialogsdir)/gm-worlds-list-dialog.c \ $(dialogsdir)/gm-worlds-list-dialog.h \ $(dialogsdir)/gm-scripts-dialog.c \ $(dialogsdir)/gm-scripts-dialog.h \ $(dialogsdir)/gm-preferences-dialog.c \ $(dialogsdir)/gm-preferences-dialog.h \ $(dialogsdir)/gm-triggers-dialog.c \ $(dialogsdir)/gm-triggers-dialog.h \ $(dialogsdir)/gm-open-world-dialog.c \ $(dialogsdir)/gm-open-world-dialog.h \ $(mcpdir)/gm-mcp-classes.c $(mcpdir)/gm-mcp-classes.h \ $(mcpdir)/gm-mcp.c $(mcpdir)/gm-mcp.h \ $(mcpdir)/gm-mcp-session.c $(mcpdir)/gm-mcp-session.h \ $(mcpdir)/gm-mcp-package.c $(mcpdir)/gm-mcp-package.h \ $(mcpdir)/gm-iuserlist.c $(mcpdir)/gm-iuserlist.h \ $(mcpdir)/gm-mcp-userlist-view.c \ $(mcpdir)/gm-mcp-userlist-view.h \ $(mcpdir)/gm-cell-renderer-text.c \ $(mcpdir)/gm-cell-renderer-text.h $(mcpdir)/gm-mcp-negotiate.c \ $(mcpdir)/gm-mcp-negotiate.h $(mcpdir)/gm-mcp-awns-status.c \ $(mcpdir)/gm-mcp-awns-status.h $(mcpdir)/gm-mcp-vmoo-client.c \ $(mcpdir)/gm-mcp-vmoo-client.h $(mcpdir)/gm-mcp-awns-ping.c \ $(mcpdir)/gm-mcp-awns-ping.h \ $(mcpdir)/gm-mcp-icecrew-playerdb.c \ $(mcpdir)/gm-mcp-icecrew-playerdb.h \ $(mcpdir)/gm-mcp-icecrew-userlist.c \ $(mcpdir)/gm-mcp-icecrew-userlist.h \ $(mcpdir)/gm-mcp-icecrew-mcpreset.c \ $(mcpdir)/gm-mcp-icecrew-mcpreset.h \ $(mcpdir)/gm-mcp-icecrew-serverinfo.c \ $(mcpdir)/gm-mcp-icecrew-serverinfo.h \ $(mcpdir)/gm-mcp-vmoo-userlist.c \ $(mcpdir)/gm-mcp-vmoo-userlist.h \ $(mcpdir)/gm-mcp-mud-moo-simpleedit.c \ $(mcpdir)/gm-mcp-mud-moo-simpleedit.h $(BUILT_SOURCES) \ gm-ansi.h gm-ui.h gm-app.c gm-app.h gm-options.c gm-options.h \ gm-color-table.c gm-color-table.h gm-net.c gm-net.h \ gm-triggers.c gm-triggers.h gm-world.c gm-world.h gm-string.c \ gm-string.h gm-support.c gm-support.h gm-editor.c gm-editor.h \ gm-pixbuf.c gm-pixbuf.h gm-debug.c gm-debug.h list.c list.h \ $(am__append_2) widgetsdir = widgets dialogsdir = dialogs mcpdir = mcp EXTRA_DIST = gm-marshal.list \ widgets/Makefile.include \ dialogs/Makefile.include \ mcp/Makefile.include \ mcp/Makefile.classes gnoemoe_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) @RUBY_LIBS@ @NOTIFY_LIBS@ \ $(am__append_1) AM_CFLAGS = -Werror -Wall -Wsign-compare all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/widgets/Makefile.include $(srcdir)/dialogs/Makefile.include $(srcdir)/mcp/Makefile.include $(srcdir)/mcp/Makefile.classes $(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 gnoemoe/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gnoemoe/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(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 gnoemoe$(EXEEXT): $(gnoemoe_OBJECTS) $(gnoemoe_DEPENDENCIES) @rm -f gnoemoe$(EXEEXT) $(LINK) $(gnoemoe_LDFLAGS) $(gnoemoe_OBJECTS) $(gnoemoe_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eggnotificationbubble.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eggtrayicon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-app-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-app.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-cell-renderer-text.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-color-table.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-commands.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-debug.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-editor-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-editor.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-embedded-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-external-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-iuserlist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-log-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-marshal.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-awns-ping.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-awns-status.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-classes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-icecrew-mcpreset.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-icecrew-playerdb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-icecrew-serverinfo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-icecrew-userlist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-negotiate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-package.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-session.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-userlist-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-vmoo-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp-vmoo-userlist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-mcp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-net.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-open-world-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-pixbuf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-preferences-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-scripts-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-scripts.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-searchable.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-source-style-scheme.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-string.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-text-scroller.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-tray.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-triggers-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-triggers.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-info-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-input-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-logs-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-paste-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-properties-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-tab.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-text-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-world.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-worlds-list-dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-worlds-view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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 $@ $< gm-app-view.o: $(widgetsdir)/gm-app-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-app-view.o -MD -MP -MF "$(DEPDIR)/gm-app-view.Tpo" -c -o gm-app-view.o `test -f '$(widgetsdir)/gm-app-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-app-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-app-view.Tpo" "$(DEPDIR)/gm-app-view.Po"; else rm -f "$(DEPDIR)/gm-app-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-app-view.c' object='gm-app-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-app-view.o `test -f '$(widgetsdir)/gm-app-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-app-view.c gm-app-view.obj: $(widgetsdir)/gm-app-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-app-view.obj -MD -MP -MF "$(DEPDIR)/gm-app-view.Tpo" -c -o gm-app-view.obj `if test -f '$(widgetsdir)/gm-app-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-app-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-app-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-app-view.Tpo" "$(DEPDIR)/gm-app-view.Po"; else rm -f "$(DEPDIR)/gm-app-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-app-view.c' object='gm-app-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-app-view.obj `if test -f '$(widgetsdir)/gm-app-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-app-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-app-view.c'; fi` gm-commands.o: $(widgetsdir)/gm-commands.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-commands.o -MD -MP -MF "$(DEPDIR)/gm-commands.Tpo" -c -o gm-commands.o `test -f '$(widgetsdir)/gm-commands.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-commands.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-commands.Tpo" "$(DEPDIR)/gm-commands.Po"; else rm -f "$(DEPDIR)/gm-commands.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-commands.c' object='gm-commands.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-commands.o `test -f '$(widgetsdir)/gm-commands.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-commands.c gm-commands.obj: $(widgetsdir)/gm-commands.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-commands.obj -MD -MP -MF "$(DEPDIR)/gm-commands.Tpo" -c -o gm-commands.obj `if test -f '$(widgetsdir)/gm-commands.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-commands.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-commands.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-commands.Tpo" "$(DEPDIR)/gm-commands.Po"; else rm -f "$(DEPDIR)/gm-commands.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-commands.c' object='gm-commands.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-commands.obj `if test -f '$(widgetsdir)/gm-commands.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-commands.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-commands.c'; fi` gm-world-view.o: $(widgetsdir)/gm-world-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-view.o -MD -MP -MF "$(DEPDIR)/gm-world-view.Tpo" -c -o gm-world-view.o `test -f '$(widgetsdir)/gm-world-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-view.Tpo" "$(DEPDIR)/gm-world-view.Po"; else rm -f "$(DEPDIR)/gm-world-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-view.c' object='gm-world-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-view.o `test -f '$(widgetsdir)/gm-world-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-view.c gm-world-view.obj: $(widgetsdir)/gm-world-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-view.obj -MD -MP -MF "$(DEPDIR)/gm-world-view.Tpo" -c -o gm-world-view.obj `if test -f '$(widgetsdir)/gm-world-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-view.Tpo" "$(DEPDIR)/gm-world-view.Po"; else rm -f "$(DEPDIR)/gm-world-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-view.c' object='gm-world-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-view.obj `if test -f '$(widgetsdir)/gm-world-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-view.c'; fi` gm-world-text-view.o: $(widgetsdir)/gm-world-text-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-text-view.o -MD -MP -MF "$(DEPDIR)/gm-world-text-view.Tpo" -c -o gm-world-text-view.o `test -f '$(widgetsdir)/gm-world-text-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-text-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-text-view.Tpo" "$(DEPDIR)/gm-world-text-view.Po"; else rm -f "$(DEPDIR)/gm-world-text-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-text-view.c' object='gm-world-text-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-text-view.o `test -f '$(widgetsdir)/gm-world-text-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-text-view.c gm-world-text-view.obj: $(widgetsdir)/gm-world-text-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-text-view.obj -MD -MP -MF "$(DEPDIR)/gm-world-text-view.Tpo" -c -o gm-world-text-view.obj `if test -f '$(widgetsdir)/gm-world-text-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-text-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-text-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-text-view.Tpo" "$(DEPDIR)/gm-world-text-view.Po"; else rm -f "$(DEPDIR)/gm-world-text-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-text-view.c' object='gm-world-text-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-text-view.obj `if test -f '$(widgetsdir)/gm-world-text-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-text-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-text-view.c'; fi` gm-world-input-view.o: $(widgetsdir)/gm-world-input-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-input-view.o -MD -MP -MF "$(DEPDIR)/gm-world-input-view.Tpo" -c -o gm-world-input-view.o `test -f '$(widgetsdir)/gm-world-input-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-input-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-input-view.Tpo" "$(DEPDIR)/gm-world-input-view.Po"; else rm -f "$(DEPDIR)/gm-world-input-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-input-view.c' object='gm-world-input-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-input-view.o `test -f '$(widgetsdir)/gm-world-input-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-input-view.c gm-world-input-view.obj: $(widgetsdir)/gm-world-input-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-input-view.obj -MD -MP -MF "$(DEPDIR)/gm-world-input-view.Tpo" -c -o gm-world-input-view.obj `if test -f '$(widgetsdir)/gm-world-input-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-input-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-input-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-input-view.Tpo" "$(DEPDIR)/gm-world-input-view.Po"; else rm -f "$(DEPDIR)/gm-world-input-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-input-view.c' object='gm-world-input-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-input-view.obj `if test -f '$(widgetsdir)/gm-world-input-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-input-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-input-view.c'; fi` gm-world-tab.o: $(widgetsdir)/gm-world-tab.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-tab.o -MD -MP -MF "$(DEPDIR)/gm-world-tab.Tpo" -c -o gm-world-tab.o `test -f '$(widgetsdir)/gm-world-tab.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-tab.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-tab.Tpo" "$(DEPDIR)/gm-world-tab.Po"; else rm -f "$(DEPDIR)/gm-world-tab.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-tab.c' object='gm-world-tab.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-tab.o `test -f '$(widgetsdir)/gm-world-tab.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-world-tab.c gm-world-tab.obj: $(widgetsdir)/gm-world-tab.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-tab.obj -MD -MP -MF "$(DEPDIR)/gm-world-tab.Tpo" -c -o gm-world-tab.obj `if test -f '$(widgetsdir)/gm-world-tab.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-tab.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-tab.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-tab.Tpo" "$(DEPDIR)/gm-world-tab.Po"; else rm -f "$(DEPDIR)/gm-world-tab.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-world-tab.c' object='gm-world-tab.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-tab.obj `if test -f '$(widgetsdir)/gm-world-tab.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-world-tab.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-world-tab.c'; fi` gm-text-scroller.o: $(widgetsdir)/gm-text-scroller.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-text-scroller.o -MD -MP -MF "$(DEPDIR)/gm-text-scroller.Tpo" -c -o gm-text-scroller.o `test -f '$(widgetsdir)/gm-text-scroller.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-text-scroller.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-text-scroller.Tpo" "$(DEPDIR)/gm-text-scroller.Po"; else rm -f "$(DEPDIR)/gm-text-scroller.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-text-scroller.c' object='gm-text-scroller.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-text-scroller.o `test -f '$(widgetsdir)/gm-text-scroller.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-text-scroller.c gm-text-scroller.obj: $(widgetsdir)/gm-text-scroller.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-text-scroller.obj -MD -MP -MF "$(DEPDIR)/gm-text-scroller.Tpo" -c -o gm-text-scroller.obj `if test -f '$(widgetsdir)/gm-text-scroller.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-text-scroller.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-text-scroller.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-text-scroller.Tpo" "$(DEPDIR)/gm-text-scroller.Po"; else rm -f "$(DEPDIR)/gm-text-scroller.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-text-scroller.c' object='gm-text-scroller.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-text-scroller.obj `if test -f '$(widgetsdir)/gm-text-scroller.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-text-scroller.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-text-scroller.c'; fi` gm-editor-view.o: $(widgetsdir)/gm-editor-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-editor-view.o -MD -MP -MF "$(DEPDIR)/gm-editor-view.Tpo" -c -o gm-editor-view.o `test -f '$(widgetsdir)/gm-editor-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-editor-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-editor-view.Tpo" "$(DEPDIR)/gm-editor-view.Po"; else rm -f "$(DEPDIR)/gm-editor-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-editor-view.c' object='gm-editor-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-editor-view.o `test -f '$(widgetsdir)/gm-editor-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-editor-view.c gm-editor-view.obj: $(widgetsdir)/gm-editor-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-editor-view.obj -MD -MP -MF "$(DEPDIR)/gm-editor-view.Tpo" -c -o gm-editor-view.obj `if test -f '$(widgetsdir)/gm-editor-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-editor-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-editor-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-editor-view.Tpo" "$(DEPDIR)/gm-editor-view.Po"; else rm -f "$(DEPDIR)/gm-editor-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-editor-view.c' object='gm-editor-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-editor-view.obj `if test -f '$(widgetsdir)/gm-editor-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-editor-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-editor-view.c'; fi` gm-searchable.o: $(widgetsdir)/gm-searchable.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-searchable.o -MD -MP -MF "$(DEPDIR)/gm-searchable.Tpo" -c -o gm-searchable.o `test -f '$(widgetsdir)/gm-searchable.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-searchable.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-searchable.Tpo" "$(DEPDIR)/gm-searchable.Po"; else rm -f "$(DEPDIR)/gm-searchable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-searchable.c' object='gm-searchable.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-searchable.o `test -f '$(widgetsdir)/gm-searchable.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-searchable.c gm-searchable.obj: $(widgetsdir)/gm-searchable.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-searchable.obj -MD -MP -MF "$(DEPDIR)/gm-searchable.Tpo" -c -o gm-searchable.obj `if test -f '$(widgetsdir)/gm-searchable.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-searchable.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-searchable.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-searchable.Tpo" "$(DEPDIR)/gm-searchable.Po"; else rm -f "$(DEPDIR)/gm-searchable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-searchable.c' object='gm-searchable.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-searchable.obj `if test -f '$(widgetsdir)/gm-searchable.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-searchable.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-searchable.c'; fi` gm-embedded-view.o: $(widgetsdir)/gm-embedded-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-embedded-view.o -MD -MP -MF "$(DEPDIR)/gm-embedded-view.Tpo" -c -o gm-embedded-view.o `test -f '$(widgetsdir)/gm-embedded-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-embedded-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-embedded-view.Tpo" "$(DEPDIR)/gm-embedded-view.Po"; else rm -f "$(DEPDIR)/gm-embedded-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-embedded-view.c' object='gm-embedded-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-embedded-view.o `test -f '$(widgetsdir)/gm-embedded-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-embedded-view.c gm-embedded-view.obj: $(widgetsdir)/gm-embedded-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-embedded-view.obj -MD -MP -MF "$(DEPDIR)/gm-embedded-view.Tpo" -c -o gm-embedded-view.obj `if test -f '$(widgetsdir)/gm-embedded-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-embedded-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-embedded-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-embedded-view.Tpo" "$(DEPDIR)/gm-embedded-view.Po"; else rm -f "$(DEPDIR)/gm-embedded-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-embedded-view.c' object='gm-embedded-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-embedded-view.obj `if test -f '$(widgetsdir)/gm-embedded-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-embedded-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-embedded-view.c'; fi` gm-external-view.o: $(widgetsdir)/gm-external-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-external-view.o -MD -MP -MF "$(DEPDIR)/gm-external-view.Tpo" -c -o gm-external-view.o `test -f '$(widgetsdir)/gm-external-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-external-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-external-view.Tpo" "$(DEPDIR)/gm-external-view.Po"; else rm -f "$(DEPDIR)/gm-external-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-external-view.c' object='gm-external-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-external-view.o `test -f '$(widgetsdir)/gm-external-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-external-view.c gm-external-view.obj: $(widgetsdir)/gm-external-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-external-view.obj -MD -MP -MF "$(DEPDIR)/gm-external-view.Tpo" -c -o gm-external-view.obj `if test -f '$(widgetsdir)/gm-external-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-external-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-external-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-external-view.Tpo" "$(DEPDIR)/gm-external-view.Po"; else rm -f "$(DEPDIR)/gm-external-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-external-view.c' object='gm-external-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-external-view.obj `if test -f '$(widgetsdir)/gm-external-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-external-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-external-view.c'; fi` gm-log-view.o: $(widgetsdir)/gm-log-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-log-view.o -MD -MP -MF "$(DEPDIR)/gm-log-view.Tpo" -c -o gm-log-view.o `test -f '$(widgetsdir)/gm-log-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-log-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-log-view.Tpo" "$(DEPDIR)/gm-log-view.Po"; else rm -f "$(DEPDIR)/gm-log-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-log-view.c' object='gm-log-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-log-view.o `test -f '$(widgetsdir)/gm-log-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-log-view.c gm-log-view.obj: $(widgetsdir)/gm-log-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-log-view.obj -MD -MP -MF "$(DEPDIR)/gm-log-view.Tpo" -c -o gm-log-view.obj `if test -f '$(widgetsdir)/gm-log-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-log-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-log-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-log-view.Tpo" "$(DEPDIR)/gm-log-view.Po"; else rm -f "$(DEPDIR)/gm-log-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-log-view.c' object='gm-log-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-log-view.obj `if test -f '$(widgetsdir)/gm-log-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-log-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-log-view.c'; fi` gm-tray.o: $(widgetsdir)/gm-tray.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-tray.o -MD -MP -MF "$(DEPDIR)/gm-tray.Tpo" -c -o gm-tray.o `test -f '$(widgetsdir)/gm-tray.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-tray.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-tray.Tpo" "$(DEPDIR)/gm-tray.Po"; else rm -f "$(DEPDIR)/gm-tray.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-tray.c' object='gm-tray.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-tray.o `test -f '$(widgetsdir)/gm-tray.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-tray.c gm-tray.obj: $(widgetsdir)/gm-tray.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-tray.obj -MD -MP -MF "$(DEPDIR)/gm-tray.Tpo" -c -o gm-tray.obj `if test -f '$(widgetsdir)/gm-tray.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-tray.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-tray.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-tray.Tpo" "$(DEPDIR)/gm-tray.Po"; else rm -f "$(DEPDIR)/gm-tray.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-tray.c' object='gm-tray.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-tray.obj `if test -f '$(widgetsdir)/gm-tray.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-tray.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-tray.c'; fi` eggtrayicon.o: $(widgetsdir)/eggtrayicon.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eggtrayicon.o -MD -MP -MF "$(DEPDIR)/eggtrayicon.Tpo" -c -o eggtrayicon.o `test -f '$(widgetsdir)/eggtrayicon.c' || echo '$(srcdir)/'`$(widgetsdir)/eggtrayicon.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/eggtrayicon.Tpo" "$(DEPDIR)/eggtrayicon.Po"; else rm -f "$(DEPDIR)/eggtrayicon.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/eggtrayicon.c' object='eggtrayicon.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eggtrayicon.o `test -f '$(widgetsdir)/eggtrayicon.c' || echo '$(srcdir)/'`$(widgetsdir)/eggtrayicon.c eggtrayicon.obj: $(widgetsdir)/eggtrayicon.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eggtrayicon.obj -MD -MP -MF "$(DEPDIR)/eggtrayicon.Tpo" -c -o eggtrayicon.obj `if test -f '$(widgetsdir)/eggtrayicon.c'; then $(CYGPATH_W) '$(widgetsdir)/eggtrayicon.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/eggtrayicon.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/eggtrayicon.Tpo" "$(DEPDIR)/eggtrayicon.Po"; else rm -f "$(DEPDIR)/eggtrayicon.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/eggtrayicon.c' object='eggtrayicon.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eggtrayicon.obj `if test -f '$(widgetsdir)/eggtrayicon.c'; then $(CYGPATH_W) '$(widgetsdir)/eggtrayicon.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/eggtrayicon.c'; fi` eggnotificationbubble.o: $(widgetsdir)/eggnotificationbubble.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eggnotificationbubble.o -MD -MP -MF "$(DEPDIR)/eggnotificationbubble.Tpo" -c -o eggnotificationbubble.o `test -f '$(widgetsdir)/eggnotificationbubble.c' || echo '$(srcdir)/'`$(widgetsdir)/eggnotificationbubble.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/eggnotificationbubble.Tpo" "$(DEPDIR)/eggnotificationbubble.Po"; else rm -f "$(DEPDIR)/eggnotificationbubble.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/eggnotificationbubble.c' object='eggnotificationbubble.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eggnotificationbubble.o `test -f '$(widgetsdir)/eggnotificationbubble.c' || echo '$(srcdir)/'`$(widgetsdir)/eggnotificationbubble.c eggnotificationbubble.obj: $(widgetsdir)/eggnotificationbubble.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT eggnotificationbubble.obj -MD -MP -MF "$(DEPDIR)/eggnotificationbubble.Tpo" -c -o eggnotificationbubble.obj `if test -f '$(widgetsdir)/eggnotificationbubble.c'; then $(CYGPATH_W) '$(widgetsdir)/eggnotificationbubble.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/eggnotificationbubble.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/eggnotificationbubble.Tpo" "$(DEPDIR)/eggnotificationbubble.Po"; else rm -f "$(DEPDIR)/eggnotificationbubble.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/eggnotificationbubble.c' object='eggnotificationbubble.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o eggnotificationbubble.obj `if test -f '$(widgetsdir)/eggnotificationbubble.c'; then $(CYGPATH_W) '$(widgetsdir)/eggnotificationbubble.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/eggnotificationbubble.c'; fi` gm-worlds-view.o: $(widgetsdir)/gm-worlds-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-worlds-view.o -MD -MP -MF "$(DEPDIR)/gm-worlds-view.Tpo" -c -o gm-worlds-view.o `test -f '$(widgetsdir)/gm-worlds-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-worlds-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-worlds-view.Tpo" "$(DEPDIR)/gm-worlds-view.Po"; else rm -f "$(DEPDIR)/gm-worlds-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-worlds-view.c' object='gm-worlds-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-worlds-view.o `test -f '$(widgetsdir)/gm-worlds-view.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-worlds-view.c gm-worlds-view.obj: $(widgetsdir)/gm-worlds-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-worlds-view.obj -MD -MP -MF "$(DEPDIR)/gm-worlds-view.Tpo" -c -o gm-worlds-view.obj `if test -f '$(widgetsdir)/gm-worlds-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-worlds-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-worlds-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-worlds-view.Tpo" "$(DEPDIR)/gm-worlds-view.Po"; else rm -f "$(DEPDIR)/gm-worlds-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-worlds-view.c' object='gm-worlds-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-worlds-view.obj `if test -f '$(widgetsdir)/gm-worlds-view.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-worlds-view.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-worlds-view.c'; fi` gm-source-style-scheme.o: $(widgetsdir)/gm-source-style-scheme.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-source-style-scheme.o -MD -MP -MF "$(DEPDIR)/gm-source-style-scheme.Tpo" -c -o gm-source-style-scheme.o `test -f '$(widgetsdir)/gm-source-style-scheme.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-source-style-scheme.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-source-style-scheme.Tpo" "$(DEPDIR)/gm-source-style-scheme.Po"; else rm -f "$(DEPDIR)/gm-source-style-scheme.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-source-style-scheme.c' object='gm-source-style-scheme.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-source-style-scheme.o `test -f '$(widgetsdir)/gm-source-style-scheme.c' || echo '$(srcdir)/'`$(widgetsdir)/gm-source-style-scheme.c gm-source-style-scheme.obj: $(widgetsdir)/gm-source-style-scheme.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-source-style-scheme.obj -MD -MP -MF "$(DEPDIR)/gm-source-style-scheme.Tpo" -c -o gm-source-style-scheme.obj `if test -f '$(widgetsdir)/gm-source-style-scheme.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-source-style-scheme.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-source-style-scheme.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-source-style-scheme.Tpo" "$(DEPDIR)/gm-source-style-scheme.Po"; else rm -f "$(DEPDIR)/gm-source-style-scheme.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(widgetsdir)/gm-source-style-scheme.c' object='gm-source-style-scheme.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-source-style-scheme.obj `if test -f '$(widgetsdir)/gm-source-style-scheme.c'; then $(CYGPATH_W) '$(widgetsdir)/gm-source-style-scheme.c'; else $(CYGPATH_W) '$(srcdir)/$(widgetsdir)/gm-source-style-scheme.c'; fi` gm-world-info-dialog.o: $(dialogsdir)/gm-world-info-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-info-dialog.o -MD -MP -MF "$(DEPDIR)/gm-world-info-dialog.Tpo" -c -o gm-world-info-dialog.o `test -f '$(dialogsdir)/gm-world-info-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-info-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-info-dialog.Tpo" "$(DEPDIR)/gm-world-info-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-info-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-info-dialog.c' object='gm-world-info-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-info-dialog.o `test -f '$(dialogsdir)/gm-world-info-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-info-dialog.c gm-world-info-dialog.obj: $(dialogsdir)/gm-world-info-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-info-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-world-info-dialog.Tpo" -c -o gm-world-info-dialog.obj `if test -f '$(dialogsdir)/gm-world-info-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-info-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-info-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-info-dialog.Tpo" "$(DEPDIR)/gm-world-info-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-info-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-info-dialog.c' object='gm-world-info-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-info-dialog.obj `if test -f '$(dialogsdir)/gm-world-info-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-info-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-info-dialog.c'; fi` gm-world-logs-dialog.o: $(dialogsdir)/gm-world-logs-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-logs-dialog.o -MD -MP -MF "$(DEPDIR)/gm-world-logs-dialog.Tpo" -c -o gm-world-logs-dialog.o `test -f '$(dialogsdir)/gm-world-logs-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-logs-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-logs-dialog.Tpo" "$(DEPDIR)/gm-world-logs-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-logs-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-logs-dialog.c' object='gm-world-logs-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-logs-dialog.o `test -f '$(dialogsdir)/gm-world-logs-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-logs-dialog.c gm-world-logs-dialog.obj: $(dialogsdir)/gm-world-logs-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-logs-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-world-logs-dialog.Tpo" -c -o gm-world-logs-dialog.obj `if test -f '$(dialogsdir)/gm-world-logs-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-logs-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-logs-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-logs-dialog.Tpo" "$(DEPDIR)/gm-world-logs-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-logs-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-logs-dialog.c' object='gm-world-logs-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-logs-dialog.obj `if test -f '$(dialogsdir)/gm-world-logs-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-logs-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-logs-dialog.c'; fi` gm-world-paste-dialog.o: $(dialogsdir)/gm-world-paste-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-paste-dialog.o -MD -MP -MF "$(DEPDIR)/gm-world-paste-dialog.Tpo" -c -o gm-world-paste-dialog.o `test -f '$(dialogsdir)/gm-world-paste-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-paste-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-paste-dialog.Tpo" "$(DEPDIR)/gm-world-paste-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-paste-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-paste-dialog.c' object='gm-world-paste-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-paste-dialog.o `test -f '$(dialogsdir)/gm-world-paste-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-paste-dialog.c gm-world-paste-dialog.obj: $(dialogsdir)/gm-world-paste-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-paste-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-world-paste-dialog.Tpo" -c -o gm-world-paste-dialog.obj `if test -f '$(dialogsdir)/gm-world-paste-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-paste-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-paste-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-paste-dialog.Tpo" "$(DEPDIR)/gm-world-paste-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-paste-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-paste-dialog.c' object='gm-world-paste-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-paste-dialog.obj `if test -f '$(dialogsdir)/gm-world-paste-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-paste-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-paste-dialog.c'; fi` gm-world-properties-dialog.o: $(dialogsdir)/gm-world-properties-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-properties-dialog.o -MD -MP -MF "$(DEPDIR)/gm-world-properties-dialog.Tpo" -c -o gm-world-properties-dialog.o `test -f '$(dialogsdir)/gm-world-properties-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-properties-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-properties-dialog.Tpo" "$(DEPDIR)/gm-world-properties-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-properties-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-properties-dialog.c' object='gm-world-properties-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-properties-dialog.o `test -f '$(dialogsdir)/gm-world-properties-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-world-properties-dialog.c gm-world-properties-dialog.obj: $(dialogsdir)/gm-world-properties-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-world-properties-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-world-properties-dialog.Tpo" -c -o gm-world-properties-dialog.obj `if test -f '$(dialogsdir)/gm-world-properties-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-properties-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-properties-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-world-properties-dialog.Tpo" "$(DEPDIR)/gm-world-properties-dialog.Po"; else rm -f "$(DEPDIR)/gm-world-properties-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-world-properties-dialog.c' object='gm-world-properties-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-world-properties-dialog.obj `if test -f '$(dialogsdir)/gm-world-properties-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-world-properties-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-world-properties-dialog.c'; fi` gm-worlds-list-dialog.o: $(dialogsdir)/gm-worlds-list-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-worlds-list-dialog.o -MD -MP -MF "$(DEPDIR)/gm-worlds-list-dialog.Tpo" -c -o gm-worlds-list-dialog.o `test -f '$(dialogsdir)/gm-worlds-list-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-worlds-list-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-worlds-list-dialog.Tpo" "$(DEPDIR)/gm-worlds-list-dialog.Po"; else rm -f "$(DEPDIR)/gm-worlds-list-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-worlds-list-dialog.c' object='gm-worlds-list-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-worlds-list-dialog.o `test -f '$(dialogsdir)/gm-worlds-list-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-worlds-list-dialog.c gm-worlds-list-dialog.obj: $(dialogsdir)/gm-worlds-list-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-worlds-list-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-worlds-list-dialog.Tpo" -c -o gm-worlds-list-dialog.obj `if test -f '$(dialogsdir)/gm-worlds-list-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-worlds-list-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-worlds-list-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-worlds-list-dialog.Tpo" "$(DEPDIR)/gm-worlds-list-dialog.Po"; else rm -f "$(DEPDIR)/gm-worlds-list-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-worlds-list-dialog.c' object='gm-worlds-list-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-worlds-list-dialog.obj `if test -f '$(dialogsdir)/gm-worlds-list-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-worlds-list-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-worlds-list-dialog.c'; fi` gm-scripts-dialog.o: $(dialogsdir)/gm-scripts-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-scripts-dialog.o -MD -MP -MF "$(DEPDIR)/gm-scripts-dialog.Tpo" -c -o gm-scripts-dialog.o `test -f '$(dialogsdir)/gm-scripts-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-scripts-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-scripts-dialog.Tpo" "$(DEPDIR)/gm-scripts-dialog.Po"; else rm -f "$(DEPDIR)/gm-scripts-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-scripts-dialog.c' object='gm-scripts-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-scripts-dialog.o `test -f '$(dialogsdir)/gm-scripts-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-scripts-dialog.c gm-scripts-dialog.obj: $(dialogsdir)/gm-scripts-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-scripts-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-scripts-dialog.Tpo" -c -o gm-scripts-dialog.obj `if test -f '$(dialogsdir)/gm-scripts-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-scripts-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-scripts-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-scripts-dialog.Tpo" "$(DEPDIR)/gm-scripts-dialog.Po"; else rm -f "$(DEPDIR)/gm-scripts-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-scripts-dialog.c' object='gm-scripts-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-scripts-dialog.obj `if test -f '$(dialogsdir)/gm-scripts-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-scripts-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-scripts-dialog.c'; fi` gm-preferences-dialog.o: $(dialogsdir)/gm-preferences-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-preferences-dialog.o -MD -MP -MF "$(DEPDIR)/gm-preferences-dialog.Tpo" -c -o gm-preferences-dialog.o `test -f '$(dialogsdir)/gm-preferences-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-preferences-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-preferences-dialog.Tpo" "$(DEPDIR)/gm-preferences-dialog.Po"; else rm -f "$(DEPDIR)/gm-preferences-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-preferences-dialog.c' object='gm-preferences-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-preferences-dialog.o `test -f '$(dialogsdir)/gm-preferences-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-preferences-dialog.c gm-preferences-dialog.obj: $(dialogsdir)/gm-preferences-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-preferences-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-preferences-dialog.Tpo" -c -o gm-preferences-dialog.obj `if test -f '$(dialogsdir)/gm-preferences-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-preferences-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-preferences-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-preferences-dialog.Tpo" "$(DEPDIR)/gm-preferences-dialog.Po"; else rm -f "$(DEPDIR)/gm-preferences-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-preferences-dialog.c' object='gm-preferences-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-preferences-dialog.obj `if test -f '$(dialogsdir)/gm-preferences-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-preferences-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-preferences-dialog.c'; fi` gm-triggers-dialog.o: $(dialogsdir)/gm-triggers-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-triggers-dialog.o -MD -MP -MF "$(DEPDIR)/gm-triggers-dialog.Tpo" -c -o gm-triggers-dialog.o `test -f '$(dialogsdir)/gm-triggers-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-triggers-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-triggers-dialog.Tpo" "$(DEPDIR)/gm-triggers-dialog.Po"; else rm -f "$(DEPDIR)/gm-triggers-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-triggers-dialog.c' object='gm-triggers-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-triggers-dialog.o `test -f '$(dialogsdir)/gm-triggers-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-triggers-dialog.c gm-triggers-dialog.obj: $(dialogsdir)/gm-triggers-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-triggers-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-triggers-dialog.Tpo" -c -o gm-triggers-dialog.obj `if test -f '$(dialogsdir)/gm-triggers-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-triggers-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-triggers-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-triggers-dialog.Tpo" "$(DEPDIR)/gm-triggers-dialog.Po"; else rm -f "$(DEPDIR)/gm-triggers-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-triggers-dialog.c' object='gm-triggers-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-triggers-dialog.obj `if test -f '$(dialogsdir)/gm-triggers-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-triggers-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-triggers-dialog.c'; fi` gm-open-world-dialog.o: $(dialogsdir)/gm-open-world-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-open-world-dialog.o -MD -MP -MF "$(DEPDIR)/gm-open-world-dialog.Tpo" -c -o gm-open-world-dialog.o `test -f '$(dialogsdir)/gm-open-world-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-open-world-dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-open-world-dialog.Tpo" "$(DEPDIR)/gm-open-world-dialog.Po"; else rm -f "$(DEPDIR)/gm-open-world-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-open-world-dialog.c' object='gm-open-world-dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-open-world-dialog.o `test -f '$(dialogsdir)/gm-open-world-dialog.c' || echo '$(srcdir)/'`$(dialogsdir)/gm-open-world-dialog.c gm-open-world-dialog.obj: $(dialogsdir)/gm-open-world-dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-open-world-dialog.obj -MD -MP -MF "$(DEPDIR)/gm-open-world-dialog.Tpo" -c -o gm-open-world-dialog.obj `if test -f '$(dialogsdir)/gm-open-world-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-open-world-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-open-world-dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-open-world-dialog.Tpo" "$(DEPDIR)/gm-open-world-dialog.Po"; else rm -f "$(DEPDIR)/gm-open-world-dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(dialogsdir)/gm-open-world-dialog.c' object='gm-open-world-dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-open-world-dialog.obj `if test -f '$(dialogsdir)/gm-open-world-dialog.c'; then $(CYGPATH_W) '$(dialogsdir)/gm-open-world-dialog.c'; else $(CYGPATH_W) '$(srcdir)/$(dialogsdir)/gm-open-world-dialog.c'; fi` gm-mcp-classes.o: $(mcpdir)/gm-mcp-classes.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-classes.o -MD -MP -MF "$(DEPDIR)/gm-mcp-classes.Tpo" -c -o gm-mcp-classes.o `test -f '$(mcpdir)/gm-mcp-classes.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-classes.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-classes.Tpo" "$(DEPDIR)/gm-mcp-classes.Po"; else rm -f "$(DEPDIR)/gm-mcp-classes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-classes.c' object='gm-mcp-classes.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-classes.o `test -f '$(mcpdir)/gm-mcp-classes.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-classes.c gm-mcp-classes.obj: $(mcpdir)/gm-mcp-classes.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-classes.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-classes.Tpo" -c -o gm-mcp-classes.obj `if test -f '$(mcpdir)/gm-mcp-classes.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-classes.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-classes.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-classes.Tpo" "$(DEPDIR)/gm-mcp-classes.Po"; else rm -f "$(DEPDIR)/gm-mcp-classes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-classes.c' object='gm-mcp-classes.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-classes.obj `if test -f '$(mcpdir)/gm-mcp-classes.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-classes.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-classes.c'; fi` gm-mcp.o: $(mcpdir)/gm-mcp.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp.o -MD -MP -MF "$(DEPDIR)/gm-mcp.Tpo" -c -o gm-mcp.o `test -f '$(mcpdir)/gm-mcp.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp.Tpo" "$(DEPDIR)/gm-mcp.Po"; else rm -f "$(DEPDIR)/gm-mcp.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp.c' object='gm-mcp.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp.o `test -f '$(mcpdir)/gm-mcp.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp.c gm-mcp.obj: $(mcpdir)/gm-mcp.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp.obj -MD -MP -MF "$(DEPDIR)/gm-mcp.Tpo" -c -o gm-mcp.obj `if test -f '$(mcpdir)/gm-mcp.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp.Tpo" "$(DEPDIR)/gm-mcp.Po"; else rm -f "$(DEPDIR)/gm-mcp.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp.c' object='gm-mcp.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp.obj `if test -f '$(mcpdir)/gm-mcp.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp.c'; fi` gm-mcp-session.o: $(mcpdir)/gm-mcp-session.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-session.o -MD -MP -MF "$(DEPDIR)/gm-mcp-session.Tpo" -c -o gm-mcp-session.o `test -f '$(mcpdir)/gm-mcp-session.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-session.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-session.Tpo" "$(DEPDIR)/gm-mcp-session.Po"; else rm -f "$(DEPDIR)/gm-mcp-session.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-session.c' object='gm-mcp-session.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-session.o `test -f '$(mcpdir)/gm-mcp-session.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-session.c gm-mcp-session.obj: $(mcpdir)/gm-mcp-session.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-session.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-session.Tpo" -c -o gm-mcp-session.obj `if test -f '$(mcpdir)/gm-mcp-session.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-session.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-session.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-session.Tpo" "$(DEPDIR)/gm-mcp-session.Po"; else rm -f "$(DEPDIR)/gm-mcp-session.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-session.c' object='gm-mcp-session.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-session.obj `if test -f '$(mcpdir)/gm-mcp-session.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-session.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-session.c'; fi` gm-mcp-package.o: $(mcpdir)/gm-mcp-package.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-package.o -MD -MP -MF "$(DEPDIR)/gm-mcp-package.Tpo" -c -o gm-mcp-package.o `test -f '$(mcpdir)/gm-mcp-package.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-package.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-package.Tpo" "$(DEPDIR)/gm-mcp-package.Po"; else rm -f "$(DEPDIR)/gm-mcp-package.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-package.c' object='gm-mcp-package.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-package.o `test -f '$(mcpdir)/gm-mcp-package.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-package.c gm-mcp-package.obj: $(mcpdir)/gm-mcp-package.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-package.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-package.Tpo" -c -o gm-mcp-package.obj `if test -f '$(mcpdir)/gm-mcp-package.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-package.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-package.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-package.Tpo" "$(DEPDIR)/gm-mcp-package.Po"; else rm -f "$(DEPDIR)/gm-mcp-package.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-package.c' object='gm-mcp-package.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-package.obj `if test -f '$(mcpdir)/gm-mcp-package.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-package.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-package.c'; fi` gm-iuserlist.o: $(mcpdir)/gm-iuserlist.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-iuserlist.o -MD -MP -MF "$(DEPDIR)/gm-iuserlist.Tpo" -c -o gm-iuserlist.o `test -f '$(mcpdir)/gm-iuserlist.c' || echo '$(srcdir)/'`$(mcpdir)/gm-iuserlist.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-iuserlist.Tpo" "$(DEPDIR)/gm-iuserlist.Po"; else rm -f "$(DEPDIR)/gm-iuserlist.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-iuserlist.c' object='gm-iuserlist.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-iuserlist.o `test -f '$(mcpdir)/gm-iuserlist.c' || echo '$(srcdir)/'`$(mcpdir)/gm-iuserlist.c gm-iuserlist.obj: $(mcpdir)/gm-iuserlist.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-iuserlist.obj -MD -MP -MF "$(DEPDIR)/gm-iuserlist.Tpo" -c -o gm-iuserlist.obj `if test -f '$(mcpdir)/gm-iuserlist.c'; then $(CYGPATH_W) '$(mcpdir)/gm-iuserlist.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-iuserlist.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-iuserlist.Tpo" "$(DEPDIR)/gm-iuserlist.Po"; else rm -f "$(DEPDIR)/gm-iuserlist.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-iuserlist.c' object='gm-iuserlist.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-iuserlist.obj `if test -f '$(mcpdir)/gm-iuserlist.c'; then $(CYGPATH_W) '$(mcpdir)/gm-iuserlist.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-iuserlist.c'; fi` gm-mcp-userlist-view.o: $(mcpdir)/gm-mcp-userlist-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-userlist-view.o -MD -MP -MF "$(DEPDIR)/gm-mcp-userlist-view.Tpo" -c -o gm-mcp-userlist-view.o `test -f '$(mcpdir)/gm-mcp-userlist-view.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-userlist-view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-userlist-view.Tpo" "$(DEPDIR)/gm-mcp-userlist-view.Po"; else rm -f "$(DEPDIR)/gm-mcp-userlist-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-userlist-view.c' object='gm-mcp-userlist-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-userlist-view.o `test -f '$(mcpdir)/gm-mcp-userlist-view.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-userlist-view.c gm-mcp-userlist-view.obj: $(mcpdir)/gm-mcp-userlist-view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-userlist-view.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-userlist-view.Tpo" -c -o gm-mcp-userlist-view.obj `if test -f '$(mcpdir)/gm-mcp-userlist-view.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-userlist-view.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-userlist-view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-userlist-view.Tpo" "$(DEPDIR)/gm-mcp-userlist-view.Po"; else rm -f "$(DEPDIR)/gm-mcp-userlist-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-userlist-view.c' object='gm-mcp-userlist-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-userlist-view.obj `if test -f '$(mcpdir)/gm-mcp-userlist-view.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-userlist-view.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-userlist-view.c'; fi` gm-cell-renderer-text.o: $(mcpdir)/gm-cell-renderer-text.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-cell-renderer-text.o -MD -MP -MF "$(DEPDIR)/gm-cell-renderer-text.Tpo" -c -o gm-cell-renderer-text.o `test -f '$(mcpdir)/gm-cell-renderer-text.c' || echo '$(srcdir)/'`$(mcpdir)/gm-cell-renderer-text.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-cell-renderer-text.Tpo" "$(DEPDIR)/gm-cell-renderer-text.Po"; else rm -f "$(DEPDIR)/gm-cell-renderer-text.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-cell-renderer-text.c' object='gm-cell-renderer-text.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-cell-renderer-text.o `test -f '$(mcpdir)/gm-cell-renderer-text.c' || echo '$(srcdir)/'`$(mcpdir)/gm-cell-renderer-text.c gm-cell-renderer-text.obj: $(mcpdir)/gm-cell-renderer-text.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-cell-renderer-text.obj -MD -MP -MF "$(DEPDIR)/gm-cell-renderer-text.Tpo" -c -o gm-cell-renderer-text.obj `if test -f '$(mcpdir)/gm-cell-renderer-text.c'; then $(CYGPATH_W) '$(mcpdir)/gm-cell-renderer-text.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-cell-renderer-text.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-cell-renderer-text.Tpo" "$(DEPDIR)/gm-cell-renderer-text.Po"; else rm -f "$(DEPDIR)/gm-cell-renderer-text.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-cell-renderer-text.c' object='gm-cell-renderer-text.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-cell-renderer-text.obj `if test -f '$(mcpdir)/gm-cell-renderer-text.c'; then $(CYGPATH_W) '$(mcpdir)/gm-cell-renderer-text.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-cell-renderer-text.c'; fi` gm-mcp-negotiate.o: $(mcpdir)/gm-mcp-negotiate.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-negotiate.o -MD -MP -MF "$(DEPDIR)/gm-mcp-negotiate.Tpo" -c -o gm-mcp-negotiate.o `test -f '$(mcpdir)/gm-mcp-negotiate.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-negotiate.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-negotiate.Tpo" "$(DEPDIR)/gm-mcp-negotiate.Po"; else rm -f "$(DEPDIR)/gm-mcp-negotiate.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-negotiate.c' object='gm-mcp-negotiate.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-negotiate.o `test -f '$(mcpdir)/gm-mcp-negotiate.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-negotiate.c gm-mcp-negotiate.obj: $(mcpdir)/gm-mcp-negotiate.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-negotiate.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-negotiate.Tpo" -c -o gm-mcp-negotiate.obj `if test -f '$(mcpdir)/gm-mcp-negotiate.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-negotiate.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-negotiate.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-negotiate.Tpo" "$(DEPDIR)/gm-mcp-negotiate.Po"; else rm -f "$(DEPDIR)/gm-mcp-negotiate.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-negotiate.c' object='gm-mcp-negotiate.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-negotiate.obj `if test -f '$(mcpdir)/gm-mcp-negotiate.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-negotiate.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-negotiate.c'; fi` gm-mcp-awns-status.o: $(mcpdir)/gm-mcp-awns-status.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-awns-status.o -MD -MP -MF "$(DEPDIR)/gm-mcp-awns-status.Tpo" -c -o gm-mcp-awns-status.o `test -f '$(mcpdir)/gm-mcp-awns-status.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-awns-status.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-awns-status.Tpo" "$(DEPDIR)/gm-mcp-awns-status.Po"; else rm -f "$(DEPDIR)/gm-mcp-awns-status.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-awns-status.c' object='gm-mcp-awns-status.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-awns-status.o `test -f '$(mcpdir)/gm-mcp-awns-status.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-awns-status.c gm-mcp-awns-status.obj: $(mcpdir)/gm-mcp-awns-status.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-awns-status.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-awns-status.Tpo" -c -o gm-mcp-awns-status.obj `if test -f '$(mcpdir)/gm-mcp-awns-status.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-awns-status.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-awns-status.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-awns-status.Tpo" "$(DEPDIR)/gm-mcp-awns-status.Po"; else rm -f "$(DEPDIR)/gm-mcp-awns-status.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-awns-status.c' object='gm-mcp-awns-status.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-awns-status.obj `if test -f '$(mcpdir)/gm-mcp-awns-status.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-awns-status.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-awns-status.c'; fi` gm-mcp-vmoo-client.o: $(mcpdir)/gm-mcp-vmoo-client.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-vmoo-client.o -MD -MP -MF "$(DEPDIR)/gm-mcp-vmoo-client.Tpo" -c -o gm-mcp-vmoo-client.o `test -f '$(mcpdir)/gm-mcp-vmoo-client.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-vmoo-client.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-vmoo-client.Tpo" "$(DEPDIR)/gm-mcp-vmoo-client.Po"; else rm -f "$(DEPDIR)/gm-mcp-vmoo-client.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-vmoo-client.c' object='gm-mcp-vmoo-client.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-vmoo-client.o `test -f '$(mcpdir)/gm-mcp-vmoo-client.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-vmoo-client.c gm-mcp-vmoo-client.obj: $(mcpdir)/gm-mcp-vmoo-client.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-vmoo-client.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-vmoo-client.Tpo" -c -o gm-mcp-vmoo-client.obj `if test -f '$(mcpdir)/gm-mcp-vmoo-client.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-vmoo-client.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-vmoo-client.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-vmoo-client.Tpo" "$(DEPDIR)/gm-mcp-vmoo-client.Po"; else rm -f "$(DEPDIR)/gm-mcp-vmoo-client.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-vmoo-client.c' object='gm-mcp-vmoo-client.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-vmoo-client.obj `if test -f '$(mcpdir)/gm-mcp-vmoo-client.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-vmoo-client.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-vmoo-client.c'; fi` gm-mcp-awns-ping.o: $(mcpdir)/gm-mcp-awns-ping.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-awns-ping.o -MD -MP -MF "$(DEPDIR)/gm-mcp-awns-ping.Tpo" -c -o gm-mcp-awns-ping.o `test -f '$(mcpdir)/gm-mcp-awns-ping.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-awns-ping.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-awns-ping.Tpo" "$(DEPDIR)/gm-mcp-awns-ping.Po"; else rm -f "$(DEPDIR)/gm-mcp-awns-ping.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-awns-ping.c' object='gm-mcp-awns-ping.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-awns-ping.o `test -f '$(mcpdir)/gm-mcp-awns-ping.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-awns-ping.c gm-mcp-awns-ping.obj: $(mcpdir)/gm-mcp-awns-ping.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-awns-ping.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-awns-ping.Tpo" -c -o gm-mcp-awns-ping.obj `if test -f '$(mcpdir)/gm-mcp-awns-ping.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-awns-ping.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-awns-ping.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-awns-ping.Tpo" "$(DEPDIR)/gm-mcp-awns-ping.Po"; else rm -f "$(DEPDIR)/gm-mcp-awns-ping.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-awns-ping.c' object='gm-mcp-awns-ping.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-awns-ping.obj `if test -f '$(mcpdir)/gm-mcp-awns-ping.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-awns-ping.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-awns-ping.c'; fi` gm-mcp-icecrew-playerdb.o: $(mcpdir)/gm-mcp-icecrew-playerdb.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-playerdb.o -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-playerdb.Tpo" -c -o gm-mcp-icecrew-playerdb.o `test -f '$(mcpdir)/gm-mcp-icecrew-playerdb.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-playerdb.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-playerdb.Tpo" "$(DEPDIR)/gm-mcp-icecrew-playerdb.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-playerdb.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-playerdb.c' object='gm-mcp-icecrew-playerdb.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-playerdb.o `test -f '$(mcpdir)/gm-mcp-icecrew-playerdb.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-playerdb.c gm-mcp-icecrew-playerdb.obj: $(mcpdir)/gm-mcp-icecrew-playerdb.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-playerdb.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-playerdb.Tpo" -c -o gm-mcp-icecrew-playerdb.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-playerdb.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-playerdb.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-playerdb.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-playerdb.Tpo" "$(DEPDIR)/gm-mcp-icecrew-playerdb.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-playerdb.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-playerdb.c' object='gm-mcp-icecrew-playerdb.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-playerdb.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-playerdb.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-playerdb.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-playerdb.c'; fi` gm-mcp-icecrew-userlist.o: $(mcpdir)/gm-mcp-icecrew-userlist.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-userlist.o -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-userlist.Tpo" -c -o gm-mcp-icecrew-userlist.o `test -f '$(mcpdir)/gm-mcp-icecrew-userlist.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-userlist.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-userlist.Tpo" "$(DEPDIR)/gm-mcp-icecrew-userlist.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-userlist.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-userlist.c' object='gm-mcp-icecrew-userlist.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-userlist.o `test -f '$(mcpdir)/gm-mcp-icecrew-userlist.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-userlist.c gm-mcp-icecrew-userlist.obj: $(mcpdir)/gm-mcp-icecrew-userlist.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-userlist.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-userlist.Tpo" -c -o gm-mcp-icecrew-userlist.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-userlist.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-userlist.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-userlist.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-userlist.Tpo" "$(DEPDIR)/gm-mcp-icecrew-userlist.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-userlist.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-userlist.c' object='gm-mcp-icecrew-userlist.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-userlist.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-userlist.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-userlist.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-userlist.c'; fi` gm-mcp-icecrew-mcpreset.o: $(mcpdir)/gm-mcp-icecrew-mcpreset.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-mcpreset.o -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Tpo" -c -o gm-mcp-icecrew-mcpreset.o `test -f '$(mcpdir)/gm-mcp-icecrew-mcpreset.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-mcpreset.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Tpo" "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-mcpreset.c' object='gm-mcp-icecrew-mcpreset.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-mcpreset.o `test -f '$(mcpdir)/gm-mcp-icecrew-mcpreset.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-mcpreset.c gm-mcp-icecrew-mcpreset.obj: $(mcpdir)/gm-mcp-icecrew-mcpreset.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-mcpreset.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Tpo" -c -o gm-mcp-icecrew-mcpreset.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-mcpreset.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-mcpreset.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-mcpreset.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Tpo" "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-mcpreset.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-mcpreset.c' object='gm-mcp-icecrew-mcpreset.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-mcpreset.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-mcpreset.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-mcpreset.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-mcpreset.c'; fi` gm-mcp-icecrew-serverinfo.o: $(mcpdir)/gm-mcp-icecrew-serverinfo.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-serverinfo.o -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Tpo" -c -o gm-mcp-icecrew-serverinfo.o `test -f '$(mcpdir)/gm-mcp-icecrew-serverinfo.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-serverinfo.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Tpo" "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-serverinfo.c' object='gm-mcp-icecrew-serverinfo.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-serverinfo.o `test -f '$(mcpdir)/gm-mcp-icecrew-serverinfo.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-icecrew-serverinfo.c gm-mcp-icecrew-serverinfo.obj: $(mcpdir)/gm-mcp-icecrew-serverinfo.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-icecrew-serverinfo.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Tpo" -c -o gm-mcp-icecrew-serverinfo.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-serverinfo.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-serverinfo.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-serverinfo.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Tpo" "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Po"; else rm -f "$(DEPDIR)/gm-mcp-icecrew-serverinfo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-icecrew-serverinfo.c' object='gm-mcp-icecrew-serverinfo.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-icecrew-serverinfo.obj `if test -f '$(mcpdir)/gm-mcp-icecrew-serverinfo.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-icecrew-serverinfo.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-icecrew-serverinfo.c'; fi` gm-mcp-vmoo-userlist.o: $(mcpdir)/gm-mcp-vmoo-userlist.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-vmoo-userlist.o -MD -MP -MF "$(DEPDIR)/gm-mcp-vmoo-userlist.Tpo" -c -o gm-mcp-vmoo-userlist.o `test -f '$(mcpdir)/gm-mcp-vmoo-userlist.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-vmoo-userlist.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-vmoo-userlist.Tpo" "$(DEPDIR)/gm-mcp-vmoo-userlist.Po"; else rm -f "$(DEPDIR)/gm-mcp-vmoo-userlist.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-vmoo-userlist.c' object='gm-mcp-vmoo-userlist.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-vmoo-userlist.o `test -f '$(mcpdir)/gm-mcp-vmoo-userlist.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-vmoo-userlist.c gm-mcp-vmoo-userlist.obj: $(mcpdir)/gm-mcp-vmoo-userlist.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-vmoo-userlist.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-vmoo-userlist.Tpo" -c -o gm-mcp-vmoo-userlist.obj `if test -f '$(mcpdir)/gm-mcp-vmoo-userlist.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-vmoo-userlist.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-vmoo-userlist.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-vmoo-userlist.Tpo" "$(DEPDIR)/gm-mcp-vmoo-userlist.Po"; else rm -f "$(DEPDIR)/gm-mcp-vmoo-userlist.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-vmoo-userlist.c' object='gm-mcp-vmoo-userlist.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-vmoo-userlist.obj `if test -f '$(mcpdir)/gm-mcp-vmoo-userlist.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-vmoo-userlist.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-vmoo-userlist.c'; fi` gm-mcp-mud-moo-simpleedit.o: $(mcpdir)/gm-mcp-mud-moo-simpleedit.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-mud-moo-simpleedit.o -MD -MP -MF "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Tpo" -c -o gm-mcp-mud-moo-simpleedit.o `test -f '$(mcpdir)/gm-mcp-mud-moo-simpleedit.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-mud-moo-simpleedit.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Tpo" "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Po"; else rm -f "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-mud-moo-simpleedit.c' object='gm-mcp-mud-moo-simpleedit.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-mud-moo-simpleedit.o `test -f '$(mcpdir)/gm-mcp-mud-moo-simpleedit.c' || echo '$(srcdir)/'`$(mcpdir)/gm-mcp-mud-moo-simpleedit.c gm-mcp-mud-moo-simpleedit.obj: $(mcpdir)/gm-mcp-mud-moo-simpleedit.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gm-mcp-mud-moo-simpleedit.obj -MD -MP -MF "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Tpo" -c -o gm-mcp-mud-moo-simpleedit.obj `if test -f '$(mcpdir)/gm-mcp-mud-moo-simpleedit.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-mud-moo-simpleedit.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-mud-moo-simpleedit.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Tpo" "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Po"; else rm -f "$(DEPDIR)/gm-mcp-mud-moo-simpleedit.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(mcpdir)/gm-mcp-mud-moo-simpleedit.c' object='gm-mcp-mud-moo-simpleedit.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gm-mcp-mud-moo-simpleedit.obj `if test -f '$(mcpdir)/gm-mcp-mud-moo-simpleedit.c'; then $(CYGPATH_W) '$(mcpdir)/gm-mcp-mud-moo-simpleedit.c'; else $(CYGPATH_W) '$(srcdir)/$(mcpdir)/gm-mcp-mud-moo-simpleedit.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # 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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @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) $(mkdir_p) $(distdir)/dialogs $(distdir)/mcp $(distdir)/widgets @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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" \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) 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: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) 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) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 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-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-recursive install-man: 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 uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-binPROGRAMS clean-generic clean-libtool \ clean-recursive ctags ctags-recursive dist-hook distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am gm-marshal.h: gm-marshal.list $(GLIB_GENMARSHAL) $(GLIB_GENMARSHAL) $< --header --prefix=gm_marshal > $@ gm-marshal.c: gm-marshal.list $(GLIB_GENMARSHAL) echo "#include \"gm-marshal.h\"" > $@ && \ $(GLIB_GENMARSHAL) $< --body --prefix=gm_marshal >> $@ dist-hook: cd $(distdir); rm -f $(BUILT_SOURCES) # 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-ansi.h���������������������������������������������������������������������0000644�0001750�0001750�00000011121�10410766740�015306� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_ANSI_H__ #define __GM_ANSI_H__ /** \defgroup ansi * @{ */ /** \brief enum indicating ansi code * * Enumeration which indicates the ansi code */ typedef enum _ansi_code { A_DEFAULT = 0, /**< default (reset all attributes) */ A_BOLD = 1, /**< bold text */ A_FAINT = 2, /**< faint text */ A_ITALIC = 3, /**< italic text */ A_UNDERLINE = 4, /**< underlined text */ A_BLINK = 5, /**< blink text */ A_BLINK_FAST = 6, /**< blink fast */ A_INVERSE = 7, /**< inverse foreground/background colors */ A_INVISIBLE = 8, /**< invisible text */ A_CROSSOUT = 9, /**< crossed out text */ A_DOUBLE_UNDERLINE = 21, /**< double underlined text */ A_BOLD_OFF = 22, /**< text no longer bold */ A_ITALIC_OFF = 23, /**< text no longer italic */ A_UNDERLINE_OFF = 24, /**< text no longer underlined */ A_BLINK_OFF = 25, /**< text no longer underlined */ A_BLINK_FAST_OFF = 26, /**< text no longer underlined */ A_INVERSE_OFF = 27, /**< text no longer inversed */ A_INVISIBLE_OFF = 28, /**< text no longer invisible */ A_CROSSOUT_OFF = 29, /**< text no longer crossed out */ A_FG_BLACK = 30, /**< foreground color black */ A_FG_RED = 31, /**< foreground color red */ A_FG_GREEN = 32, /**< foreground color green */ A_FG_YELLOW = 33, /**< foreground color yellow */ A_FG_BLUE = 34, /**< foreground color blue */ A_FG_PURPLE = 35, /**< foreground color purple */ A_FG_CYAN = 36, /**< foreground color cyan */ A_FG_WHITE = 37, /**< foreground color white */ A_FG_DEFAULT = 39, /**< foreground color default */ A_BG_BLACK = 40, /**< background color black */ A_BG_RED = 41, /**< background color red */ A_BG_GREEN = 42, /**< background color green */ A_BG_YELLOW = 43, /**< background color yellow */ A_BG_BLUE = 44, /**< background color blue */ A_BG_PURPLE = 45, /**< background color purple */ A_BG_CYAN = 46, /**< background color cyan */ A_BG_WHITE = 47, /**< background color white */ A_BG_DEFAULT = 49, /**< background color default */ A_NOWRAP = 50, /**< do not wrap this text */ A_FG_BLACK_H, /**< foreground color black high */ A_FG_RED_H, /**< foreground color red high */ A_FG_GREEN_H, /**< foreground color green high */ A_FG_YELLOW_H, /**< foreground color yellow high */ A_FG_BLUE_H, /**< foreground color blue high */ A_FG_PURPLE_H, /**< foreground color purple high */ A_FG_CYAN_H, /**< foreground color cyan high */ A_FG_WHITE_H, /**< foreground color white high */ A_FG_DEFAULT_H /**< foreground color default high */ } ansi_code; /** \brief struct for containing ansi-name pair * * Struct can be used to create a code to name to code mapping */ typedef struct _ansinamepair { const ansi_code code; /**< the ansi code */ const char *name; /**< the ansi name */ } ansinamepair; /** \brief array containing color code/name mapping * * Array which can be used for color code/name mapping */ static const ansinamepair ansi_colors[] = { {A_FG_BLACK, "fg_black"}, {A_FG_RED, "fg_red"}, {A_FG_GREEN, "fg_green"}, {A_FG_YELLOW, "fg_yellow"}, {A_FG_BLUE, "fg_blue"}, {A_FG_PURPLE, "fg_purple"}, {A_FG_CYAN, "fg_cyan"}, {A_FG_WHITE, "fg_white"}, {A_FG_DEFAULT, "fg_default"}, {A_FG_BLACK_H, "fg_black_h"}, {A_FG_RED_H, "fg_red_h"}, {A_FG_GREEN_H, "fg_green_h"}, {A_FG_YELLOW_H, "fg_yellow_h"}, {A_FG_BLUE_H, "fg_blue_h"}, {A_FG_PURPLE_H, "fg_purple_h"}, {A_FG_CYAN_H, "fg_cyan_h"}, {A_FG_WHITE_H, "fg_white_h"}, {A_FG_DEFAULT_H, "fg_default_h"}, {A_BG_BLACK, "bg_black"}, {A_BG_RED, "bg_red"}, {A_BG_GREEN, "bg_green"}, {A_BG_YELLOW, "bg_yellow"}, {A_BG_BLUE, "bg_blue"}, {A_BG_PURPLE, "bg_purple"}, {A_BG_CYAN, "bg_cyan"}, {A_BG_WHITE, "bg_white"}, {A_BG_DEFAULT, "bg_default"} }; /** \brief array containing style code/name mapping * * Array which can be used for style code/name mapping */ static const ansinamepair ansi_styles[] = { {A_BOLD, "bold"}, {A_FAINT, "faint"}, {A_BOLD_OFF, "bold-off"}, {A_UNDERLINE, "underline"}, {A_DOUBLE_UNDERLINE, "dblunderline"}, {A_UNDERLINE_OFF, "underline-off"}, {A_CROSSOUT, "crossout"}, {A_CROSSOUT_OFF, "crossout-off"}, {A_ITALIC, "italic"}, {A_ITALIC_OFF, "italic-off"}, {A_INVISIBLE, "invisible"}, {A_INVISIBLE_OFF, "invisible-off"} }; /** @} */ #endif /* __GM_ANSI_H__ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-ui.h�����������������������������������������������������������������������0000644�0001750�0001750�00000010351�10507673544�015003� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_UI_H__ #define __GM_UI_H__ #ifdef HAVE_CONFIG_H #include "../config.h" #endif #include <gtk/gtk.h> #include "widgets/gm-app-view.h" #include "widgets/gm-commands.h" #include "gm-support.h" #include "gm-pixbuf.h" G_BEGIN_DECLS static const GtkActionEntry gm_sensitive_menu_entries[] = { /* Toplevel */ {"World", NULL, N_("_World")}, {"Edit", NULL, N_("_Edit")}, {"View", NULL, N_("_View")}, {"Help", NULL, N_("_Help")}, /* World menu */ {"WorldNew", GTK_STOCK_NEW, N_("New World..."), "<control>N", N_("Create a new world"), G_CALLBACK(on_action_world_new)}, {"WorldOpen", GTK_STOCK_OPEN, N_("Open World..."), "<control>O", N_("Open an existing world"), G_CALLBACK(on_action_world_open)}, {"WorldQuit", GTK_STOCK_QUIT, NULL, NULL, N_("Quit the program"), G_CALLBACK(on_action_world_quit)}, /* Edit menu */ {"EditWorlds", NULL, N_("Worlds..."), NULL, N_("Edit worlds"), G_CALLBACK(on_action_edit_worlds)}, {"EditPreferences", GTK_STOCK_PREFERENCES, NULL, NULL, N_("Configure the application"), G_CALLBACK(on_action_edit_preferences)}, {"EditScripts", NULL, N_("Scripts"), NULL, N_("Edit scripts"), G_CALLBACK(on_action_edit_scripts)}, /* Help menu */ {"HelpAbout", GTK_STOCK_ABOUT, NULL, NULL, N_("About this application"), G_CALLBACK(on_action_help_about)} }; static const GtkToggleActionEntry gm_toggle_menu_entries[] = { /* View menu */ {"ViewToolbar", NULL, N_("_Toolbar"), NULL, N_("Show or hide the toolbar"), G_CALLBACK(on_action_view_toolbar), TRUE}, {"ViewUserlist", NULL, N_("_Userlist"), "F9", N_("Show or hide the world userlist"), G_CALLBACK(on_action_view_userlist), TRUE}, }; static const GtkActionEntry gm_editor_entries[] = { {"Editor", NULL, N_("E_ditor")}, /* Editor toolbar */ {"EditorSave", GTK_STOCK_SAVE, N_("Save"), "<control>S", N_("Save editor contents"), G_CALLBACK(on_action_editor_save)}, {"EditorSaveClose", GM_STOCK_SAVE_CLOSE, N_("Save and close"), NULL, N_("Save editor contents and close editor"), G_CALLBACK(on_action_editor_save_close)}, #ifdef HAVE_PARSER {"EditorParse", GTK_STOCK_EXECUTE, N_("Check code"), "<control><shift>P", N_("Check code for warnings and errors"), G_CALLBACK(on_action_editor_parse)}, #endif {"EditorClose", GTK_STOCK_CLOSE, N_("Close"), NULL, N_("Close current editor"), G_CALLBACK(on_action_editor_close)} }; static const GtkActionEntry gm_menu_entries[] = { /* File menu */ {"WorldConnect", GTK_STOCK_CONNECT, N_("Connect"), "<control><shift>C", N_("Connect the current world"), G_CALLBACK(on_action_world_connect)}, {"WorldClose", GTK_STOCK_CLOSE, NULL, NULL, N_("Close current world"), G_CALLBACK(on_action_world_close)}, {"WorldPaste", GTK_STOCK_PASTE, N_("Paste"), "<control>P", N_("Paste text to the current world"), G_CALLBACK(on_action_world_paste)}, {"WorldLogs", GTK_STOCK_JUSTIFY_LEFT, N_("Logs"), NULL, N_("View current world logs"), G_CALLBACK(on_action_world_logs)}, {"WorldInfo", GTK_STOCK_INFO, N_("In_fo"), NULL, N_("View current world info"), NULL}, /* Edit menu */ {"EditCut", GTK_STOCK_CUT, NULL, "<control>X", N_("Cut the selection"), G_CALLBACK(on_action_edit_cut)}, {"EditCopy", GTK_STOCK_COPY, NULL, "<control>C", N_("Copy the selection"), G_CALLBACK(on_action_edit_copy)}, {"EditPaste", GTK_STOCK_PASTE, NULL, "<control>V", N_("Paste the clipboard"), G_CALLBACK(on_action_edit_paste)}, {"EditWorld", NULL, N_("Current world..."), NULL, N_("Edit the current world"), G_CALLBACK(on_action_edit_world)}, {"EditFind", GTK_STOCK_FIND, NULL, "<control>F", N_("Search for text"), G_CALLBACK(on_gm_app_view_edit_find)}, {"EditFindNext", GTK_STOCK_FIND, N_("Find Ne_xt"), "<control>G", N_("Search forwards for the same text"), G_CALLBACK(on_gm_app_view_edit_find_next)}, {"EditReplace", GTK_STOCK_FIND_AND_REPLACE, N_("_Replace..."), "<control>R", N_("Search for and replace text"), G_CALLBACK(on_gm_app_view_edit_replace)}, /* Toolbar */ {"WorldTriggers", GTK_STOCK_INDEX, N_("Triggers"), NULL, N_("Edit the current world triggers"), G_CALLBACK(on_action_edit_triggers)}, {"WorldProperties", GTK_STOCK_PROPERTIES, N_("Properties"), NULL, N_("Edit the current world"), G_CALLBACK(on_action_edit_world)} }; G_END_DECLS #endif /* __GEDIT_UI_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-app.c����������������������������������������������������������������������0000644�0001750�0001750�00000037564�10507237771�015156� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <gtk/gtk.h> #include <libgnome/libgnome.h> #include <libgnomevfs/gnome-vfs.h> #include <libgnomeui/libgnomeui.h> #include <strings.h> #include <signal.h> #include "widgets/gm-app-view.h" #include "gm-world.h" #include "gm-color-table.h" #include "gm-app.h" #include "gm-ansi.h" #include "gm-debug.h" #include "gm-pixbuf.h" #include "gm-support.h" #include "gm-scripts.h" static gchar *debug_level = NULL; static gboolean show_version = FALSE; static gboolean recover = FALSE; static gchar *load_worlds = NULL; static GmApp *application; struct poptOption poptions[] = { {"debug", 'd', POPT_ARG_STRING, &debug_level, 0, N_("Enable debugging. " "Specify multiple debug levels with a comma seperated list. " "Available levels: default, mcp, all"), N_("DBGGLEVEL")}, {"version", 'v', POPT_ARG_NONE, &show_version, 0, N_("Show application " "version"), NULL}, {"load", 'l', POPT_ARG_STRING, &load_worlds, 0, N_("Load specified worlds. " "Specify multiple worlds with a comma separated list"), N_("WORLDS")}, {"recover", 'r', POPT_ARG_NONE, &recover, 0, N_("Recover from previous " "session (used with gnome session)"), NULL}, {NULL, '\0', 0, NULL, 0, NULL, NULL} }; #define GM_APP_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_APP, GmAppPrivate)) static void gm_app_destroy_worlds(GmApp *app); static void on_signal_quit(int signum); struct _GmAppPrivate { gchar *path; gchar *worlds_path; gchar *options_path; GmAppView *view; GmOptions *options; GmColorTable *color_table; GnomeClient *client; GList *worlds; #ifdef HAVE_RUBY GmScripts *scripts; #endif //tray_info tray; }; /* Properties */ enum { PROP_0, PROP_WORLDS_PATH, PROP_PATH, PROP_OPTIONS, PROP_WORLDS, PROP_COLOR_TABLE }; /* Signals */ enum { WORLD_ADDED, WORLD_REMOVED, NUM_SIGNALS }; static guint app_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmApp, gm_app, G_TYPE_OBJECT) static void gm_app_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GmApp *app = GM_APP(object); switch (prop_id) { case PROP_WORLDS_PATH: g_value_set_string(value, gm_app_worlds_path(app)); break; case PROP_PATH: g_value_set_string(value, gm_app_path(app)); break; case PROP_OPTIONS: g_value_set_object(value, gm_app_options(app)); break; case PROP_COLOR_TABLE: g_value_set_object(value, gm_app_color_table(app)); break; case PROP_WORLDS: g_value_set_pointer(value, gm_app_worlds(app)); break; } } static void gm_app_finalize(GObject *object) { GmApp *app = GM_APP(object); if (GTK_IS_WIDGET(app->priv->view)) gtk_widget_destroy(GTK_WIDGET(app->priv->view)); gnome_vfs_shutdown(); #ifdef HAVE_RUBY g_object_unref(app->priv->scripts); #endif gm_app_destroy_worlds(app); gm_pixbuf_fini(); gm_options_save(app->priv->options); g_object_unref(app->priv->options); gm_color_table_save(app->priv->color_table); g_object_unref(app->priv->color_table); g_free(app->priv->path); g_free(app->priv->worlds_path); g_free(app->priv->options_path); G_OBJECT_CLASS(gm_app_parent_class)->finalize(object); } static void gm_app_class_init(GmAppClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_app_finalize; object_class->get_property = gm_app_get_property; g_object_class_install_property(object_class, PROP_PATH, g_param_spec_string("path", "PATH", "The app path", NULL, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_WORLDS_PATH, g_param_spec_string("worlds_path", "WORLDS_PATH", "The worlds path", NULL, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_OPTIONS, g_param_spec_object("options", "OPTIONS", "Options object", GM_TYPE_OPTIONS, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_COLOR_TABLE, g_param_spec_object("color_table", "COLOR_TABLE", "ColorTable object", GM_TYPE_COLOR_TABLE, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_WORLDS, g_param_spec_pointer("worlds", "WORLDS", "Worlds list", G_PARAM_READABLE)); app_signals[WORLD_ADDED] = g_signal_new("world_added", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmAppClass, world_added), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); app_signals[WORLD_REMOVED] = g_signal_new("world_removed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmAppClass, world_removed), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); g_type_class_add_private(object_class, sizeof(GmAppPrivate)); } static void gm_app_init(GmApp *app) { app->priv = GM_APP_GET_PRIVATE(app); app->priv->path = NULL; app->priv->worlds_path = NULL; app->priv->options_path = NULL; app->priv->options = NULL; app->priv->client = NULL; app->priv->worlds = NULL; } /* Private functions */ static void gm_app_destroy_worlds(GmApp *app) { GList *item; for (item = app->priv->worlds; item; item = item->next) { g_object_unref(GM_WORLD(item->data)); } g_list_free(app->priv->worlds); app->priv->worlds = NULL; } static void on_gm_app_session_die(GnomeClient * client, gpointer client_data) { gtk_main_quit(); } static gboolean on_gm_app_save_session(GnomeClient * client, gint phase, GnomeSaveStyle save_style, gint is_shutdown, GnomeInteractStyle interact_style, gint is_fast, gchar ** client_data) { gchar **argv; gint argc = sizeof(client_data) / sizeof(gchar *) + 1; int i; GString *ws = g_string_new(""); GList *elem, *list; GmWorld *world; argv = g_new(gchar *, argc); argv[0] = client_data[0]; argv[1] = "--recover"; for (i = 1; i < argc - 1; i++) { argv[i + 1] = client_data[i]; } gnome_client_set_clone_command(client, argc, argv); gnome_client_set_restart_command(client, argc, argv); // Saving worlds state list = gm_app_worlds(application); for (elem = list; elem; elem = elem->next) { world = (GmWorld *) (elem->data); if (gm_world_loaded(world)) { if (strlen(ws->str) != 0) { ws = g_string_append_c(ws, ';'); } ws = g_string_append(ws, gm_world_name(world)); } } g_list_free(list); gm_options_set(gm_app_options(application), "worlds_saved_state", ws->str); gm_options_save(gm_app_options(application)); g_string_free(ws, TRUE); return TRUE; } static void gm_app_create_settings(GmApp *app) { app->priv->options = gm_options_new(); gm_options_set(app->priv->options, "editor_alternative", "0"); gm_options_set(app->priv->options, "editor_embed", "0"); gm_options_set(app->priv->options, "editor_needs_terminal", "0"); #ifdef HAVE_PARSER gm_options_set(app->priv->options, "auto_check_syntax", "1"); #endif gm_options_set(app->priv->options, "worlds_saved_state", ""); gm_options_set(app->priv->options, "search_direction_world", "1"); gm_options_set(app->priv->options, "search_direction", "0"); gm_options_set(app->priv->options, "search_sensitive", "0"); // Default logging settings gm_options_set(app->priv->options, "logging_enable", "1"); gm_options_set(app->priv->options, "logging_in", "1"); gm_options_set(app->priv->options, "logging_out", "1"); gm_options_set(app->priv->options, "logging_status", "1"); gm_options_set(app->priv->options, "logging_mcp_in", "0"); gm_options_set(app->priv->options, "logging_mcp_out", "0"); gm_options_set(app->priv->options, "logging_mcp_status", "0"); gm_options_set(app->priv->options, "logging_add_timestamp", "1"); gm_options_set(app->priv->options, "logging_add_log_type", "1"); // Default logging filter settings gm_options_set(app->priv->options, "logging_filter_in", "1"); gm_options_set(app->priv->options, "logging_filter_out", "1"); gm_options_set(app->priv->options, "logging_filter_status", "1"); gm_options_set(app->priv->options, "logging_filter_mcp_in", "0"); gm_options_set(app->priv->options, "logging_filter_mcp_out", "0"); gm_options_set(app->priv->options, "logging_filter_mcp_status", "0"); // Default userlist settings gm_options_set(app->priv->options, "userlist_sort_type", "0"); gm_options_set(app->priv->options, "userlist_show_object_number", "0"); gm_options_set(app->priv->options, "userlist_show_status", "1"); gm_options_set(app->priv->options, "userlist_use_state_icon", "1"); // Default view settings gm_options_set(app->priv->options, "show_toolbar", "1"); gm_options_set(app->priv->options, "show_userlist", "1"); } static void gm_app_load_worlds(GmApp *app, gboolean autoload) { GDir *handle = g_dir_open(app->priv->worlds_path, 0, NULL); char *name, *path; GmWorld *new_world; if (handle != NULL) { while ((name = (char *) g_dir_read_name(handle)) != NULL) { path = g_strconcat(app->priv->worlds_path, G_DIR_SEPARATOR_S, name, NULL); if (g_file_test(path, G_FILE_TEST_IS_DIR)) { new_world = gm_world_new(path); if (new_world != NULL) { gm_app_add_world(app, new_world); if (autoload && gm_options_get_int( gm_world_options(new_world), "autoload")) { gm_world_load(new_world); } } } else { gm_debug_msg(DEBUG_ALWAYS, "Directory can't be opened: %s", path); } g_free(path); } g_dir_close(handle); } else { gm_debug_msg(DEBUG_DEFAULT, "GmApp.load_worlds: failed to open worlds " "path %s", app->priv->path); } } static void gm_app_convert_old_color_configuration(GmApp *app, gchar const *colors_path) { guint i; gchar const *color, *value; FILE *f; GmColorTable *table; gboolean is_scheme = TRUE; f = fopen(colors_path, "w"); if (!f) { gm_debug_msg(DEBUG_DEFAULT, "Can't open colors file (%s) for writing!", colors_path); return; } // Create a template color table with the WHITE_ON_BLACK scheme table = gm_color_table_new(); gm_color_table_load_scheme(table, SCHEME_WHITE_ON_BLACK); // Copy every color related item from ->options_path to colors_path for (i = 0; i < sizeof(ansi_colors) / sizeof(ansinamepair); ++i) { color = ansi_colors[i].name; value = gm_options_get(app->priv->options, color); if (value) { is_scheme = is_scheme && strcmp(value, gm_color_table_get_hex(table, color)) == 0; fprintf(f, "%s=%s\n", color, value); gm_options_remove(app->priv->options, color); } } value = gm_options_get(app->priv->options, "font-family"); if (value) { fprintf(f, "font_family=%s\n", value); } gm_options_remove(app->priv->options, "font-family"); gm_options_remove(app->priv->options, "bold-colors"); gm_options_remove(app->priv->options, "background_transparancy"); gm_options_remove(app->priv->options, "background_transparent"); if (is_scheme) { fputs("color_scheme=default\n", f); } else { fputs("color_scheme=user\n", f); } fclose(f); g_object_unref(G_OBJECT(table)); } static void gm_app_initialize(GmApp *app) { gchar *colors_path; gm_debug_set_level(debug_level); app->priv->worlds_path = g_strconcat(app->priv->path, G_DIR_SEPARATOR_S, "worlds", NULL); app->priv->options_path = g_strconcat(app->priv->path, G_DIR_SEPARATOR_S, "settings.xml", NULL); if (!g_file_test(app->priv->path, G_FILE_TEST_EXISTS)) { mkdir(app->priv->path, 0755); mkdir(app->priv->worlds_path, 0755); } #ifdef HAVE_RUBY app->priv->scripts = gm_scripts_new(); #endif gm_app_create_settings(app); _gm_options_check_old_options(app->priv->options_path); gm_options_load(app->priv->options, app->priv->options_path); // Load color table colors_path = g_strconcat(app->priv->path, G_DIR_SEPARATOR_S, "colors", NULL); if (!g_file_test(colors_path, G_FILE_TEST_EXISTS)) { // There is no `new` color configuration yet. Copy from general options gm_app_convert_old_color_configuration(app, colors_path); } g_free(colors_path); colors_path = g_strconcat(app->priv->path, G_DIR_SEPARATOR_S, "colors.xml", NULL); app->priv->color_table = gm_color_table_new_from_options(colors_path); g_free(colors_path); } static void gm_app_run(GmApp *app) { gchar **wrlds; const gchar *savedState; int i = 0; GmWorld *world; app->priv->view = gm_app_view_new(app); gtk_widget_show(GTK_WIDGET(app->priv->view)); #ifdef HAVE_RUBY gm_scripts_load(app->priv->scripts); #endif gm_app_load_worlds(app, !(recover || load_worlds)); if (recover) { savedState = gm_options_get(app->priv->options, "worlds_saved_state"); if (strlen(savedState) != 0) { wrlds = g_strsplit(savedState, ";", -1); for (i = 0; wrlds[i]; i++) { if (strlen(wrlds[i]) != 0) { world = gm_app_world_by_name(app, wrlds[i]); if (world) { gm_world_load(world); } } } g_strfreev(wrlds); } } else if (load_worlds) { wrlds = g_strsplit(load_worlds, ",", -1); for (i = 0; wrlds[i]; i++) { world = gm_app_world_by_name(app, wrlds[i]); if (world) { gm_world_load(world); } } g_strfreev(wrlds); } gtk_main(); } /* Public functions */ GmApp * gm_app_new(int argc, char *argv[]) { GmApp *app = GM_APP(g_object_new(GM_TYPE_APP, NULL)); app->priv->path = gnome_util_home_file("gnoemoe"); if (!app->priv->path) { printf(_("GnoeMoe Application: there is no application directory, " "this is very bad!!!\n")); return app; } bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); g_thread_init(NULL); gtk_set_locale(); gtk_init(&argc, &argv); gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_POPT_TABLE, poptions, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); app->priv->client = gnome_master_client(); gtk_signal_connect(GTK_OBJECT(app->priv->client), "save_yourself", GTK_SIGNAL_FUNC(on_gm_app_save_session), argv); gtk_signal_connect(GTK_OBJECT(app->priv->client), "die", GTK_SIGNAL_FUNC(on_gm_app_session_die), NULL); /* Initialize everything */ gnome_vfs_init(); glade_init(); gm_pixbuf_init(); gm_app_initialize(app); if (show_version) { g_object_unref(G_OBJECT(app)); printf(_("Current version of GnoeMoe is %s\n"), VERSION); return NULL; } return app; } gint gm_app_compare_worlds(GmWorld *world1, GmWorld *world2) { return strcasecmp(gm_world_name(world1), gm_world_name(world2)); } void gm_app_add_world(GmApp *app, GmWorld *world) { app->priv->worlds = g_list_insert_sorted(app->priv->worlds, world, (GCompareFunc)(gm_app_compare_worlds)); g_signal_emit(app, app_signals[WORLD_ADDED], 0, world); } void gm_app_remove_world(GmApp *app, GmWorld *world) { // Only remove when not loaded gchar *path; if (!gm_world_loaded(world)) { path = g_strdup(gm_world_path(world)); app->priv->worlds = g_list_remove(app->priv->worlds, world); g_signal_emit(app, app_signals[WORLD_REMOVED], 0, world); g_object_unref(world); gm_directory_remove_all(path, TRUE); g_free(path); } } GmWorld * gm_app_world_by_name(GmApp *app, gchar *name) { GList *elem; const gchar *world_name; for (elem = app->priv->worlds; elem; elem = elem->next) { world_name = gm_world_name(GM_WORLD(elem->data)); if (!g_strcasecmp(name, world_name)) { return GM_WORLD(elem->data); } } return NULL; } GmOptions * gm_app_options(GmApp *app) { return app->priv->options; } #ifdef HAVE_RUBY GmScripts * gm_app_scripts(GmApp *app) { return app->priv->scripts; } #endif const gchar * gm_app_worlds_path(GmApp *app) { return app->priv->worlds_path; } const gchar * gm_app_path(GmApp *app) { return app->priv->path; } GList * gm_app_worlds(GmApp *app) { return g_list_copy(app->priv->worlds); } GmColorTable * gm_app_color_table(GmApp *app) { return app->priv->color_table; } GmApp * gm_app_instance() { return application; } int main(int argc, char *argv[]) { g_type_init(); application = gm_app_new(argc, argv); if (application) { signal(SIGTERM, on_signal_quit); signal(SIGHUP, on_signal_quit); signal(SIGINT, on_signal_quit); gm_app_run(application); g_object_unref(application); } return 0; } /* Signal handlers */ static void on_signal_quit(int signum) { gtk_main_quit(); } ��������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-app.h����������������������������������������������������������������������0000644�0001750�0001750�00000003554�10410766740�015147� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_APP_H__ #define __GM_APP_H__ //#define G_XML PACKAGE_DATA_DIR "/" PACKAGE "/ui/gm-main.glade" #include <gtk/gtk.h> #include "gm-world.h" #include "gm-options.h" #include "gm-color-table.h" #include "gm-scripts.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_APP (gm_app_get_type()) #define GM_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_APP, GmApp)) #define GM_APP_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_APP, GmApp const)) #define GM_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_APP, GmAppClass)) #define GM_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_APP)) #define GM_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_APP)) #define GM_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_APP, GmAppClass)) /* Private structure type */ typedef struct _GmAppPrivate GmAppPrivate; /* * Main object structure */ typedef struct _GmApp GmApp; struct _GmApp { GObject object; /*< private > */ GmAppPrivate *priv; }; /* * Class definition */ typedef struct _GmAppClass GmAppClass; struct _GmAppClass { GObjectClass parent_class; /* Signals */ void (* world_added) (GmApp *app, GmWorld *world); void (* world_removed) (GmApp *app, GmWorld *world); }; GmApp *gm_app_instance(); GType gm_app_get_type(void) G_GNUC_CONST; GmApp *gm_app_new(int argc, char *argv[]); void gm_app_add_world(GmApp *app, GmWorld *world); void gm_app_remove_world(GmApp *app, GmWorld *world); const gchar *gm_app_worlds_path(GmApp *app); const gchar *gm_app_path(GmApp *app); GmOptions *gm_app_options(GmApp *app); GList *gm_app_worlds(GmApp *app); GmColorTable *gm_app_color_table(GmApp *app); GmWorld *gm_app_world_by_name(GmApp *app, gchar *name); #ifdef HAVE_RUBY GmScripts *gm_app_scripts(GmApp *app); #endif G_END_DECLS #endif /* __GM_APP_H__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-options.c������������������������������������������������������������������0000644�0001750�0001750�00000017536�10452162744�016062� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <libxml/parser.h> #include <unistd.h> #include "gm-options.h" #include "gm-string.h" #include "gm-debug.h" extern int errno; #define GM_OPTIONS_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_OPTIONS, GmOptionsPrivate)) struct _GmOptionsPrivate { GHashTable *options; gchar *filepath; }; /* Signals */ enum { OPTION_CHANGED, NUM_SIGNALS }; #define XML_ROOT_NAME "options" #define XML_OPTION_NAME "option" static guint options_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmOptions, gm_options, G_TYPE_OBJECT) static void gm_options_finalize(GObject *object) { GmOptions *options = GM_OPTIONS(object); g_hash_table_destroy(options->priv->options); g_free(options->priv->filepath); G_OBJECT_CLASS(gm_options_parent_class)->finalize(object); } static void gm_options_class_init(GmOptionsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_options_finalize; options_signals[OPTION_CHANGED] = g_signal_new("option_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmOptionsClass, option_changed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); g_type_class_add_private(object_class, sizeof(GmOptionsPrivate)); } static void gm_options_init(GmOptions *options) { options->priv = GM_OPTIONS_GET_PRIVATE(options); options->priv->options = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); options->priv->filepath = NULL; } static void gm_options_load_option(GmOptions *options, xmlDocPtr doc, xmlNodePtr ptr) { xmlChar *key, *value; key = xmlGetProp(ptr, (const xmlChar *)"key"); value = xmlGetProp(ptr, (const xmlChar *)"value"); if (key == NULL) { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load_option: key not present in option"); } else if (value == NULL) { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load_option: value not present in option"); } else { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load_option: adding option %s: %s", key, value); gm_options_set(options, (gchar const *)key, (gchar const *)value); } xmlFree(key); xmlFree(value); } static void gm_options_save_option(gchar *key, gchar *value, xmlNodePtr root) { xmlNodePtr option; gm_debug_msg(DEBUG_DEFAULT, "GmOptions.SaveValue: saving %s, %s", key, value); option = xmlNewChild(root, NULL, (const xmlChar *)(XML_OPTION_NAME), NULL); xmlNewProp(option, (const xmlChar *)("key"), (const xmlChar *)(key)); xmlNewProp(option, (const xmlChar *)("value"), (const xmlChar *)(value)); } static void gm_options_dup_option(gchar *key, gchar *value, GmOptions *copy) { gm_options_set(copy, key, value); } /* Public functions */ GmOptions * gm_options_new(void) { GmOptions *options = GM_OPTIONS(g_object_new(GM_TYPE_OPTIONS, NULL)); return options; } GmOptions * gm_options_dup(GmOptions *source) { GmOptions *copy = gm_options_new(); g_hash_table_foreach(source->priv->options, (GHFunc)gm_options_dup_option, copy); return copy; } // Adds an option to opt, even if key already exists void gm_options_set(GmOptions * options, gchar const *key, gchar const *value) { gchar *trimmed = gm_string_trim(key); gchar *lookup = g_hash_table_lookup(options->priv->options, trimmed); gboolean changed = lookup != NULL && lookup != value; if (lookup != value) { g_hash_table_insert(options->priv->options, g_strdup(trimmed), g_strdup(value)); } if (changed) { g_signal_emit(options, options_signals[OPTION_CHANGED], 0, trimmed); } g_free(trimmed); } gchar const * gm_options_get(GmOptions *options, gchar const *key) { return g_hash_table_lookup(options->priv->options, key); } void gm_options_set_int(GmOptions *options, gchar const *key, int value) { gchar val[15]; g_snprintf((gchar *) &val, 15, "%d", value); gm_options_set(options, key, (gchar const *)val); } int gm_options_get_int(GmOptions *options, gchar const *key) { gchar const *val = gm_options_get(options, key); int ret; if (val && gm_string_to_int(val, &ret)) { return ret; } else { return 0; } } void gm_options_remove(GmOptions *options, gchar const *key) { g_hash_table_remove(options->priv->options, key); } void gm_options_save(GmOptions *options) { xmlDocPtr doc; xmlNodePtr root; if (options->priv->filepath == NULL) { return; } gm_debug_msg(DEBUG_DEFAULT, "GmOptions.save: saving options (%s)!", options->priv->filepath); doc = xmlNewDoc((const xmlChar *)("1.0")); root = xmlNewNode(NULL, (const xmlChar *)(XML_ROOT_NAME)); xmlDocSetRootElement(doc, root); g_hash_table_foreach(options->priv->options, (GHFunc)gm_options_save_option, root); xmlSaveFormatFileEnc(options->priv->filepath, doc, "UTF-8", 1); xmlFreeDoc(doc); // Make sure to make this only readable for the user and the group chmod(options->priv->filepath, 0660); } void gm_options_save_as(GmOptions *options, gchar const *filename) { g_free(options->priv->filepath); options->priv->filepath = g_strdup(filename); gm_options_save(options); } gboolean gm_options_load(GmOptions *options, gchar const *filename) { xmlDocPtr doc; xmlNodePtr root; gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load: loading options (%s)!", filename); g_free(options->priv->filepath); options->priv->filepath = g_strdup(filename); if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load: file does not exist"); return FALSE; } doc = xmlParseFile(filename); if (doc == NULL) { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load: error on parsing options file"); return FALSE; } root = xmlDocGetRootElement(doc); if (root == NULL) { xmlFreeDoc(doc); return FALSE; } if (xmlStrcmp(root->name, (const xmlChar *)(XML_ROOT_NAME))) { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load: invalid root node"); xmlFreeDoc(doc); return FALSE; } for (root = root->xmlChildrenNode; root; root = root->next) { if (!xmlStrcmp(root->name, (const xmlChar *)(XML_OPTION_NAME))) { gm_options_load_option(options, doc, root); } } xmlFreeDoc(doc); return TRUE; } void _gm_options_check_old_options(gchar const *xmlname) { gchar *filename; xmlDocPtr doc; xmlNodePtr root; FILE *f; gchar **keyvalue, line[1024]; gint i; filename = g_strdup(xmlname); filename[strlen(xmlname) - 4] = '\0'; if (g_file_test(xmlname, G_FILE_TEST_EXISTS) || !g_file_test(filename, G_FILE_TEST_EXISTS)) { g_free(filename); return; } doc = xmlNewDoc((const xmlChar *)("1.0")); root = xmlNewNode(NULL, (const xmlChar *)(XML_ROOT_NAME)); xmlDocSetRootElement(doc, root); if ((f = fopen(filename, "r")) != NULL) { i = 0; while (fgets((char *) &line, 1024 - 1, f) != NULL) { line[strlen((char *) &line) - 1] = '\0'; i++; if (strlen(line) != 0) { // Empty lines, we don't need to process those keyvalue = g_strsplit(line, "=", 2); // This will return at least 1 element, at most 2, we need 2 if (strncmp(keyvalue[0], "#", 1) != 0) { // Commented lines, well ignore them too if (keyvalue[1] != NULL) { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.check_old_options: converting %s, %s", keyvalue[0], keyvalue[1]); gm_options_save_option(keyvalue[0], keyvalue[1], root); } else { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.load: wrong " "syntax of options line in %s line %d", filename, i); } } g_strfreev(keyvalue); } } fclose(f); } else { gm_debug_msg(DEBUG_DEFAULT, "GmOptions.check_old_options: could not " "retrieve contents of file %s (%s)", filename, strerror(errno)); } xmlSaveFormatFileEnc(xmlname, doc, "UTF-8", 1); xmlFreeDoc(doc); if (g_file_test(xmlname, G_FILE_TEST_EXISTS)) { // Make sure to make this only readable for the user and the group chmod(xmlname, 0660); unlink(filename); } g_free(filename); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-options.h������������������������������������������������������������������0000644�0001750�0001750�00000004011�10452162126�016041� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_OPTIONS_H__ #define __GM_OPTIONS_H__ #include <glib.h> #include <gtk/gtk.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_OPTIONS (gm_options_get_type()) #define GM_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_OPTIONS, GmOptions)) #define GM_OPTIONS_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_OPTIONS, GmOptions const)) #define GM_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_OPTIONS, GmOptionsClass)) #define GM_IS_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_OPTIONS)) #define GM_IS_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_OPTIONS)) #define GM_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_OPTIONS, GmOptionsClass)) /* Private structure type */ typedef struct _GmOptionsPrivate GmOptionsPrivate; /* * Main object structure */ typedef struct _GmOptions GmOptions; struct _GmOptions { GObject object; /*< private > */ GmOptionsPrivate *priv; }; /* * Class definition */ typedef struct _GmOptionsClass GmOptionsClass; struct _GmOptionsClass { GObjectClass parent_class; /* Signals */ void (* option_changed) (GmOptions *options, gchar const *key); }; GType gm_options_get_type(void) G_GNUC_CONST; GmOptions *gm_options_new(void); GmOptions *gm_options_dup(GmOptions *source); void gm_options_set(GmOptions *options, gchar const *key, gchar const *value); gchar const *gm_options_get(GmOptions *options, gchar const *key); void gm_options_set_int(GmOptions *options, gchar const *key, int value); int gm_options_get_int(GmOptions *options, gchar const *key); void gm_options_remove(GmOptions *options, gchar const *key); void gm_options_save(GmOptions *options); void gm_options_save_as(GmOptions *options, gchar const *filename); gboolean gm_options_load(GmOptions *options, gchar const *filename); void _gm_options_check_old_options(gchar const *filename); G_END_DECLS #endif /* __GM_OPTIONS_H__ */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-color-table.c��������������������������������������������������������������0000644�0001750�0001750�00000037743�10507235467�016600� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib.h> #include <gconf/gconf-client.h> #include "gm-color-table.h" #include <string.h> #include "gm-ansi.h" #include "gm-debug.h" #define GM_COLOR_TABLE_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_COLOR_TABLE, GmColorTablePrivate)) static void gm_color_table_item_free(gpointer item); typedef struct _GmColorTableItem GmColorTableItem; struct _GmColorTableItem { gchar *hex; GdkColor color; }; typedef struct _GmColorTableSchemeItem { const gchar *name; const gchar *hex; } GmColorTableSchemeItem; static const GmColorTableSchemeItem scheme_default[] = { {"fg_default", "#000000"}, {"fg_black", "#000000"}, {"fg_red", "#aa0000"}, {"fg_green", "#00aa00"}, {"fg_yellow", "#aa5500"}, {"fg_blue", "#0000aa"}, {"fg_purple", "#aa00aa"}, {"fg_cyan", "#00aaaa"}, {"fg_white", "#aaaaaa"}, {"fg_default_h", "#555555"}, {"fg_black_h", "#555555"}, {"fg_red_h", "#ff5555"}, {"fg_green_h", "#55ff55"}, {"fg_yellow_h", "#ffff55"}, {"fg_blue_h", "#5555ff"}, {"fg_purple_h", "#ff55ff"}, {"fg_cyan_h", "#55ffff"}, {"fg_white_h", "#ffffff"}, {"bg_default", "#ffffff"}, {"bg_black", "#222222"}, {"bg_red", "#770000"}, {"bg_green", "#007700"}, {"bg_yellow", "#ddaa33"}, {"bg_blue", "#000077"}, {"bg_purple", "#770077"}, {"bg_cyan", "#007777"}, {"bg_white", "#777777"}, {NULL, NULL} }; static const GmColorTableSchemeItem scheme_white_on_black[] = { {"fg_default", "#D6B5D6B5D6B5"}, {"fg_black", "#2D6B2D6B2D6B"}, {"fg_red", "#FFFF00000000"}, {"fg_green", "#0000FFFF0000"}, {"fg_yellow", "#FFFFD0450000"}, {"fg_blue", "#3EF73EF7BFFF"}, {"fg_purple", "#A0A02020F0F0"}, {"fg_cyan", "#0000FFFFFFFF"}, {"fg_white", "#D8C5D8C5D8C5"}, {"fg_default_h", "#FFFFFFFFFFFF"}, {"fg_black_h", "#529452945294"}, {"fg_red_h", "#FFFF785F785F"}, {"fg_green_h", "#66ADFFFF66AD"}, {"fg_yellow_h", "#FFFFFFFF58C6"}, {"fg_blue_h", "#86318631FFFF"}, {"fg_purple_h", "#C6576A18FFFF"}, {"fg_cyan_h", "#86EEFFFFFFFF"}, {"fg_white_h", "#FFFFFFFFFFFF"}, {"bg_default", "#000000000000"}, {"bg_black", "#2B5B2B5B2B5B"}, {"bg_red", "#FFFF00000000"}, {"bg_green", "#000080000000"}, {"bg_yellow", "#C047C0470000"}, {"bg_blue", "#00000000FFFF"}, {"bg_purple", "#A0A02020F0F0"}, {"bg_cyan", "#0000B74CB74C"}, {"bg_white", "#FFFFFFFFFFFF"}, {NULL, NULL} }; static const GmColorTableSchemeItem scheme_xterm[] = { {"fg_default", "#E5E2E5E2E5E2"}, {"fg_black", "#000000000000"}, {"fg_red", "#CDCB00000000"}, {"fg_green", "#0000CDCB0000"}, {"fg_yellow", "#CDCBCDCB0000"}, {"fg_blue", "#1E1A908FFFFF"}, {"fg_purple", "#CDCB0000CDCB"}, {"fg_cyan", "#0000CDCBCDCB"}, {"fg_white", "#E5E2E5E2E5E2"}, {"fg_default_h", "#FFFFFFFFFFFF"}, {"fg_black_h", "#4CCCC4CCCC4CCCC"}, {"fg_red_h", "#FFFF00000000"}, {"fg_green_h", "#0000FFFF0000"}, {"fg_yellow_h", "#FFFFFFFF0000"}, {"fg_blue_h", "#46458281B4AE"}, {"fg_purple_h", "#FFFF0000FFFF"}, {"fg_cyan_h", "#0000FFFFFFFF"}, {"fg_white_h", "#FFFFFFFFFFFF"}, {"bg_default", "#000000000000"}, {"bg_black", "#000000000000"}, {"bg_red", "#CDCB00000000"}, {"bg_green", "#0000CDCB0000"}, {"bg_yellow", "#CDCBCDCB0000"}, {"bg_blue", "#1E1A908FFFFF"}, {"bg_purple", "#CDCB0000CDCB"}, {"bg_cyan", "#0000CDCBCDCB"}, {"bg_white", "#E5E2E5E2E5E2"}, {NULL, NULL} }; static const GmColorTableSchemeItem scheme_rxvt[] = { {"fg_default", "#FAFAEBEBD7D7"}, {"fg_black", "#000000000000"}, {"fg_red", "#CDCD00000000"}, {"fg_green", "#0000CDCD0000"}, {"fg_yellow", "#CDCDCDCD0000"}, {"fg_blue", "#00000000CDCD"}, {"fg_purple", "#CDCD0000CDCD"}, {"fg_cyan", "#0000CDCDCDCD"}, {"fg_white", "#FAFAEBEBD7D7"}, {"fg_default_h", "#FFFFFFFFFFFF"}, {"fg_black_h", "#404040404040"}, {"fg_red_h", "#FFFF00000000"}, {"fg_green_h", "#0000FFFF0000"}, {"fg_yellow_h", "#FFFFFFFF0000"}, {"fg_blue_h", "#00000000FFFF"}, {"fg_purple_h", "#FFFF0000FFFF"}, {"fg_cyan_h", "#0000FFFFFFFF"}, {"fg_white_h", "#FFFFFFFFFFFF"}, {"bg_default", "#000000000000"}, {"bg_black", "#000000000000"}, {"bg_red", "#CDCD00000000"}, {"bg_green", "#0000CDCD0000"}, {"bg_yellow", "#CDCDCDCD0000"}, {"bg_blue", "#00000000CDCD"}, {"bg_purple", "#CDCD0000CDCD"}, {"bg_cyan", "#0000CDCDCDCD"}, {"bg_white", "#FAFAEBEBD7D7"}, {NULL, NULL} }; static const GmColorTableSchemeItem scheme_linux[] = { {"fg_default", "#AAAAAAAAAAAA"}, {"fg_black", "#000000000000"}, {"fg_red", "#AAAA00000000"}, {"fg_green", "#0000AAAA0000"}, {"fg_yellow", "#AAAA55550000"}, {"fg_blue", "#00000000AAAA"}, {"fg_purple", "#AAAA0000AAAA"}, {"fg_cyan", "#0000AAAAAAAA"}, {"fg_white", "#AAAAAAAAAAAA"}, {"fg_default_h", "#FFFFFFFFFFFF"}, {"fg_black_h", "#555555555555"}, {"fg_red_h", "#FFFF55555555"}, {"fg_green_h", "#5555FFFF5555"}, {"fg_yellow_h", "#FFFFFFFF5555"}, {"fg_blue_h", "#55555555FFFF"}, {"fg_purple_h", "#FFFF5555FFFF"}, {"fg_cyan_h", "#5555FFFFFFFF"}, {"fg_white_h", "#FFFFFFFFFFFF"}, {"bg_default", "#000000000000"}, {"bg_black", "#000000000000"}, {"bg_red", "#AAAA00000000"}, {"bg_green", "#0000AAAA0000"}, {"bg_yellow", "#AAAA55550000"}, {"bg_blue", "#00000000AAAA"}, {"bg_purple", "#AAAA0000AAAA"}, {"bg_cyan", "#0000AAAAAAAA"}, {"bg_white", "#AAAAAAAAAAAA"}, {NULL, NULL} }; typedef struct _GmColorScheme { GmColorTableScheme scheme; const gchar *name; const GmColorTableSchemeItem *values; } GmColorScheme; static const GmColorScheme scheme_names[] = { {SCHEME_NONE, "none", NULL}, {SCHEME_DEFAULT, "default", scheme_default}, {SCHEME_WHITE_ON_BLACK, "white_on_black", scheme_white_on_black}, {SCHEME_RXVT, "rxvt", scheme_rxvt}, {SCHEME_XTERM, "xterm", scheme_xterm}, {SCHEME_LINUX, "linux", scheme_linux}, {SCHEME_USER, "user", NULL}, {SCHEME_NONE, NULL, NULL} }; struct _GmColorTablePrivate { GHashTable *colors; gchar *font_description; gboolean use_system_font; GmOptions *options; GmColorTableScheme scheme; guint gconf_connection_id; }; static void on_gm_color_table_monospace_font_change_notify(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data); static void gm_color_table_disconnect_font_changed(GmColorTable *table); #define MONOSPACE_FONT_DIR "/desktop/gnome/interface" #define MONOSPACE_FONT_KEY MONOSPACE_FONT_DIR "/monospace_font_name" /* Signals */ enum { COLOR_CHANGED, FONT_CHANGED, NUM_SIGNALS }; static guint color_table_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmColorTable, gm_color_table, G_TYPE_OBJECT) static void gm_color_table_finalize(GObject *object) { GmColorTable *table = GM_COLOR_TABLE(object); gm_color_table_disconnect_font_changed(table); G_OBJECT_CLASS(gm_color_table_parent_class)->finalize(object); } static void gm_color_table_class_init(GmColorTableClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_color_table_finalize; color_table_signals[COLOR_CHANGED] = g_signal_new("color_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmColorTableClass, color_changed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); color_table_signals[FONT_CHANGED] = g_signal_new("font_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmColorTableClass, font_changed), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); g_type_class_add_private(object_class, sizeof(GmColorTablePrivate)); } static void gm_color_table_init(GmColorTable *table) { table->priv = GM_COLOR_TABLE_GET_PRIVATE(table); table->priv->colors = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, gm_color_table_item_free); table->priv->scheme = SCHEME_NONE; } /* Private functions */ static void gm_color_table_item_free(gpointer item) { GmColorTableItem *i = (GmColorTableItem *)(item); g_free(i->hex); g_free(i); } static void gm_color_table_set_value(GmColorTable *table, gchar const *name, gchar const *hex) { GmColorTableItem *item; item = g_hash_table_lookup(table->priv->colors, name); if (!item) { item = g_new0(GmColorTableItem, 1); g_hash_table_insert(table->priv->colors, g_strdup(name), item); } if (item->hex == NULL || strcmp(hex, item->hex) != 0) { g_free(item->hex); item->hex = g_strdup(hex); gdk_color_parse(item->hex, &(item->color)); g_signal_emit(table, color_table_signals[COLOR_CHANGED], 0, name); } } static gchar * gm_color_table_default_font(GmColorTable *table) { GConfClient *conf = gconf_client_get_default(); gchar *name = gconf_client_get_string(conf, MONOSPACE_FONT_KEY, NULL); g_object_unref(G_OBJECT(conf)); if (name) { return name; } else { return g_strdup("Monospace 10"); } } static void gm_color_table_fill_from_options(GmColorTable *table) { gchar const *value; gint vint; gchar *font; GmOptions *options = table->priv->options; // New, color schemes value = gm_options_get(options, "color_scheme"); gm_color_table_set_from_scheme_name(table, value); value = gm_options_get(options, "use_system_font"); vint = gm_options_get_int(options, "use_system_font"); if (!value || vint) { gm_color_table_set_use_system_font(table, TRUE); } else { value = gm_options_get(options, "font_family"); if (!value || *value == '\0') { font = gm_color_table_default_font(table); gm_options_set(options, "font_family", font); g_free(font); value = gm_options_get(options, "font_family"); } gm_color_table_set_font_description(table, value); } } static void gm_color_table_disconnect_font_changed(GmColorTable *table) { GConfClient *conf; if (table->priv->gconf_connection_id) { conf = gconf_client_get_default(); gconf_client_notify_remove(conf, table->priv->gconf_connection_id); gconf_client_remove_dir(conf, MONOSPACE_FONT_DIR, NULL); table->priv->gconf_connection_id = 0; g_object_unref(G_OBJECT(conf)); } } static void gm_color_table_connect_font_changed(GmColorTable *table) { GError *err; GConfClient *conf; guint connection_id; conf = gconf_client_get_default (); err = NULL; gconf_client_add_dir(conf, MONOSPACE_FONT_DIR, GCONF_CLIENT_PRELOAD_ONELEVEL, &err); if (err) { gm_debug_msg(DEBUG_DEFAULT, "There was an error loading config from " "%s. (%s)\n", MONOSPACE_FONT_DIR, err->message); g_error_free(err); } err = NULL; connection_id = gconf_client_notify_add(conf, MONOSPACE_FONT_DIR, on_gm_color_table_monospace_font_change_notify, table, NULL, &err); g_object_unref (conf); if (err) { gm_debug_msg(DEBUG_DEFAULT, "There was an error subscribing to " "notification of monospace font changes. (%s)\n", err->message); g_error_free(err); } else { table->priv->gconf_connection_id = connection_id; } } /* Public functions */ GmColorTable * gm_color_table_new(void) { GmColorTable *table = GM_COLOR_TABLE(g_object_new(GM_TYPE_COLOR_TABLE, NULL)); gm_color_table_load_scheme(table, SCHEME_DEFAULT); gm_color_table_set_use_system_font(table, TRUE); return table; } GmColorTable * gm_color_table_new_from_options(gchar *filename) { GmColorTable *table = GM_COLOR_TABLE(g_object_new(GM_TYPE_COLOR_TABLE, NULL)); table->priv->options = gm_options_new(); gm_options_set(table->priv->options, "color_scheme", "default"); _gm_options_check_old_options(filename); gm_options_load(table->priv->options, filename); gm_color_table_fill_from_options(table); return table; } void gm_color_table_save(GmColorTable *table) { if (table->priv->options) { gm_options_save(table->priv->options); } } void gm_color_table_set(GmColorTable *table, gchar const *name, gchar const *hex) { GmColorTableSchemeItem const *item; GmColorTableItem *it; if (table->priv->scheme != SCHEME_USER) { table->priv->scheme = SCHEME_USER; if (table->priv->options) { gm_options_set(table->priv->options, "color_scheme", scheme_names[SCHEME_USER].name); // Store all current values in the options for (item = scheme_default; item->name != NULL; ++item) { it = g_hash_table_lookup(table->priv->colors, item->name); gm_options_set(table->priv->options, item->name, it->hex); } } } if (table->priv->options) { // Store value in the options, set value in the table gm_options_set(table->priv->options, name, hex); } gm_color_table_set_value(table, name, hex); } gboolean gm_color_table_get(GmColorTable *table, gchar const *name, GdkColor *color) { GmColorTableItem *item; item = g_hash_table_lookup(table->priv->colors, name); if (item != NULL) { *color = item->color; return TRUE; } else { return FALSE; } } const gchar * gm_color_table_get_hex(GmColorTable *table, const gchar *name) { GmColorTableItem *item; item = g_hash_table_lookup(table->priv->colors, name); if (item != NULL) { return item->hex; } else { return FALSE; } } void gm_color_table_set_font_description(GmColorTable *table, gchar const *font_description) { gchar *fd; if (font_description == NULL) { fd = gm_color_table_default_font(table); } else if (table->priv->use_system_font) { return; } else { fd = g_strdup(font_description); } if (table->priv->options) { gm_options_set(table->priv->options, "font_family", fd); } if (table->priv->font_description == NULL || strcmp(table->priv->font_description, fd) != 0) { g_free(table->priv->font_description); table->priv->font_description = g_strdup(fd); g_signal_emit(table, color_table_signals[FONT_CHANGED], 0, table->priv->font_description); } g_free(fd); } void gm_color_table_set_use_system_font(GmColorTable *table, gboolean use_system_font) { if (table->priv->use_system_font == use_system_font) { return; } table->priv->use_system_font = use_system_font; if (use_system_font) { gm_color_table_connect_font_changed(table); gm_color_table_set_font_description(table, NULL); if (table->priv->options) { gm_options_set(table->priv->options, "use_system_font", "1"); } } else { gm_color_table_disconnect_font_changed(table); if (table->priv->options) { gm_options_set(table->priv->options, "use_system_font", "0"); } } } gboolean gm_color_table_get_use_system_font(GmColorTable *table) { return table->priv->use_system_font; } const gchar * gm_color_table_font_description(GmColorTable *table) { return table->priv->font_description; } void gm_color_table_load_scheme(GmColorTable *table, GmColorTableScheme scheme) { guint i = 0; GmColorTableSchemeItem const *values; GmOptions *options = table->priv->options; gchar const *value; if (scheme == SCHEME_USER && options) { values = scheme_names[SCHEME_DEFAULT].values; while (values[i].name != NULL) { value = gm_options_get(options, values[i].name); if (value != NULL) { gm_color_table_set_value(table, values[i].name, value); } else { gm_options_set(options, values[i].name, values[i].hex); gm_color_table_set_value(table, values[i].name, values[i].hex); } ++i; } } else if (scheme != SCHEME_USER) { values = scheme_names[scheme].values; while (values[i].name != NULL) { gm_color_table_set_value(table, values[i].name, values[i].hex); ++i; } } table->priv->scheme = scheme; } void gm_color_table_set_from_scheme_name(GmColorTable *table, gchar const *scheme) { gint i = 0; while (scheme_names[i].name) { if (strcasecmp(scheme_names[i].name, scheme) == 0) { gm_color_table_load_scheme(table, scheme_names[i].scheme); break; } ++i; } if (scheme_names[i].name == NULL) { gm_color_table_load_scheme(table, SCHEME_DEFAULT); if (table->priv->options) { gm_options_set(table->priv->options, "color_scheme", "default"); } } else if (table->priv->options) { gm_options_set(table->priv->options, "color_scheme", scheme_names[i].name); } } gchar const * gm_color_table_get_scheme_name(GmColorTable *table) { gint i = 0; while (scheme_names[i].name) { if (scheme_names[i].scheme == table->priv->scheme) { return scheme_names[i].name; } ++i; } return NULL; } /* Callbacks */ static void on_gm_color_table_monospace_font_change_notify(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data) { GmColorTable *table = GM_COLOR_TABLE(user_data); if (strcmp(entry->key, MONOSPACE_FONT_KEY) == 0) { gm_color_table_set_font_description(table, NULL); } } �����������������������������gnoemoe-2.2.0/gnoemoe/gm-color-table.h��������������������������������������������������������������0000644�0001750�0001750�00000005300�10507233573�016561� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_COLOR_TABLE_H__ #define __GM_COLOR_TABLE_H__ #include <gtk/gtk.h> #include "gm-options.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_COLOR_TABLE (gm_color_table_get_type()) #define GM_COLOR_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_COLOR_TABLE, GmColorTable)) #define GM_COLOR_TABLE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_COLOR_TABLE, GmColorTable const)) #define GM_COLOR_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_COLOR_TABLE, GmColorTableClass)) #define GM_IS_COLOR_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_COLOR_TABLE)) #define GM_IS_COLOR_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_COLOR_TABLE)) #define GM_COLOR_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_COLOR_TABLE, GmColorTableClass)) /* Private structure type */ typedef struct _GmColorTablePrivate GmColorTablePrivate; /* * Main object structure */ typedef struct _GmColorTable GmColorTable; struct _GmColorTable { GObject object; /*< private > */ GmColorTablePrivate *priv; }; /* * Class definition */ typedef struct _GmColorTableClass GmColorTableClass; struct _GmColorTableClass { GObjectClass parent_class; /* Signals */ void (* color_changed) (GmColorTable *table, const gchar *color); void (* font_changed) (GmColorTable *table, const gchar *font_description); }; typedef enum _GmColorTableScheme { SCHEME_NONE = 0, SCHEME_DEFAULT, SCHEME_WHITE_ON_BLACK, SCHEME_RXVT, SCHEME_XTERM, SCHEME_LINUX, SCHEME_USER } GmColorTableScheme; GType gm_color_table_get_type(void) G_GNUC_CONST; GmColorTable *gm_color_table_new(void); GmColorTable *gm_color_table_new_from_options(gchar *filename); void gm_color_table_save(GmColorTable *table); void gm_color_table_set(GmColorTable *table, gchar const *name, gchar const *hex); gboolean gm_color_table_get(GmColorTable *table, gchar const *name, GdkColor *color); const gchar *gm_color_table_get_hex(GmColorTable *table, gchar const *name); void gm_color_table_set_font_description(GmColorTable *table, gchar const *font_description); const gchar *gm_color_table_font_description(GmColorTable *table); void gm_color_table_set_use_system_font(GmColorTable *table, gboolean use_system_font); gboolean gm_color_table_get_use_system_font(GmColorTable *table); void gm_color_table_load_scheme(GmColorTable *table, GmColorTableScheme scheme); void gm_color_table_set_from_scheme_name(GmColorTable *table, gchar const *name); gchar const *gm_color_table_get_scheme_name(GmColorTable *table); void gm_color_table_set_from_options(GmColorTable *table, GmOptions *options); G_END_DECLS #endif /* __GM_COLOR_TABLE_H__ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-net.c����������������������������������������������������������������������0000644�0001750�0001750�00000042132�10410766740�015143� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <glib.h> #include <sys/time.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <pthread.h> #include <signal.h> #include "gm-net.h" #include "gm-marshal.h" #include "gm-debug.h" #include "gm-support.h" #define GM_NET_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_NET, GmNetPrivate)) typedef struct _threadinfo { gchar *host; gchar *port; struct addrinfo *addr; struct addrinfo *current; struct addrinfo *tmp; pthread_mutex_t *mutex_idle; guint idle_id; gint ret; gchar *message; GmNet *net; } threadinfo; struct _GmNetPrivate { int socket; /**< the connection socket, is -1 if not connected */ GIOChannel *channel; /**< the channel which is used to 'listen' on the socket via the glib main loop */ guint source; /**< the id of the socket watch */ guint connect_timeout_id; /**< the connect timeout id */ guint connect_check_id; /**< the connect timeout id */ struct timeval last_connected; /**< contains when the last connect happened */ int tn_last; /**< used for telnet */ int tn_subneg; /**< used for telnet */ pthread_t thread; threadinfo *thread_info; pthread_mutex_t mutex_idle; struct addrinfo *addr; struct addrinfo *current; GmNetState state; /**< state of the connection */ gchar *current_host; gchar *current_port; }; /* Signals */ enum { STATE_CHANGING, STATE_CHANGED, NET_ERROR, BYTES_RECV, NUM_SIGNALS }; static guint net_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmNet, gm_net, G_TYPE_OBJECT) /* These values taken from RFC 854 and RFC 857. */ #define TN_WILL 251 #define TN_WONT 252 #define TN_DO 253 #define TN_DONT 254 #define TN_IAC 255 /* Interpret As Command */ #define TN_SB 250 /* start of subnegotiation */ #define TN_SE 240 /* end of subnegotiaton */ void gm_net_connect_next(GmNet *net); gboolean on_gm_net_input_recv(GIOChannel * source, GIOCondition condition, GmNet *net); gboolean on_gm_net_connect_check(GIOChannel * source, GIOCondition condition, GmNet *net); gboolean on_gm_net_connect_timeout(GmNet *net); static void gm_net_free_thread_info(GmNet *net) { g_free(net->priv->thread_info->message); g_free(net->priv->thread_info->host); g_free(net->priv->thread_info->port); g_free(net->priv->thread_info); net->priv->thread_info = NULL; } static void gm_net_close_thread(GmNet *net) { if (net->priv->thread != 0) { pthread_kill(net->priv->thread, SIGKILL); if (net->priv->thread_info->idle_id) { g_source_remove(net->priv->thread_info->idle_id); } gm_net_free_thread_info(net); } } static void gm_net_finalize(GObject *object) { GmNet *net = GM_NET(object); gm_net_close_thread(net); g_free(net->priv->current_host); g_free(net->priv->current_port); G_OBJECT_CLASS(gm_net_parent_class)->finalize(object); } static void gm_net_class_init(GmNetClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_net_finalize; net_signals[STATE_CHANGING] = g_signal_new("state_changing", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmNetClass, state_changing), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); net_signals[STATE_CHANGED] = g_signal_new("state_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmNetClass, state_changed), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); net_signals[NET_ERROR] = g_signal_new("net_error", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmNetClass, net_error), NULL, NULL, gm_marshal_VOID__STRING_INT, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT); net_signals[BYTES_RECV] = g_signal_new("bytes_recv", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmNetClass, bytes_recv), NULL, NULL, gm_marshal_VOID__STRING_UINT, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_UINT); g_type_class_add_private(object_class, sizeof(GmNetPrivate)); } static void gm_net_init(GmNet *net) { net->priv = GM_NET_GET_PRIVATE(net); net->priv->state = GM_NET_STATE_DISCONNECTED; net->priv->addr = NULL; net->priv->current = NULL; net->priv->channel = NULL; net->priv->source = 0; net->priv->connect_timeout_id = 0; net->priv->connect_check_id = 0; pthread_mutex_init(&(net->priv->mutex_idle), NULL); } static void gm_net_set_host(GmNet *net, gchar const *host) { g_free(net->priv->current_host); net->priv->current_host = g_strdup(host); } static void gm_net_set_port(GmNet *net, gchar const *port) { g_free(net->priv->current_port); net->priv->current_port = g_strdup(port); } void gm_net_set_state(GmNet *net, GmNetState state) { g_signal_emit(net, net_signals[STATE_CHANGING], 0, state); net->priv->state = state; g_signal_emit(net, net_signals[STATE_CHANGED], 0, state); } void gm_net_clean_disconnection(GmNet *net) { GError *err = NULL; if (!net->priv->channel) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.CleanDisconnection: NOT clean for %d", net->priv->socket); return; } gm_debug_msg(DEBUG_DEFAULT, "GmNet.CleanDisconnection: clean disconnect for %d", net->priv->socket); // Shutdown the channel g_io_channel_shutdown(net->priv->channel, TRUE, &err); if (err) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.CleanDisconnection: error on channel shutdown: " "%s", err->message); g_error_free(err); err = NULL; } g_io_channel_unref(net->priv->channel); if (net->priv->source) { g_source_remove(net->priv->source); net->priv->source = 0; } net->priv->channel = NULL; net->priv->socket = -1; net->priv->tn_last = 0; net->priv->tn_subneg = 0; gm_net_set_state(net, GM_NET_STATE_DISCONNECTED); } void gm_net_dirty_disconnection(GmNet *net, int err) { gchar *msg; // Pff, stupid, we print a message and pass it on to clean_disconnection gm_debug_msg(DEBUG_DEFAULT, "GmNet.DirtyDisconnection: dirty disconnect %d", net->priv->socket); msg = g_strdup_printf(_("Connection lost... (%s)"), strerror(err)); g_signal_emit(net, net_signals[NET_ERROR], 0, msg, GM_NET_ERROR_DISCONNECTED); g_free(msg); gm_net_clean_disconnection(net); } void gm_net_connect_succeed(GmNet *net) { freeaddrinfo(net->priv->addr); net->priv->addr = NULL; net->priv->current = NULL; net->priv->source = g_io_add_watch(net->priv->channel, G_IO_IN | G_IO_HUP, (GIOFunc)on_gm_net_input_recv, net); if (net->priv->connect_timeout_id != 0) { g_source_remove(net->priv->connect_timeout_id); net->priv->connect_timeout_id = 0; } if (net->priv->connect_check_id != 0) { g_source_remove(net->priv->connect_check_id); net->priv->connect_check_id = 0; } gettimeofday(&(net->priv->last_connected), NULL); gm_net_set_state(net, GM_NET_STATE_CONNECTED); } void gm_net_connect_failed(GmNet *net, gchar *err, gint code) { if (net->priv->channel) { g_io_channel_shutdown(net->priv->channel, TRUE, NULL); g_io_channel_unref(net->priv->channel); net->priv->channel = NULL; } g_signal_emit(net, net_signals[NET_ERROR], 0, err, GM_NET_ERROR_CONNECTING); if (net->priv->addr && net->priv->current->ai_next) { net->priv->current = net->priv->current->ai_next; gm_net_connect_next(net); } else { net->priv->socket = -1; if (net->priv->addr) { freeaddrinfo(net->priv->addr); net->priv->addr = NULL; net->priv->current = NULL; } g_signal_emit(net, net_signals[NET_ERROR], 0, _("Could not make connection..."), GM_NET_ERROR_CONNECTING); gm_net_set_state(net, GM_NET_STATE_DISCONNECTED); } } void gm_net_handle_telnet(GmNet *net, unsigned char *buf, int *len) { int i, j; unsigned char c; j = 0; for (i = 0; i < *len; ++i) { c = buf[i]; if (net->priv->tn_last) { switch (net->priv->tn_last) { case TN_WILL: case TN_WONT: case TN_DO: case TN_DONT: net->priv->tn_last = 0; break; case TN_IAC: switch (c) { case TN_WILL: case TN_WONT: case TN_DO: case TN_DONT: net->priv->tn_last = c; break; case TN_SB: net->priv->tn_subneg = 1; net->priv->tn_last = 0; break; case TN_SE: net->priv->tn_subneg = 0; net->priv->tn_last = 0; break; case TN_IAC: if (!net->priv->tn_subneg) { buf[j] = c; ++j; } net->priv->tn_last = 0; break; default: net->priv->tn_last = 0; break; } } } else if (c == TN_IAC) { net->priv->tn_last = TN_IAC; } else if (net->priv->tn_subneg) { continue; } else { buf[j] = c; ++j; } } *len = j; //Since j-- is the last written char } static gboolean idle_proceed_connect_next(gpointer user_data) { threadinfo *info = (threadinfo *)user_data; GmNet *net = info->net; struct addrinfo *tmp; gint ret = info->ret; gint result; info->idle_id = 0; pthread_join(net->priv->thread, NULL); net->priv->thread = 0; if (info->ret != 0) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.ConnectNext: getnameinfo error: %s", gai_strerror(info->ret)); gm_net_free_thread_info(net); gm_net_connect_failed(net, (gchar *)gai_strerror(ret), ret); return FALSE; } gm_net_set_host(net, info->host); gm_net_set_port(net, info->port); gm_net_set_state(net, GM_NET_STATE_TRY_ADDRESS); tmp = info->tmp; gm_net_free_thread_info(net); net->priv->socket = socket(tmp->ai_family, tmp->ai_socktype, tmp->ai_protocol); if (net->priv->socket < 0) { gm_net_connect_failed(net, strerror(errno), errno); } else { fcntl(net->priv->socket, F_SETFL, fcntl(net->priv->socket, F_GETFL) | O_NONBLOCK); if ((result = connect(net->priv->socket, tmp->ai_addr, net->priv->addr->ai_addrlen)) == -1 && errno != EINPROGRESS) { gm_net_connect_failed(net, strerror(errno), errno); } else { net->priv->channel = g_io_channel_unix_new(net->priv->socket); g_io_channel_set_close_on_unref(net->priv->channel, TRUE); if (result == 0) { gm_net_connect_succeed(net); } else { net->priv->connect_check_id = g_io_add_watch(net->priv->channel, G_IO_OUT|G_IO_ERR, (GIOFunc)on_gm_net_connect_check, net); net->priv->connect_timeout_id = g_timeout_add(5000, (GSourceFunc)on_gm_net_connect_timeout, net); } } } return FALSE; } void mutex_unlock(void *ptr) { pthread_mutex_unlock((pthread_mutex_t *)ptr); } void * nameinfo_thread(void *ptr) { threadinfo *info = (threadinfo *)ptr; char host[NI_MAXHOST], port[NI_MAXSERV]; info->tmp = info->current; info->ret = getnameinfo(info->tmp->ai_addr, info->tmp->ai_addrlen, host, NI_MAXHOST, port, NI_MAXSERV, NI_NUMERICHOST | NI_NUMERICSERV); if (info->ret == 0) { info->host = g_strdup(host); info->port = g_strdup(port); } pthread_mutex_lock(info->mutex_idle); pthread_cleanup_push(mutex_unlock, info->mutex_idle); info->idle_id = g_idle_add(idle_proceed_connect_next, info); pthread_cleanup_pop(1); return NULL; } void gm_net_connect_next(GmNet *net) { threadinfo *info; if (net->priv->current == NULL) { return; } else { info = g_new0(threadinfo, 1); info->net = net; info->current = net->priv->current; info->mutex_idle = &(net->priv->mutex_idle); net->priv->thread_info = info; pthread_create(&(net->priv->thread), NULL, nameinfo_thread, (void *)info); } } static gboolean idle_proceed_addrinfo(gpointer user_data) { threadinfo *info = (threadinfo *)user_data; GmNet *net = info->net; info->idle_id = 0; pthread_join(net->priv->thread, NULL); net->priv->thread = 0; if (info->ret != 0) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.Connect: getaddrinfo failed: %s", gai_strerror(info->ret)); gm_net_connect_failed(net, (gchar *)gai_strerror(info->ret), info->ret); gm_net_free_thread_info(net); return FALSE; } net->priv->addr = info->addr; if (info->addr != NULL) { net->priv->current = info->addr; gm_net_free_thread_info(net); gm_net_connect_next(net); } else { gm_net_free_thread_info(net); gm_net_connect_failed(net, _("No addresses available"), 0); } return FALSE; } static void * addrinfo_thread(void *ptr) { threadinfo *info = (threadinfo *)ptr; struct addrinfo hint; memset(&hint, 0, sizeof(hint)); hint.ai_flags = 0; hint.ai_family = AF_UNSPEC; hint.ai_socktype = SOCK_STREAM; hint.ai_protocol = IPPROTO_TCP; gm_debug_msg(DEBUG_DEFAULT, "GmNet.Connect: getaddrinfo: %s : %s", info->host, info->port); info->ret = getaddrinfo(info->host, info->port, &hint, &(info->addr)); pthread_mutex_lock(info->mutex_idle); pthread_cleanup_push(mutex_unlock, info->mutex_idle); info->idle_id = g_idle_add(idle_proceed_addrinfo, info); pthread_cleanup_pop(1); return NULL; } /* Public */ GmNet * gm_net_new() { GmNet *net = GM_NET(g_object_new(GM_TYPE_NET, NULL)); return net; } GmNetState gm_net_state(GmNet *net) { return net->priv->state; } void gm_net_connect(GmNet *net, const gchar *host, const gchar *port) { char shost[NI_MAXHOST], sport[NI_MAXSERV]; threadinfo *info; if (net->priv->state != GM_NET_STATE_DISCONNECTED) { return; } snprintf(shost, NI_MAXHOST - 1, "%s", host); snprintf(sport, NI_MAXSERV - 1, "%s", port); gm_net_set_host(net, shost); gm_net_set_port(net, sport); gm_net_set_state(net, GM_NET_STATE_CONNECTING); info = g_new0(threadinfo, 1); info->host = g_strdup(shost); info->port = g_strdup(sport); info->net = net; info->mutex_idle = &(net->priv->mutex_idle); net->priv->thread_info = info; pthread_create(&(net->priv->thread), NULL, addrinfo_thread, (void *)info); } void gm_net_disconnect(GmNet *net) { // thread running if (net->priv->state != GM_NET_STATE_DISCONNECTED) { gm_net_close_thread(net); gm_net_set_state(net, GM_NET_STATE_DISCONNECTING); if (net->priv->connect_timeout_id != 0) { g_source_remove(net->priv->connect_timeout_id); net->priv->connect_timeout_id = 0; } if (net->priv->connect_check_id != 0) { g_source_remove(net->priv->connect_check_id); net->priv->connect_check_id = 0; } gm_net_clean_disconnection(net); } } void gm_net_send_line(GmNet *net, gchar *line) { gchar *send_line; send_line = (gchar *)(g_strconcat(line, "\r\n", NULL)); gm_net_send(net, send_line); g_free(send_line); } void gm_net_send(GmNet *net, gchar *text) { int result; fd_set connect_set; if (net->priv->state == GM_NET_STATE_CONNECTED) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.Send: %s", text); if ((result = send(net->priv->socket, text, strlen(text), 0)) == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) { FD_ZERO(&connect_set); FD_SET(net->priv->socket, &connect_set); // Wait for sending to be done select(net->priv->socket + 1, NULL, &connect_set, NULL, NULL); } else if (result == -1) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.Send: error on sending line: %s", strerror(errno)); gm_net_dirty_disconnection(net, errno); } } else { g_signal_emit(net, net_signals[NET_ERROR], 0, _("Not connected"), GM_NET_ERROR); gm_debug_msg(DEBUG_DEFAULT, "GmNet.Send: not connected!"); } } const gchar * gm_net_current_host(GmNet *net) { return net->priv->current_host; } const gchar * gm_net_current_port(GmNet *net) { return net->priv->current_port; } /* Callbacks */ #define MAX_RECV_BUF 1024 gboolean on_gm_net_input_recv(GIOChannel * source, GIOCondition condition, GmNet *net) { unsigned char lbuf[MAX_RECV_BUF]; int len; if (condition == G_IO_HUP) { gm_net_set_state(net, GM_NET_STATE_DISCONNECTING); gm_net_clean_disconnection(net); return FALSE; } if (net->priv->state != GM_NET_STATE_CONNECTED) { gm_debug_msg(DEBUG_DEFAULT, "GmNet.OnInputRecv: not connected!"); return FALSE; } // Break the received line by newline (skip \r) len = recv(net->priv->socket, lbuf, MAX_RECV_BUF - 2, 0); gm_debug_msg(DEBUG_DEFAULT, "GmNet.OnInputRecv: received %d bytes", len); if (len < 1) { // Disconnected, either clean or dirty // (shouldn't this be caught by G_IO_HUP?) if (len < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) { return TRUE; } gm_net_set_state(net, GM_NET_STATE_DISCONNECTING); gm_net_dirty_disconnection(net, errno); } else { gm_net_set_state(net, GM_NET_STATE_DISCONNECTING); gm_net_clean_disconnection(net); } return FALSE; } else { // It's fine, we have text! gm_net_handle_telnet(net, lbuf, &len); g_signal_emit(net, net_signals[BYTES_RECV], 0, lbuf, len); } return TRUE; } gboolean on_gm_net_connect_check(GIOChannel * source, GIOCondition condition, GmNet *net) { int option = 0; socklen_t optionsize = sizeof(option); if (net->priv->connect_timeout_id != 0) { g_source_remove(net->priv->connect_timeout_id); net->priv->connect_timeout_id = 0; } if (condition == G_IO_ERR) { getsockopt(net->priv->socket, SOL_SOCKET, SO_ERROR, &option, &optionsize); gm_net_connect_failed(net, strerror(option), option); } else { gm_net_connect_succeed(net); } return FALSE; } gboolean on_gm_net_connect_timeout(GmNet *net) { net->priv->connect_timeout_id = 0; if (net->priv->connect_check_id != 0) { g_source_remove(net->priv->connect_check_id); net->priv->connect_check_id = 0; } gm_net_connect_failed(net, _("Connect timeout (5)"), 0); return FALSE; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-net.h����������������������������������������������������������������������0000644�0001750�0001750�00000004321�10410766740�015146� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_NET_H__ #define __GM_NET_H__ #include <glib.h> #include <glib-object.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_NET (gm_net_get_type()) #define GM_NET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_NET, GmNet)) #define GM_NET_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_NET, GmNet const)) #define GM_NET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_NET, GmNetClass)) #define GM_IS_NET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_NET)) #define GM_IS_NET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_NET)) #define GM_NET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_NET, GmNetClass)) typedef enum _GmNetState { GM_NET_STATE_CONNECTED, /**< socket connected */ GM_NET_STATE_DISCONNECTED, /**< socket disconnected */ GM_NET_STATE_CONNECTING, /**< socket still connecting */ GM_NET_STATE_TRY_ADDRESS, /**< connecting to address */ GM_NET_STATE_DISCONNECTING, /**< socket still disconnecting */ GM_NET_STATE_END } GmNetState; typedef enum _GmNetError { GM_NET_ERROR_CONNECTING, /**< error while connecting */ GM_NET_ERROR_DISCONNECTED, /**< error while connecting */ GM_NET_ERROR /**< general error */ } GmNetError; /* Private structure type */ typedef struct _GmNetPrivate GmNetPrivate; /* * Main object structure */ typedef struct _GmNet GmNet; struct _GmNet { GObject object; /*< private > */ GmNetPrivate *priv; }; /* * Class definition */ typedef struct _GmNetClass GmNetClass; struct _GmNetClass { GObjectClass parent_class; /* Signals */ void (* state_changing) (GmNet *net, guint state); void (* state_changed) (GmNet *net, guint state); void (* net_error) (GmNet *net, gchar *error, gint code); void (* bytes_recv) (GmNet *net, gchar *text); }; GType gm_net_get_type(void) G_GNUC_CONST; GmNet *gm_net_new(void); GmNetState gm_net_state(GmNet *net); void gm_net_connect(GmNet *net, const gchar *host, const gchar *port); void gm_net_disconnect(GmNet *net); void gm_net_send_line(GmNet *net, gchar *line); void gm_net_send(GmNet *net, gchar *text); const gchar *gm_net_current_host(GmNet *net); const gchar *gm_net_current_port(GmNet *net); G_END_DECLS #endif /* __GM_NET_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-triggers.c�����������������������������������������������������������������0000644�0001750�0001750�00000033367�10412514620�016203� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <strings.h> #include <string.h> #include <libxml/parser.h> #include "gm-triggers.h" #include "gm-debug.h" #define GM_TRIGGERS_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_TRIGGERS, GmTriggersPrivate)) typedef struct _trigger_trans { gint type; const gchar *name; } trigger_trans; static const trigger_trans table_conditions[] = { {TCT_CONTAINS, "contains"}, {TCT_NOT_CONTAINS, "not-contains"}, {TCT_BEGINS, "begins"}, {TCT_NOT_BEGINS, "not-begins"}, {TCT_ENDS, "ends"}, {TCT_NOT_ENDS, "not-ends"}, {TCT_MATCHES, "matches"}, {TCT_NOT_MATCHES, "not-matches"}, {TCT_USER_ONLINE, "online"}, {TCT_USER_OFFLINE, "offline"}, {TCT_USER_IDLE, "idle"}, {TCT_USER_IDLE_OFF, "idle-off"}, {TCT_USER_AWAY, "away"}, {TCT_USER_AWAY_OFF, "away-off"}, {-1, NULL} }; static const trigger_trans table_actions[] = { {TAT_HIGHLIGHT_LINE, "highlight-line"}, {TAT_HIGHLIGHT_MATCH, "highlight-match"}, {TAT_BEEP, "beep"}, {TAT_PLAY_SOUND, "play-sound"}, {TAT_NOTIFY, "notify"}, #ifdef HASRUBY {TAT_RUN_SCRIPT, "run-script"}, #endif {TAT_RUN, "run"}, {-1, NULL} }; struct _GmTriggersPrivate { GList *triggers; gchar *path; }; /* Signals */ /*enum { PROTO NUM_SIGNALS }; static guint triggers_signals[NUM_SIGNALS] = {0};*/ G_DEFINE_TYPE(GmTriggers, gm_triggers, G_TYPE_OBJECT) static void gm_triggers_finalize(GObject *object) { GmTriggers *trg = GM_TRIGGERS(object); GList *item; for (item = trg->priv->triggers; item; item = item->next) { gm_trigger_free((GmTrigger *)(item->data)); } g_free(trg->priv->path); g_list_free(trg->priv->triggers); G_OBJECT_CLASS(gm_triggers_parent_class)->finalize(object); } static void gm_triggers_class_init(GmTriggersClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_triggers_finalize; g_type_class_add_private(object_class, sizeof(GmTriggersPrivate)); } static void gm_triggers_init(GmTriggers *trg) { trg->priv = GM_TRIGGERS_GET_PRIVATE(trg); trg->priv->triggers = NULL; trg->priv->path = NULL; } GmTrigger * gm_trigger_new() { return g_new0(GmTrigger, 1); } GList * gm_trigger_list_dup(GList *list) { GList *result = NULL; GList *item; GmTriggerData *data; for (item = list; item; item = item->next) { data = (GmTriggerData *)(item->data); result = g_list_append(result, gm_trigger_data_new(data->type, g_strdup(data->data))); } return result; } GmTrigger * gm_trigger_dup(GmTrigger *source) { GmTrigger *result = gm_trigger_new(); result->name = g_strdup(source->name); result->event = source->event; result->conditions = gm_trigger_list_dup(source->conditions); result->actions = gm_trigger_list_dup(source->actions); return result; } void gm_trigger_set_name(GmTrigger *trigger, const gchar *name) { g_free(trigger->name); trigger->name = g_strdup(name); } void gm_trigger_free_list(GList *list) { GList *item; GmTriggerData *data; for (item = list; item; item = item->next) { data = (GmTriggerData *)(item->data); gm_trigger_data_free(data); } g_list_free(list); } void gm_trigger_free(GmTrigger *trigger) { gm_trigger_free_list(trigger->conditions); gm_trigger_free_list(trigger->actions); g_free(trigger->name); g_free(trigger); } GmTriggerData * gm_trigger_data_new(gint type, gchar *data) { GmTriggerData *tdata = g_new0(GmTriggerData, 1); tdata->type = type; tdata->data = data; memset(&(tdata->expr), 0, sizeof(regex_t)); switch (tdata->type) { case TCT_MATCHES: case TCT_NOT_MATCHES: case TCT_USER_ONLINE: case TCT_USER_OFFLINE: case TCT_USER_IDLE: case TCT_USER_IDLE_OFF: case TCT_USER_AWAY: case TCT_USER_AWAY_OFF: regcomp(&(tdata->expr), tdata->data, REG_EXTENDED); break; default: break; } return tdata; } void gm_trigger_data_free(GmTriggerData *tdata) { g_free(tdata->data); g_free(tdata); } void gm_trigger_add_condition(GmTrigger *trigger, GmTriggerData *condition) { trigger->conditions = g_list_append(trigger->conditions, condition); } void gm_trigger_add_action(GmTrigger *trigger, GmTriggerData *action) { trigger->actions = g_list_append(trigger->actions, action); } void gm_trigger_set_conditions(GmTrigger *trigger, GList *conditions) { gm_trigger_free_list(trigger->conditions); trigger->conditions = conditions; } void gm_trigger_set_actions(GmTrigger *trigger, GList *actions) { gm_trigger_free_list(trigger->actions); trigger->actions = actions; } gint gm_trigger_match_user(GmTrigger *trigger, gchar const *username, GmTriggerConditionType condition, regmatch_t *matches, gint nmatch) { GmTriggerData *data; GList *item; gint cmatch = 0, offset, ret; if (!trigger->conditions) { return FALSE; } for (item = trigger->conditions; item; item = item->next) { data = (GmTriggerData *)(item->data); if (cmatch >= nmatch) { return 0; } if (data->type == condition) { offset = 0; ret = regexec(&(data->expr), (char *)(username), (nmatch - cmatch) - 1, matches + cmatch, 0); if (ret == 0) { while (matches[cmatch].rm_so != -1) { matches[cmatch].rm_eo = matches[cmatch].rm_eo - matches[cmatch].rm_so; matches[cmatch].rm_so = matches[cmatch].rm_so + offset; cmatch++; } } else { return 0; } } else { return 0; } } return cmatch; } gint gm_trigger_match(GmTrigger *trigger, gchar *text, regmatch_t *matches, gint nmatch) { GmTriggerData *data; GList *item; gchar *tmp; gboolean istrue; gint cmatch = 0, ret, offset, len; if (!trigger->conditions) { return 0; } for (item = trigger->conditions; item; item = item->next) { data = (GmTriggerData *)(item->data); len = g_utf8_strlen(data->data, -1); if (cmatch >= nmatch) { return 0; } switch (data->type) { case TCT_CONTAINS: case TCT_NOT_CONTAINS: case TCT_BEGINS: case TCT_NOT_BEGINS: case TCT_ENDS: case TCT_NOT_ENDS: tmp = strstr(text, data->data); switch (data->type) { case TCT_CONTAINS: if (tmp != NULL) { while (tmp != NULL && cmatch < nmatch) { matches[cmatch].rm_so = g_utf8_pointer_to_offset(text, tmp); matches[cmatch].rm_eo = len; tmp = strstr(tmp + len, data->data); if (tmp != NULL) { ++cmatch; } } } else { return 0; } break; case TCT_NOT_CONTAINS: if (tmp == NULL) { matches[cmatch].rm_so = 0; matches[cmatch].rm_eo = len; } else { return 0; } break; case TCT_NOT_BEGINS: if (tmp != text) { matches[cmatch].rm_so = 0; matches[cmatch].rm_eo = g_utf8_strlen(text, -1); } else { return 0; } break; default: istrue = (tmp != NULL && (g_utf8_pointer_to_offset(text, tmp) + len) == g_utf8_strlen(text, -1)); if (istrue && data->type == TCT_ENDS) { matches[cmatch].rm_so = g_utf8_pointer_to_offset(text, tmp); matches[cmatch].rm_eo = len; } else if (!istrue && data->type == TCT_NOT_ENDS) { matches[cmatch].rm_so = 0; matches[cmatch].rm_eo = g_utf8_strlen(text, -1); } else { return 0; } } cmatch++; matches[cmatch].rm_so = -1; break; case TCT_MATCHES: case TCT_NOT_MATCHES: offset = 0; ret = regexec(&(data->expr), (char *)text, (nmatch - cmatch) - 1, matches + cmatch, 0); if (ret == 0 && data->type == TCT_MATCHES) { while (ret == 0) { while (matches[cmatch].rm_so != -1) { matches[cmatch].rm_eo = matches[cmatch].rm_eo - matches[cmatch].rm_so; matches[cmatch].rm_so = matches[cmatch].rm_so + offset; ++cmatch; } offset = matches[cmatch - 1].rm_so + matches[cmatch - 1].rm_eo; if (cmatch < nmatch) { ret = regexec(&(data->expr), (char *)(text + offset), (nmatch - cmatch) - 1, matches + cmatch, 0); } else { ret = 1; } } } else if (ret != 0 && data->type == TCT_NOT_MATCHES) { matches[cmatch].rm_so = 0; matches[cmatch].rm_eo = g_utf8_strlen(text, -1); } else { return 0; } break; default: return 0; break; } } return cmatch; } gint gm_trigger_type_from_name(const gchar *name, const trigger_trans *trans_table) { int i; for (i = 0; trans_table[i].type != -1; i++) { if (strcasecmp(trans_table[i].name, name) == 0) { return trans_table[i].type; } } return -1; } const gchar * gm_trigger_name_from_type(gint type, const trigger_trans *trans_table) { int i; for (i = 0; trans_table[i].type != -1; i++) { if (trans_table[i].type == type) { return trans_table[i].name; } } return NULL; } void gm_triggers_parse_trigger(GmTriggers *trg, xmlDocPtr doc, xmlNodePtr node) { GmTrigger *result = gm_trigger_new(); xmlChar *tmp, *tmp2; gint type; tmp = xmlGetProp(node, (const xmlChar *)"name"); result->name = (gchar *)tmp; tmp = xmlGetProp(node, (const xmlChar *)"event"); if (xmlStrcmp(tmp, (const xmlChar *)("world")) == 0) { result->event = TT_OUTPUT; } else if (xmlStrcmp(tmp, (const xmlChar *)("player")) == 0){ result->event = TT_USERS; } else { xmlFree(tmp); gm_trigger_free(result); return; } xmlFree(tmp); for (node = node->xmlChildrenNode; node; node = node->next) { tmp = xmlGetProp(node, (const xmlChar *)"type"); tmp2 = xmlGetProp(node, (const xmlChar *)"data"); if (xmlStrcmp(node->name, (const xmlChar *)("condition")) == 0) { type = gm_trigger_type_from_name((const gchar *)(tmp), table_conditions); if (type != -1) { gm_trigger_add_condition(result, gm_trigger_data_new(type, g_strdup((char *)tmp2))); } } else if (xmlStrcmp(node->name, (const xmlChar *)("action")) == 0) { type = gm_trigger_type_from_name((const gchar *)(tmp), table_actions); if (type != -1) { gm_trigger_add_action(result, gm_trigger_data_new(type, g_strdup((char *)tmp2))); } } xmlFree(tmp2); xmlFree(tmp); } gm_triggers_add(trg, result); } GmTriggers * gm_triggers_new() { GmTriggers *trg = GM_TRIGGERS(g_object_new(GM_TYPE_TRIGGERS, NULL)); return trg; } void gm_triggers_add(GmTriggers *trg, GmTrigger *t) { trg->priv->triggers = g_list_append(trg->priv->triggers, t); } void gm_triggers_clear(GmTriggers *trg) { GList *item; for (item = trg->priv->triggers; item; item = item->next) { gm_trigger_free((GmTrigger *)(item->data)); } g_list_free(trg->priv->triggers); trg->priv->triggers = NULL; } GmTriggers * gm_triggers_new_from_file(gchar *filename) { GmTriggers *trg = GM_TRIGGERS(g_object_new(GM_TYPE_TRIGGERS, NULL)); xmlDocPtr doc; xmlNodePtr cur; trg->priv->path = g_strdup(filename); if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { gm_debug_msg(DEBUG_DEFAULT, "GmTriggers.NewFromFile: Trigger file does not exist"); return trg; } doc = xmlParseFile(filename); if (doc == NULL) { gm_debug_msg(DEBUG_DEFAULT, "GmTriggers.NewFromFile: Error on parsing triggers"); return trg; } cur = xmlDocGetRootElement(doc); if (cur == NULL) { xmlFreeDoc(doc); return trg; } if (xmlStrcmp(cur->name, (const xmlChar *)("triggers"))) { gm_debug_msg(DEBUG_DEFAULT, "GmTriggers.NewFromFile: invalid root node"); xmlFreeDoc(doc); return trg; } for (cur = cur->xmlChildrenNode; cur; cur = cur->next) { if (!xmlStrcmp(cur->name, (const xmlChar *)("trigger"))) { gm_triggers_parse_trigger(trg, doc, cur); } } xmlFreeDoc(doc); return trg; } void gm_triggers_set_path(GmTriggers *trg, gchar *path) { g_free(trg->priv->path); trg->priv->path = g_strdup(path); } void gm_trigger_rules_xml(GmTrigger *t, xmlNodePtr trig) { GmTriggerData *data; GList *item; xmlNodePtr child; for (item = t->conditions; item; item = item->next) { data = (GmTriggerData *)(item->data); child = xmlNewChild(trig, NULL, (const xmlChar *)("condition"), NULL); xmlNewProp(child, (const xmlChar *)("type"), (const xmlChar *) (gm_trigger_name_from_type(data->type, table_conditions))); if (data->data) { xmlNewProp(child, (const xmlChar *)("data"), (const xmlChar *) (data->data)); } } for (item = t->actions; item; item = item->next) { data = (GmTriggerData *)(item->data); child = xmlNewChild(trig, NULL, (const xmlChar *)("action"), NULL); xmlNewProp(child, (const xmlChar *)("type"), (const xmlChar *) (gm_trigger_name_from_type(data->type, table_actions))); if (data->data) { xmlNewProp(child, (const xmlChar *)("data"), (const xmlChar *) (data->data)); } } } void gm_triggers_save(GmTriggers *trg) { xmlDocPtr doc; xmlNodePtr root; xmlNodePtr trig; GList *item; GmTrigger *t; g_return_if_fail(trg->priv->path != NULL); doc = xmlNewDoc((const xmlChar *)("1.0")); root = xmlNewNode(NULL, (const xmlChar *)("triggers")); xmlDocSetRootElement(doc, root); for (item = trg->priv->triggers; item; item = item->next) { t = (GmTrigger *)(item->data); trig = xmlNewChild(root, NULL, (const xmlChar *)("trigger"), NULL); xmlNewProp(trig, (const xmlChar *)("name"), (const xmlChar *)(t->name)); if (t->event == TT_OUTPUT) { xmlNewProp(trig, (const xmlChar *)("event"), (const xmlChar *)("world")); } else { xmlNewProp(trig, (const xmlChar *)("event"), (const xmlChar *)("player")); } gm_trigger_rules_xml(t, trig); } xmlSaveFormatFileEnc(trg->priv->path, doc, "UTF-8", 1); xmlFreeDoc(doc); } void gm_triggers_save_as(GmTriggers *trg, const gchar *path) { g_free(trg->priv->path); trg->priv->path = g_strdup(path); gm_triggers_save(trg); } GmTriggers * gm_triggers_dup(GmTriggers *source) { GmTriggers *trg = GM_TRIGGERS(g_object_new(GM_TYPE_TRIGGERS, NULL)); GList *item; for (item = source->priv->triggers; item; item = item->next) { trg->priv->triggers = g_list_append(trg->priv->triggers, gm_trigger_dup((GmTrigger *)(item->data))); } return trg; } const GList * gm_triggers_list(GmTriggers *trg) { return trg->priv->triggers; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-triggers.h�����������������������������������������������������������������0000644�0001750�0001750�00000006462�10410766740�016216� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_TRIGGERS_H__ #define __GM_TRIGGERS_H__ #include <glib.h> #include <glib-object.h> #include <regex.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_TRIGGERS (gm_triggers_get_type()) #define GM_TRIGGERS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_TRIGGERS, GmTriggers)) #define GM_TRIGGERS_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_TRIGGERS, GmTriggers const)) #define GM_TRIGGERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_TRIGGERS, GmTriggersClass)) #define GM_IS_TRIGGERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_TRIGGERS)) #define GM_IS_TRIGGERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_TRIGGERS)) #define GM_TRIGGERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_TRIGGERS, GmTriggersClass)) /* Private structure type */ typedef struct _GmTriggersPrivate GmTriggersPrivate; /* * Main object structure */ typedef struct _GmTriggers GmTriggers; struct _GmTriggers { GObject object; /*< private > */ GmTriggersPrivate *priv; }; /* * Class definition */ typedef struct _GmTriggersClass GmTriggersClass; struct _GmTriggersClass { GObjectClass parent_class; /* Signals */ }; typedef enum _GmTriggerType { TT_OUTPUT = 0, TT_USERS } GmTriggerType; typedef enum _GmTriggerConditionType { TCT_CONTAINS = 0, TCT_NOT_CONTAINS, TCT_BEGINS, TCT_NOT_BEGINS, TCT_ENDS, TCT_NOT_ENDS, TCT_MATCHES, TCT_NOT_MATCHES, TCT_USER_ONLINE, TCT_USER_OFFLINE, TCT_USER_IDLE, TCT_USER_IDLE_OFF, TCT_USER_AWAY, TCT_USER_AWAY_OFF } GmTriggerConditionType; typedef enum _GmTriggerActionType { TAT_HIGHLIGHT_LINE = 0, TAT_HIGHLIGHT_MATCH, TAT_BEEP, TAT_PLAY_SOUND, TAT_NOTIFY, TAT_RUN_SCRIPT, TAT_RUN } GmTriggerActionType; typedef struct _GmTriggerData { guint type; gchar *data; regex_t expr; } GmTriggerData; typedef struct _GmTrigger { gchar *name; GmTriggerType event; GList *conditions; GList *actions; } GmTrigger; GType gm_triggers_get_type(void) G_GNUC_CONST; GmTriggers *gm_triggers_new(void); GmTriggers *gm_triggers_new_from_file(gchar *filename); void gm_triggers_save(GmTriggers *triggers); void gm_triggers_save_as(GmTriggers *trg, const gchar *path); void gm_triggers_set_path(GmTriggers *trg, gchar *path); GmTriggers *gm_triggers_dup(GmTriggers *source); const GList *gm_triggers_list(GmTriggers *trg); void gm_triggers_add(GmTriggers *trg, GmTrigger *t); void gm_triggers_clear(GmTriggers *trg); GmTrigger *gm_trigger_new(); void gm_trigger_free(GmTrigger *trigger); GmTrigger *gm_trigger_dup(GmTrigger *source); void gm_trigger_set_name(GmTrigger *trigger, const gchar *name); void gm_trigger_free_list(GList *list); void gm_trigger_add_condition(GmTrigger *trigger, GmTriggerData *condition); void gm_trigger_add_action(GmTrigger *trigger, GmTriggerData *action); void gm_trigger_set_conditions(GmTrigger *trigger, GList *conditions); void gm_trigger_set_actions(GmTrigger *trigger, GList *actions); gint gm_trigger_match_user(GmTrigger *trigger, gchar const *username, GmTriggerConditionType condition, regmatch_t *matches, gint nmatch); gint gm_trigger_match(GmTrigger *trigger, gchar *text, regmatch_t *matches, gint nmatch); GmTriggerData *gm_trigger_data_new(gint type, gchar *data); void gm_trigger_data_free(GmTriggerData *tdata); G_END_DECLS #endif /* __GM_TRIGGERS_H__ */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-world.c��������������������������������������������������������������������0000644�0001750�0001750�00000103674�10507204324�015505� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <errno.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "gm-world.h" #include "gm-app.h" #include "mcp/gm-mcp-session.h" #include "gm-triggers.h" #include "gm-marshal.h" #include "gm-net.h" #include "gm-support.h" #include "gm-debug.h" #define GM_WORLD_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_WORLD, GmWorldPrivate)) static void gm_world_save_input_history(GmWorld *world); static void gm_world_load_input_history(GmWorld *world); static void gm_world_load_triggers(GmWorld *world); static void on_gm_world_net_state_changing(GmNet *net, GmNetState state, GmWorld *world); static void on_gm_world_net_state_changed(GmNet *net, GmNetState state, GmWorld *world); static void on_gm_world_net_net_error(GmNet *net, gchar *error, gint code, GmWorld *world); static void on_gm_world_net_bytes_recv(GmNet *net, gchar *text, gint len, GmWorld *world); static void on_gm_world_options_option_changed(GmOptions *options, gchar *key, GmWorld *world); static void on_gm_world_editor_save(GmEditor *editor, GmWorld *world); struct _GmWorldPrivate { gchar *path; gboolean loaded; gboolean active; guint activity; gchar *buffer; gboolean manual_disconnect; time_t manual_disconnect_timeout; guint reconnect_id; guint flush_history_id; time_t last_command; GmOptions *options; GmTriggers *triggers; GmNet *net; GmMcpSession *mcp; GList *history; GSList *editors; GmEditingInfo editing_info; gint last_day; gint fd_log; }; /* Properties */ enum { PROP_0, PROP_NAME, PROP_PATH, PROP_ACTIVE, PROP_ACTIVITY, PROP_OPTIONS, PROP_STATE, PROP_CURRENT_HOST, PROP_CURRENT_PORT }; /* Signals */ enum { ACTIVATE_REQUEST, LOAD, UNLOAD, STATE_CHANGING, WORLD_ERROR, TEXT_RECEIVED, EDITOR_ADDED, EDITOR_REMOVED, HIGHLIGHT, NOTIFY_MESSAGE, NUM_SIGNALS }; #define HISTORY_FLUSH_INTERVAL (10 * 60000) static guint world_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmWorld, gm_world, G_TYPE_OBJECT) static void gm_world_finalize(GObject *object) { GmWorld *world = GM_WORLD(object); if (world->priv->path) { gm_options_save(world->priv->options); gm_world_save_input_history(world); gm_triggers_save(world->priv->triggers); } if (world->priv->fd_log > 0) { close(world->priv->fd_log); } if (world->priv->reconnect_id) { g_source_remove(world->priv->reconnect_id); } if (world->priv->flush_history_id) { g_source_remove(world->priv->flush_history_id); } gm_g_list_free_simple(world->priv->history); g_free(world->priv->path); g_free(world->priv->buffer); g_free(world->priv->editing_info.name); g_free(world->priv->editing_info.upload); g_list_free(world->priv->editing_info.lines); g_object_unref(world->priv->triggers); g_object_unref(world->priv->options); g_object_unref(world->priv->net); g_object_unref(world->priv->mcp); G_OBJECT_CLASS(gm_world_parent_class)->finalize(object); } static void gm_world_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GmWorld *world = GM_WORLD(object); switch (prop_id) { case PROP_NAME: g_value_set_string(value, gm_world_name(world)); break; case PROP_PATH: g_value_set_string(value, world->priv->path); break; case PROP_ACTIVE: g_value_set_boolean(value, world->priv->active); break; case PROP_ACTIVITY: g_value_set_int(value, world->priv->activity); break; case PROP_OPTIONS: g_value_set_object(value, world->priv->options); break; case PROP_STATE: g_value_set_int(value, gm_world_state(world)); break; case PROP_CURRENT_HOST: g_value_set_string(value, gm_world_current_host(world)); break; case PROP_CURRENT_PORT: g_value_set_string(value, gm_world_current_port(world)); break; } } static void gm_world_set_property(GObject *object, guint prop_id, GValue const *value, GParamSpec *pspec) { GmWorld *world = GM_WORLD(object); switch (prop_id) { case PROP_ACTIVE: gm_world_set_active(world, g_value_get_boolean(value)); break; case PROP_ACTIVITY: gm_world_set_activity(world, g_value_get_int(value)); break; } } static void gm_world_class_init(GmWorldClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_world_finalize; object_class->get_property = gm_world_get_property; object_class->set_property = gm_world_set_property; g_object_class_install_property(object_class, PROP_NAME, g_param_spec_string("name", "NAME", "The worlds name", NULL, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_PATH, g_param_spec_string("path", "PATH", "The worlds path", NULL, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_ACTIVE, g_param_spec_boolean("active", "ACTIVE", "If world is active", FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property(object_class, PROP_ACTIVITY, g_param_spec_boolean("activity", "ACTIVITY", "Lines of activity", 0, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property(object_class, PROP_OPTIONS, g_param_spec_object("options", "OPTIONS", "Options object", GM_TYPE_OPTIONS, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_STATE, g_param_spec_int("state", "STATE", "World state", 0, GM_NET_STATE_END, 0, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_CURRENT_HOST, g_param_spec_string("current_host", "CURRENT_HOST", "Current host", 0, G_PARAM_READABLE)); g_object_class_install_property(object_class, PROP_CURRENT_PORT, g_param_spec_string("current_port", "CURRENT_PORT", "Current port", 0, G_PARAM_READABLE)); world_signals[ACTIVATE_REQUEST] = g_signal_new("activate_request", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, activate_request), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); world_signals[LOAD] = g_signal_new("load", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, load), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); world_signals[UNLOAD] = g_signal_new("unload", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, unload), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); world_signals[STATE_CHANGING] = g_signal_new("state_changing", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, state_changing), NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT); world_signals[WORLD_ERROR] = g_signal_new("world_error", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, world_error), NULL, NULL, gm_marshal_VOID__STRING_INT, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_INT); world_signals[TEXT_RECEIVED] = g_signal_new("text_received", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, text_received), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); world_signals[EDITOR_ADDED] = g_signal_new("editor_added", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, editor_added), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); world_signals[EDITOR_REMOVED] = g_signal_new("editor_removed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, editor_removed), NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, G_TYPE_OBJECT); world_signals[HIGHLIGHT] = g_signal_new("highlight", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, highlight), NULL, NULL, gm_marshal_VOID__INT_INT_STRING, G_TYPE_NONE, 3, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING); world_signals[NOTIFY_MESSAGE] = g_signal_new("notify_message", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmWorldClass, notify_message), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); g_type_class_add_private(object_class, sizeof(GmWorldPrivate)); } static void gm_world_create_default_settings(GmWorld *world) { const gchar *loc = gm_default_charset(); world->priv->options = gm_options_new(); gm_options_set(world->priv->options, "name", ""); gm_options_set(world->priv->options, "autoload", "0"); gm_options_set(world->priv->options, "host", ""); gm_options_set(world->priv->options, "port", "1111"); gm_options_set(world->priv->options, "player_name", ""); gm_options_set(world->priv->options, "reconnect", "0"); gm_options_set(world->priv->options, "password", ""); gm_options_set(world->priv->options, "charset", (gchar *)loc); gm_options_set(world->priv->options, "history_length", "500"); // Non configurable options gm_options_set(world->priv->options, "pane_position", "150"); } static void gm_world_init(GmWorld *world) { world->priv = GM_WORLD_GET_PRIVATE(world); gm_world_create_default_settings(world); world->priv->path = NULL; world->priv->loaded = FALSE; world->priv->history = NULL; world->priv->activity = 0; world->priv->triggers = gm_triggers_new(); world->priv->net = gm_net_new(); world->priv->mcp = gm_mcp_session_new(G_OBJECT(world)); world->priv->buffer = NULL; world->priv->editing_info.is_editing = FALSE; g_signal_connect(world->priv->net, "state_changing", G_CALLBACK(on_gm_world_net_state_changing), world); g_signal_connect(world->priv->net, "state_changed", G_CALLBACK(on_gm_world_net_state_changed), world); g_signal_connect(world->priv->net, "net_error", G_CALLBACK(on_gm_world_net_net_error), world); g_signal_connect(world->priv->net, "bytes_recv", G_CALLBACK(on_gm_world_net_bytes_recv), world); g_signal_connect(world->priv->options, "option_changed", G_CALLBACK(on_gm_world_options_option_changed), world); } static void gm_world_load_input_history(GmWorld *world) { FILE *f; gchar line[1024], *filename; GString *str; filename = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "history", NULL); gm_debug_msg(DEBUG_DEFAULT, "GmWorld.LoadInputHistory: loading history " "(%s)!", filename); if ((f = fopen(filename, "r")) != NULL) { str = g_string_new(""); while (fgets(line, 1024 - 1, f) != NULL) { g_string_append(str, line); if (line[strlen(line) - 1] == '\n') { if (line[1] != '\0') { // Empty lines, we don't need to process those world->priv->history = g_list_append(world->priv->history, g_strndup(str->str, strlen(str->str) - 1)); } g_string_erase(str, 0, -1); } } g_string_free(str, TRUE); fclose(f); } else { gm_debug_msg(DEBUG_DEFAULT, "GmWorld.LoadInputHistory: could not " "retrieve contents of file %s (%s)", filename, strerror(errno)); } g_free(filename); } static void gm_world_save_input_history(GmWorld *world) { FILE *f; gchar *filename; GList *elem; if (world->priv->path == NULL) { return; } filename = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "history", NULL); f = fopen(filename, "w"); if (f) { gm_debug_msg(DEBUG_DEFAULT, "GmWorld.SaveInputHistory: saving input " "history to %s", filename); for (elem = world->priv->history; elem; elem = elem->next) { fprintf(f, "%s\n", (gchar *) (elem->data)); } fclose(f); chmod(filename, 0660); } else { gm_debug_msg(DEBUG_DEFAULT, "GmWorld.SaveInputHistory: couldn't open " "history file (%s) for saving: %s", filename, strerror(errno)); } g_free(filename); } static gboolean flush_history_cb(gpointer data) { GmWorld *world = GM_WORLD(data); gm_world_save_input_history(world); world->priv->flush_history_id = 0; return FALSE; } static void gm_world_load_triggers(GmWorld *world) { gchar *path; gchar *oldpath; if (world->priv->triggers) { g_object_unref(world->priv->triggers); } oldpath = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "triggers", NULL); path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "triggers.xml", NULL); if (g_file_test(oldpath, G_FILE_TEST_EXISTS) && !g_file_test(path, G_FILE_TEST_EXISTS)) { rename(oldpath, path); } g_free(oldpath); world->priv->triggers = gm_triggers_new_from_file(path); g_free(path); } static gboolean gm_world_reconnect(GmWorld *world) { world->priv->reconnect_id = 0; const gchar *host, *port; host = gm_net_current_host(world->priv->net); port = gm_net_current_port(world->priv->net); if (!host) { host = gm_options_get(world->priv->options, "host"); } if (!port) { port = gm_options_get(world->priv->options, "port"); } gm_world_connect_to(world, host, port); return FALSE; } void gm_world_check_dirs(GmWorld *world) { gchar *tmp_path; tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "logs", NULL); if (!g_file_test(tmp_path, G_FILE_TEST_EXISTS)) { mkdir(tmp_path, 0750); } else { chmod(tmp_path, 0750); } g_free(tmp_path); } /* Public */ GmWorld * gm_world_new(gchar *path) { GmWorld *world = GM_WORLD(g_object_new(GM_TYPE_WORLD, NULL)); gchar *options_path; gchar *basename; if (path != NULL) { options_path = g_strconcat(path, G_DIR_SEPARATOR_S, "settings.xml", NULL); gm_debug_msg(DEBUG_DEFAULT, "GmWorld.new: creating new world for %s", path); world->priv->path = g_strdup(path); gm_debug_msg(DEBUG_DEFAULT, "GmWorld.new: creating default world " "settings for %s", path); _gm_options_check_old_options(options_path); if (!gm_options_load(world->priv->options, options_path)) { /* Set the name then */ basename = g_path_get_basename(path); gm_options_set(world->priv->options, "name", basename); g_free(basename); } if (strlen(gm_options_get(world->priv->options, "charset")) == 0) { gm_options_set(world->priv->options, "charset", gm_default_charset()); } g_free(options_path); gm_world_load_input_history(world); gm_world_load_triggers(world); gm_world_check_dirs(world); } /* CHECK: all done? */ return world; } GmWorld * gm_world_dup(GmWorld *source) { GmWorld *copy = gm_world_new(NULL); g_object_unref(copy->priv->options); copy->priv->options = gm_options_dup(source->priv->options); copy->priv->triggers = gm_triggers_dup(source->priv->triggers); return copy; } void gm_world_load(GmWorld *world) { if (world->priv->loaded) { g_signal_emit(world, world_signals[ACTIVATE_REQUEST], 0); return; } world->priv->loaded = TRUE; g_signal_emit(world, world_signals[LOAD], 0); g_signal_emit(world, world_signals[ACTIVATE_REQUEST], 0); gm_world_connect(world); } void gm_world_unload(GmWorld *world) { if (world->priv->loaded) { world->priv->loaded = FALSE; gm_world_disconnect(world); while (world->priv->editors) { gm_world_remove_editor(world, GM_EDITOR(world->priv->editors->data)); } if (world->priv->reconnect_id) { g_source_remove(world->priv->reconnect_id); world->priv->reconnect_id = 0; } g_signal_emit(world, world_signals[UNLOAD], 0); if (world->priv->flush_history_id) { g_source_remove(world->priv->flush_history_id); flush_history_cb(world); } } } GmTriggers * gm_world_triggers(GmWorld *world) { return world->priv->triggers; } GmOptions * gm_world_options(GmWorld *world) { return world->priv->options; } const gchar * gm_world_name(GmWorld *world) { return gm_options_get(world->priv->options, "name"); } const gchar * gm_world_path(GmWorld *world) { return world->priv->path; } GList ** gm_world_history(GmWorld *world) { return &(world->priv->history); } gboolean gm_world_loaded(GmWorld *world) { return world->priv->loaded; } gboolean gm_world_connected(GmWorld *world) { return gm_net_state(world->priv->net) == GM_NET_STATE_CONNECTED; } gboolean gm_world_disconnected(GmWorld *world) { return gm_net_state(world->priv->net) == GM_NET_STATE_DISCONNECTED; } GmNetState gm_world_state(GmWorld *world) { return gm_net_state(world->priv->net); } const gchar * gm_world_current_host(GmWorld *world) { return gm_net_current_host(world->priv->net); } const gchar * gm_world_current_port(GmWorld *world) { return gm_net_current_port(world->priv->net); } void gm_world_connect_to(GmWorld *world, gchar const *host, gchar const *port) { if (world->priv->reconnect_id) { g_source_remove(world->priv->reconnect_id); } gm_net_connect(world->priv->net, host, port); } void gm_world_connect(GmWorld *world) { gm_world_connect_to(world, gm_options_get(world->priv->options, "host"), gm_options_get(world->priv->options, "port")); } void gm_world_disconnect(GmWorld *world) { world->priv->manual_disconnect = TRUE; world->priv->manual_disconnect_timeout = time(0) + 5; gm_net_disconnect(world->priv->net); } void gm_world_prepare_disconnect(GmWorld *world) { world->priv->manual_disconnect = TRUE; world->priv->manual_disconnect_timeout = time(0) + 5; } gboolean gm_world_log_allowed(GmWorld *world, GmLogType type) { GmOptions *options = gm_app_options(gm_app_instance()); if (!gm_options_get_int(options, "logging_enable")) { return FALSE; } if (gm_options_get_int(world->priv->options, "logging_override")) { options = world->priv->options; } switch (type) { case LOG_IN: return gm_options_get_int(options, "logging_in"); break; case LOG_OUT: return gm_options_get_int(options, "logging_out"); break; case LOG_STATUS: return gm_options_get_int(options, "logging_status"); break; case LOG_MCP_IN: return gm_options_get_int(options, "logging_mcp_in"); break; case LOG_MCP_OUT: return gm_options_get_int(options, "logging_mcp_out"); break; case LOG_MCP_STATUS: return gm_options_get_int(options, "logging_mcp_status"); break; default: return FALSE; break; } } void gm_world_log(GmWorld *world, GmLogType type, gchar const *text) { GString *s; gchar *start, *log, *no_ansi; struct tm *timet; time_t timer; gint len; GmOptions *options; if (type == LOG_NONE) { return; } // Check whether to log this type if (!gm_world_log_allowed(world, type)) { return; } options = gm_app_options(gm_app_instance()); if (gm_options_get_int(world->priv->options, "logging_override")) { options = world->priv->options; } timer = time(0); timet = localtime(&timer); if (world->priv->fd_log <= 0 || world->priv->last_day != timet->tm_mday) { if (world->priv->fd_log > 0) { close(world->priv->fd_log); } log = g_strdup_printf("%s/logs/%04d-%02d-%02d.log", world->priv->path, timet->tm_year + 1900, timet->tm_mon + 1, timet->tm_mday); world->priv->fd_log = open(log, O_APPEND | O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); g_free(log); world->priv->last_day = timet->tm_mday; } if (world->priv->fd_log == -1) { return; } if (gm_options_get_int(options, "logging_add_timestamp")) { start = g_strdup_printf("[%02d:%02d] ", timet->tm_hour, timet->tm_min); s = g_string_new(start); g_free(start); } else { s = g_string_new(""); } if (gm_options_get_int(options, "logging_add_log_type")) { switch (type) { case LOG_IN: s = g_string_append_c(s, '<'); break; case LOG_OUT: s = g_string_append_c(s, '>'); break; case LOG_STATUS: s = g_string_append_c(s, '#'); break; case LOG_MCP_IN: s = g_string_append(s, "[MCP] <"); break; case LOG_MCP_OUT: s = g_string_append(s, "[MCP] >"); break; case LOG_MCP_STATUS: s = g_string_append(s, "[MCP] #"); break; default: break; } s = g_string_append_c(s, ' '); } s = g_string_append(s, text); no_ansi = gm_ansi_strip(g_strdup(s->str)); len = strlen(no_ansi); write(world->priv->fd_log, no_ansi, strlen(no_ansi)); if (no_ansi[len - 1] != '\n') { write(world->priv->fd_log, "\n", 1); } g_free(no_ansi); g_string_free(s, TRUE); } void gm_world_parse_legacy_editing_start(GmWorld *world, gchar *line) { gchar *name_start, *upload_start; GmEditingInfo *einfo = &(world->priv->editing_info); name_start = strstr(line, "name: "); if (!name_start) { return; } upload_start = strstr(line, " upload: "); if (!upload_start) { return; } einfo->is_editing = TRUE; einfo->name = g_strndup(name_start + 6, (upload_start - name_start) - 6); einfo->upload = g_strndup(upload_start + 9, (upload_start - line) + 9); einfo->lines = NULL; } #define MAX_MATCHES 10 gchar * gm_world_triggers_subst(gchar const *data, gchar const *text, regmatch_t *matches, gint nummatches) { gchar *tmp = (gchar *)data; gchar *p, *ptr, *tmp2; GString *result = NULL; gint n; gunichar c; result = g_string_new(NULL); while ((p = g_utf8_strchr(tmp, -1, '\\'))) { n = 0; ptr = g_utf8_next_char(p); g_string_append_len(result, tmp, g_utf8_strlen(tmp, -1) - g_utf8_strlen(p, -1)); if (g_unichar_isdigit(g_utf8_get_char(ptr))) { while ((c = (g_utf8_get_char(ptr))) != 0 && g_unichar_isdigit(c)) { n = (n * 10) + g_unichar_digit_value(c); ptr = g_utf8_next_char(ptr); } /* Replace it */ if (n < nummatches) { tmp2 = g_strndup(g_utf8_offset_to_pointer(text, matches[n].rm_so), matches[n].rm_eo); g_string_append(result, tmp2); g_free(tmp2); } tmp = ptr; } else { tmp = ptr; } } g_string_append(result, tmp); tmp = result->str; g_string_free(result, FALSE); return tmp; } void gm_world_apply_trigger(GmWorld *world, GmTrigger *trigger, gchar const *text, regmatch_t *matches, gint nummatches) { GList *item; GmTriggerData *data; gint i, nargs; gchar **spawn_args, *tmp; #ifdef HAVE_RUBY gchar *argstr; #endif for (item = trigger->actions; item; item = item->next) { data = (GmTriggerData *)(item->data); switch (data->type) { case TAT_HIGHLIGHT_LINE: g_signal_emit(world, world_signals[HIGHLIGHT], 0, -1, -1, data->data); break; case TAT_HIGHLIGHT_MATCH: for (i = 0; matches[i].rm_so != -1; ++i) { g_signal_emit(world, world_signals[HIGHLIGHT], 0, matches[i].rm_so, matches[i].rm_eo, data->data); } break; case TAT_BEEP: gdk_beep(); break; case TAT_PLAY_SOUND: tmp = gm_world_triggers_subst(data->data, text, matches, nummatches); // TODO g_free(tmp); break; case TAT_NOTIFY: tmp = gm_world_triggers_subst(data->data, text, matches, nummatches); g_signal_emit(world, world_signals[NOTIFY_MESSAGE], 0, tmp); g_free(tmp); break; case TAT_RUN_SCRIPT: #ifdef HAVE_RUBY tmp = gm_world_triggers_subst(data->data, text, matches, nummatches); argstr = g_utf8_strchr(tmp, -1, ' '); if (argstr) { *argstr = '\0'; argstr = g_utf8_next_char(argstr); } gm_scripts_run(gm_app_scripts(gm_app_instance()), world, tmp, argstr); g_free(tmp); #endif break; case TAT_RUN: tmp = gm_world_triggers_subst(data->data, text, matches, nummatches); if (g_shell_parse_argv(tmp, &nargs, &spawn_args, NULL)) { g_spawn_async(NULL, spawn_args, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); g_strfreev(spawn_args); } g_free(tmp); break; default: break; } } } void gm_world_process_triggers(GmWorld *world, gchar *text) { GList const *item; GmTrigger *trigger; regmatch_t matches[MAX_MATCHES]; gint num; for (item = gm_triggers_list(world->priv->triggers); item; item = item->next) { trigger = (GmTrigger *)(item->data); if (trigger->event == TT_OUTPUT) { if ((num = gm_trigger_match(trigger, text, matches, MAX_MATCHES))) { gm_world_apply_trigger(world, trigger, text, matches, num); } } } } void gm_world_process_line(GmWorld *world, gchar *line, gint len) { gchar *non_text_start = NULL, *from; GmEditingInfo *einfo = &(world->priv->editing_info); GmEditor *editor; gchar *no_ansi; gboolean has_ansi_start; if (strncmp(line, "\x1B[0m", 4) == 0) { has_ansi_start = TRUE; from = line + 4; if (len != -1) { len = len - 4; } } else { has_ansi_start = FALSE; from = line; } if (len == -1) { non_text_start = g_strdup(from); } else { non_text_start = g_strndup(from, len); } if (einfo->is_editing) { if (strcmp(non_text_start, ".") == 0) { editor = gm_editor_new(einfo->name, einfo->upload, einfo->lines); g_signal_connect(editor, "save", G_CALLBACK(on_gm_world_editor_save), world); gm_world_add_editor(world, editor); einfo->is_editing = FALSE; g_free(einfo->name); einfo->name = NULL; g_free(einfo->upload); einfo->upload = NULL; g_list_free(einfo->lines); einfo->lines = NULL; } else { einfo->lines = g_list_append(einfo->lines, g_strdup(non_text_start)); } } else if (strncmp(non_text_start, "#$#", 3) == 0) { if (strncasecmp(non_text_start + 3, " edit ", 6) == 0) { gm_world_parse_legacy_editing_start(world, non_text_start + 9); } else { gm_mcp_session_handle_oob(world->priv->mcp, non_text_start + 3); gm_world_log(world, LOG_MCP_IN, non_text_start); } } else { if (!gm_world_active(world)) { gm_world_set_activity(world, world->priv->activity + 1); } if (strncmp(non_text_start, "#$\"", 3) == 0) { if (has_ansi_start) { g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, "\x1B[0m"); } g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, non_text_start + 3); g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, "\n"); gm_world_log(world, LOG_IN, non_text_start + 3); no_ansi = gm_ansi_strip(g_strdup(non_text_start + 3)); } else { if (has_ansi_start) { g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, "\x1B[0m"); } g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, non_text_start); g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, "\n"); gm_world_log(world, LOG_IN, non_text_start); no_ansi = gm_ansi_strip(g_strdup(non_text_start)); } /* Process triggers */ gm_world_process_triggers(world, no_ansi); g_free(no_ansi); } g_free(non_text_start); } void gm_world_process_input(GmWorld *world, gchar const *text) { #ifdef HAVE_RUBY gchar *space, *script, *argstr; gboolean script_ran = FALSE; if (g_utf8_strlen(text, -1) > 1) { if (text[0] == '/' && text[1] != '/') { space = strstr(text, " "); if (space == NULL) { script = g_strdup(text + 1); argstr = g_strdup(""); } else { script = g_strndup(text + 1, (space - text) - 1); argstr = g_strdup(space + 1); } gm_debug_msg(DEBUG_DEFAULT, "GmWorld.ProcessInput: Trying script " "%s (%s)", script, argstr); script_ran = gm_scripts_run(gm_app_scripts(gm_app_instance()), world, script, argstr); g_free(script); g_free(argstr); if (script_ran) { return; } } else if (text[0] == '/' && text[1] == '/') { text = text + 1; } } #endif gm_world_sendln(world, text); } void gm_world_status(GmWorld *world, gchar const *text) { gchar *line = g_strconcat("\x1B[1;33m# ", text, "\x1B[0m", NULL); gm_world_writeln(world, line); gm_world_log(world, LOG_STATUS, line); g_free(line); } void gm_world_writeln(GmWorld *world, gchar const *text) { gchar *newline = g_strconcat(text, "\n", NULL); g_signal_emit(world, world_signals[TEXT_RECEIVED], 0, newline); g_free(newline); } void gm_world_remove_editor(GmWorld *world, GmEditor *editor) { g_return_if_fail(g_slist_find(world->priv->editors, editor) != NULL); world->priv->editors = g_slist_remove(world->priv->editors, editor); g_signal_emit(world, world_signals[EDITOR_REMOVED], 0, G_OBJECT(editor)); g_object_unref(editor); } void gm_world_add_editor(GmWorld *world, GmEditor *editor) { world->priv->editors = g_slist_append(world->priv->editors, editor); g_signal_connect_swapped(editor, "close", G_CALLBACK(gm_world_remove_editor), world); g_signal_emit(world, world_signals[EDITOR_ADDED], 0, editor); } GSList const * gm_world_editors(GmWorld *world) { return world->priv->editors; } void gm_world_sendln_log(GmWorld *world, gchar const *text, GmLogType logtype) { gchar *normal; // Convert text from utf-8 to the correct locale normal = gm_from_utf8_with_fallback(text, -1, gm_options_get(world->priv->options, "charset"), "?"); if (!normal) { gm_debug_msg(DEBUG_DEFAULT, "GmWorld.SendlnLog: conversion failed!"); normal = g_strdup(text); } if (logtype != LOG_NONE && (logtype != LOG_OUT || gm_mcp_session_initialized(world->priv->mcp))) { gm_world_log(world, logtype, text); } gm_net_send_line(world->priv->net, normal); g_free(normal); if (world->priv->flush_history_id != 0) g_source_remove(world->priv->flush_history_id); world->priv->flush_history_id = g_timeout_add(HISTORY_FLUSH_INTERVAL, flush_history_cb, world); } void gm_world_sendln(GmWorld *world, gchar const *text) { world->priv->last_command = time(0); gm_world_sendln_log(world, text, LOG_OUT); } void gm_world_set_active(GmWorld *world, gboolean active) { world->priv->active = active; g_object_notify(G_OBJECT(world), "active"); if (active) { gm_world_set_activity(world, 0); } } gboolean gm_world_active(GmWorld *world) { return world->priv->active; } void gm_world_set_activity(GmWorld *world, gint activity) { world->priv->activity = activity; g_object_notify(G_OBJECT(world), "activity"); } gint gm_world_activity(GmWorld *world) { return world->priv->activity; } void gm_world_name_changed(GmWorld *world) { gchar *tmp_path = world->priv->path ? g_strdup(world->priv->path) : NULL; gchar *new_path = g_strconcat(gm_app_worlds_path(gm_app_instance()), "/", gm_options_get(world->priv->options, "name"), NULL); if (tmp_path && strcmp(tmp_path, new_path) == 0) { g_free(new_path); g_free(tmp_path); return; } g_free(world->priv->path); world->priv->path = new_path; if (tmp_path && g_file_test(tmp_path, G_FILE_TEST_EXISTS)) { // Then! rename the old_path to the new_path rename(tmp_path, world->priv->path); } else if (!g_file_test(world->priv->path, G_FILE_TEST_EXISTS)) { // There was no old path, so a new dir should be made mkdir(world->priv->path, 0755); } g_free(tmp_path); tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "settings.xml", NULL); gm_options_save_as(world->priv->options, tmp_path); g_free(tmp_path); tmp_path = g_strconcat(world->priv->path, G_DIR_SEPARATOR_S, "triggers.xml", NULL); gm_triggers_save_as(world->priv->triggers, tmp_path); g_free(tmp_path); gm_world_check_dirs(world); g_object_notify(G_OBJECT(world), "name"); } GmMcpSession * gm_world_get_mcp_session(GmWorld *world) { return world->priv->mcp; } void gm_world_auto_login(GmWorld *world) { gchar const *player_name = gm_options_get(world->priv->options, "player_name"); gchar const *passwd = gm_options_get(world->priv->options, "password"); gchar *sendln; if (player_name && *player_name != '\0') { sendln = g_strconcat("connect ", player_name, " ", passwd, NULL); gm_world_sendln_log(world, sendln, LOG_NONE); g_free(sendln); } } /* Callbacks */ static void on_gm_world_editor_save(GmEditor *editor, GmWorld *world) { GList *line; if (gm_net_state(world->priv->net) == GM_NET_STATE_CONNECTED) { gm_world_sendln(world, gm_editor_upload_cmd(editor)); for (line = gm_editor_lines(editor); line; line = line->next) { gm_world_sendln(world, (gchar *)(line->data)); } gm_world_sendln(world, "."); gm_editor_saved(editor); } else { gm_world_status(world, _("Could not save editor text, world is " "not connected at the moment")); } } static void on_gm_world_net_state_changing(GmNet *net, GmNetState state, GmWorld *world) { GmNetState prev_state = gm_net_state(net); g_signal_emit(world, world_signals[STATE_CHANGING], 0, state); if ((prev_state == GM_NET_STATE_CONNECTED || prev_state == GM_NET_STATE_DISCONNECTING) && state == GM_NET_STATE_DISCONNECTED) { gm_mcp_session_reset(world->priv->mcp); #ifdef HAVE_RUBY gm_scripts_run(gm_app_scripts(gm_app_instance()), world, "on_disconnect", NULL); #endif if (!world->priv->reconnect_id && gm_options_get_int(world->priv->options, "reconnect")) { // Manual disconnect timeout check if (world->priv->manual_disconnect || time(0) < world->priv->manual_disconnect_timeout) { return; } // Last command send check if (difftime(time(0), world->priv->last_command) <= 3) { return; } world->priv->reconnect_id = g_timeout_add(3000, (GSourceFunc)gm_world_reconnect, world); gm_world_status(world, _("Reconnecting in 3 seconds...")); } } } static void on_gm_world_net_state_changed(GmNet *net, GmNetState state, GmWorld *world) { if (state == GM_NET_STATE_CONNECTED) { world->priv->manual_disconnect = FALSE; gm_world_auto_login(world); #ifdef HAVE_RUBY gm_scripts_run(gm_app_scripts(gm_app_instance()), world, "on_connect", NULL); #endif } } static void on_gm_world_net_net_error(GmNet *net, gchar *error, gint code, GmWorld *world) { g_signal_emit(world, world_signals[WORLD_ERROR], 0, error, code); gm_world_log(world, LOG_STATUS, error); } static void on_gm_world_net_bytes_recv(GmNet *net, gchar *text, gint len, GmWorld *world) { gchar *all, *utext, *ptr, *start; gunichar ch, prev; utext = gm_to_utf8_with_fallback(text, len, gm_options_get(world->priv->options, "charset"), "?"); if (!utext) { gm_debug_msg(DEBUG_DEFAULT, "GmWorld.NetBytesRecv: conversion failed!"); utext = g_strndup(text, len); } if (world->priv->buffer != NULL) { all = g_strconcat(world->priv->buffer, utext, NULL); g_free(utext); g_free(world->priv->buffer); world->priv->buffer = NULL; } else { all = utext; } ptr = start = all; prev = 0; /* Find lines in `all' and process them */ while ((ch = g_utf8_get_char(ptr)) != '\0') { if (ch == '\n') { gm_world_process_line(world, start, ptr - start - (prev == '\r' ? 1 : 0)); ptr = start = g_utf8_next_char(ptr); // Skip \r if (g_utf8_get_char(ptr) == '\r') { ptr = start = g_utf8_next_char(ptr); } } else { ptr = g_utf8_next_char(ptr); } prev = ch; } if (*start != '\0') { world->priv->buffer = g_strdup(start); } g_free(all); } static void on_gm_world_options_option_changed(GmOptions *options, gchar *key, GmWorld *world) { if (strcmp(key, "name") == 0) { gm_world_name_changed(world); } } ��������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-world.h��������������������������������������������������������������������0000644�0001750�0001750�00000011145�10415722441�015504� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_WORLD_H__ #define __GM_WORLD_H__ #include <gtk/gtk.h> #include <regex.h> #include "gm-options.h" #include "gm-net.h" #include "gm-editor.h" #include "gm-triggers.h" #include "mcp/gm-mcp-session.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_WORLD (gm_world_get_type()) #define GM_WORLD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_WORLD, GmWorld)) #define GM_WORLD_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_WORLD, GmWorld const)) #define GM_WORLD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_WORLD, GmWorldClass)) #define GM_IS_WORLD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_WORLD)) #define GM_IS_WORLD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_WORLD)) #define GM_WORLD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_WORLD, GmWorldClass)) /** \ingroup world * \brief struct for world editing information * * Struct which contains various fields for storing editing information. This * is only used if editing via mcp_simpleedit can't be used. */ typedef struct _GmEditingInfo { gboolean is_editing; /**< are we editing at the moment? */ GList *lines; /**< the lines to be edited */ gchar *name; /**< the name of the editor */ gchar *upload; /**< the command to send when sending the editor contents */ } GmEditingInfo; /** \ingroup world * \brief enum indicating log type * * Enumeration which indicates the log type */ typedef enum _GmLogType GmLogType; enum _GmLogType { LOG_NONE, /**< don't log */ LOG_IN, /**< incoming lines */ LOG_OUT, /**< outgoing lines */ LOG_STATUS, /**< status lines (such as connecting information) */ LOG_MCP_IN, /**< mcp incoming lines */ LOG_MCP_OUT, /**< mcp outgoing lines */ LOG_MCP_STATUS /**< mcp status lines */ }; /* Private structure type */ typedef struct _GmWorldPrivate GmWorldPrivate; /* * Main object structure */ typedef struct _GmWorld GmWorld; struct _GmWorld { GObject object; /*< private > */ GmWorldPrivate *priv; }; /* * Class definition */ typedef struct _GmWorldClass GmWorldClass; struct _GmWorldClass { GObjectClass parent_class; /* Signals */ void (* activate_request) (GmWorld *world); void (* load) (GmWorld *world); void (* unload) (GmWorld *world); void (* state_changing) (GmWorld *world, guint state); void (* world_error) (GmWorld *world, gchar const *error, gint code); void (* text_received) (GmWorld *world, gchar const *text); void (* editor_added) (GmWorld *world, GObject *editor); void (* editor_removed) (GmWorld *world, GObject *editor); void (* highlight) (GmWorld *world, gint start, gint end, gchar const *color); void (* notify_message) (GmWorld *world, gchar const *message); }; GType gm_world_get_type(void) G_GNUC_CONST; GmWorld *gm_world_new(gchar *path); GmWorld *gm_world_dup(GmWorld *source); void gm_world_load(GmWorld *world); void gm_world_unload(GmWorld *world); const gchar *gm_world_name(GmWorld *world); GmOptions *gm_world_options(GmWorld *world); const gchar *gm_world_path(GmWorld *world); GList **gm_world_history(GmWorld *world); gint gm_world_activity(GmWorld *world); gboolean gm_world_active(GmWorld *world); GmTriggers *gm_world_triggers(GmWorld *world); const gchar *gm_world_current_host(GmWorld *world); const gchar *gm_world_current_port(GmWorld *world); void gm_world_set_name(GmWorld *world, const gchar *name); void gm_world_set_activity(GmWorld *world, gint activity); void gm_world_set_active(GmWorld *world, gboolean active); GmMcpSession *gm_world_get_mcp_session(GmWorld *world); gboolean gm_world_loaded(GmWorld *world); GmNetState gm_world_state(GmWorld *world); gboolean gm_world_connected(GmWorld *world); gboolean gm_world_disconnected(GmWorld *world); void gm_world_connect(GmWorld *world); void gm_world_connect_to(GmWorld *world, gchar const *host, gchar const *port); void gm_world_disconnect(GmWorld *world); void gm_world_prepare_disconnect(GmWorld *world); void gm_world_add_editor(GmWorld *world, GmEditor *editor); void gm_world_remove_editor(GmWorld *world, GmEditor *editor); GSList const *gm_world_editors(GmWorld *world); void gm_world_sendln_log(GmWorld *world, gchar const *text, GmLogType logtype); void gm_world_sendln(GmWorld *world, gchar const *text); void gm_world_writeln(GmWorld *world, gchar const *text); void gm_world_status(GmWorld *world, gchar const *text); void gm_world_process_input(GmWorld *world, gchar const *text); void gm_world_log(GmWorld *world, GmLogType type, gchar const *text); void gm_world_apply_trigger(GmWorld *world, GmTrigger *trigger, gchar const *text, regmatch_t *matches, gint nummatches); G_END_DECLS #endif /* __GM_WORLD_H__ */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-string.c�������������������������������������������������������������������0000644�0001750�0001750�00000007334�10415720105�015656� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <stdlib.h> #include "gm-string.h" #include "gm-debug.h" gboolean gm_string_to_int(const gchar *str, int *result) { *result = 0; if (str == NULL || *str == '\0') { return FALSE; } *result = atoi(str); return TRUE; } gchar * gm_string_catn(gchar *str, gchar *add, guint n) { guint relen; gchar *newstr; if (str == NULL) { relen = 0; } else { relen = strlen(str); } if ((newstr = (gchar *) realloc(str, (relen + n + 1) * sizeof(gchar))) == NULL) { gm_debug_msg(DEBUG_DEFAULT, "mystring_catn: REALLOC FAILED!"); return str; } else { if (relen == 0) { newstr[0] = '\0'; } strncat(newstr, add, n); return newstr; } } gchar * gm_string_cat(gchar *str, gchar *add) { return gm_string_catn(str, add, strlen(add)); } gchar * gm_string_trim(const gchar *str) { gchar *newstr = NULL; const gchar *r, *l; if (str == NULL) { return NULL; } r = str + strlen(str); l = str; while (*l == ' ' || *r == ' ') { if (l == r) { break; } if (*l == ' ') { l++; } if (l == r) { break; } if (*r == ' ') { r--; } } if (l == r) { return g_strdup(""); } else { newstr = g_strndup(l, r - l); return newstr; } } gchar * gm_string_remove_char(gchar *str, gchar rem) { gchar *start = str; gchar *ptr = str; gboolean changed = FALSE; gunichar c; while (*str != '\0') { c = g_utf8_get_char(str); if (c != (gunichar)rem) { if (changed) { ptr += g_unichar_to_utf8(c, ptr); } else { ptr = g_utf8_next_char(ptr); } } else { changed = TRUE; } str = g_utf8_next_char(str); } *ptr = '\0'; return start; } void gm_string_skip_space(gchar const **ptr) { while (**ptr != '\0' && g_unichar_isspace(g_utf8_get_char(*ptr))) { *ptr = g_utf8_next_char(*ptr); } } void gm_string_skip_nonspace(gchar const **ptr) { while (**ptr != '\0' && !g_unichar_isspace(g_utf8_get_char(*ptr))) { *ptr = g_utf8_next_char(*ptr); } } void gm_string_skip_till(gchar const **ptr, gchar const *find) { gchar const *fptr; gunichar check, c; while (**ptr != '\0') { check = g_utf8_get_char(*ptr); fptr = find; while (*fptr != '\0') { c = g_utf8_get_char(fptr); if (check == c) { return; } fptr = g_utf8_next_char(fptr); } *ptr = g_utf8_next_char(*ptr); } } gchar * gm_string_escape(gchar const *line) { GString *new_line; gchar *ptr; gunichar c; if (*line == '\0') { return g_strdup(""); } if (g_utf8_strchr(line, '"', -1) || g_utf8_strchr(line, '\\', -1)) { // We need at least strlen(line) new_line = g_string_sized_new(strlen(line)); while (*line != '\0') { c = g_utf8_get_char(line); if (c == '"' || c == '\\') { g_string_append_c(new_line, '\\'); } g_string_append_unichar(new_line, c); line = g_utf8_next_char(line); } ptr = new_line->str; g_string_free(new_line, FALSE); return ptr; } else { return g_strdup(line); } } GList * gm_string_split_add_line(gchar *line, GList *lines, GList **lastptr) { if (!lines) { lines = g_list_append(NULL, line); *lastptr = lines; } else { *lastptr = g_list_append(*lastptr, line); *lastptr = (*lastptr)->next; } return lines; } GList * gm_string_split(gchar const *text) { gchar *fptr, *line; GList *lastptr; GList *lines = NULL; if (!text) { return NULL; } while ((fptr = g_utf8_strchr(text, -1, '\n'))) { line = g_strndup(text, fptr - text); gm_string_remove_char(line, '\r'); lines = gm_string_split_add_line(line, lines, &lastptr); text = g_utf8_next_char(fptr); } if (*text != '\0') { line = g_strdup(text); gm_string_remove_char(line, '\r'); lines = gm_string_split_add_line(line, lines, &lastptr); } return lines; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-string.h�������������������������������������������������������������������0000644�0001750�0001750�00000001137�10410766740�015670� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef MY_STRING_H #define MY_STRING_H 1 #include <string.h> #include <stdlib.h> #include <glib.h> int gm_string_to_int(const gchar *str, int *result); char *gm_string_catn(char *str, char *add, unsigned int n); char *gm_string_cat(char *str, char *add); char *gm_string_trim(const gchar *str); gchar *gm_string_remove_char(gchar *str, gchar rem); void gm_string_skip_space(gchar const **ptr); void gm_string_skip_nonspace(gchar const **ptr); void gm_string_skip_till(gchar const **ptr, gchar const *find); gchar *gm_string_escape(gchar const *line); GList *gm_string_split(gchar const *text); #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-support.c������������������������������������������������������������������0000644�0001750�0001750�00000046000�10507464671�016074� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include <locale.h> #include <sys/mman.h> #include <fcntl.h> #include <gtk/gtk.h> #include <regex.h> #include <libgnome/gnome-url.h> #include <libgnomevfs/gnome-vfs.h> #include <errno.h> #include "gm-support.h" #include "gm-debug.h" #include "gm-pixbuf.h" #include "gm-string.h" #include "gm-color-table.h" #include "gm-app.h" #define URL_REGEXP "(((mailto|news|telnet|nttp|file|http|sftp|ftp|https|dav|callto)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.@:]+[^]''\\.}>\\) ,\\/\\\"\\!]+(:[0-9]*)?(/|/[-A-Za-z0-9_\\$\\.\\+\\!\\*\\(\\),;:@&=\\?/~\\#\\%]*[^]'\\.}>\\) ,\\\"\\!])?" static regex_t url_regexp; gchar * gm_fix_decimal_point(gchar *line, int len) { int i; struct lconv *l = localeconv(); if (l->decimal_point[0] == '.') { return line; } for (i = 0; i < len; i++) { if (line[i] == '.') { line[i] = l->decimal_point[0]; } } return line; } gchar * gm_fix_decimal_point_rev(gchar *line, int len) { int i; struct lconv *l = localeconv(); for (i = 0; i < len; i++) { if (line[i] == l->decimal_point[0]) { line[i] = '.'; } } return line; } gchar * gm_ansi_strip(gchar *s) { gchar *ptr, *fptr; gunichar c; ptr = s; fptr = s; while (*ptr != '\0') { c = g_utf8_get_char(ptr); // Escape sequence, advance to character after 'm' if (c == '\x1B') { gm_string_skip_till((const gchar **)(&ptr), "m"); } else if (c != '\x07') { // Store any other character (excluding bell char) fptr += g_unichar_to_utf8(c, fptr); } if (*ptr != '\0') { ptr = g_utf8_next_char(ptr); } } *fptr = '\0'; return s; } int gm_garray_length(gchar **s) { gchar **iter = s; while (*iter++ != NULL) ; return *iter - *s - 1; } void gm_g_list_free_simple(GList *s) { GList *tmp; for (tmp = s; tmp; tmp = tmp->next) { g_free(tmp->data); } g_list_free(s); } gchar * gm_g_list_find_simple(GList *s, gchar *f) { GList *tmp; for (tmp = s; tmp; tmp = tmp->next) { if (strcmp(tmp->data, f) == 0) { return tmp->data; } } return NULL; } gint gm_dialog(gchar * message, GtkMessageType messagebox_type, gint buttons_type, GtkWindow * parent) { GtkWidget *dlg; gint result; dlg = gtk_message_dialog_new(parent, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, messagebox_type, buttons_type, message, NULL); result = gtk_dialog_run(GTK_DIALOG(dlg)); gtk_widget_destroy(dlg); return result; } gint gm_error_dialog(gchar * message, GtkWindow * parent) { return gm_dialog(message, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, parent); } gint gm_warning_dialog(gchar * message, GtkWindow * parent) { return gm_dialog(message, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, parent); } gint gm_info_dialog(gchar * message, GtkWindow * parent) { return gm_dialog(message, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, parent); } gint gm_question_dialog(gchar * message, GtkWindow * parent) { return gm_dialog(message, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, parent); } void gm_do_events() { while (gtk_events_pending()) { gtk_main_iteration(); } } void gm_directory_remove_all(const gchar * path, gboolean remove_self) { GDir *cDir; gchar *name; gchar *newPath; if (g_file_test(path, G_FILE_TEST_IS_DIR)) { // Iterate through the files and do the right thingie if ((cDir = g_dir_open(path, 0, NULL))) { while ((name = (gchar *) (g_dir_read_name(cDir))) != NULL) { newPath = g_strconcat(path, "/", name, NULL); gm_directory_remove_all(newPath, TRUE); g_free(newPath); } g_dir_close(cDir); } } if (remove_self) { // Its a file, or just empty! MUST...BE...REMOVEEEED! remove(path); } } gint gm_url_regex_match(const gchar *msg, int len, GArray *start, GArray *end) { static gboolean inited = FALSE; regmatch_t matches[1]; gint ret = 0, num_matches = 0, offset = 0; gchar *tmp; gint s; if (!inited) { memset(&url_regexp, 0, sizeof (regex_t)); regcomp(&url_regexp, URL_REGEXP, REG_EXTENDED); inited = TRUE; } tmp = g_strndup(msg, len); while (!ret) { ret = regexec(&url_regexp, (char *)(tmp + offset), 1, matches, 0); if (ret == 0) { if (matches[0].rm_so > matches[0].rm_eo) { break; } num_matches++; s = matches[0].rm_so + offset; offset = matches[0].rm_eo + offset; g_array_append_val(start, s); g_array_append_val(end, offset); } } g_free(tmp); return num_matches; } void gm_open_url(const gchar *url) { if (url == NULL || *url == '\0') { return; } /* gnome_url_show doesn't work when there's no protocol, so we might * need to add one. */ if (strstr(url, "://") == NULL) { gchar *tmp; tmp = g_strconcat("http://", url, NULL); gnome_url_show(tmp, NULL); g_free(tmp); return; } gnome_url_show(url, NULL); } void gm_fetch_handle_free(GmFetchHandle *g) { GList *tmp; g_free(g->cur_file_name); for (tmp = g->source_uri; tmp; tmp = tmp->next) { gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data)); } g_list_free(g->source_uri); for (tmp = g->dest_uri; tmp; tmp = tmp->next) { gnome_vfs_uri_unref((GnomeVFSURI*)(tmp->data)); } g_list_free(g->dest_uri); g_free(g); } GmFetchHandle * gm_fetch_handle_create(GFunc cb, gpointer user_data) { GmFetchHandle *g = g_new0(GmFetchHandle, 1); g->cb = cb; g->user_data = user_data; g->prev_status = GNOME_VFS_XFER_PROGRESS_STATUS_OK; g->cur_phase = -1; g->prev_phase = -1; g->cur_file = -1; g->prev_file = -1; return g; } gint gm_fetch_progress(GnomeVFSAsyncHandle *handle, GnomeVFSXferProgressInfo *info, GmFetchHandle *g) { gchar *name; gchar const *err; g->cur_phase = info->phase; g->cur_file = info->file_index; g->files_total = info->files_total; g->bytes_total = info->bytes_total; g->file_size = info->file_size; g->bytes_copied = info->bytes_copied; g->total_bytes_copied = info->total_bytes_copied; g->status = info->status; if (g->aborted) { g->cb(g, g->user_data); gm_fetch_handle_free(g); return FALSE; } if (info->target_name != NULL) { if (g->cur_file_name && strcmp(g->cur_file_name, info->target_name) != 0) { g->cur_phase = GNOME_VFS_XFER_PHASE_FILECOMPLETED; g->cb(g, g->user_data); g->cur_phase = info->phase; g_free(g->cur_file_name); g->cur_file_name = NULL; } if (!g->cur_file_name) { g->cur_file_name = g_strdup(info->target_name); } } if (info->status == GNOME_VFS_XFER_PROGRESS_STATUS_OVERWRITE) { name = gnome_vfs_get_local_path_from_uri(info->target_name); gm_debug_msg(DEBUG_DEFAULT, "GmFetchProgress: asking for overwriting " "%s: yes", name); g->prev_status = GNOME_VFS_XFER_PROGRESS_STATUS_OVERWRITE; return GNOME_VFS_XFER_OVERWRITE_ACTION_REPLACE; } else if (info->status == GNOME_VFS_XFER_PROGRESS_STATUS_VFSERROR) { name = gnome_vfs_get_local_path_from_uri(info->target_name); err = gnome_vfs_result_to_string(info->vfs_status); gdk_threads_enter(); gm_debug_msg(DEBUG_DEFAULT, "GmFetchProgress: error for %s: %s", name, err); g->cb(g, g->user_data); gdk_threads_leave(); g_free(g->cur_file_name); g->cur_file_name = NULL; g->prev_status = GNOME_VFS_XFER_PROGRESS_STATUS_VFSERROR; g_free(name); return GNOME_VFS_XFER_ERROR_ACTION_SKIP; } if (info->phase == GNOME_VFS_XFER_PHASE_COMPLETED) { if (g->cur_file_name != NULL) { g->cur_phase = GNOME_VFS_XFER_PHASE_FILECOMPLETED; g->cb(g, g->user_data); g->cur_phase = info->phase; } g->done = TRUE; g->cb(g, g->user_data); gm_fetch_handle_free(g); return TRUE; } g->prev_status = info->status; return TRUE; } gint gm_fetch_interact(GnomeVFSXferProgressInfo *info, gpointer user_data) { return 1; } GmFetchHandle * gm_fetch(const GList *source, const GList *dest, GFunc cb, gpointer user_data) { GmFetchHandle *g = gm_fetch_handle_create(cb, user_data); gchar *uri; GnomeVFSResult ret; for (; source; source = source->next) { uri = (gchar *)(source->data); g->source_uri = g_list_append(g->source_uri, gnome_vfs_uri_new(uri)); } for (; dest; dest = dest->next) { uri = (gchar *)(dest->data); g->dest_uri = g_list_append(g->dest_uri, gnome_vfs_uri_new(uri)); } ret = gnome_vfs_async_xfer(&(g->handle), g->source_uri, g->dest_uri, GNOME_VFS_XFER_DEFAULT|GNOME_VFS_XFER_RECURSIVE, GNOME_VFS_XFER_ERROR_MODE_QUERY, GNOME_VFS_XFER_OVERWRITE_MODE_REPLACE, GNOME_VFS_PRIORITY_DEFAULT, (GnomeVFSAsyncXferProgressCallback)gm_fetch_progress, g, gm_fetch_interact, g); return g; } gboolean gm_is_end_scrolled(GtkScrolledWindow *wnd, guint charHeight) { GtkAdjustment *ad = gtk_scrolled_window_get_vadjustment(wnd); return ((ad->page_size + ad->value) >= ad->upper - (double)charHeight); } void gm_scroll_end(GtkTextView *view, gboolean needs) { GtkTextBuffer *buf; GtkTextMark *mark; GtkTextIter iter; if (!needs) { return; } buf = gtk_text_view_get_buffer(view); mark = gtk_text_buffer_get_mark(buf, "end-of-buffer"); if (mark == NULL) { gtk_text_buffer_get_end_iter(buf, &iter); mark = gtk_text_buffer_create_mark(buf, "end-of-buffer", &iter, FALSE); } gtk_text_view_scroll_to_mark(view, mark, 0.0, TRUE, 1.0, 1.0); } #define MAX_BUF 1024 gchar * gm_read_file(const gchar *fname) { int fd; gchar *tmp, *mapped; long bytes_total = 0; if (!fname) { return NULL; } fd = open(fname, O_RDONLY); if (fd == -1) { gm_debug_msg(DEBUG_DEFAULT, "GmReadFile: file (%s) could not be read: " "%s", fname, strerror(errno)); return NULL; } bytes_total = lseek(fd, 0, SEEK_END); lseek(fd, 0, SEEK_SET); if (bytes_total == (off_t)-1) { close(fd); return NULL; } mapped = mmap(0, bytes_total, PROT_READ, MAP_PRIVATE, fd, 0); if (mapped == MAP_FAILED) { close(fd); gm_debug_msg(DEBUG_DEFAULT, "GmReadFile: error while mapping file: %s", strerror(errno)); return NULL; } if (g_utf8_validate(mapped, bytes_total, NULL)) { // Easy, this is utf8! tmp = g_strndup(mapped, bytes_total); } else { // Try locale tmp = g_locale_to_utf8(mapped, bytes_total, NULL, NULL, NULL); if (!tmp) { // Now we're getting desperate... try ISO-8859-15 tmp = g_convert(mapped, bytes_total, "UTF-8", "ISO-8859-15", NULL, NULL, NULL); } if (!tmp) { // OMG try one last conversion to ISO-8859-1 tmp = g_convert(mapped, bytes_total, "UTF-8", "ISO-8859-1", NULL, NULL, NULL); } } munmap(mapped, bytes_total); close(fd); return tmp; } GtkWidget * gm_create_tab_label(const gchar *icon, const gchar *caption, gboolean has_exit, GmLabelInfo *info) { /* First create the gbox (size 3) which will contain an icon, a label and a exit button if has_exit is true */ GtkWidget *hboxTabLabel; gint h, w; GtkRcStyle *rcstyle; hboxTabLabel = gtk_hbox_new(FALSE, 4); gtk_widget_show(hboxTabLabel); gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &w, &h); info->image_icon = gtk_image_new_from_pixbuf( gm_pixbuf_get_at_size(icon, w, h)); gtk_widget_set_size_request(info->image_icon, w, h); gtk_widget_show(info->image_icon); gtk_box_pack_start(GTK_BOX(hboxTabLabel), info->image_icon, TRUE, TRUE, 0); info->label_name = gtk_label_new(caption); gtk_widget_show(info->label_name); gtk_box_pack_start(GTK_BOX(hboxTabLabel), info->label_name, FALSE, FALSE, 0); if (has_exit) { info->button_exit = gtk_button_new(); gtk_widget_show(info->button_exit); gtk_box_pack_end(GTK_BOX(hboxTabLabel), info->button_exit , FALSE, FALSE, 0); gtk_button_set_relief(GTK_BUTTON(info->button_exit), GTK_RELIEF_NONE); gtk_button_set_focus_on_click(GTK_BUTTON(info->button_exit), FALSE); gtk_widget_set_size_request(info->button_exit, w + 2, h + 2); rcstyle = gtk_rc_style_new(); rcstyle->xthickness = rcstyle->ythickness = 0; gtk_widget_modify_style(info->button_exit, rcstyle); gtk_rc_style_unref(rcstyle); info->image_exit = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); gtk_widget_show(info->image_exit); gtk_container_add(GTK_CONTAINER(info->button_exit), info->image_exit); } return hboxTabLabel; } void gm_widget_destroy_data(GtkWidget *caller, GtkWidget *destroyer) { if (GTK_IS_WIDGET(destroyer)) { gtk_widget_destroy(destroyer); } } const gchar * gm_default_charset() { static const gchar *loc = NULL; if (loc == NULL) { g_get_charset(&loc); } if (loc == NULL || *loc == 0) { loc = "ISO-8859-15"; } return loc; } void gm_notebook_focus_from_label(GtkNotebook *note, gchar *caption) { int p = gtk_notebook_get_n_pages(note); int i; GtkWidget *child; for (i = 0; i < p; i++) { child = gtk_notebook_get_nth_page(note, i); if (!g_strcasecmp(gtk_notebook_get_tab_label_text(note, child), caption)) { gtk_notebook_set_current_page(note, i); break; } } } GtkWidget * gm_find_parent(GtkWidget *widget, GType parent_type) { if (widget == NULL) { return NULL; } if (G_TYPE_CHECK_INSTANCE_TYPE(widget, parent_type)) { return widget; } return gm_find_parent(gtk_widget_get_parent(widget), parent_type); } GtkWidget * gm_find_child(GtkWidget *widget, GType parent_type) { GList *children, *child; if (widget == NULL) { return NULL; } if (G_TYPE_CHECK_INSTANCE_TYPE(widget, parent_type)) { return widget; } if (GTK_IS_CONTAINER(widget)) { children = gtk_container_get_children(GTK_CONTAINER(widget)); widget = NULL; for (child = children; child; child = child->next) { widget = gm_find_child(GTK_WIDGET(child->data), parent_type); if (widget) { break; } } g_list_free(children); return widget; } else { return NULL; } } gchar * gm_convert_with_fallback(gchar const *text, gssize len, gchar const *from, gchar const *to, gchar const *fallback) { gchar *res; gsize read, written; GString *str = g_string_new(""); // TODO: use g_iconv instead of g_convert while ((res = g_convert(text, len, to, from, &read, &written, NULL)) == NULL) { res = g_convert(text, read, to, from, NULL, NULL, NULL); str = g_string_append(str, res); str = g_string_append(str, fallback); text = text + read + 1; if (len != -1) len = len - read - 1; } str = g_string_append(str, res); g_free(res); res = str->str; g_string_free(str, FALSE); return res; } gchar * gm_from_utf8_with_fallback(gchar const *text, gssize len, gchar const *to, gchar const *fallback) { return gm_convert_with_fallback(text, len, "UTF-8", to, fallback); } gchar * gm_to_utf8_with_fallback(gchar const *text, gssize len, gchar const *from, gchar const *fallback) { return gm_convert_with_fallback(text, len, from, "UTF-8", fallback); } GtkWidget * gm_container_item(GtkContainer *cnt, GType type) { GList *child_first = gtk_container_get_children(cnt); GList *child; GtkWidget *result = NULL; for (child = child_first; child; child = child->next) { if (G_TYPE_CHECK_INSTANCE_TYPE(child->data, type)) { result = GTK_WIDGET(child->data); break; } else if (GTK_IS_CONTAINER(child->data)) { if ((result = gm_container_item( GTK_CONTAINER(child->data), type))) { break; } } } g_list_free(child_first); return result; } static void modify_cursor_color(GtkWidget *textview, GdkColor *color) { static const char cursor_color_rc[] = "style \"svs-cc\"\n" "{\n" "GtkTextView::cursor-color=\"#%04x%04x%04x\"\n" "}\n" "widget \"*.%s\" style : application \"svs-cc\"\n"; const gchar *name; gchar *rc_temp; name = gtk_widget_get_name(textview); if (!name) { gtk_widget_set_name(textview, "GmSchemedTextView"); name = gtk_widget_get_name(textview); } g_return_if_fail(name != NULL); if (color != NULL) { rc_temp = g_strdup_printf(cursor_color_rc, color->red, color->green, color->blue, name); } else { GtkRcStyle *rc_style; rc_style = gtk_widget_get_modifier_style(textview); rc_temp = g_strdup_printf(cursor_color_rc, rc_style->text[GTK_STATE_NORMAL].red, rc_style->text[GTK_STATE_NORMAL].green, rc_style->text[GTK_STATE_NORMAL].blue, name); } gtk_rc_parse_string(rc_temp); gtk_widget_reset_rc_styles(textview); g_free(rc_temp); } void on_color_changed(GmColorTable *table, gchar const *color, GtkWidget *widget) { GdkColor col; g_object_set_data(G_OBJECT(widget), "gm_schemed_modifying_style", GINT_TO_POINTER(1)); if (strcmp(color, "fg_default") == 0) { gm_color_table_get(table, color, &col); gtk_widget_modify_text(widget, GTK_STATE_NORMAL, &col); // Modify the cursor color if (GTK_IS_TEXT_VIEW(widget)) { modify_cursor_color(widget, &col); } } else if (strcmp(color, "bg_default") == 0) { gm_color_table_get(table, color, &col); gtk_widget_modify_base(widget, GTK_STATE_NORMAL, &col); } g_object_set_data(G_OBJECT(widget), "gm_schemed_modifying_style", GINT_TO_POINTER(0)); } void on_font_changed(GmColorTable *table, gchar const *font, GtkWidget *widget) { PangoFontDescription *desc = pango_font_description_from_string(font); if (desc) { gtk_widget_modify_font(widget, desc); pango_font_description_free(desc); } } void on_style_set(GtkWidget *widget, GtkStyle *prev, gpointer user_data) { GmSchemedFlags flags = GPOINTER_TO_INT(user_data); GmColorTable *table = GM_COLOR_TABLE(g_object_get_data(G_OBJECT(widget), "gm_color_table")); gpointer modifying = g_object_get_data(G_OBJECT(widget), "gm_schemed_modifying_style"); if (modifying != NULL && GPOINTER_TO_INT(modifying) == 1) { return; } if (flags & GM_SCHEMED_COLORS) { on_color_changed(table, "fg_default", widget); on_color_changed(table, "bg_default", widget); } if (flags & GM_SCHEMED_FONT) { on_font_changed(table, gm_color_table_font_description(table), widget); } } void on_widget_destroy(GtkWidget *widget, gpointer data) { GmSchemedFlags flags = GPOINTER_TO_INT(data); GmColorTable *table = GM_COLOR_TABLE(g_object_get_data(G_OBJECT(widget), "gm_color_table")); if (flags & GM_SCHEMED_COLORS) { g_signal_handlers_disconnect_by_func(table, G_CALLBACK(on_color_changed), widget); } if (flags & GM_SCHEMED_FONT) { g_signal_handlers_disconnect_by_func(table, G_CALLBACK(on_font_changed), widget); } //g_signal_handlers_disconnect_by_func(widget, G_CALLBACK(on_style_set), // data); g_signal_handlers_disconnect_by_func(widget, G_CALLBACK(on_widget_destroy), data); } void gm_register_schemed(GtkWidget *widget, GmColorTable *table, GmSchemedFlags flags) { gpointer data = g_object_get_data(G_OBJECT(widget), "gm_color_table"); if (data != NULL) { on_widget_destroy(widget, GINT_TO_POINTER(flags)); } if (table == NULL) { return; } g_object_set_data(G_OBJECT(widget), "gm_color_table", table); if (flags & GM_SCHEMED_COLORS) { g_signal_connect(table, "color-changed", G_CALLBACK(on_color_changed), widget); on_color_changed(table, "fg_default", widget); on_color_changed(table, "bg_default", widget); } if (flags & GM_SCHEMED_FONT) { g_signal_connect(table, "font-changed", G_CALLBACK(on_font_changed), widget); on_font_changed(table, gm_color_table_font_description(table), widget); } //g_signal_connect(widget, "style-set", // G_CALLBACK(on_style_set), GINT_TO_POINTER(flags)); g_signal_connect(widget, "destroy", G_CALLBACK(on_widget_destroy), GINT_TO_POINTER(flags)); } gnoemoe-2.2.0/gnoemoe/gm-support.h������������������������������������������������������������������0000644�0001750�0001750�00000010652�10416451205�016071� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_SUPPORT_H__ #define __GM_SUPPORT_H__ #ifdef HAVE_CONFIG_H #include "../config.h" #endif #include <gtk/gtk.h> #include <libgnomevfs/gnome-vfs.h> #undef _ #include <glib/gi18n.h> #include "gm-color-table.h" /* * Standard gettext macros. #ifdef ENABLE_NLS # include <libintl.h> # undef _ # define _(String) dgettext (PACKAGE, String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define textdomain(String) (String) # define gettext(String) (String) # define dgettext(Domain,Message) (Message) # define dcgettext(Domain,Message,Type) (Message) # define bindtextdomain(Domain,Directory) (Domain) #ifndef _ # define _(String) (String) #endif # define N_(String) (String) #endif */ #define CALC_COLOR_RANGE(x) (int)((-(1/((x * 0.5)+1))+1)*255) /** \defgroup support */ /** \ingroup support * \brief Widget container for tabs * * Contains all widgets that could be useful to be modified. * Stored here because it makes it easier to look them up. * */ typedef struct _GmLabelInfo GmLabelInfo; struct _GmLabelInfo { /** \brief GtkButton widget * * GtkButton widget, reference to the tabs exit button */ GtkWidget *button_exit; /** \brief GtkImage widget * * GtkImage widget, reference to the tabs exit button image */ GtkWidget *image_exit; /** \brief GtkLabel widget * * GtkLabel widget, reference to the tabs label */ GtkWidget *label_name; /** \brief GtkImage widget * * GtkImage widget, reference to the tabs icon */ GtkWidget *image_icon; }; /** \ingroup support * \brief Key/value pair struct * * Contains two fields. Used to create hash tables * */ typedef struct _GmKeyValuePair { gchar *key; /**< the key */ gchar *value; /**< the value */ } GmKeyValuePair; typedef struct _GmFetchHandle GmFetchHandle; struct _GmFetchHandle { GnomeVFSAsyncHandle *handle; GFunc cb; gpointer user_data; GList *source_uri; GList *dest_uri; GnomeVFSXferPhase cur_phase; GnomeVFSXferPhase prev_phase; GnomeVFSXferProgressStatus prev_status; GnomeVFSXferProgressStatus status; GnomeVFSFileSize bytes_total; GnomeVFSFileSize file_size; GnomeVFSFileSize bytes_copied; GnomeVFSFileSize total_bytes_copied; gulong files_total; gulong cur_file; gulong prev_file; gchar *cur_file_name; gboolean aborted; gboolean done; }; gchar *gm_fix_decimal_point(gchar *line, int len); gchar *gm_fix_decimal_point_rev(gchar *line, int len); gchar *gm_ansi_strip(gchar * s); int garray_length(gchar **s); void gm_g_list_free_simple(GList *s); gchar *gm_g_list_find_simple(GList *s, gchar *f); gint gm_error_dialog(gchar * message, GtkWindow * parent); gint gm_warning_dialog(gchar * message, GtkWindow * parent); gint gm_info_dialog(gchar * message, GtkWindow * parent); gint gm_question_dialog(gchar * message, GtkWindow * parent); void gm_do_events(); void gm_directory_remove_all(const gchar * path, gboolean remove_self); gint gm_url_regex_match(const gchar *msg, int len, GArray *start, GArray *end); void gm_open_url(const gchar *url); GmFetchHandle * gm_fetch(const GList *source, const GList *dest, GFunc cb, gpointer user_data); void gm_fetch_handle_free(GmFetchHandle *g); gboolean gm_is_end_scrolled(GtkScrolledWindow *wnd, guint charHeight); void gm_scroll_end(GtkTextView *view, gboolean needs); typedef gboolean (*ReadProgressFunc) (long, long, gchar *, gpointer); gchar *gm_read_file(gchar const *fname); GtkWidget *gm_create_tab_label(const gchar *icon, const gchar *caption, gboolean has_exit, GmLabelInfo *info); void gm_widget_destroy_data(GtkWidget *caller, GtkWidget *destroyer); const gchar *gm_default_charset(); void gm_notebook_focus_from_label(GtkNotebook *note, gchar *caption); GtkWidget *gm_find_parent(GtkWidget *widget, GType parent_type); GtkWidget *gm_find_child(GtkWidget *widget, GType parent_type); gchar *gm_from_utf8_with_fallback(gchar const *text, gssize len, gchar const *to, gchar const *fallback); gchar *gm_to_utf8_with_fallback(gchar const *text, gssize len, gchar const *from, gchar const *fallback); GtkWidget *gm_container_item(GtkContainer *cnt, GType type); typedef enum _GmSchemedFlags { GM_SCHEMED_COLORS = 1 << 0, GM_SCHEMED_FONT = 1 << 1 } GmSchemedFlags; void gm_register_schemed(GtkWidget *widget, GmColorTable *Table, GmSchemedFlags flags); #endif /* __GM_SUPPORT_H__ */ ��������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-editor.c�������������������������������������������������������������������0000644�0001750�0001750�00000013050�10467367030�015641� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include "gm-editor.h" #include "gm-world.h" #include "gm-support.h" #include "gm-string.h" #include "gm-debug.h" #define GM_EDITOR_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), GM_TYPE_EDITOR, GmEditorPrivate)) struct _GmEditorPrivate { gchar *name; gchar *upload_cmd; gchar *mcp_type; GmEditType type; gboolean is_code; GList *lines; }; /* Signals */ enum { SAVE, SAVED, CLOSE, NUM_SIGNALS }; static guint editor_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmEditor, gm_editor, G_TYPE_OBJECT) static void gm_editor_finalize(GObject *object) { GmEditor *editor = GM_EDITOR(object); g_free(editor->priv->name); g_free(editor->priv->upload_cmd); g_free(editor->priv->mcp_type); gm_g_list_free_simple(editor->priv->lines); G_OBJECT_CLASS(gm_editor_parent_class)->finalize(object); } static void gm_editor_class_init(GmEditorClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_editor_finalize; editor_signals[SAVE] = g_signal_new("save", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmEditorClass, save), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); editor_signals[SAVED] = g_signal_new("saved", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmEditorClass, saved), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); editor_signals[CLOSE] = g_signal_new("close", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmEditorClass, close), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); g_type_class_add_private(object_class, sizeof(GmEditorPrivate)); } static void gm_editor_init(GmEditor *view) { view->priv = GM_EDITOR_GET_PRIVATE(view); } GmEditor * gm_editor_new(gchar *name, gchar *uploadcmd, GList *text) { GmEditor *editor = GM_EDITOR(g_object_new(GM_TYPE_EDITOR, NULL)); editor->priv->name = g_strdup(name); editor->priv->upload_cmd = g_strdup(uploadcmd); editor->priv->mcp_type = NULL; editor->priv->lines = g_list_copy(text); editor->priv->type = E_LEGACY; editor->priv->is_code = (strncmp(uploadcmd, "@program", 7) == 0); return editor; } GmEditor * gm_editor_new_mcp(gchar *name, gchar *reference, gchar *type, GList *text) { GmEditor *editor = GM_EDITOR(g_object_new(GM_TYPE_EDITOR, NULL)); editor->priv->name = g_strdup(name); editor->priv->upload_cmd = g_strdup(reference); editor->priv->mcp_type = g_strdup(type); editor->priv->lines = g_list_copy(text); editor->priv->type = E_LEGACY; editor->priv->is_code = (strcmp(type, "moo-code") == 0); return editor; } void gm_editor_lines_free(GmEditor *editor) { gm_g_list_free_simple(editor->priv->lines); editor->priv->lines = NULL; } void gm_editor_set_lines_from_string(GmEditor *editor, gchar const *text) { editor->priv->lines = gm_string_split(text); } void gm_editor_set_lines_from_file(GmEditor *editor, gchar const *filename) { gchar *text = gm_read_file(filename); if (!text) { // TODO: Couldn't read file... what to do return; } gm_editor_set_lines_from_string(editor, text); g_free(text); } gboolean gm_editor_is_code(GmEditor *editor) { return editor->priv->is_code; } gchar * gm_editor_name(GmEditor *editor) { return editor->priv->name; } gchar * gm_editor_upload_cmd(GmEditor *editor) { return editor->priv->upload_cmd; } gchar * gm_editor_mcp_type(GmEditor *editor) { return editor->priv->mcp_type; } GList * gm_editor_lines(GmEditor *editor) { return editor->priv->lines; } GmEditType gm_editor_type(GmEditor *editor) { return editor->priv->type; } void gm_editor_save(GmEditor *editor) { g_signal_emit(editor, editor_signals[SAVE], 0); } void gm_editor_saved(GmEditor *editor) { g_signal_emit(editor, editor_signals[SAVED], 0); } void gm_editor_close(GmEditor *editor) { g_signal_emit(editor, editor_signals[CLOSE], 0); } gchar * gm_editor_generate_filename(GmEditor *editor) { gchar *filename, *ptr, *fptr; gunichar c; guint counter; filename = g_strdup(editor->priv->name); ptr = filename; fptr = filename; // Remove any characters that are not digits or chars // Replace spaces with underscores while (*ptr != '\0') { c = g_utf8_get_char(ptr); if (c == ' ') { *fptr++ = '_'; } else if (c == '.' || c == ':' || c == '_' || g_unichar_isalnum(c)) { fptr += g_unichar_to_utf8(c, fptr); } ptr = g_utf8_next_char(ptr); } *fptr = '\0'; ptr = NULL; counter = 0; while (ptr == NULL || g_file_test(ptr, G_FILE_TEST_EXISTS)) { g_free(ptr); if (editor->priv->is_code) { ptr = g_strdup_printf("%s/gnoemoe-edit.%s.%d.%s", g_get_tmp_dir(), filename, counter, "moo"); } else { ptr = g_strdup_printf("%s/gnoemoe-edit.%s.%d.%s",g_get_tmp_dir(), filename, counter, "txt"); } ++counter; } g_free(filename); return ptr; } gchar * gm_editor_write_lines(GmEditor *editor) { gchar *tmp = gm_editor_generate_filename(editor); gint fd = open(tmp, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP); GList *line; if (fd == -1) { gm_debug_msg(DEBUG_ALWAYS, "Couldn't open file: %s, %s", tmp, strerror(errno)); g_free(tmp); return NULL; } // Write lines for (line = editor->priv->lines; line; line = line->next) { if (write(fd, line->data, strlen(line->data)) == -1) { gm_debug_msg(DEBUG_ALWAYS, "Writing failed"); break; } if (write(fd, "\n", 1) == -1) { gm_debug_msg(DEBUG_ALWAYS, "Writing failed"); break; } } close(fd); return tmp; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-editor.h�������������������������������������������������������������������0000644�0001750�0001750�00000004150�10410766740�015646� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_EDITOR_H__ #define __GM_EDITOR_H__ #include <glib-object.h> #include <glib.h> G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_EDITOR (gm_editor_get_type()) #define GM_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_EDITOR, GmEditor)) #define GM_EDITOR_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GM_TYPE_EDITOR, GmEditor const)) #define GM_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GM_TYPE_EDITOR, GmEditorClass)) #define GM_IS_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GM_TYPE_EDITOR)) #define GM_IS_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GM_TYPE_EDITOR)) #define GM_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GM_TYPE_EDITOR, GmEditorClass)) /* Private structure type */ typedef struct _GmEditorPrivate GmEditorPrivate; /* * Main object structure */ typedef struct _GmEditor GmEditor; struct _GmEditor { GObject object; /*< private > */ GmEditorPrivate *priv; }; /* * Class definition */ typedef struct _GmEditorClass GmEditorClass; struct _GmEditorClass { GObjectClass parent_class; /* Signals */ void (* save) (GmEditor *editor); void (* saved) (GmEditor *editor); void (* close) (GmEditor *editor); }; typedef enum _GmEditType GmEditType; enum _GmEditType { E_LEGACY, E_MCP }; GType gm_editor_get_type(void) G_GNUC_CONST; GmEditor *gm_editor_new(gchar *name, gchar *uploadcmd, GList *text); GmEditor *gm_editor_new_mcp(gchar *name, gchar *reference, gchar *type, GList *text); void gm_editor_set_lines_from_string(GmEditor *editor, gchar const *text); void gm_editor_set_lines_from_file(GmEditor *editor, gchar const *filename); gchar *gm_editor_write_lines(GmEditor *editor); void gm_editor_save(GmEditor *editor); void gm_editor_saved(GmEditor *editor); void gm_editor_close(GmEditor *editor); gboolean gm_editor_is_code(GmEditor *editor); gchar *gm_editor_name(GmEditor *editor); gchar *gm_editor_upload_cmd(GmEditor *editor); gchar *gm_editor_mcp_type(GmEditor *editor); GList *gm_editor_lines(GmEditor *editor); GmEditType gm_editor_type(GmEditor *editor); G_END_DECLS #endif /* __GM_EDITOR_H__ */ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-pixbuf.c�������������������������������������������������������������������0000644�0001750�0001750�00000015123�10517751475�015661� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <gtk/gtk.h> #include <glib.h> #include <string.h> #include <strings.h> #include "gm-debug.h" #include "gm-pixbuf.h" static GList *gm_pixbuf_directories = NULL; static GList *gm_pixbufs = NULL; static GtkIconFactory *factory = NULL; GdkPixbuf *gm_pixbuf_create(const gchar * filename, int width, int height); static void on_gm_pixbuf_theme_changed(GtkIconTheme *theme, gpointer user_data); static GdkPixbuf * gm_pixbuf_create_save_close() { GError *error = NULL; GtkIconTheme *icon_theme; GdkPixbuf *pixbuf, *close, *save; gint w1, h1, w2, h2; icon_theme = gtk_icon_theme_get_default(); gtk_icon_size_lookup(GTK_ICON_SIZE_LARGE_TOOLBAR, &w1, &h1); save = gtk_icon_theme_load_icon(icon_theme, GTK_STOCK_SAVE, w1, GTK_ICON_LOOKUP_USE_BUILTIN, &error); if (error) { g_error_free(error); error = NULL; } if (save == NULL) { gm_debug_msg(DEBUG_DEFAULT, "Couldn't find save icon for the save and close composite icon"); return gm_pixbuf_get("saveclose.xpm"); } w1 = gdk_pixbuf_get_width(save); h1 = gdk_pixbuf_get_height(save); pixbuf = gdk_pixbuf_copy(save); g_object_unref(save); w2 = w1 / 2; h2 = h1 / 2; close = gtk_icon_theme_load_icon(icon_theme, GTK_STOCK_CLOSE, w2, 0, &error); if (error) { g_error_free(error); } if (close == NULL) { gm_debug_msg(DEBUG_DEFAULT, "Couldn't find close icon for the save and close composite icon"); return gm_pixbuf_get("saveclose.xpm"); } gdk_pixbuf_composite(close, pixbuf, w1 - w2, 0, w2, h2, w1 - w2, 0, 1, 1, GDK_INTERP_NEAREST, 255); g_object_unref(close); return pixbuf; } void gm_pixbuf_add_directory(const gchar *directory) { gm_pixbuf_directories = g_list_prepend(gm_pixbuf_directories, g_strdup(directory)); } static GtkIconSource * gm_pixbuf_create_stock24(GdkPixbuf *pixbuf) { GtkIconSource *source; GdkPixbuf *scaled; gint w, h; scaled = gdk_pixbuf_new(gdk_pixbuf_get_colorspace(pixbuf), gdk_pixbuf_get_has_alpha(pixbuf), gdk_pixbuf_get_bits_per_sample(pixbuf), 24, 24); gdk_pixbuf_fill(scaled, 0xffffff00); w = gdk_pixbuf_get_width(pixbuf); h = gdk_pixbuf_get_height(pixbuf); gdk_pixbuf_copy_area(pixbuf, 0, 0, w, h, scaled, (24 - w) / 2, (24 - h) / 2); source = gtk_icon_source_new(); gtk_icon_source_set_pixbuf(source, scaled); gtk_icon_source_set_size(source, GTK_ICON_SIZE_LARGE_TOOLBAR); return source; } void gm_pixbuf_populate_factory() { GdkPixbuf *pixbuf = gm_pixbuf_create_save_close(); GtkIconSet *set; GtkIconSource *source; set = gtk_icon_set_new_from_pixbuf(pixbuf); if (gdk_pixbuf_get_width(pixbuf) < 24) { source = gm_pixbuf_create_stock24(pixbuf); gtk_icon_set_add_source(set, source); gtk_icon_source_free(source); } gtk_icon_factory_add(factory, GM_STOCK_SAVE_CLOSE, set); g_object_unref(pixbuf); } void gm_pixbuf_init() { GtkIconTheme *theme; gm_pixbuf_add_directory(PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); theme = gtk_icon_theme_get_default(); g_signal_connect(theme, "changed", G_CALLBACK(on_gm_pixbuf_theme_changed), NULL); factory = gtk_icon_factory_new(); gtk_icon_factory_add_default(factory); gm_pixbuf_populate_factory(); } void gm_pixbuf_fini() { GList *l; GmPixbufInfo *i; for (l = gm_pixbuf_directories; l; l = l->next) { g_free(l->data); } g_list_free(gm_pixbuf_directories); for (l = gm_pixbufs; l; l = l->next) { i = (GmPixbufInfo *)(l->data); g_free(i->name); g_object_unref(i->pixbuf); g_free(i); } g_list_free(gm_pixbufs); gtk_icon_factory_remove_default(factory); g_object_unref(factory); } gchar * gm_pixbuf_find(const gchar *filename) { GList *elem; if (filename == NULL) { return NULL; } if (g_file_test(filename, G_FILE_TEST_EXISTS)) { return g_strdup(filename); } for (elem = gm_pixbuf_directories; elem; elem = elem->next) { gchar *pathname = g_strdup_printf("%s%s%s", (gchar *) elem->data, G_DIR_SEPARATOR_S, filename); if (g_file_test(pathname, G_FILE_TEST_EXISTS)) { return pathname; } g_free(pathname); } return NULL; } GdkPixbuf * gm_pixbuf_create(const gchar * filename, int width, int height) { gchar *pathname = NULL, *ext; GdkPixbuf *pixbuf = NULL; GError *error = NULL; if (!filename || *filename == '\0') { return NULL; } pathname = gm_pixbuf_find(filename); if (!pathname) { gm_debug_msg(DEBUG_DEFAULT, "gm_pixbuf_create: couldn't find pixbuf file: %s", filename); return NULL; } ext = rindex(pathname, '.'); if (width < 1 || height < 1) { pixbuf = gdk_pixbuf_new_from_file(pathname, &error); } else { pixbuf = gdk_pixbuf_new_from_file_at_size(pathname, width, height, &error); } if (!pixbuf) { gm_debug_msg(DEBUG_DEFAULT, "gm_pixbuf_create: failed to load pixbuf from file: %s: %s\n", pathname, error->message); g_error_free(error); error = NULL; } g_free(pathname); return pixbuf; } GdkPixbuf * gm_pixbuf_get_at_size(const gchar *filename, int width, int height) { GdkPixbuf *pix; GList *elem; GmPixbufInfo *i; if (filename == NULL || *filename == '\0') { return NULL; } for (elem = gm_pixbufs; elem; elem = elem->next) { i = (GmPixbufInfo *) (elem->data); if (strcmp(i->name, filename) == 0 && i->width == width && i->height == height) { return i->pixbuf; } } // Not found, so create it pix = gm_pixbuf_create(filename, width, height); if (pix) { i = g_new(GmPixbufInfo, 1); i->name = g_strdup(filename); i->width = width; i->height = height; i->pixbuf = pix; gm_pixbufs = g_list_append(gm_pixbufs, i); return pix; } else { return NULL; } } // Returns pixbuf if it is already loaded in pixmaps GdkPixbuf * gm_pixbuf_get(const gchar *filename) { return gm_pixbuf_get_at_size(filename, -1, -1); } void gm_pixbuf_set_alpha(GdkPixbuf **pixs, guchar alpha) { int width, height, n_channels, rowstride, y, x; GdkPixbuf *pix; guchar *pixels, *p; if (!gdk_pixbuf_get_has_alpha(*pixs)) { pix = gdk_pixbuf_add_alpha(*pixs, FALSE, 0, 0, 0); gdk_pixbuf_unref(*pixs); } else { pix = *pixs; } n_channels = gdk_pixbuf_get_n_channels(pix); if (gdk_pixbuf_get_colorspace(pix) != GDK_COLORSPACE_RGB || gdk_pixbuf_get_bits_per_sample(pix) != 8 || !gdk_pixbuf_get_has_alpha(pix) || n_channels != 4) { *pixs = pix; return; } width = gdk_pixbuf_get_width(pix); height = gdk_pixbuf_get_height(pix); rowstride = gdk_pixbuf_get_rowstride(pix); pixels = gdk_pixbuf_get_pixels(pix); p = pixels; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { p[3] = alpha; p = p + n_channels; } } *pixs = pix; } static void on_gm_pixbuf_theme_changed(GtkIconTheme *theme, gpointer user_data) { gm_pixbuf_populate_factory(); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-pixbuf.h�������������������������������������������������������������������0000644�0001750�0001750�00000001055�10413216756�015656� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef gm_pixbuf_H #define gm_pixbuf_H 1 #include <gtk/gtk.h> #include <glib.h> typedef struct _GmPixbufInfo { gchar *name; int width; int height; GdkPixbuf *pixbuf; } GmPixbufInfo; /* Stock items */ #define GM_STOCK_SAVE_CLOSE "gm-stock-save-close" void gm_pixbuf_init(); void gm_pixbuf_fini(); void gm_pixbuf_add_directory(const gchar *directory); GdkPixbuf *gm_pixbuf_get(const gchar *filename); GdkPixbuf *gm_pixbuf_get_at_size(const gchar *filename, int width, int height); void gm_pixbuf_set_alpha(GdkPixbuf **pixs, guchar alpha); #endif �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-debug.c��������������������������������������������������������������������0000644�0001750�0001750�00000003202�10410766740�015436� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#include <time.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #include <errno.h> #include <glib.h> #include <pthread.h> #include "gm-debug.h" typedef struct _LevelMap { gchar const *name; GmDebugLevel level; } LevelMap; static LevelMap level_mapping[] = { {"default", DEBUG_DEFAULT}, {"mcp", DEBUG_MCP}, {"all", DEBUG_ALL}, {NULL, 0} }; static gint debug_level = DEBUG_ALWAYS; static pthread_mutex_t mutex_debug = PTHREAD_MUTEX_INITIALIZER; static void gm_debug_msg_real(FILE *f, struct tm *timet, gchar *line, va_list args) { fprintf(f, "[%02d:%02d:%02d] # ", timet->tm_hour, timet->tm_min, timet->tm_sec); vfprintf(f, line, args); fprintf(f, "\n"); } void gm_debug_msg(gint level, gchar *line, ...) { struct tm *timet; time_t timer; va_list args; pthread_mutex_lock(&mutex_debug); if ((debug_level | level) == debug_level) { va_start(args, line); timer = time(0); timet = localtime(&timer); if (level & DEBUG_ALWAYS) { gm_debug_msg_real(stdout, timet, line, args); } if ((level & DEBUG_ALWAYS) != level) { gm_debug_msg_real(stderr, timet, line, args); } va_end(args); } pthread_mutex_unlock(&mutex_debug); } void gm_debug_set_level(gchar *level) { gchar **levels, **iter; debug_level = DEBUG_ALWAYS; LevelMap *map; if (level == NULL) { return; } levels = g_strsplit(level, ",", -1); pthread_mutex_lock(&mutex_debug); for (iter = levels; *iter; ++iter) { for (map = level_mapping; map->name; ++map) { if (strcasecmp(map->name, *iter) == 0) { debug_level = debug_level | map->level; break; } } } pthread_mutex_unlock(&mutex_debug); g_strfreev(levels); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-debug.h��������������������������������������������������������������������0000644�0001750�0001750�00000000573�10410766740�015453� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_DEBUG_H__ #define __GM_DEBUG_H__ 1 typedef enum _GmDebugLevel { DEBUG_ALWAYS = 1 << 1, DEBUG_DEFAULT = 1 << 2, DEBUG_MCP = 1 << 3, DEBUG_ALL = 0xFFFF } GmDebugLevel; #define GM_DEBUG(format, args...) gm_debug_msg(DEBUG_ALWAYS, format, ##args) void gm_debug_msg(gint level, char *line, ...); void gm_debug_set_level(gchar *level); #endif /* __GM_DEBUG_H__ */ �������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/list.c������������������������������������������������������������������������0000644�0001750�0001750�00000024700�10410766740�014730� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* gmoo - a gtk+ based graphical MOO/MUD/MUSH/... client * Copyright (C) 1999-2000 Gert Scholten * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include "list.h" #include <stdlib.h> #include <string.h> #include <ctype.h> #include <glib.h> stream_t * stream_new(int len) { stream_t *s = g_malloc(sizeof(stream_t)); s->len = MAX(len, 1); s->pos = 0; s->buf = g_malloc(s->len + 1); s->buf[s->pos] = '\0'; return s; } void stream_append(stream_t * s, char c) { if (s->pos >= s->len - 1) { s->len *= 2; s->buf = g_realloc(s->buf, s->len + 1); } s->buf[s->pos++] = c; s->buf[s->pos] = '\0'; } void stream_append_string(stream_t * s, const char *string) { if (string) { while (*string) { stream_append(s, *string); string++; } } } void stream_append_string_quoted(stream_t * s, const char *string) { int i; stream_append(s, '\"'); for (i = 0; string[i]; i++) { if (string[i] == '\\' || string[i] == '\"') stream_append(s, '\\'); stream_append(s, string[i]); } stream_append(s, '\"'); } void stream_free(stream_t * s) { g_free(s->buf); g_free(s); } MOOVar * do_MOOVar_parse(const char **s) { MOOVar *var = NULL, *item; stream_t *stream; int i; while (isspace(**s)) (*s)++; if (**s == '{') { /* list */ (*s)++; var = MOOVar_new_list(); while (**s && **s != '}') { if ((item = do_MOOVar_parse(s))) { MOOVar_listappend(var, item); } else goto error; while (isspace(**s)) (*s)++; if (**s == ',') (*s)++; else break; } if (**s == '}') { /* things went ok */ (*s)++; return var; } else { error: MOOVar_free(var); return NULL; } } stream = stream_new(80); if (**s == '\"') { /* String */ (*s)++; i = 0; while (**s) { switch (**s) { case '\"': if (!i) { /* string officially terminated */ var = MOOVar_new_string(stream->buf); stream_free(stream); (*s)++; return var; } else { stream_append(stream, **s); break; } case '\\': if (!i) { i = 1; break; } default: stream_append(stream, **s); i = 0; } (*s)++; } stream_free(stream); return NULL; } if (**s == '#') { /* Object */ (*s)++; if (**s == '-') { stream_append(stream, **s); (*s)++; } while (isdigit(**s)) { stream_append(stream, **s); (*s)++; } if (!stream->pos || stream->buf[stream->pos - 1] == '-') { stream_free(stream); return NULL; } var = MOOVar_new_object(atoi(stream->buf)); stream_free(stream); return var; } if (((**s == 'E') || (**s == 'e')) && (*((*s) + 1) == '_')) { stream_append(stream, 'e'); stream_append(stream, '_'); (*s) += 2; while (isalpha(**s)) { stream_append(stream, **s); (*s)++; } var = MOOVar_new_error(stream->buf); stream_free(stream); return var; } if (**s == '-') { stream_append(stream, **s); (*s)++; } if (isdigit(**s) || (**s == '.') || (**s == 'e') || (**s == 'E')) { i = FALSE; while (isdigit(**s) || (**s == '.') || (**s == 'e') || (**s == 'E')) { if ((**s == '.') || (**s == 'e') || (**s == 'E')) i = TRUE; stream_append(stream, **s); (*s)++; } if (i) { var = MOOVar_new_float(stream->buf); } else { var = MOOVar_new_int(stream->buf); } stream_free(stream); return var; } stream_free(stream); return NULL; } MOOVar * MOOVar_parse(const char *s) { MOOVar *v = do_MOOVar_parse(&s); while (isspace(*s)) s++; if (*s) { MOOVar_free(v); return NULL; } return v; } MOOVar * MOOVar_new_list() { MOOVar *var = g_malloc(sizeof(MOOVar)); var->type = LIST; var->s = NULL; var->i = 0; var->d = 0.0; var->list = NULL; var->next = NULL; return var; } MOOVar * MOOVar_new_object(int obj) { MOOVar *var = g_malloc(sizeof(MOOVar)); var->type = OBJECT; var->s = NULL; var->i = obj; var->d = 0.0; var->list = NULL; var->next = NULL; return var; } MOOVar * MOOVar_new_string(const char *string) { MOOVar *var = g_malloc(sizeof(MOOVar)); var->type = STRING; var->s = g_strdup(string); var->i = strlen(string); var->d = 0.0; var->list = NULL; var->next = NULL; return var; } int parse_error(const char *e, int *i, char **s) { if (g_strcasecmp(e, "E_NONE") == 0) { *i = E_NONE; *s = g_strdup("No error"); } else if (g_strcasecmp(e, "E_TYPE") == 0) { *i = E_TYPE; *s = g_strdup("Type mismatch"); } else if (g_strcasecmp(e, "E_DIV") == 0) { *i = E_DIV; *s = g_strdup("Division by zero"); } else if (g_strcasecmp(e, "E_PERM") == 0) { *i = E_PERM; *s = g_strdup("Permission denied"); } else if (g_strcasecmp(e, "E_PROPNF") == 0) { *i = E_PROPNF; *s = g_strdup("Property not found"); } else if (g_strcasecmp(e, "E_VERBNF") == 0) { *i = E_VERBNF; *s = g_strdup("Verb not found"); } else if (g_strcasecmp(e, "E_VARNF") == 0) { *i = E_VARNF; *s = g_strdup("Variable not found"); } else if (g_strcasecmp(e, "E_INVIND") == 0) { *i = E_INVIND; *s = g_strdup("Invalid indirection"); } else if (g_strcasecmp(e, "E_RECMOVE") == 0) { *i = E_RECMOVE; *s = g_strdup("Recursive move"); } else if (g_strcasecmp(e, "E_MAXREC") == 0) { *i = E_MAXREC; *s = g_strdup("Too many verb calls"); } else if (g_strcasecmp(e, "E_RANGE") == 0) { *i = E_RANGE; *s = g_strdup("Range error"); } else if (g_strcasecmp(e, "E_ARGS") == 0) { *i = E_ARGS; *s = g_strdup("Incorrect number of arguments"); } else if (g_strcasecmp(e, "E_NACC") == 0) { *i = E_NACC; *s = g_strdup("Move refused by destination"); } else if (g_strcasecmp(e, "E_INVARG") == 0) { *i = E_INVARG; *s = g_strdup("Invalid argument"); } else if (g_strcasecmp(e, "E_QUOTA") == 0) { *i = E_QUOTA; *s = g_strdup("Resource limit exceeded"); } else if (g_strcasecmp(e, "E_FLOAT") == 0) { *i = E_FLOAT; *s = g_strdup("Floating-point arithmetic error"); } else { return FALSE; } return TRUE; } char * to_error(int e) { if (e == E_NONE) return "E_NONE"; if (e == E_TYPE) return "E_TYPE"; if (e == E_DIV) return "E_DIV"; if (e == E_PERM) return "E_PERM"; if (e == E_PROPNF) return "E_PROPNF"; if (e == E_VERBNF) return "E_VERBNF"; if (e == E_VARNF) return "E_VARNF"; if (e == E_INVIND) return "E_INVIND"; if (e == E_RECMOVE) return "E_RECMOVE"; if (e == E_MAXREC) return "E_MAXREC"; if (e == E_RANGE) return "E_RANGE"; if (e == E_NACC) return "E_NACC"; if (e == E_INVARG) return "E_INVARG"; if (e == E_QUOTA) return "E_QUOTA"; if (e == E_FLOAT) return "E_FLOAT"; return ""; } MOOVar * MOOVar_new_error(const char *try_error) { MOOVar *var = g_malloc(sizeof(MOOVar)); var->type = ERROR; var->s = NULL; var->i = 0; var->d = 0.0; var->list = NULL; var->next = NULL; if (parse_error(try_error, &(var->i), &(var->s))) { return var; } g_free(var); return NULL; } MOOVar * MOOVar_new_float(const char *d) { char *s = NULL; double f = strtod(d, &s); MOOVar *var; if (!(s && !*s)) { return NULL; } var = g_malloc(sizeof(MOOVar)); var->type = FLOAT; var->s = NULL; var->i = 0; var->d = f; var->list = NULL; var->next = NULL; return var; } MOOVar * MOOVar_new_int(const char *i) { char *s = NULL; int in = strtol(i, &s, 10); MOOVar *var; if (!(s && !*s)) return NULL; var = g_malloc(sizeof(MOOVar)); var->type = INT; var->s = NULL; var->i = in; var->d = 0.0; var->list = NULL; var->next = NULL; return var; } void MOOVar_free(MOOVar * var) { if (!var) return; g_free(var->s); MOOVar_free(var->list); MOOVar_free(var->next); g_free(var); } void MOOVar_listappend(MOOVar * var, MOOVar * item) { if (var->type == LIST) { var->i++; if (var->i > 1) { for (var = var->list; var->next; var = var->next); var->next = item; } else { var->list = item; } } } void do_MOOVar_tostr(MOOVar * v, stream_t * stream) { int i; MOOVar *v2 = NULL; char *s; if (!v) return; switch (v->type) { case LIST: stream_append(stream, '{'); for (i = 0; i < v->i; i++) { v2 = i == 0 ? v->list : v2->next; do_MOOVar_tostr(v2, stream); if (i != v->i - 1) { stream_append(stream, ','); } } stream_append(stream, '}'); return; case ERROR: stream_append_string(stream, to_error(v->i)); return; case STRING: stream_append_string_quoted(stream, v->s); return; case INT: s = g_strdup_printf("%d", v->i); break; case FLOAT: s = g_strdup_printf("%f", v->d); break; case OBJECT: s = g_strdup_printf("#%d", v->i); break; default: /* this should never happen */ return; } stream_append_string(stream, s); g_free(s); } char * MOOVar_tostr(MOOVar * v) { stream_t *stream; char *s; stream = stream_new(100); do_MOOVar_tostr(v, stream); s = stream->buf; g_free(stream); return s; } MOOVar * MOOVar_listindex(MOOVar * list, int index) { MOOVar *v; int i; if (list->type != LIST || index < 1 || index > list->i) return NULL; v = list->list; for (i = 1; i < index; i++) { v = v->next; } return v; } #ifdef STANDALONE void MOOVar_print(MOOVar * v) { char *s = MOOVar_tostr(v); if (v) printf("=> %s\n\n", s); else printf("Error in parsing !\n\n"); g_free(s); } int main(int argc, char *argv[]) { MOOVar *v; if (argc != 2) { printf("Use: %s <MOOvalue>\n\n", argv[0]); exit(1); } v = MOOVar_parse(argv[1]); MOOVar_print(v); exit(0); } #endif ����������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/list.h������������������������������������������������������������������������0000644�0001750�0001750�00000004531�10410766740�014735� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* gmoo - a gtk+ based graphical MOO/MUD/MUSH/... client * Copyright (C) 1999-2000 Gert Scholten * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef GM_LIST_H #define GM_LIST_H typedef enum { STRING, INT, OBJECT, FLOAT, LIST, ERROR } MOOType; enum MOOError { E_NONE, E_TYPE, E_DIV, E_PERM, E_PROPNF, E_VERBNF, E_VARNF, E_INVIND, E_RECMOVE, E_MAXREC, E_RANGE, E_ARGS, E_NACC, E_INVARG, E_QUOTA, E_FLOAT }; typedef struct _MOOVar MOOVar; struct _MOOVar { MOOType type; /* The type of the var */ char *s; /* The scring val or the error desc */ int i; /* The int val, list length or string lengt or error code */ double d; /* The float val */ MOOVar *list; /* The first list item (if type == LIST) */ MOOVar *next; /* The next list item (if avalible) */ }; MOOVar *MOOVar_new_list(); MOOVar *MOOVar_new_object(int obj); MOOVar *MOOVar_new_string(const char *string); MOOVar *MOOVar_new_error(const char *try_error); /* return NULL on error */ MOOVar *MOOVar_new_float(const char *d); MOOVar *MOOVar_new_int(const char *i); void MOOVar_free(MOOVar * var); MOOVar *MOOVar_parse(const char *s); void MOOVar_listappend(MOOVar * var, MOOVar * item); MOOVar *MOOVar_listindex(MOOVar * list, int index); char *MOOVar_tostr(MOOVar * v); typedef struct { char *buf; int pos; int len; } stream_t; stream_t *stream_new(int len); void stream_append(stream_t * s, char c); void stream_append_string(stream_t * s, const char *string); void stream_append_string_quoted(stream_t * s, const char *string); void stream_free(stream_t * s); #endif /* GM_LIST_H */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-scripts.c������������������������������������������������������������������0000644�0001750�0001750�00000052362�10507203253�016042� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <glib.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <gtk/gtk.h> #include <ruby.h> #include <libgnomevfs/gnome-vfs-mime-utils.h> #include <libgnomevfs/gnome-vfs.h> #include <sys/stat.h> #include <sys/types.h> #undef PACKAGE_BUGREPORT #undef PACKAGE_NAME #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION #include "gm-support.h" #include "gm-debug.h" #include "gm-world.h" #include "gm-app.h" #include "gm-scripts.h" #include "gm-world.h" #include "gm-string.h" #define GM_SCRIPTS_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), \ GM_TYPE_SCRIPTS, GmScriptsPrivate)) #define RB_CALLBACK(x) (VALUE (*)())(x) #define GM_SCRIPTS_GLOBAL PACKAGE_DATA_DIR "/" PACKAGE "/scripts" static VALUE rb_world_class, rb_client_class, rb_scripts_class; VALUE script_world_name(VALUE self); VALUE gm_scripts_rb_world_new(GmWorld *world); VALUE gm_scripts_rb_scripts_new(GmScripts *scripts); void gm_scripts_rb_world_class_init(); void gm_scripts_rb_client_class_init(); void gm_scripts_rb_scripts_class_init(); void gm_scripts_unload(GmScripts *scripts); void gm_scripts_rb_init(); struct _GmScriptsPrivate { GList *files; GmScript *loading; GList *monitors; }; /* Signals */ enum { SCRIPT_ADDED, SCRIPT_CHANGED, SCRIPT_REMOVED, RELOAD, MESSAGE, ERROR, RUN, NUM_SIGNALS }; static guint gm_scripts_signals[NUM_SIGNALS] = {0}; G_DEFINE_TYPE(GmScripts, gm_scripts, G_TYPE_OBJECT) static void gm_scripts_finalize(GObject *object) { GmScripts *scripts = GM_SCRIPTS(object); GList *monitors; gm_scripts_unload(scripts); for (monitors = scripts->priv->monitors; monitors; monitors = monitors->next) { gnome_vfs_monitor_cancel((GnomeVFSMonitorHandle *)(monitors->data)); } g_list_free(scripts->priv->monitors); scripts->priv->monitors = NULL; G_OBJECT_CLASS(gm_scripts_parent_class)->finalize(object); } static void gm_scripts_class_init(GmScriptsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gm_scripts_finalize; gm_scripts_signals[SCRIPT_ADDED] = g_signal_new("script_added", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, script_added), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); gm_scripts_signals[SCRIPT_CHANGED] = g_signal_new("script_changed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, script_changed), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); gm_scripts_signals[SCRIPT_REMOVED] = g_signal_new("script_removed", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, script_removed), NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); gm_scripts_signals[RELOAD] = g_signal_new("reload", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, reload), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); gm_scripts_signals[MESSAGE] = g_signal_new("message", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, message), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); gm_scripts_signals[ERROR] = g_signal_new("error", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, error), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); gm_scripts_signals[RUN] = g_signal_new("run", G_OBJECT_CLASS_TYPE(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GmScriptsClass, run), NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); g_type_class_add_private(object_class, sizeof(GmScriptsPrivate)); gm_scripts_rb_init(); } void gm_scripts_rb_init(GmScriptsClass *klass) { ruby_init(); gm_scripts_rb_world_class_init(); gm_scripts_rb_client_class_init(); gm_scripts_rb_scripts_class_init(); } static void gm_scripts_init(GmScripts *scripts) { scripts->priv = GM_SCRIPTS_GET_PRIVATE(scripts); scripts->priv->monitors = NULL; scripts->priv->files = NULL; } GmScripts * gm_scripts_new() { GmScripts *scripts = GM_SCRIPTS(g_object_new(GM_TYPE_SCRIPTS, NULL)); return scripts; } void gm_scripts_monitor_cb (GnomeVFSMonitorHandle *handle, const gchar *monitor_uri, const gchar *info_uri, GnomeVFSMonitorEventType event_type, GmScripts *scripts) { gchar *filename = gnome_vfs_get_local_path_from_uri(info_uri); switch (event_type) { case GNOME_VFS_MONITOR_EVENT_CHANGED: gm_scripts_reload_file(scripts, filename); break; case GNOME_VFS_MONITOR_EVENT_DELETED: gm_scripts_remove_file(scripts, filename); break; case GNOME_VFS_MONITOR_EVENT_CREATED: gm_scripts_add_file(scripts, filename); break; default: break; } g_free(filename); } void gm_script_function_destroy(GmScriptFunction *fi) { g_free(fi->name); g_free(fi->fname); g_free(fi->description); g_free(fi); } void gm_script_destroy_functions(GmScript *script) { GList *functions; for (functions = script->functions; functions; functions = functions->next) { gm_script_function_destroy((GmScriptFunction *)(functions->data)); } g_list_free(script->functions); script->functions = NULL; } void gm_script_destroy(GmScript *script) { gm_script_destroy_functions(script); g_free(script->filename); g_free(script); } void gm_scripts_unload(GmScripts *scripts) { GList *files; for (files = scripts->priv->files; files; files = files->next) { gm_script_destroy((GmScript *)(files->data)); } g_list_free(scripts->priv->files); scripts->priv->files = NULL; } GmScriptFunction * gm_scripts_find(GmScripts *scripts, gchar *name) { GList *files; GList *functions; GmScriptFunction *func; GmScript *script; for (files = scripts->priv->files; files; files = files->next) { script = (GmScript *)(files->data); for (functions = script->functions; functions; functions = functions->next) { func = (GmScriptFunction *)(functions->data); if (strcasecmp(func->name, name) == 0) { return func; } } } return NULL; } gboolean gm_scripts_add(GmScripts *scripts, gchar *name, gchar *fname, gchar *description) { GmScriptFunction *func; if (gm_scripts_find(scripts, name) == NULL) { func = g_new(GmScriptFunction, 1); func->script = scripts->priv->loading; func->name = g_strdup(name); func->fname = g_strdup(fname);; func->description = g_strdup(description); scripts->priv->loading->functions = g_list_append(scripts->priv->loading->functions, func); return TRUE; } else { return FALSE; } } VALUE gm_scripts_rb_register_functions_wrap(VALUE arg) { return rb_eval_string("register_functions"); } void gm_scripts_rb_script_define_world(VALUE *world) { rb_define_variable("$world", world); } void gm_scripts_rb_error(GmScripts *scripts) { int c; VALUE lasterr; char *err; gchar *msg; VALUE ary; if(!NIL_P(ruby_errinfo)) { lasterr = rb_gv_get("$!"); err = RSTRING(rb_obj_as_string(lasterr))->ptr; gm_debug_msg(DEBUG_DEFAULT, "GmScripts.Error: Error while executing Ruby code: %s", err); msg = g_strdup_printf(_("Error in execution: %s"), err); g_signal_emit(scripts, gm_scripts_signals[MESSAGE], 0, msg); g_free(msg); ary = rb_funcall(ruby_errinfo, rb_intern("backtrace"), 0); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.Error: Ruby backtrace:"); g_signal_emit(scripts, gm_scripts_signals[ERROR], 0, _("Ruby backtrace:")); for (c = 0; c < RARRAY(ary)->len; c++) { gm_debug_msg(DEBUG_DEFAULT, "GmScripts.Error: \tfrom %s", RSTRING(RARRAY(ary)->ptr[c])->ptr); msg = g_strdup_printf(_("\tfrom %s"), RSTRING(RARRAY(ary)->ptr[c])->ptr); g_signal_emit(scripts, gm_scripts_signals[ERROR], 0, msg); g_free(msg); } } } int gm_scripts_rb_do(GmScripts *scripts, VALUE (*body)(), VALUE arg) { int status; rb_protect(body, arg, &status); if (status != 0) { gm_scripts_rb_error(scripts); ruby_cleanup(status); return 0; } return 1; } VALUE gm_scripts_run_function(GmScriptInfo *arg) { VALUE ret; gchar *argstr; gchar *func_all; if (arg->argstr) { argstr = gm_string_escape(arg->argstr); func_all = g_strconcat(arg->name, "(\"", argstr, "\")", NULL); g_free(argstr); } else { func_all = g_strconcat(arg->name, "()", NULL); } ret = rb_eval_string(func_all); g_free(func_all); return ret; } gboolean gm_scripts_run(GmScripts *scripts, GmWorld *world, gchar *name, gchar *argstr) { VALUE rbWorld, rbClient; gchar *msg; GmScriptInfo *info; GmScriptFunction *f = gm_scripts_find(scripts, name); if (!f) { return FALSE; } info = g_new0(GmScriptInfo, 1); info->name = g_strdup(f->fname); if (argstr) { info->argstr = g_strdup(argstr); msg = g_strdup_printf(_("Run script '%s' from '%s' (%s)"), f->fname, f->script->filename, argstr); } else { info->argstr = NULL; msg = g_strdup_printf(_("Run script '%s' from '%s' ()"), f->fname, f->script->filename); } g_signal_emit(scripts, gm_scripts_signals[RUN], 0, msg); g_free(msg); gm_scripts_rb_do(scripts, RB_CALLBACK(rb_load_file), (VALUE)(f->script->filename)); ruby_exec(); rbWorld = gm_scripts_rb_world_new(world); rb_define_variable("$world", &rbWorld); rbClient = rb_class_new_instance(0, NULL, rb_client_class); rb_define_variable("$client", &rbClient); gm_scripts_rb_do(scripts, RB_CALLBACK(gm_scripts_run_function), (VALUE)info); g_free(info->name); g_free(info->argstr); g_free(info); return TRUE; } VALUE gm_scripts_rb_register_func_old(int argc, VALUE *argv) { gm_debug_msg(DEBUG_DEFAULT, "GmScripts.RegisterFunc: This is the deprecated way to " "register functions is does no longer work. Use $scripts.register " "instead."); return Qfalse; } void gm_scripts_register_functions(GmScripts *scripts) { gchar *msg; VALUE rbScripts; gm_debug_msg(DEBUG_DEFAULT, "GmScripts.RegisterFunctions: registering functions in %s", scripts->priv->loading->filename); msg = g_strdup_printf(_("Registering functions from '%s'"), scripts->priv->loading->filename); g_signal_emit(scripts, gm_scripts_signals[MESSAGE], 0, msg); g_free(msg); // Okay, I'm desperate... define an empty register_functions method so // that the previous when gets cleared ... :( rb_eval_string("def register_functions() end"); if (!gm_scripts_rb_do(scripts, RB_CALLBACK(rb_load_file), (VALUE) scripts->priv->loading->filename)) { return; } ruby_exec(); rbScripts = gm_scripts_rb_scripts_new(scripts); rb_define_variable("$scripts", &rbScripts); rb_define_global_function("register_func", &gm_scripts_rb_register_func_old, -1); gm_scripts_rb_do(scripts, RB_CALLBACK(gm_scripts_rb_register_functions_wrap), 0); } void gm_scripts_remove_file(GmScripts *scripts, const gchar *uri) { GList *f, *l; GmScript *script; l = g_list_copy(scripts->priv->files); for (f = l; f; f = f->next) { script = (GmScript *)(f->data); if (strcmp(script->filename, uri) == 0) { scripts->priv->files = g_list_remove(scripts->priv->files, script); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.RemoveFile: Removing scripts from `%s'", script->filename); g_signal_emit(scripts, gm_scripts_signals[SCRIPT_REMOVED], 0, script); gm_script_destroy(script); } } g_list_free(l); } gboolean gm_scripts_add_file(GmScripts *scripts, const gchar *uri) { GList *f; GmScript *script; gchar *msg; gchar *ext; // Only .rb files ext = strrchr(uri, '.'); if (ext == NULL || strncmp(ext, ".rb", 2) != 0) { msg = g_strdup_printf(_("File `%s' is not a valid ruby file"), uri); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.AddFile: %s", msg); g_signal_emit(scripts, gm_scripts_signals[ERROR], 0, msg); g_free(msg); return FALSE; } for (f = scripts->priv->files; f; f = f->next) { script = (GmScript *)(f->data); if (strcmp(script->filename, uri) == 0) { msg = g_strdup_printf(_("File `%s' already loaded"), uri); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.AddFile: %s", msg); g_signal_emit(scripts, gm_scripts_signals[ERROR], 0, msg); g_free(msg); return FALSE; } } msg = g_strdup_printf(_("File `%s' added"), uri); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.AddFile: %s", msg); g_free(msg); script = g_new0(GmScript, 1); script->filename = g_strdup(uri); if (strncmp(uri, GM_SCRIPTS_GLOBAL, strlen(GM_SCRIPTS_GLOBAL)) == 0) { script->type = GM_SCRIPT_TYPE_SHARE; } else { script->type = GM_SCRIPT_TYPE_USER; } scripts->priv->files = g_list_append(scripts->priv->files, script); scripts->priv->loading = script; gm_scripts_register_functions(scripts); g_signal_emit(scripts, gm_scripts_signals[SCRIPT_ADDED], 0, script); return TRUE; } void gm_scripts_reload_file(GmScripts *scripts, const gchar *uri) { GList *files; GmScript *script; for (files = scripts->priv->files; files; files = files->next) { script = (GmScript *)(files->data); if (strcmp(script->filename, uri) == 0) { // Remove all functions and reregister the file scripts->priv->loading = script; gm_script_destroy_functions(script); gm_scripts_register_functions(scripts); g_signal_emit(scripts, gm_scripts_signals[SCRIPT_CHANGED], 0, script); return; } } // If the script does not yet exist, add it gm_scripts_add_file(scripts, uri); } void gm_scripts_load_dir(GmScripts *scripts, gchar *dirname) { gchar *filename; gchar *file; GDir *d; GnomeVFSMonitorHandle *handle; if (g_file_test(dirname, G_FILE_TEST_EXISTS) && g_file_test(dirname, G_FILE_TEST_IS_DIR)) { if ((d = g_dir_open(dirname, 0, NULL))) { while ((file = (gchar *)g_dir_read_name(d))) { filename = g_strconcat(dirname, "/", file, NULL); gm_scripts_add_file(scripts, filename); g_free(filename); } } gnome_vfs_monitor_add(&handle, dirname, GNOME_VFS_MONITOR_DIRECTORY, (GnomeVFSMonitorCallback)gm_scripts_monitor_cb, scripts); scripts->priv->monitors = g_list_append(scripts->priv->monitors, handle); } } void gm_scripts_load(GmScripts *scripts) { gchar *path; if (scripts->priv->files) { g_signal_emit(scripts, gm_scripts_signals[RELOAD], 0); gm_scripts_unload(scripts); } path = g_strconcat(gm_app_path(gm_app_instance()), "/scripts", NULL); // Make user dir if it doesn't exist if (!g_file_test(path, G_FILE_TEST_EXISTS)) { mkdir(path, 0750); } gm_scripts_load_dir(scripts, path); gm_scripts_load_dir(scripts, GM_SCRIPTS_GLOBAL); g_free(path); } GList * gm_scripts_scripts(GmScripts *scripts) { return scripts->priv->files; } // Ruby class functions VALUE gm_scripts_rb_world_new(GmWorld *world) { VALUE tdata = Data_Wrap_Struct(rb_world_class, 0, 0, world); return tdata; } VALUE gm_scripts_rb_scripts_new(GmScripts *scripts) { VALUE tdata = Data_Wrap_Struct(rb_scripts_class, 0, 0, scripts); return tdata; } // Ruby world class functions static VALUE gm_scripts_rb_world_name(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); return rb_str_new2(gm_options_get(gm_world_options(world), "name")); } static VALUE gm_scripts_rb_world_host(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); return rb_str_new2(gm_options_get(gm_world_options(world), "host")); } static VALUE gm_scripts_rb_world_port(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); return rb_str_new2(gm_options_get(gm_world_options(world), "port")); } static VALUE gm_scripts_rb_world_writeln(VALUE self, VALUE str) { GmWorld *world; gchar *strVal; Data_Get_Struct(self, GmWorld, world); strVal = rb_string_value_cstr(&str); gm_world_writeln(world, strVal); return Qnil; } static VALUE gm_scripts_rb_world_status(VALUE self, VALUE str) { GmWorld *world; gchar *strVal; Data_Get_Struct(self, GmWorld, world); strVal = rb_string_value_cstr(&str); gm_world_status(world, strVal); return Qnil; } static VALUE gm_scripts_rb_world_sendln(VALUE self, VALUE str) { GmWorld *world; gchar *strVal; Data_Get_Struct(self, GmWorld, world); strVal = rb_string_value_cstr(&str); gm_world_sendln(world, strVal); return Qnil; } static VALUE gm_scripts_rb_world_input(VALUE self, VALUE str) { GmWorld *world; gchar *strVal; Data_Get_Struct(self, GmWorld, world); strVal = rb_string_value_cstr(&str); gm_world_process_input(world, strVal); return Qnil; } static VALUE gm_scripts_rb_world_loaded(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); if (gm_world_loaded(world)) { return Qtrue; } else { return Qfalse; } } static VALUE gm_scripts_rb_world_connected(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); if (gm_world_state(world) == GM_NET_STATE_CONNECTED) { return Qtrue; } else { return Qfalse; } } static VALUE gm_scripts_rb_world_quit(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); gm_world_unload(world); return Qnil; } static VALUE gm_scripts_rb_world_connect(int argc, VALUE *argv, VALUE self) { GmWorld *world; const gchar *strHost, *strPort; Data_Get_Struct(self, GmWorld, world); if (argc == 0) { strHost = gm_options_get(gm_world_options(world), "host"); } else { strHost = rb_string_value_cstr(&(argv[0])); } if (argc == 0 || argc == 1) { strPort = gm_options_get(gm_world_options(world), "port"); } else { strPort = rb_string_value_cstr(&(argv[1])); } gm_world_connect_to(world, (gchar *)strHost, (gchar *)strPort); return Qnil; } static VALUE gm_scripts_rb_world_disconnect(VALUE self) { GmWorld *world; Data_Get_Struct(self, GmWorld, world); gm_world_disconnect(world); return Qnil; } // Ruby client class functions static VALUE gm_scripts_rb_client_version(VALUE self) { return rb_str_new2(VERSION); } static VALUE gm_scripts_rb_client_worlds(VALUE self) { GList *world; VALUE rb_array = rb_ary_new(); VALUE rb_world; for (world = gm_app_worlds(gm_app_instance()); world; world = world->next) { rb_world = gm_scripts_rb_world_new((GmWorld *)(world->data)); rb_ary_push(rb_array, rb_world); } return rb_array; } static VALUE gm_scripts_rb_client_open(VALUE self, VALUE str) { GmWorld *world; gchar *strVal; strVal = rb_string_value_cstr(&str); world = gm_app_world_by_name(gm_app_instance(), strVal); if (world == NULL) { return Qfalse; } else { gm_world_load(world); return Qtrue; } } // Ruby scripts class functions VALUE gm_scripts_rb_scripts_register(int argc, VALUE *argv, VALUE self) { char *name, *fname = NULL, *description = NULL; gchar *msg; GmScripts *scripts; Data_Get_Struct(self, GmScripts, scripts); if (argc > 1) { name = rb_string_value_cstr(&argv[0]); description = rb_string_value_cstr(&argv[1]); if (argc == 2) { fname = name; } else { fname = rb_string_value_cstr(&argv[2]); } if (gm_scripts_add(scripts, name, fname, description)) { msg = g_strdup_printf(_("Register function '%s' from '%s'"), name, scripts->priv->loading->filename); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.RbScriptsRegister: Adding script function " "%s from %s", name, scripts->priv->loading->filename); g_signal_emit(scripts, gm_scripts_signals[MESSAGE], 0, msg); g_free(msg); return Qtrue; } else { msg = g_strdup_printf(_("Script '%s' is already defined"), name); gm_debug_msg(DEBUG_DEFAULT, "GmScripts.RbScriptsRegister: Script function %s " "already defined!", name); g_signal_emit(scripts, gm_scripts_signals[ERROR], 0, msg); g_free(msg); return Qfalse; } } else { return Qfalse; } } // Ruby class initializations void gm_scripts_rb_world_class_init() { rb_world_class = rb_define_class("World", rb_cObject); rb_define_method(rb_world_class, "name", gm_scripts_rb_world_name, 0); rb_define_method(rb_world_class, "host", gm_scripts_rb_world_host, 0); rb_define_method(rb_world_class, "port", gm_scripts_rb_world_port, 0); rb_define_method(rb_world_class, "writeln", gm_scripts_rb_world_writeln, 1); rb_define_method(rb_world_class, "println", gm_scripts_rb_world_writeln, 1); rb_define_method(rb_world_class, "status", gm_scripts_rb_world_status, 1); rb_define_method(rb_world_class, "sendln", gm_scripts_rb_world_sendln, 1); rb_define_method(rb_world_class, "input", gm_scripts_rb_world_input, 1); rb_define_method(rb_world_class, "quit", gm_scripts_rb_world_quit, 0); rb_define_method(rb_world_class, "connect", gm_scripts_rb_world_connect, -1); rb_define_method(rb_world_class, "disconnect", gm_scripts_rb_world_disconnect, 0); rb_define_method(rb_world_class, "loaded?", gm_scripts_rb_world_loaded, 0); rb_define_method(rb_world_class, "connected?", gm_scripts_rb_world_connected, 0); } void gm_scripts_rb_client_class_init() { rb_client_class = rb_define_class("Client", rb_cObject); rb_define_method(rb_client_class, "version", gm_scripts_rb_client_version, 0); rb_define_method(rb_client_class, "worlds", gm_scripts_rb_client_worlds, 0); rb_define_method(rb_client_class, "open", gm_scripts_rb_client_open, 1); } void gm_scripts_rb_scripts_class_init() { rb_scripts_class = rb_define_class("Scripts", rb_cObject); rb_define_method(rb_scripts_class, "register", gm_scripts_rb_scripts_register, -1); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-scripts.h������������������������������������������������������������������0000644�0001750�0001750�00000005312�10410766740�016050� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef __GM_SCRIPTS_H__ #define __GM_SCRIPTS_H__ #ifdef HAVE_CONFIG_H #include "../config.h" #endif #ifdef HAVE_RUBY #include <glib.h> #include <gtk/gtk.h> #include "gm-world.h" G_BEGIN_DECLS /* * Type checking and casting macros */ #define GM_TYPE_SCRIPTS (gm_scripts_get_type()) #define GM_SCRIPTS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_SCRIPTS, GmScripts)) #define GM_SCRIPTS_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \ GM_TYPE_SCRIPTS, GmScripts const)) #define GM_SCRIPTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \ GM_TYPE_SCRIPTS, GmScriptsClass)) #define GM_IS_SCRIPTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ GM_TYPE_SCRIPTS)) #define GM_IS_SCRIPTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \ GM_TYPE_SCRIPTS)) #define GM_SCRIPTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ GM_TYPE_SCRIPTS, GmScriptsClass)) /* Private structure type */ typedef struct _GmScriptsPrivate GmScriptsPrivate; /* * Main object structure */ typedef struct _GmScripts GmScripts; struct _GmScripts { GObject object; /*< private > */ GmScriptsPrivate *priv; }; typedef enum _GmScriptType { GM_SCRIPT_TYPE_USER, GM_SCRIPT_TYPE_SHARE } GmScriptType; typedef struct _GmScript { gchar *filename; GmScriptType type; GList *functions; } GmScript; typedef struct _GmScriptFunction { GmScript *script; gchar *name; gchar *fname; gchar *description; } GmScriptFunction; typedef struct _GmScriptInfo { gchar *name; gchar *argstr; } GmScriptInfo; /* * Class definition */ typedef struct _GmScriptsClass GmScriptsClass; struct _GmScriptsClass { GObjectClass parent_class; /* Signals */ void (* script_added) (GmScripts *scripts, GmScript *script); void (* script_changed) (GmScripts *scripts, GmScript *script); void (* script_removed) (GmScripts *scripts, GmScript *script); void (* reload) (GmScripts *scripts); void (* message) (GmScripts *scripts, gchar *message); void (* error) (GmScripts *scripts, gchar *message); void (* run) (GmScripts *scripts, gchar *message); }; GType gm_scripts_get_type(void) G_GNUC_CONST; GmScripts *gm_scripts_new(); //void gm_script_init(); //void gm_script_fini(); void gm_scripts_reload_file(GmScripts *scripts, const gchar *uri); gboolean gm_scripts_add_file(GmScripts *scripts, const gchar *uri); void gm_scripts_remove_file(GmScripts *scripts, const gchar *uri); GmScriptFunction *gm_scripts_find(GmScripts *scripts, gchar *name); GList *gm_scripts_scripts(GmScripts *scripts); gboolean gm_scripts_run(GmScripts *scripts, GmWorld *world, gchar *name, gchar *argstr); void gm_scripts_load(GmScripts *scripts); G_END_DECLS #endif /* HAVE_RUBY */ #endif /* __GM_SCRIPTS_H__ */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/gm-marshal.list���������������������������������������������������������������0000644�0001750�0001750�00000000253�10416700504�016523� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������VOID:STRING,UINT VOID:STRING,INT VOID:UINT,UINT VOID:INT,STRING VOID:INT,STRING,STRING VOID:INT,STRING,STRING,STRING VOID:POINTER,STRING,STRING,STRING VOID:INT,INT,STRING �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/parser/�����������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517755271�015107� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/parser/Makefile.am������������������������������������������������������������0000644�0001750�0001750�00000001411�10410766737�017141� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ -I$(top_srcdir) \ -I$(top_srcdir)/gnoemoe \ @PACKAGE_CFLAGS@ AM_YFLAGS = -y -d noinst_LTLIBRARIES = libparser.la libparser_la_SOURCES = \ parser.y parser.h parsen.h \ pconfig.h \ ast.c ast.h \ functions.c functions.h \ gm-parser.c gm-parser.h \ keywords.c keywords.h \ list.c list.h \ utils.c utils.h \ numbers.c numbers.h \ storage.c storage.h \ streams.c streams.h \ sym_table.c sym_table.h \ version.c version.h \ structures.h \ tokens.h EXTRA_DIST = keywords.gperf keywords.c: keywords.gperf gperf -CtT --ignore-case -k1,3,$$ keywords.gperf > keywords.c CLEANFILES = keywords.c parser.h parser.c �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/gnoemoe/parser/Makefile.in������������������������������������������������������������0000644�0001750�0001750�00000043152�10517752444�017160� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = gnoemoe/parser DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in parser.c \ parser.h ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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 = LTLIBRARIES = $(noinst_LTLIBRARIES) libparser_la_LIBADD = am_libparser_la_OBJECTS = parser.lo ast.lo functions.lo gm-parser.lo \ keywords.lo list.lo utils.lo numbers.lo storage.lo streams.lo \ sym_table.lo version.lo libparser_la_OBJECTS = $(am_libparser_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) 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 --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS) LTYACCCOMPILE = $(LIBTOOL) --mode=compile $(YACC) $(YFLAGS) \ $(AM_YFLAGS) SOURCES = $(libparser_la_SOURCES) DIST_SOURCES = $(libparser_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ -I$(top_srcdir) \ -I$(top_srcdir)/gnoemoe \ @PACKAGE_CFLAGS@ AM_YFLAGS = -y -d noinst_LTLIBRARIES = libparser.la libparser_la_SOURCES = \ parser.y parser.h parsen.h \ pconfig.h \ ast.c ast.h \ functions.c functions.h \ gm-parser.c gm-parser.h \ keywords.c keywords.h \ list.c list.h \ utils.c utils.h \ numbers.c numbers.h \ storage.c storage.h \ streams.c streams.h \ sym_table.c sym_table.h \ version.c version.h \ structures.h \ tokens.h EXTRA_DIST = keywords.gperf CLEANFILES = keywords.c parser.h parser.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj .y $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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 gnoemoe/parser/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gnoemoe/parser/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_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 parser.h: parser.c @if test ! -f $@; then \ rm -f parser.c; \ $(MAKE) parser.c; \ else :; fi libparser.la: $(libparser_la_OBJECTS) $(libparser_la_DEPENDENCIES) $(LINK) $(libparser_la_LDFLAGS) $(libparser_la_OBJECTS) $(libparser_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ast.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/functions.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gm-parser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keywords.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/numbers.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/storage.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/streams.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sym_table.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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 $@ $< .y.c: $(YACCCOMPILE) $< if test -f y.tab.h; then \ to=`echo "$*_H" | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \ sed -e "/^#/!b" -e "s/Y_TAB_H/$$to/g" -e "s|y\.tab\.h|$*.h|" \ y.tab.h >$*.ht; \ rm -f y.tab.h; \ if cmp -s $*.ht $*.h; then \ rm -f $*.ht ;\ else \ mv $*.ht $*.h; \ fi; \ fi if test -f y.output; then \ mv y.output $*.output; \ fi sed '/^#/ s|y\.tab\.c|$@|' y.tab.c >$@t && mv $@t $@ rm -f y.tab.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: 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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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: 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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." -rm -f parser.c -rm -f parser.h clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: 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-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES 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-exec \ install-exec-am install-info install-info-am install-man \ 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-info-am keywords.c: keywords.gperf gperf -CtT --ignore-case -k1,3,$$ keywords.gperf > keywords.c # 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: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�013635� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/Makefile.am�������������������������������������������������������������������0000644�0001750�0001750�00000000646�10416212560�015670� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������SUBDIRS = userlist ice-userlist tray icondir = $(datadir)/pixmaps icon_DATA = gnoemoe-logo.svg pixmapsdir = $(pkgdatadir)/pixmaps pixmaps_DATA = editor.xpm \ editor_text.xpm \ editor_verb.xpm \ gnoemoe_logo.svg \ saveclose.xpm \ terminal.png \ world.svg \ world_activity.svg EXTRA_DIST = $(pixmaps_DATA) $(icon_DATA) ������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/Makefile.in�������������������������������������������������������������������0000644�0001750�0001750�00000044445�10517752444�015722� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-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)" "$(DESTDIR)$(pixmapsdir)" iconDATA_INSTALL = $(INSTALL_DATA) pixmapsDATA_INSTALL = $(INSTALL_DATA) DATA = $(icon_DATA) $(pixmaps_DATA) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = userlist ice-userlist tray icondir = $(datadir)/pixmaps icon_DATA = gnoemoe-logo.svg pixmapsdir = $(pkgdatadir)/pixmaps pixmaps_DATA = editor.xpm \ editor_text.xpm \ editor_verb.xpm \ gnoemoe_logo.svg \ saveclose.xpm \ terminal.png \ world.svg \ world_activity.svg EXTRA_DIST = $(pixmaps_DATA) $(icon_DATA) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: 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 install-pixmapsDATA: $(pixmaps_DATA) @$(NORMAL_INSTALL) test -z "$(pixmapsdir)" || $(mkdir_p) "$(DESTDIR)$(pixmapsdir)" @list='$(pixmaps_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pixmapsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pixmapsdir)/$$f'"; \ $(pixmapsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pixmapsdir)/$$f"; \ done uninstall-pixmapsDATA: @$(NORMAL_UNINSTALL) @list='$(pixmaps_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pixmapsdir)/$$f'"; \ rm -f "$(DESTDIR)$(pixmapsdir)/$$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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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" \ 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)" "$(DESTDIR)$(pixmapsdir)"; 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-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-iconDATA install-pixmapsDATA install-exec-am: install-info: install-info-recursive install-man: 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 uninstall-info-am \ uninstall-pixmapsDATA uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-iconDATA \ install-info install-info-am install-man install-pixmapsDATA \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am uninstall-iconDATA \ uninstall-info-am uninstall-pixmapsDATA # 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/editor.xpm��������������������������������������������������������������������0000644�0001750�0001750�00000002256�10410766736�015664� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* XPM */ static char * editor_xpm[] = { "16 16 55 1", " c None", ". c #000000", "+ c #FEFEFE", "@ c #FDFDFD", "# c #E0E0E0", "$ c #C1C1C1", "% c #F1F1F1", "& c #C3C3C3", "* c #FBFBFB", "= c #A8A8A8", "- c #BEBEBE", "; c #B5B5B5", "> c #CACACA", ", c #ADADAD", "' c #767676", ") c #5D5D5D", "! c #404040", "~ c #F0F0F0", "{ c #E2E2E2", "] c #858585", "^ c #4B4B49", "/ c #161616", "( c #B3B3B3", "_ c #C8C8C8", ": c #BDBDBD", "< c #EFEFEF", "[ c #EEEEEE", "} c #C5C5C5", "| c #ECECEC", "1 c #C4C4C4", "2 c #D3D3D3", "3 c #BCBCBC", "4 c #C7C7C7", "5 c #EBEBEB", "6 c #EDEDED", "7 c #EAEAEA", "8 c #C2C2C2", "9 c #E8E8E8", "0 c #686E83", "a c #C0C0C0", "b c #E9E9E9", "c c #878BA5", "d c #7C84A3", "e c #E7E7E7", "f c #BFBFBF", "g c #E6E6E6", "h c #A7A2A6", "i c #9795A1", "j c #E5E5E5", "k c #686D83", "l c #676D82", "m c #E4E4E4", "n c #E3E3E3", "o c #BBBBBB", "p c #A0A0A0", " ......... ", " .++++++@#$. ", " .+%%%%%%&*=. ", " .+%-;->%,')!. ", " .+%%%%%~{]^/. ", " .+%(_:(#<[[}. ", " .+<#<[[[[[|1. ", " .@[(2(33445&. ", " .@6|||55777$. ", " .@588900009a. ", " .@77bb0cd0ef. ", " .@9$$g0hi0j-. ", " .@eegg0kklm:. ", " .@gjjjmmnnno. ", " .8:::33oooop. ", " ........... "}; ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/editor_text.xpm���������������������������������������������������������������0000644�0001750�0001750�00000002415�10410766736�016725� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* XPM */ static char * editor_text_xpm[] = { "16 16 61 1", " c None", ". c #000000", "+ c #FEFEFE", "@ c #FDFDFD", "# c #E0E0E0", "$ c #C1C1C1", "% c #F1F1F1", "& c #C3C3C3", "* c #FBFBFB", "= c #A8A8A8", "- c #CCCCCC", "; c #ADADAD", "> c #767676", ", c #5D5D5D", "' c #404040", ") c #F0F0F0", "! c #E2E2E2", "~ c #858585", "{ c #4B4B49", "] c #FBE73B", "^ c #F2B64D", "/ c #CACACA", "( c #EFEFEF", "_ c #C9C9C9", ": c #FCEB3D", "< c #F7B544", "[ c #675A36", "} c #EEEEEE", "| c #FCE93B", "1 c #F7B545", "2 c #6C5F34", "3 c #F9DF39", "4 c #F4B244", "5 c #665D3E", "6 c #EDEDED", "7 c #ECECEC", "8 c #EBEBEB", "9 c #F6D236", "0 c #EFB44D", "a c #5C4F2B", "b c #C4C4C4", "c c #E8E8E8", "d c #D7AE74", "e c #655930", "f c #C0C0C0", "g c #EAEAEA", "h c #E9E9E9", "i c #4F4115", "j c #E7E7E7", "k c #BFBFBF", "l c #C2C2C2", "m c #E6E6E6", "n c #E5E5E5", "o c #BEBEBE", "p c #E4E4E4", "q c #BDBDBD", "r c #E3E3E3", "s c #BBBBBB", "t c #BCBCBC", "u c #A0A0A0", "v c #2A2A2A", " ......... ", ".++++++@#$. ", ".+%%%%%%&*=. ", ".+%---%%;>,'.. ", ".+%%%%%)!~{.]^. ", ".+%////(/_.:<[. ", ".+(((}}}}.|12. ", ".@}__}__.345. ", ".@67778.90a.. ", ".@8bbbc.de.f. ", ".@gghh.i..jk. ", ".@clml..mmno. ", ".@jjmmmnnppq. ", ".@mnnnpprrrs. ", ".lqqqttssssuv ", " ........... "}; ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/editor_verb.xpm���������������������������������������������������������������0000644�0001750�0001750�00000002472�10410766736�016702� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* XPM */ static char * editor_verb_xpm[] = { "16 16 64 1", " c None", ". c #000000", "+ c #FEFEFE", "@ c #FDFDFD", "# c #E0E0E0", "$ c #C1C1C1", "% c #F1F1F1", "& c #C3C3C3", "* c #FBFBFB", "= c #A8A8A8", "- c #0000FF", "; c #00FF00", "> c #ADADAD", ", c #767676", "' c #5D5D5D", ") c #404040", "! c #F0F0F0", "~ c #E2E2E2", "{ c #858585", "] c #4B4B49", "^ c #FBE73B", "/ c #F2B64D", "( c #FF0000", "_ c #EFEFEF", ": c #CACACA", "< c #C9C9C9", "[ c #FCEB3D", "} c #F7B544", "| c #675A36", "1 c #EEEEEE", "2 c #FCE93B", "3 c #F7B545", "4 c #6C5F34", "5 c #000080", "6 c #F9DF39", "7 c #F4B244", "8 c #665D3E", "9 c #EDEDED", "0 c #ECECEC", "a c #EBEBEB", "b c #F6D236", "c c #EFB44D", "d c #5C4F2B", "e c #E8E8E8", "f c #D7AE74", "g c #655930", "h c #C0C0C0", "i c #EAEAEA", "j c #E9E9E9", "k c #4F4115", "l c #E7E7E7", "m c #BFBFBF", "n c #FFFF00", "o c #E6E6E6", "p c #E5E5E5", "q c #BEBEBE", "r c #E4E4E4", "s c #BDBDBD", "t c #E3E3E3", "u c #BBBBBB", "v c #C2C2C2", "w c #BCBCBC", "x c #A0A0A0", "y c #2A2A2A", " ......... ", ".++++++@#$. ", ".+%%%%%%&*=. ", ".+%---;;>,').. ", ".+%%%%%!~{].^/. ", ".+%;;((_:<.[}|. ", ".+___1111.234. ", ".@155;--.678. ", ".@9000a.bcd.. ", ".@a-((e.fg.h. ", ".@iijj.k..lm. ", ".@en;;..oopq. ", ".@llooopprrs. ", ".@o((--((;tu. ", ".vssswwuuuuxy ", " ........... "}; ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/gnoemoe_logo.svg��������������������������������������������������������������0000644�0001750�0001750�00000116115�10410766736�017042� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1" height="250.00000" width="250.00000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <linearGradient id="linearGradient2676"> <stop id="stop2677" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;" /> <stop id="stop2678" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <linearGradient id="linearGradient2665"> <stop id="stop2666" offset="0.0000000" style="stop-color:#2f2f2f;stop-opacity:1.0000000;" /> <stop id="stop2667" offset="1.0000000" style="stop-color:#2f2f2f;stop-opacity:0.0000000;" /> </linearGradient> <linearGradient id="linearGradient2655"> <stop id="stop2656" offset="0.0000000" style="stop-color:#212121;stop-opacity:0.0000000;" /> <stop id="stop2658" offset="1.0000000" style="stop-color:#212121;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2648"> <stop id="stop2649" offset="0.0000000" style="stop-color:#212121;stop-opacity:0.0000000;" /> <stop id="stop2650" offset="0.50000000" style="stop-color:#212121;stop-opacity:1.0000000;" /> <stop id="stop2651" offset="1.0000000" style="stop-color:#212121;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2627"> <stop id="stop2628" offset="0.0000000" style="stop-color:#3f3f3f;stop-opacity:1.0000000;" /> <stop id="stop2630" offset="0.50000000" style="stop-color:#3f3f3f;stop-opacity:1.0000000;" /> <stop id="stop2629" offset="1.0000000" style="stop-color:#ff3a03;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2619"> <stop id="stop2620" offset="0.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> <stop id="stop2621" offset="1.0000000" style="stop-color:#bb7733;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2614"> <stop id="stop2615" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;" /> <stop id="stop2616" offset="1.0000000" style="stop-color:#bb7733;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2610"> <stop id="stop2611" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;" /> <stop id="stop2612" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <linearGradient id="linearGradient2524"> <stop id="stop2525" offset="0.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> <stop id="stop2526" offset="1.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> </linearGradient> <linearGradient id="linearGradient2517"> <stop id="stop2518" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;" /> <stop id="stop2520" offset="0.50000000" style="stop-color:#ffff00;stop-opacity:1.0000000;" /> <stop id="stop2521" offset="0.75000000" style="stop-color:#ffff00;stop-opacity:1.0000000;" /> <stop id="stop2522" offset="0.75000000" style="stop-color:#7f7f00;stop-opacity:1.0000000;" /> <stop id="stop2519" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2509"> <stop id="stop2510" offset="0.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> <stop id="stop2511" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient xlink:href="#linearGradient2524" id="linearGradient2512" y2="0.96052629" x2="0.49561402" y1="0.32236841" x1="0.37719297" /> <linearGradient xlink:href="#linearGradient2610" id="linearGradient2609" y2="0.75333333" x2="0.64857143" y1="0.059999999" x1="0.44571429" /> <linearGradient xlink:href="#linearGradient2614" id="linearGradient2613" y2="0.81578946" x2="0.55000001" y1="0.51973683" x1="0.037500001" /> <linearGradient xlink:href="#linearGradient2614" id="linearGradient2617" y2="0.86184210" x2="0.27692309" y1="0.61842108" x1="-0.069230773" /> <linearGradient xlink:href="#linearGradient2619" id="linearGradient2618" y2="0.40789473" x2="8.3427189e-15" y1="0.96052629" x1="1.7826087" /> <linearGradient xlink:href="#linearGradient2614" id="linearGradient2622" y2="0.65789473" x2="0.64864862" y1="0.74342108" x1="-0.35135135" /> <linearGradient xlink:href="#linearGradient2614" id="linearGradient2623" y2="0.24342105" x2="0.36956522" y1="0.50000000" x1="4.0435971e-14" /> <linearGradient xlink:href="#linearGradient2655" id="linearGradient2624" y2="0.80263156" x2="0.81818181" y1="0.35526314" x1="0.45454547" /> <linearGradient xlink:href="#linearGradient2619" id="linearGradient2625" y2="0.52631581" x2="0.76315790" y1="0.74342108" x1="1.3596492" /> <radialGradient xlink:href="#linearGradient2610" id="radialGradient2633" fy="0.69736838" fx="0.48461536" r="0.33903649" cy="0.69078946" cx="0.47692308" /> <radialGradient xlink:href="#linearGradient2665" id="radialGradient2664" fy="0.50000000" fx="0.50000000" r="0.50000000" cy="0.50000000" cx="0.50000000" /> <radialGradient xlink:href="#linearGradient2676" id="radialGradient2680" fy="0.49342105" fx="0.40659341" r="0.29306078" cy="0.48684210" cx="0.40659341" /> <radialGradient xlink:href="#linearGradient2610" id="radialGradient2682" fy="-0.20394737" fx="0.084615365" r="0.33903649" cy="-0.21710527" cx="0.092307694" /> <radialGradient xlink:href="#linearGradient2676" id="radialGradient2684" fy="0.32894737" fx="0.65384614" r="0.26406428" cy="0.31578946" cx="0.65384614" /> <linearGradient xlink:href="#linearGradient2676" id="linearGradient2686" y2="0.35526314" x2="0.25903615" y1="4.8799825e-15" x1="-0.024096385" /> <radialGradient xlink:href="#linearGradient2676" id="radialGradient2688" fy="0.48684207" fx="0.39560434" r="0.32444274" cy="0.40131578" cx="0.47252747" /> <radialGradient xlink:href="#linearGradient2610" id="radialGradient2705" fy="-0.13157894" fx="0.13076918" r="0.23086299" cy="-0.13815789" cx="0.10769231" /> <linearGradient xlink:href="#linearGradient2619" id="linearGradient2719" y2="0.96710527" x2="0.38202247" y1="0.79605263" x1="0.23595506" /> <linearGradient spreadMethod="pad" xlink:href="#linearGradient2676" id="linearGradient2721" y2="0.42763159" x2="0.24637681" y1="0.74342108" x1="-0.057971016" /> <radialGradient xlink:href="#linearGradient2665" id="radialGradient2723" fy="0.38888884" fx="0.49999997" r="0.66668981" cy="0.38888890" cx="0.49549550" /> <linearGradient xlink:href="#linearGradient2676" id="linearGradient2725" y2="0.80263156" x2="0.20967741" y1="0.37500000" x1="-0.33870968" /> <linearGradient xlink:href="#linearGradient2676" id="linearGradient2759" y2="0.75657892" x2="0.62426037" y1="0.93421054" x1="0.94674557" /> <radialGradient xlink:href="#linearGradient2665" id="radialGradient2768" fy="0.44078946" fx="0.27272728" r="0.41422856" cy="0.42105263" cx="0.32575756" /> <radialGradient xlink:href="#linearGradient2610" id="radialGradient2771" fy="0.68421048" fx="0.32307690" r="0.34615383" cy="0.67763156" cx="0.32307693" /> <linearGradient xlink:href="#linearGradient2676" id="linearGradient2773" y2="0.17105263" x2="0.34337351" y1="-2.3035188e-14" x1="-0.024096385" /> <linearGradient xlink:href="#linearGradient2665" id="linearGradient2775" y2="0.36842105" x2="0.41176471" y1="-0.046052631" x1="0.50000000" /> <linearGradient xlink:href="#linearGradient2676" id="linearGradient3191" y2="0.50555557" x2="0.45263159" y1="-2.1497310e-14" x1="0.98947370" /> <linearGradient xlink:href="#linearGradient2676" id="linearGradient3193" y2="0.50555557" x2="0.45263159" y1="0.16111112" x1="0.82631576" /> </defs> <path id="path2581" style="fill:url(#linearGradient2625);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 73.251670,175.06379 C 75.472630,176.12805 75.464890,178.87938 74.939210,180.90744 C 70.524660,187.74481 76.472040,193.61695 83.689440,191.46974 C 90.906840,189.32253 98.192490,189.75552 92.189660,198.78205 C 86.186820,207.80858 89.161810,217.92619 98.721070,219.75046 C 108.04635,225.13166 108.59869,235.92485 105.43999,242.84382 C 113.21231,238.86480 117.72901,228.34670 115.69025,219.50046 C 121.53858,222.72170 119.78423,227.65851 118.15906,232.00023 C 113.98114,237.25673 121.97848,234.63578 123.34670,229.09408 C 126.59052,223.77168 122.42672,220.91783 128.00307,216.65671 C 135.80059,211.57531 139.86603,203.77486 133.12820,198.50086 C 140.53287,209.13646 141.93053,186.11186 157.34756,177.68875 C 167.46117,182.08170 181.16609,146.03561 178.44485,123.05762 C 187.51798,108.52704 164.91593,40.966970 154.40999,39.441340 C 151.63118,38.801340 148.80544,38.530830 146.00352,38.628850 C 137.59775,38.922940 129.39650,42.399310 122.06542,48.331790 C 107.32508,41.087380 90.833690,46.804540 78.970570,55.097290 C 68.520300,62.041350 59.830630,73.661560 46.375988,74.440680 C 36.881164,74.116570 30.102274,64.245600 29.875568,55.534790 C 28.398651,42.857970 37.310097,28.479790 49.626070,24.722860 C 60.901140,21.283480 73.229190,20.868490 84.626960,19.691710 C 93.389640,18.787000 75.907570,11.668360 70.970360,11.004370 C 67.735930,10.569390 64.589860,10.382150 61.501370,10.441880 C 52.235894,10.621070 43.501070,12.991880 34.344432,17.504250 C 20.802551,24.177650 16.694852,30.258280 12.000113,43.285020 C 7.6564020,55.337780 7.5781800,70.434610 13.000138,82.409280 C 19.028933,95.376880 32.618678,104.49202 47.063506,104.06513 C 48.267134,104.07431 52.114474,104.01250 53.313660,103.90888 L 53.719920,103.59639 C 52.152924,107.21154 50.578002,110.84247 49.126058,114.37743 C 46.915583,119.75910 34.251399,128.78072 46.313487,128.68966 C 56.155900,127.04008 66.859690,126.11039 74.751710,119.25234 C 77.041350,117.56136 75.346990,122.14465 75.814240,127.43969 C 76.000090,128.31976 76.403220,129.15664 76.939270,129.87714 C 77.475320,130.59765 74.989920,135.31974 69.907830,133.50207 C 65.474020,129.62085 59.619240,134.58733 59.751330,139.62696 C 58.887710,146.27725 63.353040,152.08385 68.376540,155.87665 C 69.778660,157.08130 71.259760,158.22613 72.782910,159.28284 L 72.720400,159.31409 C 72.811830,160.27333 73.206340,161.14428 73.470420,162.06404 L 73.282920,162.09529 C 72.352390,165.79494 61.501220,167.92358 67.407770,171.72011 C 73.314320,175.51666 78.794120,175.60238 81.908150,175.31379" /> <path id="path2498" style="fill:#2f2f2f;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 120.98378,48.536170 C 107.33723,41.088600 90.845650,46.790510 78.982530,55.083270 C 68.532260,62.027310 59.832200,73.649520 46.377558,74.428640 C 36.882736,74.104550 30.093423,64.237210 29.866718,55.526400 C 28.389800,42.849610 37.319848,28.468260 49.635821,24.711330 C 60.910890,21.271940 73.221540,20.880150 84.619310,19.703370 C 93.382000,18.798660 75.918150,11.652800 70.980940,10.988810 C 58.043230,9.2488900 46.540682,11.493130 34.331831,17.509620 C 20.789946,24.183020 16.694062,30.264040 11.999323,43.290780 C 7.6556120,55.343520 7.5774300,70.424600 12.999388,82.399270 C 19.028182,95.366870 32.617768,104.47796 47.062596,104.05107 C 48.266226,104.06027 52.122014,104.01375 53.321200,103.91013" /> <path id="path2486" style="fill:url(#linearGradient2759);fill-opacity:0.12156863;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 133.39846,150.36760 C 130.42446,154.86741 123.05775,179.79375 105.37588,179.47891 C 97.308330,179.05784 90.311400,173.14109 81.899050,175.29819 C 78.785030,175.58677 73.311740,175.51259 67.405190,171.71604 C 61.498640,167.91949 72.364540,165.79619 73.295060,162.09654" /> <path id="path2762" style="fill:url(#radialGradient2768);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 133.40946,150.37676 C 141.96770,142.38172 172.44368,153.88590 126.95567,193.17890 C 114.91231,203.58207 87.298140,190.39614 83.689440,191.46974 C 76.472040,193.61694 70.524660,187.74481 74.939210,180.90744 C 78.911820,177.16360 61.501220,167.92356 67.407770,171.72011 C 73.314320,175.51666 78.794120,175.60238 81.908150,175.31379 C 90.320500,173.15669 97.309950,179.04887 105.37749,179.46996 C 123.05936,179.78480 130.43546,154.87657 133.40946,150.37676 z " /> <path id="path2507" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:10.000033;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 104.18532,148.98160 C 107.65882,157.23228 103.23813,166.69261 98.029260,170.46198 C 91.727950,175.35479 82.217800,174.53043 76.821030,168.49016 C 74.560100,166.02538 73.062400,162.74500 72.734140,159.30096" /> <path id="path2722" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#radialGradient2723);stroke-width:10.000033;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 108.74349,151.62019 C 112.21699,159.87087 107.79631,169.33120 102.58744,173.10057 C 96.286130,177.99338 86.775980,177.16903 81.379200,171.12875 C 79.118290,168.66397 77.620590,165.38359 77.292330,161.93955" /> <path id="path2527" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:5.0000167;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 103.56030,147.10664 C 107.97132,158.48226 103.23813,166.69261 98.029260,170.46198 C 91.727950,175.35479 82.217800,174.53043 76.821030,168.49016 C 74.560100,166.02538 73.062400,162.74500 72.734140,159.30096" /> <path id="path2529" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#bbbb00;stroke-width:1.8750064;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 105.43535,145.23167 C 112.03393,161.29470 102.61312,175.75494 87.716500,175.46189" /> <path id="path2492" style="fill:url(#linearGradient2512);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 109.69645,145.96936 C 111.80988,142.85496 106.95800,139.38538 104.69738,142.47019 C 102.32670,144.28557 100.41691,146.61417 98.117440,148.51097" /> <path id="path2774" style="fill:url(#linearGradient2775);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 97.021020,208.16272 C 99.978440,216.57092 113.76227,202.01750 110.54369,197.93135 C 104.99043,193.29450 99.048250,193.01209 97.395880,190.58640 C 90.178470,192.73362 95.220840,203.04467 97.021020,208.16272 z " /> <path id="path2493" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 110.54369,197.93135 C 104.10653,189.75904 92.860900,191.24435 83.695330,191.47027 C 76.477930,193.61749 70.523090,187.73166 74.937640,180.89429 C 75.463320,178.86626 75.485920,176.12104 73.264960,175.05677" /> <path id="path2494" style="fill:url(#linearGradient2623);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 92.186750,198.77855 C 86.183910,207.80508 89.149130,217.91777 98.708390,219.74202 C 108.03367,225.12326 108.60496,235.93537 105.44626,242.85422 C 113.21858,238.87534 117.72355,228.33178 112.09095,220.73554 C 111.85760,220.38246 111.62428,220.02937 111.39093,219.67630" /> <path id="path2495" style="fill:url(#linearGradient2624);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 133.13687,198.49616 C 139.87470,203.77014 135.79866,211.56565 128.00114,216.64715 C 122.42480,220.90828 126.59402,223.77506 123.35020,229.09742 C 121.98197,234.63904 113.97672,237.26949 118.15464,232.01305 C 119.77980,227.67135 121.55304,222.73546 119.29855,218.26428" /> <path id="path2496" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 177.19355,134.39086 C 180.49975,146.68525 174.99524,159.60022 166.44270,169.16005 C 157.70329,178.92874 142.20054,187.00285 140.19723,200.75537" /> <path id="path2497" style="fill:#2f2f2f;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 204.81752,116.72114 C 216.32678,127.26171 212.44467,146.61619 200.97882,155.60046 C 192.24506,164.81793 179.71879,169.90365 167.03137,169.44991 C 161.14319,169.88291 150.60621,168.03947 147.83743,173.31893 C 160.61686,179.45040 174.63926,185.93022 189.22596,184.12736 C 207.19189,180.58458 226.24914,173.42201 237.22844,157.95689 C 246.30158,143.42630 246.32679,124.41390 240.32911,108.73831 C 234.18763,95.622730 222.96591,85.261190 209.67299,79.636570 C 197.98888,74.001690 187.07624,66.664440 178.75380,56.585650 C 172.06746,49.149370 164.92391,40.961050 154.41797,39.435420 C 143.30274,36.875430 131.47447,40.487870 123.15806,48.127030 C 122.84591,48.341200 121.59663,49.196450 121.28415,49.409900" /> <rect id="rect2645" style="fill:#2f2f2f;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" y="48.379028" x="94.807465" height="22.980539" width="53.034359" /> <path id="path2491" style="fill:url(#linearGradient2617);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 88.821520,72.513160 C 79.882820,76.352190 68.259970,74.820510 63.324090,84.771910 C 57.517860,93.763780 53.208970,104.44964 49.128668,114.38371 C 46.918192,119.76539 34.264170,128.77388 46.326257,128.68282 C 56.168670,127.03324 66.869080,126.11861 74.761100,119.26056 C 77.140450,117.50335 79.048150,115.23356 81.172590,113.21071" /> <path id="path2707" style="fill:url(#linearGradient2719);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 45.313460,127.68968 C 59.841910,115.01165 74.671950,123.83846 82.189400,95.815280 C 81.751690,95.633910 86.818180,108.98869 81.158130,113.22120 C 79.033690,115.24405 77.131060,117.49511 74.751710,119.25234 C 66.859690,126.11039 56.155900,127.04008 46.313487,128.68966" /> <path id="path2490" style="fill:url(#linearGradient2725);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 98.399860,70.003190 C 89.976310,69.937430 83.761450,76.301570 81.087110,83.713910 C 77.748060,91.487080 86.127790,98.076400 84.068860,105.82177 C 82.803770,113.56541 75.099060,119.24254 75.822450,127.44007 C 76.008300,128.32013 76.400310,129.15194 76.936360,129.87244" /> <path id="path2632" style="fill:url(#radialGradient2633);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 204.81752,116.72114 C 216.32678,127.26171 212.44467,146.61619 200.97882,155.60046 C 192.24506,164.81793 179.71879,169.90365 167.03137,169.44991 C 161.14319,169.88291 150.60621,168.03947 147.83743,173.31893 C 160.61686,179.45040 174.63926,185.93022 189.22596,184.12736 C 207.19189,180.58458 226.24914,173.42201 237.22844,157.95689 C 246.30158,143.42630 246.32679,124.41390 240.32911,108.73831 C 234.18763,95.622730 222.96591,85.261190 209.67299,79.636570 C 197.98888,74.001690 187.07624,66.664440 178.75380,56.585650 C 172.06746,49.149370 164.92391,40.961050 154.41797,39.435420 C 143.30274,36.875430 131.47447,40.487870 123.15806,48.127030 C 122.84591,48.341200 121.59663,49.196450 121.28415,49.409900" /> <path id="path2501" style="fill:url(#linearGradient2622);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 103.20089,201.32015 C 104.07556,205.74235 97.723880,208.03336 99.080290,212.47027 C 101.24559,217.77738 108.33027,219.67227 109.41404,225.60675" /> <path id="path2502" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" transform="matrix(-2.000050,0.000000,0.000000,1.999962,410.1856,-166.0270)" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 1 136.54398,134.82051 A 2.8240740 2.6828704 0 1 1 142.19213 134.82051 z" /> <path id="path2503" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" transform="matrix(-1.421688,0.000000,0.000000,1.483592,285.2254,-96.99050)" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 1 136.54398,134.82051 A 2.8240740 2.6828704 0 1 1 142.19213 134.82051 z" /> <path id="path2504" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" transform="matrix(-0.715722,0.000000,0.000000,0.746242,229.1839,1.705700)" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 1 136.54398,134.82051 A 2.8240740 2.6828704 0 1 1 142.19213 134.82051 z" /> <path id="path2505" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" transform="matrix(-0.522858,0.000000,0.000000,0.541812,158.3577,28.56880)" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 1 136.54398,134.82051 A 2.8240740 2.6828704 0 1 1 142.19213 134.82051 z" /> <path id="path2989" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.8750064;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 71.508810,156.79396 C 70.535380,159.41974 70.893460,161.38021 71.727220,162.96212" /> <path id="path2488" style="fill:url(#linearGradient2613);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 95.614750,91.677620 C 97.381080,96.716160 97.004050,102.46006 92.865680,106.24755 C 87.949940,112.22229 85.035430,119.46072 81.351730,126.19477 C 79.653690,130.60467 74.994540,135.33400 69.912450,133.51633 C 65.478640,129.63513 59.624430,134.59315 59.756520,139.63278 C 58.892900,146.28305 63.348830,152.09729 68.372330,155.89009 C 73.223740,160.05824 78.793010,163.55709 85.126390,164.89029" /> <path id="path2487" style="fill:url(#linearGradient2609);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 122.12269,144.27495 C 126.10935,135.32626 117.64121,126.51395 108.56942,127.73028 C 100.73698,128.43993 96.140750,135.86093 89.221890,138.77056 C 86.542180,140.40002 83.856660,142.07991 80.890160,143.14533" /> <path id="path2528" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.8750064;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 103.24779,154.29400 C 103.28371,161.29470 101.09670,166.40902 96.466720,169.52450 C 92.317410,172.31655 86.592910,172.65547 81.196140,169.42764" /> <path id="path2530" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 45.313460,127.67686 C 59.841910,114.99883 74.671950,123.82564 82.189400,95.802460" /> <path id="path2690" style="fill:url(#radialGradient2682);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 204.81752,116.72114 C 216.32678,127.26171 212.44467,146.61619 200.97882,155.60046 C 192.24506,164.81793 179.71879,169.90365 167.03137,169.44991 C 161.14319,169.88291 150.60621,168.03947 147.83743,173.31893 C 160.61686,179.45040 174.63926,185.93022 189.22596,184.12736 C 207.19189,180.58458 226.24914,173.42201 237.22844,157.95689 C 246.30158,143.42630 246.32679,124.41390 240.32911,108.73831 C 234.18763,95.622730 222.96591,85.261190 209.67299,79.636570 C 197.98888,74.001690 187.07624,66.664440 178.75380,56.585650 C 172.06746,49.149370 164.92391,40.961050 154.41797,39.435420 C 143.30274,36.875430 131.47447,40.487870 123.15806,48.127030 C 122.84591,48.341200 121.59663,49.196450 121.28415,49.409900" /> <rect id="rect2663" style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" y="56.624146" x="89.945984" height="21.654737" width="66.734901" /> <path id="path2681" style="fill:url(#radialGradient2705);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 204.81752,116.72114 C 216.32678,127.26171 212.44467,146.61619 200.97882,155.60046 C 192.24506,164.81793 179.71879,169.90365 167.03137,169.44991 C 161.14319,169.88291 150.60621,168.03947 147.83743,173.31893 C 160.61686,179.45040 174.63926,185.93022 189.22596,184.12736 C 207.19189,180.58458 226.24914,173.42201 237.22844,157.95689 C 246.30158,143.42630 246.32679,124.41390 240.32911,108.73831 C 234.18763,95.622730 222.96591,85.261190 209.67299,79.636570 C 197.98888,74.001690 187.07624,66.664440 178.75380,56.585650 C 172.06746,49.149370 164.92391,40.961050 154.41797,39.435420 C 143.30274,36.875430 131.47447,40.487870 123.15806,48.127030 C 122.84591,48.341200 121.59663,49.196450 121.28415,49.409900" /> <path id="path2732" style="fill:#000000;fill-opacity:0.18431373;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:0.49803922" d="M 205.81207,152.22714 C 210.13648,153.32568 205.20085,150.73062 212.99930,155.99737 C 218.78368,159.70709 221.67241,158.08496 218.45112,151.74145 C 210.56935,139.62791 201.60449,150.85798 205.81207,152.22714 z " /> <path id="path2760" style="fill:#000000;fill-opacity:0.18431373;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 176.57763,132.89792 C 182.99041,140.79813 176.99461,133.00644 177.95159,142.21069 C 163.47725,131.92199 156.98441,114.07606 157.42452,100.09522" /> <path id="path2770" style="fill:url(#radialGradient2771);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 204.81752,116.72114 C 216.32678,127.26171 212.44467,146.61619 200.97882,155.60046 C 192.24506,164.81793 179.71879,169.90365 167.03137,169.44991 C 161.14319,169.88291 150.60621,168.03947 147.83743,173.31893 C 160.61686,179.45040 174.63926,185.93022 189.22596,184.12736 C 207.19189,180.58458 226.24914,173.42201 237.22844,157.95689 C 246.30158,143.42630 246.32679,124.41390 240.32911,108.73831 C 234.18763,95.622730 222.96591,85.261190 209.67299,79.636570 C 197.98888,74.001690 187.07624,66.664440 178.75380,56.585650 C 172.06746,49.149370 164.92391,40.961050 154.41797,39.435420 C 143.30274,36.875430 131.47447,40.487870 123.15806,48.127030 C 122.84591,48.341200 121.59663,49.196450 121.28415,49.409900" /> <path id="path2489" style="fill:url(#linearGradient2618);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 145.56310,71.415200 C 164.16785,67.747970 184.23229,76.559720 194.69769,92.253050 C 201.11048,100.15326 202.83624,110.50001 203.91807,120.30126 C 204.55378,126.06093 207.50174,131.03500 209.47507,136.21816 C 211.22522,140.81506 217.79695,143.34277 216.91530,148.99122 C 212.05312,151.18508 208.37050,145.93312 204.25715,144.32983 C 193.64255,140.19249 181.85609,137.88071 172.64816,130.73343 C 161.26748,121.77053 156.98441,106.57620 157.42452,92.595360" /> <path id="path2674" style="fill:url(#radialGradient2680);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 120.98378,51.036120 C 107.33723,43.588550 90.845650,49.290460 78.982530,57.583220 C 68.532260,64.527270 59.832200,76.149470 46.377558,76.928600 C 36.882736,76.604500 30.093423,66.737170 29.866718,58.026350 C 28.389800,45.349570 37.319848,30.968220 49.635821,27.211290 C 60.910890,23.771890 73.221540,23.380100 84.619310,22.203320 C 93.382000,21.298610 75.918150,14.152750 70.980940,13.488770 C 58.043230,11.748850 46.540682,13.993090 34.331831,20.009570 C 20.789946,26.682980 16.694062,32.763990 11.999323,45.790730 C 7.6556120,57.843470 7.5774300,72.924550 12.999388,84.899230 C 19.028182,97.866820 32.617768,106.97791 47.062596,106.55102 C 48.266226,106.56022 52.122014,106.51370 53.321200,106.41008" /> <path id="path2683" style="fill:url(#radialGradient2684);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 120.98378,51.036120 C 107.33723,43.588550 90.845650,49.290460 78.982530,57.583220 C 68.532260,64.527270 59.832200,76.149470 46.377558,76.928600 C 36.882736,76.604500 30.093423,66.737170 29.866718,58.026350 C 28.389800,45.349570 37.319848,30.968220 49.635821,27.211290 C 60.910890,23.771890 73.221540,23.380100 84.619310,22.203320 C 93.382000,21.298610 75.918150,14.152750 70.980940,13.488770 C 58.043230,11.748850 46.540682,13.993090 34.331831,20.009570 C 20.789946,26.682980 16.694062,32.763990 11.999323,45.790730 C 7.6556120,57.843470 7.5774300,72.924550 12.999388,84.899230 C 19.028182,97.866820 32.617768,106.97791 47.062596,106.55102 C 48.266226,106.56022 52.122014,106.51370 53.321200,106.41008" /> <path id="path2685" style="fill:url(#linearGradient2686);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 29.866718,55.526400 C 28.389800,42.849610 37.319848,28.468260 49.635821,24.711330 C 60.910890,21.271940 73.221540,20.880150 84.619310,19.703370 C 93.382000,18.798660 75.918150,11.652800 70.980940,10.988810 C 58.043230,9.2488900 46.540682,11.493130 34.331831,17.509620 C 20.789946,24.183020 16.694062,30.264040 11.999323,43.290780 C 7.6556120,55.343520 7.5774300,70.424600 12.999388,82.399270" /> <path id="path2720" style="fill:url(#linearGradient2721);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 145.56310,71.415200 C 164.16785,67.747970 184.23229,76.559720 194.69769,92.253050 C 201.11048,100.15326 202.83624,110.50001 203.91807,120.30126 C 204.55378,126.06093 207.50174,131.03500 209.47507,136.21816 C 211.22522,140.81506 217.79695,143.34277 216.91530,148.99122 C 212.05312,151.18508 208.37050,145.93312 204.25715,144.32983 C 193.64255,140.19249 181.85609,137.88071 172.64816,130.73343 C 161.26748,121.77053 156.98441,106.57620 157.42452,92.595360" /> <path id="path2772" style="fill:url(#linearGradient2773);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 29.866718,55.526400 C 28.389800,42.849610 37.319848,28.468260 49.635821,24.711330 C 60.910890,21.271940 73.221540,20.880150 84.619310,19.703370 C 93.382000,18.798660 75.918150,11.652800 70.980940,10.988810 C 58.043230,9.2488900 46.540682,11.493130 34.331831,17.509620 C 20.789946,24.183020 16.694062,30.264040 11.999323,43.290780 C 7.6556120,55.343520 7.5774300,70.424600 12.999388,82.399270" /> <path id="path2687" style="fill:url(#radialGradient2688);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 120.98378,48.536170 C 107.33723,41.088600 90.845650,46.790510 78.982530,55.083270 C 68.532260,62.027310 59.832200,73.649520 46.377558,74.428640 C 36.882736,74.104550 30.093423,64.237210 29.866718,55.526400 C 28.389800,42.849610 37.319848,28.468260 49.635821,24.711330 C 60.910890,21.271940 73.221540,20.880150 84.619310,19.703370 C 93.382000,18.798660 75.918150,11.652800 70.980940,10.988810 C 58.043230,9.2488900 46.540682,11.493130 34.331831,17.509620 C 20.789946,24.183020 16.694062,30.264040 11.999323,43.290780 C 7.6556120,55.343520 7.5774300,70.424600 12.999388,82.399270 C 19.028182,95.366870 32.617768,104.47796 47.062596,104.05107 C 48.266226,104.06027 52.122014,104.01375 53.321200,103.91013" /> <rect id="rect3185" style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" y="56.624146" x="89.945984" height="21.654737" width="66.734901" /> <rect id="rect3186" style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" y="56.624146" x="89.945984" height="21.654737" width="66.734901" /> <rect id="rect3187" style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" y="56.624146" x="89.945984" height="21.654737" width="66.734901" /> <rect id="rect3188" style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" y="59.124084" x="89.945984" height="21.654737" width="66.734901" /> <path id="path3190" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient3193);stroke-width:0.93750000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="matrix(-1.408036,0.000000,0.000000,1.407974,327.6776,-86.21470)" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 1 136.54398,134.82051 A 2.8240740 2.6828704 0 1 1 142.19213 134.82051 z" /> <path id="path3192" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient3191);stroke-width:0.72265625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="matrix(-1.239071,0.000000,0.000000,1.239017,259.5702,-63.87770)" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 1 136.54398,134.82051 A 2.8240740 2.6828704 0 1 1 142.19213 134.82051 z" /> <path id="path2499" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5000083;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 141.97873,102.21284 C 137.57932,99.251480 134.72223,98.389550 129.26999,98.225440 C 127.37124,98.324410 124.98294,97.811880 123.53477,99.373010" /> <path id="path2500" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.8750064;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 93.065670,100.78501 C 89.863190,98.911180 87.114000,98.440230 83.470450,98.826220 C 82.385780,99.666430 82.767070,98.725570 81.737420,99.655410" /> </svg> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/saveclose.xpm�����������������������������������������������������������������0000644�0001750�0001750�00000011231�10410766736�016353� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* XPM */ static char * saveclose_xpm[] = { "24 24 216 2", " c None", ". c #000000", "+ c #C3D7F4", "@ c #A9CDE5", "# c #75757A", "$ c #EFC5BB", "% c #F1C8BE", "& c #F0C6BC", "* c #EEBCB2", "= c #EEBEB5", "- c #EEC1B8", "; c #EDBFB6", "> c #E9B7AD", ", c #755D58", "' c #C49B93", ") c #E9B9B1", "! c #E5BFBA", "~ c #737277", "{ c #BBD6E8", "] c #8AAAC5", "^ c #605F68", "/ c #E08D7E", "( c #E0826E", "_ c #E0806E", ": c #DC7A68", "< c #DC8171", "[ c #DA7868", "} c #D48173", "| c #D47D6E", "1 c #AD6055", "2 c #C4675B", "3 c #C36558", "4 c #BAD5E9", "5 c #88A7C3", "6 c #686670", "7 c #C8817B", "8 c #CB7C74", "9 c #CB7A73", "0 c #CB7B73", "a c #CC7C72", "b c #CB7D73", "c c #BF6B64", "d c #CC7A70", "e c #C16A62", "f c #7A4A45", "g c #6F403F", "h c #B6D3E7", "i c #87ABC1", "j c #737373", "k c #FFFFFF", "l c #3A4C5A", "m c #B9D3E7", "n c #85A4BF", "o c #999999", "p c #6E869B", "q c #4F697C", "r c #B9D3E6", "s c #84A3BF", "t c #CECECE", "u c #CDCDCD", "v c #919191", "w c #232323", "x c #3C5263", "y c #B7D2E7", "z c #82A0BB", "A c #636363", "B c #D7D7D7", "C c #4E4E4E", "D c #B5CAE5", "E c #7FA2B9", "F c #5C5C5C", "G c #AECCE5", "H c #7DA0B6", "I c #494949", "J c #ACACAC", "K c #C5C5C5", "L c #515151", "M c #B0D1E4", "N c #83A1B6", "O c #735B5B", "P c #4E606E", "Q c #AACEE3", "R c #7B9BB2", "S c #7A8E9A", "T c #7A7A7A", "U c #6B6F72", "V c #6F6F6F", "W c #696969", "X c #6F777E", "Y c #86A2B9", "Z c #3A515D", "` c #A9C9E2", " . c #7494AF", ".. c #819EB6", "+. c #83A0B8", "@. c #829FB7", "#. c #7F9DB6", "$. c #7E9CB5", "%. c #7998B2", "&. c #85A1B8", "*. c #87A3BA", "=. c #8CA7BD", "-. c #8AA5BB", ";. c #364A59", ">. c #ABC4E2", ",. c #7294AD", "'. c #6F90AC", "). c #7192AE", "!. c #414A4E", "~. c #424A51", "{. c #525B63", "]. c #626F79", "^. c #5F6C76", "/. c #5C6971", "(. c #5A666F", "_. c #58636B", ":. c #57636A", "<. c #3B5360", "[. c #39424B", "}. c #7897B3", "|. c #A4B9CB", "1. c #364853", "2. c #AAC9E2", "3. c #7091AA", "4. c #6F8FA7", "5. c #4A5359", "6. c #97938C", "7. c #DFDDDA", "8. c #E3E1DE", "9. c #EBEAE8", "0. c #EAE9E7", "a. c #CFCEC9", "b. c #C9C6C0", "c. c #9B968E", "d. c #566168", "e. c #4B657A", "f. c #54738C", "g. c #AAC6DD", "h. c #34464E", "i. c #AAC9E1", "j. c #6C8EA6", "k. c #6C8CA4", "l. c #40474D", "m. c #DAD8D3", "n. c #E7E6E2", "o. c #67655E", "p. c #524F47", "q. c #D9D7D4", "r. c #C7C5BF", "s. c #C0BCB5", "t. c #B8B3AB", "u. c #434C54", "v. c #4D697F", "w. c #4F6F84", "x. c #B3CADC", "y. c #313E49", "z. c #A8C8E1", "A. c #6B8DA6", "B. c #728FA4", "C. c #E2E1DD", "D. c #F0EFEC", "E. c #CDCAC6", "F. c #C2BFB9", "G. c #CAC6C0", "H. c #DCDAD7", "I. c #4B555D", "J. c #4E697F", "K. c #BACCDC", "L. c #A4C4DE", "M. c #698BA3", "N. c #708AA1", "O. c #383E43", "P. c #E0DEDA", "Q. c #514E46", "R. c #4F4C44", "S. c #C7C4BE", "T. c #CBC8C2", "U. c #E1E0DC", "V. c #E9E8E6", "W. c #475158", "X. c #4E6879", "Y. c #4D6C80", "Z. c #A3C3DB", "`. c #383F43", " + c #778999", ".+ c #6E899E", "++ c #65859C", "@+ c #33383C", "#+ c #D7D4D0", "$+ c #D6D4D0", "%+ c #4E4A43", "&+ c #4D4942", "*+ c #D1CEC9", "=+ c #E6E5E2", "-+ c #EDECEA", ";+ c #454F55", ">+ c #486173", ",+ c #4D6678", "'+ c #A1C1DA", ")+ c #373C40", "!+ c #0C0D0F", "~+ c #4E5E6A", "{+ c #5B6E7C", "]+ c #4F5B62", "^+ c #A4A099", "/+ c #CCC9C3", "(+ c #D7D5D1", "_+ c #E4E2E0", ":+ c #DDDBD7", "<+ c #B8B5B0", "[+ c #3E474D", "}+ c #4A6176", "|+ c #4A6070", "1+ c #9BC3D8", "2+ c #363C41", "3+ c #28323E", " ", " . . . . . . . . . . . . . . . . . . . . ", " . + @ # $ % & * = - ; > , . ' ) ! ~ . . . ", " . { ] ^ / ( _ : < [ } | 1 . . 2 3 . . . . ", " . 4 5 6 7 8 9 0 a b c d e f . . g . . . . ", " . h i j k k k k k k k k k k . . . . . l . ", " . m n j k k k k k k k k k k o . . . p q . ", " . r s j t u u u u u u u u v . . w . . x . ", " . y z A k k k k k k k k B . . . C . . . . ", " . D E j k k k k k k k k F . . B B . . . . . ", " . G H j t u u u u u u I . . J u K L . . . . ", " . M N O k k k k k k C F . B k k k j P . . ", " . Q R S T j j j j j U V j j j j W X Y Z . ", " . ` ...+.Y @.#.$.@.%.Y &.&.*.@.=.+.-.;.. ", " . >.,.'.).!.~.{.].^./.(._.:.{.<.[.}.|.1.. ", " . 2.3.4.5.6.7.8.9.9.0.7.a.b.c.d.e.f.g.h.. ", " . i.j.k.l.m.n.o.p.p.q.r.s.t.a.u.v.w.x.y.. ", " . z.A.B.l.C.D.o.p.p.E.F.s.G.H.I.J.w.K.y.. ", " . L.M.N.O.P.9.Q.R.R.S.s.T.U.V.W.X.Y.Z.`.. ", " . +.+++@+#+$+%+&+&+s.*+=+-+=+;+>+,+'+)+. ", " !+~+{+]+^+s.t./+/+(+_+0.:+<+[+}+|+1+2+. ", " . . . . . . . . . . . . . . . . 3+. ", " ", " "}; �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/terminal.png������������������������������������������������������������������0000644�0001750�0001750�00000001404�10410766736�016163� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������PNG  ��� IHDR���������a���bKGD������C��� pHYs�� �� ����tIME /d��IDATx=o\Usߵ˻t)"T)PH6ED@ATAqd{~ϥxHSL3G9Gl6˪D`jԪ:%gJI䬨gϞd< " GZ\9B9ږOϣnqqqniT )gbF+cnnogt6Cཧ{yG#mr2>{LN+"R8;_\=voh=1F'JR  ƈ9'RN ="PR{jwT*7L&0acy1Rbyꁁs-ʾ3bjiӁej;8G#|l6CD%(rTUjUB ap1F>{U P BԪѳ`釧�RX,NxJ 1; ]_\BD状2 M�Z7`A_s& H͙㣆#ԃcCrT*1R"LəE+M\v;#M7/U6T�A0T'|W_U1@(΅T2.hU,}~@ ����IENDB`������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/world.svg���������������������������������������������������������������������0000644�0001750�0001750�00000034673�10410766736�015530� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1383" height="20.000000" width="20.000000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2407" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2405" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2099"> <stop id="stop2101" offset="0.0000000" style="stop-color:#babbdc;stop-opacity:1.0000000;" /> <stop id="stop2103" offset="0.60000002" style="stop-color:#9193d5;stop-opacity:1.0000000;" /> <stop id="stop2105" offset="1.0000000" style="stop-color:#6164c4;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2099" id="radialGradient2403" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> <linearGradient id="linearGradient2170"> <stop id="stop2172" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.62352943;" /> <stop id="stop2174" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2389" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <linearGradient id="linearGradient2156"> <stop id="stop2158" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> <stop id="stop2162" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2387" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2183"> <stop id="stop2185" offset="0.0000000" style="stop-color:#dcbbbb;stop-opacity:1.0000000;" /> <stop id="stop2187" offset="0.60000002" style="stop-color:#d59191;stop-opacity:1.0000000;" /> <stop id="stop2189" offset="1.0000000" style="stop-color:#c46161;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2183" id="radialGradient2385" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> </defs> <g id="layer1"> <g id="g2352" transform="matrix(3.960176e-2,0.000000,0.000000,3.960176e-2,8.583018e-2,-0.542443)"> <path id="path2205" style="fill:url(#radialGradient2403);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2207" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 49.437500,116.68750 C 9.5976600,169.60788 -7.6271960,238.90434 2.9105100,304.39310 C 10.308170,354.10552 33.551850,401.19028 68.005840,437.74812 C 101.74452,473.63467 146.21320,499.26985 194.24680,510.25156 C 199.99153,509.77997 204.92357,504.08065 210.37445,501.55834 C 215.90779,497.67119 223.83362,494.37316 226.03125,487.84375 C 214.71347,483.03902 201.26103,489.57962 190.31449,482.76524 C 183.05001,480.40226 172.18692,473.68002 177.21875,464.71875 C 181.84751,455.69206 188.37504,446.27587 187.84375,435.81250 C 182.27407,432.29351 176.75441,439.84769 171.85169,442.23271 C 163.44133,448.75531 155.02010,439.49404 147.83592,435.54196 C 141.04333,431.13375 133.90750,423.08322 138.65546,414.63331 C 140.43113,409.52457 144.56495,404.72912 145.00000,399.43750 C 132.04760,387.74827 112.42524,381.33455 106.61503,363.19063 C 103.49587,357.85237 108.14552,350.98603 114.32775,353.19001 C 130.59663,356.43830 144.14277,367.19756 159.53125,372.59375 C 159.03403,362.21575 150.46649,353.36290 151.00000,342.90625 C 155.25471,338.23625 163.21295,340.61619 168.81504,338.17213 C 180.29677,335.24106 192.71966,332.03960 202.34375,325.43750 C 197.91139,314.26859 189.38937,305.02268 182.04158,295.62421 C 172.08277,286.05686 164.87883,272.96910 166.22505,258.78312 C 167.59111,251.89486 161.52097,248.10257 155.68750,246.71875 C 147.36821,242.57850 137.13811,240.61477 130.75000,233.56250 C 127.56405,225.44229 132.68058,217.37859 134.65625,209.68750 C 127.81109,194.34143 110.02988,187.49041 94.103600,187.62518 C 85.825620,187.08688 71.951440,187.44949 71.187500,176.34375 C 69.469880,168.39415 71.102430,159.54252 78.320230,154.80574 C 84.761240,148.88834 97.483650,143.82876 93.788660,132.90201 C 88.703610,118.40413 76.709880,106.47826 62.687500,100.50000 C 58.270830,105.89583 53.854170,111.29167 49.437500,116.68750 z " /> <path id="path2209" style="opacity:0.24999996;fill:url(#radialGradient2405);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2211" style="fill:url(#radialGradient2407);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2213" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 399.65625,62.656250 C 382.54719,65.809370 363.97591,82.236010 344.21875,117.96875 C 348.41098,131.94283 317.84416,130.43163 304.56250,136.46875 C 294.03305,141.25487 292.40506,151.23182 291.34375,162.90625 C 289.64992,181.53839 312.27807,174.90784 286.03125,188.03125 C 274.43186,193.83095 288.05331,216.68222 279.43750,226.37500 C 268.46058,238.72403 284.65807,245.38859 292.65625,250.18750 C 308.12778,259.47042 324.86886,219.77254 327.03125,211.84375 C 331.91737,193.92794 337.00795,191.37256 345.53125,185.40625 C 355.16461,178.66291 350.37475,208.43658 353.46875,219.78125 C 356.05583,229.26718 347.30719,246.40211 346.84375,251.50000 C 346.16847,258.92820 378.05172,253.87859 345.53125,264.71875 C 338.97503,266.90416 346.08936,273.95213 342.90625,284.56250 C 340.81195,291.54352 334.17822,295.45725 332.31250,305.71875 C 330.62965,314.97443 323.54941,324.44727 319.09375,330.81250 C 314.49539,337.38158 341.49218,341.03906 345.53125,341.40625 C 353.24994,342.10796 363.33867,349.86047 371.96875,353.31250 C 386.54655,359.14361 374.74782,374.74768 371.96875,379.75000 C 366.61834,389.38075 365.35096,412.81610 375.93750,400.90625 C 387.25289,388.17646 407.94039,383.69590 414.28125,367.84375 C 420.27486,352.85972 405.96038,347.20200 399.75000,334.78125 C 392.94162,321.16450 405.78361,313.60281 411.62500,307.03125 C 475.09922,315.11177 404.24911,360.92665 448.65625,359.90625 C 455.23268,356.25268 452.86072,283.91891 460.56250,283.21875 C 469.26117,282.42797 488.86303,287.73014 501.84375,288.34375 C 502.47868,281.04649 502.87500,273.67982 502.87500,266.21875 C 502.87500,182.69263 462.20861,108.63106 399.65625,62.656250 z " /> <path id="path2215" style="fill:#18551f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 135.32722,110.03897 C 121.98710,120.71107 152.08415,135.15817 159.12436,135.15817 C 180.96110,135.15817 190.38957,140.12381 194.82006,117.97135 C 197.74779,103.33269 216.13712,99.812010 223.90545,95.496280 C 232.84080,90.532190 224.93446,74.879410 227.87163,65.088830 C 232.15017,50.827040 213.12453,51.331700 205.39656,49.224070 C 189.97641,45.018570 178.92989,58.503920 171.02292,66.410890 C 164.35819,73.075620 149.22800,70.105020 141.93754,73.021210 C 126.36521,79.250140 155.35654,86.241830 161.76848,86.241830 C 175.52283,83.597700 146.88983,100.78888 135.32722,110.03897 z " /> <path id="path2217" style="opacity:0.099999972;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 48.187500,124.40625 C -1.6207600,190.56969 -13.978323,282.87199 17.061220,359.72647 C 45.173010,431.33820 108.99006,488.71895 184.04223,506.50276 C 192.51780,509.02061 199.09197,500.95210 206.03285,497.26410 C 207.81574,494.65005 195.65768,496.82064 191.70916,495.07030 C 181.71784,493.32843 170.39424,489.08779 165.71875,479.34375 C 160.37898,468.30241 171.08569,459.31509 174.05637,449.35193 C 174.19270,446.36595 166.58063,453.68019 162.92103,453.77971 C 153.25451,456.30241 145.14979,448.17720 137.37784,443.68475 C 127.72164,437.44422 121.62953,424.16910 128.41304,413.67460 C 132.57168,408.29626 132.27474,403.55922 125.50063,400.97969 C 112.16569,391.68729 96.881990,381.45420 93.916170,364.16335 C 92.510810,353.38952 106.59067,347.62877 114.88882,352.84504 C 125.12373,355.88026 134.30336,361.42984 144.03125,365.68750 C 141.05661,358.45086 135.93602,348.03258 142.49324,341.47261 C 152.70468,335.90215 165.03357,337.03535 175.60779,332.16962 C 179.36902,330.54499 186.85772,329.57638 187.86265,326.15458 C 177.52178,306.86016 156.08045,293.01972 154.39657,269.58757 C 154.51617,264.46394 154.76014,257.60868 148.25153,256.59640 C 137.09561,251.36225 120.80599,248.33845 117.81250,234.31250 C 116.76895,227.02308 121.90199,219.97546 121.21549,213.14418 C 111.90553,198.11962 92.413510,197.54866 76.656250,196.78125 C 65.970910,195.62856 57.235050,185.95527 58.647090,175.00645 C 57.974580,162.52727 67.873420,153.19094 77.613480,147.14427 C 82.764790,143.79110 83.101260,137.23780 79.128590,132.86860 C 74.583390,123.95207 66.930840,116.87622 58.156250,112.18750 C 54.833330,116.26042 51.510420,120.33333 48.187500,124.40625 z " /> <path id="path2219" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 399.37500,70.093750 C 378.29141,80.086930 364.72487,100.70788 354.20936,120.52866 C 353.54971,132.87632 338.98983,135.47392 329.25510,137.47334 C 319.33904,139.48865 305.10504,140.60223 303.10159,153.00100 C 300.88136,160.28952 300.24041,169.50025 307.00000,174.59375 C 311.74293,183.44393 301.30223,189.41807 294.53125,192.40625 C 287.43904,198.49610 293.62889,208.51152 292.31906,216.40610 C 293.44124,223.41168 287.01197,228.87655 286.62500,235.18750 C 289.61107,240.51338 296.32367,243.57831 301.93679,244.89706 C 310.40467,242.68375 313.71627,232.88257 318.43750,226.37500 C 326.31132,210.65509 328.73782,189.78081 345.89502,180.88085 C 352.80806,175.61900 360.86666,182.13224 361.56250,189.62500 C 361.77949,201.78476 363.24024,213.92725 363.36635,226.08849 C 363.80310,234.50241 359.13324,241.77081 357.90625,249.75000 C 363.21804,250.01381 371.15411,253.44787 369.40625,260.31250 C 366.43351,266.61567 358.54840,267.05580 353.03125,270.00000 C 355.05234,280.86303 351.24782,291.82104 344.88544,300.47050 C 340.45931,310.86159 337.52199,322.30876 330.12500,331.00000 C 340.60124,334.85022 352.97436,334.77049 363.35368,339.97934 C 372.19442,345.51028 385.29528,348.26033 388.62062,359.45184 C 390.35779,372.21800 379.28802,382.23593 377.81250,394.53125 C 388.27941,384.30020 404.25153,379.87559 411.73404,366.79806 C 417.15865,356.81953 405.91795,349.69951 401.46737,342.06510 C 393.55808,333.15402 394.91462,319.32929 403.13220,311.11574 C 407.95921,306.11871 413.93296,299.01026 421.68561,302.25164 C 435.22896,303.19276 450.88128,312.82483 449.53125,328.09375 C 448.83115,336.51118 443.23641,344.00746 443.81250,352.56250 C 448.83380,356.72366 450.77585,349.70056 450.01113,345.75989 C 452.99959,324.39633 451.01999,302.02173 458.25000,281.46875 C 466.01067,272.90788 477.96689,279.58417 487.58569,279.80942 C 493.09157,279.85509 502.84925,285.04161 500.50923,275.60079 C 504.07415,198.78507 468.47279,121.54970 408.28591,73.819440 C 405.84158,71.817640 402.79052,68.517350 399.37500,70.093750 z " /> <path id="path2221" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 196.03125,52.906250 C 182.00437,57.216240 175.15670,74.984920 159.18750,74.812500 C 151.16243,74.846220 147.23312,76.198190 157.48405,77.439620 C 162.27451,78.713660 169.80722,75.918110 170.87803,82.654960 C 172.32034,91.697580 161.43665,95.747350 155.74416,100.54906 C 149.86694,104.68076 143.92700,108.77405 138.71875,113.75000 C 141.15812,121.11726 150.07831,123.83205 156.71540,126.12510 C 165.40474,127.98036 175.16304,128.43926 183.50914,125.87681 C 190.54103,118.43112 189.02421,105.44226 198.57500,99.722680 C 205.09564,93.401230 216.48303,93.057250 221.56332,85.691980 C 222.94075,76.913280 220.18862,68.050720 221.90625,59.281250 C 217.78697,53.226760 208.89717,55.022290 202.62390,52.950740 C 200.44632,52.459090 198.23369,52.885700 196.03125,52.906250 z " /> </g> </g> </svg> ���������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/world_activity.svg������������������������������������������������������������0000644�0001750�0001750�00000032430�10410766736�017431� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1383" height="20.000000" width="20.000000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <linearGradient id="linearGradient2170"> <stop id="stop2172" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.62352943;" /> <stop id="stop2174" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2389" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <linearGradient id="linearGradient2156"> <stop id="stop2158" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> <stop id="stop2162" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2387" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2183"> <stop id="stop2185" offset="0.0000000" style="stop-color:#dcbbbb;stop-opacity:1.0000000;" /> <stop id="stop2187" offset="0.60000002" style="stop-color:#d59191;stop-opacity:1.0000000;" /> <stop id="stop2189" offset="1.0000000" style="stop-color:#c46161;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2183" id="radialGradient2385" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> </defs> <g id="layer1"> <g id="g2374" transform="matrix(3.960176e-2,0.000000,0.000000,3.960176e-2,-20.50708,-21.13536)"> <path id="path2263" style="fill:url(#radialGradient2385);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2265" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 569.43750,636.68750 C 529.59766,689.60788 512.37280,758.90434 522.91051,824.39310 C 530.30817,874.10552 553.55185,921.19028 588.00584,957.74812 C 621.74452,993.63467 666.21320,1019.2699 714.24680,1030.2516 C 719.99153,1029.7800 724.92357,1024.0806 730.37445,1021.5583 C 735.90779,1017.6712 743.83362,1014.3732 746.03125,1007.8438 C 734.71347,1003.0390 721.26103,1009.5796 710.31449,1002.7652 C 703.05001,1000.4023 692.18692,993.68002 697.21875,984.71875 C 701.84751,975.69206 708.37504,966.27587 707.84375,955.81250 C 702.27407,952.29351 696.75441,959.84769 691.85169,962.23271 C 683.44133,968.75531 675.02010,959.49404 667.83592,955.54196 C 661.04333,951.13375 653.90750,943.08322 658.65546,934.63331 C 660.43113,929.52457 664.56495,924.72912 665.00000,919.43750 C 652.04760,907.74827 632.42524,901.33455 626.61503,883.19063 C 623.49587,877.85237 628.14552,870.98603 634.32775,873.19001 C 650.59663,876.43830 664.14277,887.19756 679.53125,892.59375 C 679.03403,882.21575 670.46649,873.36290 671.00000,862.90625 C 675.25471,858.23625 683.21295,860.61619 688.81504,858.17213 C 700.29677,855.24106 712.71966,852.03960 722.34375,845.43750 C 717.91139,834.26859 709.38937,825.02268 702.04158,815.62421 C 692.08277,806.05686 684.87883,792.96910 686.22505,778.78312 C 687.59111,771.89486 681.52097,768.10257 675.68750,766.71875 C 667.36821,762.57850 657.13811,760.61477 650.75000,753.56250 C 647.56405,745.44229 652.68058,737.37859 654.65625,729.68750 C 647.81109,714.34143 630.02988,707.49041 614.10360,707.62518 C 605.82562,707.08688 591.95144,707.44949 591.18750,696.34375 C 589.46988,688.39415 591.10243,679.54252 598.32023,674.80574 C 604.76124,668.88834 617.48365,663.82876 613.78866,652.90201 C 608.70361,638.40413 596.70988,626.47826 582.68750,620.50000 C 578.27083,625.89583 573.85417,631.29167 569.43750,636.68750 z " /> <path id="path2267" style="opacity:0.24999996;fill:url(#radialGradient2387);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2269" style="fill:url(#radialGradient2389);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2271" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 919.65625,582.65625 C 902.54719,585.80937 883.97591,602.23601 864.21875,637.96875 C 868.41098,651.94283 837.84416,650.43163 824.56250,656.46875 C 814.03305,661.25487 812.40506,671.23182 811.34375,682.90625 C 809.64992,701.53839 832.27807,694.90784 806.03125,708.03125 C 794.43186,713.83095 808.05331,736.68222 799.43750,746.37500 C 788.46058,758.72403 804.65807,765.38859 812.65625,770.18750 C 828.12778,779.47042 844.86886,739.77254 847.03125,731.84375 C 851.91737,713.92794 857.00795,711.37256 865.53125,705.40625 C 875.16461,698.66291 870.37475,728.43658 873.46875,739.78125 C 876.05583,749.26718 867.30719,766.40211 866.84375,771.50000 C 866.16847,778.92820 898.05172,773.87859 865.53125,784.71875 C 858.97503,786.90416 866.08936,793.95213 862.90625,804.56250 C 860.81195,811.54352 854.17822,815.45725 852.31250,825.71875 C 850.62965,834.97443 843.54941,844.44727 839.09375,850.81250 C 834.49539,857.38158 861.49218,861.03906 865.53125,861.40625 C 873.24994,862.10796 883.33867,869.86047 891.96875,873.31250 C 906.54655,879.14361 894.74782,894.74768 891.96875,899.75000 C 886.61834,909.38075 885.35096,932.81610 895.93750,920.90625 C 907.25289,908.17646 927.94039,903.69590 934.28125,887.84375 C 940.27486,872.85972 925.96038,867.20200 919.75000,854.78125 C 912.94162,841.16450 925.78361,833.60281 931.62500,827.03125 C 995.09922,835.11177 924.24911,880.92665 968.65625,879.90625 C 975.23268,876.25268 972.86072,803.91891 980.56250,803.21875 C 989.26117,802.42797 1008.8630,807.73014 1021.8438,808.34375 C 1022.4787,801.04649 1022.8750,793.67982 1022.8750,786.21875 C 1022.8750,702.69263 982.20861,628.63106 919.65625,582.65625 z " /> <path id="path2273" style="fill:#18551f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 655.32722,630.03897 C 641.98710,640.71107 672.08415,655.15817 679.12436,655.15817 C 700.96110,655.15817 710.38957,660.12381 714.82006,637.97135 C 717.74779,623.33269 736.13712,619.81201 743.90545,615.49628 C 752.84080,610.53219 744.93446,594.87941 747.87163,585.08883 C 752.15017,570.82704 733.12453,571.33170 725.39656,569.22407 C 709.97641,565.01857 698.92989,578.50392 691.02292,586.41089 C 684.35819,593.07562 669.22800,590.10502 661.93754,593.02121 C 646.36521,599.25014 675.35654,606.24183 681.76848,606.24183 C 695.52283,603.59770 666.88983,620.78888 655.32722,630.03897 z " /> <path id="path2275" style="opacity:0.099999972;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 568.18750,644.40625 C 518.37924,710.56969 506.02168,802.87199 537.06122,879.72647 C 565.17301,951.33820 628.99006,1008.7189 704.04223,1026.5028 C 712.51780,1029.0206 719.09197,1020.9521 726.03285,1017.2641 C 727.81574,1014.6500 715.65768,1016.8206 711.70916,1015.0703 C 701.71784,1013.3284 690.39424,1009.0878 685.71875,999.34375 C 680.37898,988.30241 691.08569,979.31509 694.05637,969.35193 C 694.19270,966.36595 686.58063,973.68019 682.92103,973.77971 C 673.25451,976.30241 665.14979,968.17720 657.37784,963.68475 C 647.72164,957.44422 641.62953,944.16910 648.41304,933.67460 C 652.57168,928.29626 652.27474,923.55922 645.50063,920.97969 C 632.16569,911.68729 616.88199,901.45420 613.91617,884.16335 C 612.51081,873.38952 626.59067,867.62877 634.88882,872.84504 C 645.12373,875.88026 654.30336,881.42984 664.03125,885.68750 C 661.05661,878.45086 655.93602,868.03258 662.49324,861.47261 C 672.70468,855.90215 685.03357,857.03535 695.60779,852.16962 C 699.36902,850.54499 706.85772,849.57638 707.86265,846.15458 C 697.52178,826.86016 676.08045,813.01972 674.39657,789.58757 C 674.51617,784.46394 674.76014,777.60868 668.25153,776.59640 C 657.09561,771.36225 640.80599,768.33845 637.81250,754.31250 C 636.76895,747.02308 641.90199,739.97546 641.21549,733.14418 C 631.90553,718.11962 612.41351,717.54866 596.65625,716.78125 C 585.97091,715.62856 577.23505,705.95527 578.64709,695.00645 C 577.97458,682.52727 587.87342,673.19094 597.61348,667.14427 C 602.76479,663.79110 603.10126,657.23780 599.12859,652.86860 C 594.58339,643.95207 586.93084,636.87622 578.15625,632.18750 C 574.83333,636.26042 571.51042,640.33333 568.18750,644.40625 z " /> <path id="path2277" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 919.37500,590.09375 C 898.29141,600.08693 884.72487,620.70788 874.20936,640.52866 C 873.54971,652.87632 858.98983,655.47392 849.25510,657.47334 C 839.33904,659.48865 825.10504,660.60223 823.10159,673.00100 C 820.88136,680.28952 820.24041,689.50025 827.00000,694.59375 C 831.74293,703.44393 821.30223,709.41807 814.53125,712.40625 C 807.43904,718.49610 813.62889,728.51152 812.31906,736.40610 C 813.44124,743.41168 807.01197,748.87655 806.62500,755.18750 C 809.61107,760.51338 816.32367,763.57831 821.93679,764.89706 C 830.40467,762.68375 833.71627,752.88257 838.43750,746.37500 C 846.31132,730.65509 848.73782,709.78081 865.89502,700.88085 C 872.80806,695.61900 880.86666,702.13224 881.56250,709.62500 C 881.77949,721.78476 883.24024,733.92725 883.36635,746.08849 C 883.80310,754.50241 879.13324,761.77081 877.90625,769.75000 C 883.21804,770.01381 891.15411,773.44787 889.40625,780.31250 C 886.43351,786.61567 878.54840,787.05580 873.03125,790.00000 C 875.05234,800.86303 871.24782,811.82104 864.88544,820.47050 C 860.45931,830.86159 857.52199,842.30876 850.12500,851.00000 C 860.60124,854.85022 872.97436,854.77049 883.35368,859.97934 C 892.19442,865.51028 905.29528,868.26033 908.62062,879.45184 C 910.35779,892.21800 899.28802,902.23593 897.81250,914.53125 C 908.27941,904.30020 924.25153,899.87559 931.73404,886.79806 C 937.15865,876.81953 925.91795,869.69951 921.46737,862.06510 C 913.55808,853.15402 914.91462,839.32929 923.13220,831.11574 C 927.95921,826.11871 933.93296,819.01026 941.68561,822.25164 C 955.22896,823.19276 970.88128,832.82483 969.53125,848.09375 C 968.83115,856.51118 963.23641,864.00746 963.81250,872.56250 C 968.83380,876.72366 970.77585,869.70056 970.01113,865.75989 C 972.99959,844.39633 971.01999,822.02173 978.25000,801.46875 C 986.01067,792.90788 997.96689,799.58417 1007.5857,799.80942 C 1013.0916,799.85509 1022.8492,805.04161 1020.5092,795.60079 C 1024.0741,718.78507 988.47279,641.54970 928.28591,593.81944 C 925.84158,591.81764 922.79052,588.51735 919.37500,590.09375 z " /> <path id="path2279" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 716.03125,572.90625 C 702.00437,577.21624 695.15670,594.98492 679.18750,594.81250 C 671.16243,594.84622 667.23312,596.19819 677.48405,597.43962 C 682.27451,598.71366 689.80722,595.91811 690.87803,602.65496 C 692.32034,611.69758 681.43665,615.74735 675.74416,620.54906 C 669.86694,624.68076 663.92700,628.77405 658.71875,633.75000 C 661.15812,641.11726 670.07831,643.83205 676.71540,646.12510 C 685.40474,647.98036 695.16304,648.43926 703.50914,645.87681 C 710.54103,638.43112 709.02421,625.44226 718.57500,619.72268 C 725.09564,613.40123 736.48303,613.05725 741.56332,605.69198 C 742.94075,596.91328 740.18862,588.05072 741.90625,579.28125 C 737.78697,573.22676 728.89717,575.02229 722.62390,572.95074 C 720.44632,572.45909 718.23369,572.88570 716.03125,572.90625 z " /> </g> </g> </svg> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/gnoemoe-logo.svg��������������������������������������������������������������0000644�0001750�0001750�00000126101�10416206432�016740� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg id="svg1" sodipodi:version="0.32" inkscape:version="0.39" width="48.000000pt" height="48.000000pt" sodipodi:docbase="/home/jesse/icecrewcvs/GnoeMoe" sodipodi:docname="gnoemoe-logo.svg" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs id="defs3"> <linearGradient id="linearGradient2676"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2677" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2678" /> </linearGradient> <linearGradient id="linearGradient2665"> <stop style="stop-color:#2f2f2f;stop-opacity:1.0000000;" offset="0.0000000" id="stop2666" /> <stop style="stop-color:#2f2f2f;stop-opacity:0.0000000;" offset="1.0000000" id="stop2667" /> </linearGradient> <linearGradient id="linearGradient2655"> <stop style="stop-color:#212121;stop-opacity:0.0000000;" offset="0.0000000" id="stop2656" /> <stop style="stop-color:#212121;stop-opacity:1.0000000;" offset="1.0000000" id="stop2658" /> </linearGradient> <linearGradient id="linearGradient2648"> <stop style="stop-color:#212121;stop-opacity:0.0000000;" offset="0.0000000" id="stop2649" /> <stop style="stop-color:#212121;stop-opacity:1.0000000;" offset="0.50000000" id="stop2650" /> <stop style="stop-color:#212121;stop-opacity:1.0000000;" offset="1.0000000" id="stop2651" /> </linearGradient> <linearGradient id="linearGradient2627"> <stop style="stop-color:#3f3f3f;stop-opacity:1.0000000;" offset="0.0000000" id="stop2628" /> <stop style="stop-color:#3f3f3f;stop-opacity:1.0000000;" offset="0.50000000" id="stop2630" /> <stop style="stop-color:#ff3a03;stop-opacity:1.0000000;" offset="1.0000000" id="stop2629" /> </linearGradient> <linearGradient id="linearGradient2619"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2620" /> <stop style="stop-color:#bb7733;stop-opacity:1.0000000;" offset="1.0000000" id="stop2621" /> </linearGradient> <linearGradient id="linearGradient2614"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2615" /> <stop style="stop-color:#bb7733;stop-opacity:1.0000000;" offset="1.0000000" id="stop2616" /> </linearGradient> <linearGradient id="linearGradient2610"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2611" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2612" /> </linearGradient> <linearGradient id="linearGradient2524"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2525" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2526" /> </linearGradient> <linearGradient id="linearGradient2517"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2518" /> <stop style="stop-color:#ffff00;stop-opacity:1.0000000;" offset="0.50000000" id="stop2520" /> <stop style="stop-color:#ffff00;stop-opacity:1.0000000;" offset="0.75000000" id="stop2521" /> <stop style="stop-color:#7f7f00;stop-opacity:1.0000000;" offset="0.75000000" id="stop2522" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop2519" /> </linearGradient> <linearGradient id="linearGradient2509"> <stop style="stop-color:#000;stop-opacity:1;" offset="0" id="stop2510" /> <stop style="stop-color:#fff;stop-opacity:1;" offset="1" id="stop2511" /> </linearGradient> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2524" id="linearGradient2512" x1="0.37719297" y1="0.32236841" x2="0.49561402" y2="0.96052629" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2610" id="linearGradient2609" x1="0.44571429" y1="0.059999999" x2="0.64857143" y2="0.75333333" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2614" id="linearGradient2613" x1="0.037500001" y1="0.51973683" x2="0.55000001" y2="0.81578946" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2614" id="linearGradient2617" x1="-0.069230773" y1="0.61842108" x2="0.27692309" y2="0.86184210" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2619" id="linearGradient2618" x1="1.7826087" y1="0.96052629" x2="8.3427189e-15" y2="0.40789473" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2614" id="linearGradient2622" x1="-0.35135135" y1="0.74342108" x2="0.64864862" y2="0.65789473" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2614" id="linearGradient2623" x1="4.0435971e-14" y1="0.50000000" x2="0.36956522" y2="0.24342105" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2655" id="linearGradient2624" x1="0.45454547" y1="0.35526314" x2="0.81818181" y2="0.80263156" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2619" id="linearGradient2625" x1="1.3596492" y1="0.74342108" x2="0.76315790" y2="0.52631581" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2610" id="radialGradient2633" cx="0.47692308" cy="0.69078946" r="0.33903649" fx="0.48461536" fy="0.69736838" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2665" id="radialGradient2664" cx="0.50000000" cy="0.50000000" r="0.50000000" fx="0.50000000" fy="0.50000000" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="radialGradient2680" cx="0.40659341" cy="0.48684210" r="0.29306078" fx="0.40659341" fy="0.49342105" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2610" id="radialGradient2682" cx="0.092307694" cy="-0.21710527" r="0.33903649" fx="0.084615365" fy="-0.20394737" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="radialGradient2684" cx="0.65384614" cy="0.31578946" r="0.26406428" fx="0.65384614" fy="0.32894737" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient2686" x1="-0.024096385" y1="4.8799825e-15" x2="0.25903615" y2="0.35526314" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="radialGradient2688" cx="0.47252747" cy="0.40131578" r="0.32444274" fx="0.39560434" fy="0.48684207" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2610" id="radialGradient2705" cx="0.10769231" cy="-0.13815789" r="0.23086299" fx="0.13076918" fy="-0.13157894" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2619" id="linearGradient2719" x1="0.23595506" y1="0.79605263" x2="0.38202247" y2="0.96710527" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient2721" x1="-0.057971016" y1="0.74342108" x2="0.24637681" y2="0.42763159" spreadMethod="pad" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2665" id="radialGradient2723" cx="0.49549550" cy="0.38888890" r="0.66668981" fx="0.49999997" fy="0.38888884" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient2725" x1="-0.33870968" y1="0.37500000" x2="0.20967741" y2="0.80263156" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient2759" x1="0.94674557" y1="0.93421054" x2="0.62426037" y2="0.75657892" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2665" id="radialGradient2768" cx="0.32575756" cy="0.42105263" r="0.41422856" fx="0.27272728" fy="0.44078946" /> <radialGradient inkscape:collect="always" xlink:href="#linearGradient2610" id="radialGradient2771" cx="0.32307693" cy="0.67763156" r="0.34615383" fx="0.32307690" fy="0.68421048" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient2773" x1="-0.024096385" y1="-2.3035188e-14" x2="0.34337351" y2="0.17105263" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2665" id="linearGradient2775" x1="0.50000000" y1="-0.046052631" x2="0.41176471" y2="0.36842105" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient3191" x1="0.98947370" y1="-2.1497310e-14" x2="0.45263159" y2="0.50555557" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient2676" id="linearGradient3193" x1="0.82631576" y1="0.16111112" x2="0.45263159" y2="0.50555557" /> </defs> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="7.4081633" inkscape:cx="18.500001" inkscape:cy="32.896697" inkscape:window-width="603" inkscape:window-height="525" inkscape:window-x="198" inkscape:window-y="105" showgrid="false" inkscape:grid-bbox="false" /> <metadata id="metadata4"> <rdf:RDF id="RDF5"> <cc:Work rdf:about="" id="Work6"> <dc:format id="format7">image/svg+xml</dc:format> <dc:type id="type9" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path style="fill:url(#linearGradient2625);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 16.545811,42.369587 C 17.105294,42.641395 17.103344,43.344089 16.970919,43.862028 C 15.858845,45.608278 17.357053,47.107978 19.175195,46.559592 C 20.993334,46.011206 22.828667,46.121777 21.316488,48.427122 C 19.804309,50.732437 20.553743,53.316430 22.961822,53.782383 C 25.310958,55.156693 25.450099,57.913232 24.654388,59.680300 C 26.612317,58.664072 27.750123,55.977817 27.236539,53.718518 C 28.709795,54.541202 28.267856,55.802061 27.858457,56.910892 C 26.805995,58.253375 28.820610,57.584008 29.165279,56.168692 C 29.982433,54.809380 28.933525,54.080499 30.338265,52.992216 C 32.302545,51.694460 33.326673,49.702260 31.629342,48.355308 C 33.494655,51.071620 33.846741,45.191221 37.730454,43.040004 C 40.278180,44.161914 43.730595,34.955951 43.045086,29.087462 C 45.330702,25.376399 39.637009,8.1218713 36.990451,7.7322623 C 36.290439,7.5688053 35.578605,7.4997213 34.872771,7.5247693 C 32.755269,7.5998523 30.689286,8.4877223 28.842512,10.002840 C 25.129264,8.1526483 20.974906,9.6128123 17.986463,11.730732 C 15.353927,13.504190 13.164908,16.471942 9.7755401,16.670916 C 7.3836931,16.588152 5.6760184,14.067154 5.6189089,11.842443 C 5.2468576,8.6048623 7.4917453,4.9327363 10.594270,3.9732333 C 13.434580,3.0948433 16.540147,2.9888313 19.411365,2.6882863 C 21.618776,2.4572443 17.214858,0.63918030 15.971124,0.46957430 C 15.156335,0.35849230 14.363807,0.31067630 13.585784,0.32594530 C 11.251713,0.37172130 9.0513173,0.97719330 6.7446631,2.1296413 C 3.3333195,3.8339853 2.2985464,5.3869303 1.1158918,8.7139033 C 0.021664847,11.792137 0.0019601721,15.647788 1.3678088,18.706043 C 2.8865263,22.017928 6.3099274,24.345892 9.9487326,24.236850 C 10.251938,24.239220 11.221127,24.223442 11.523214,24.196953 L 11.625554,24.117160 C 11.230810,25.040426 10.834071,25.967772 10.468310,26.870579 C 9.9114693,28.245040 6.7212271,30.549124 9.7597943,30.525876 C 12.239202,30.104559 14.935602,29.867129 16.923684,28.115600 C 17.500470,27.683724 17.073643,28.854290 17.191349,30.206611 C 17.238166,30.431383 17.339718,30.645116 17.474756,30.829151 C 17.609791,31.013157 16.983692,32.219150 15.703460,31.754907 C 14.586535,30.763667 13.111656,32.032085 13.144930,33.319192 C 12.927376,35.017626 14.052238,36.500617 15.317711,37.469270 C 15.670921,37.776955 16.044025,38.069342 16.427724,38.339230 L 16.411978,38.347209 C 16.435007,38.592170 16.534390,38.814632 16.600913,39.049513 L 16.553682,39.057492 C 16.319270,40.002387 13.585748,40.546033 15.073670,41.515616 C 16.561592,42.485258 17.942012,42.507126 18.726470,42.433452" id="path2581" sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccccccc" /> <path style="fill:#2f2f2f;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 28.570036,10.055036 C 25.132324,8.1529783 20.977921,9.6091823 17.989474,11.727132 C 15.356939,13.500590 13.165301,16.468883 9.7759361,16.667856 C 7.3840891,16.585093 5.6737888,14.064995 5.6166793,11.840283 C 5.2446280,8.6027023 7.4942020,4.9297963 10.596724,3.9702943 C 13.437036,3.0918733 16.538218,2.9918013 19.409439,2.6912563 C 21.616853,2.4602143 17.217524,0.63522130 15.973788,0.46561330 C 12.714640,0.021230304 9.8170271,0.59442330 6.7414888,2.1310213 C 3.3301443,3.8353343 2.2983475,5.3884293 1.1156930,8.7153733 C 0.021465961,11.793607 0.0017711857,15.645239 1.3676198,18.703494 C 2.8863370,22.015378 6.3096979,24.342291 9.9485046,24.233281 C 10.251710,24.235650 11.223026,24.223771 11.525113,24.197283" id="path2498" sodipodi:nodetypes="ccccsssssccc" /> <path style="fill:url(#linearGradient2759);fill-opacity:0.12156863;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 31.697421,36.062292 C 30.948240,37.211530 29.092490,43.577620 24.638238,43.497197 C 22.605936,43.389655 20.843336,41.878557 18.724175,42.429462 C 17.939723,42.503137 16.560941,42.484208 15.073019,41.514596 C 13.585097,40.544983 16.322333,40.002717 16.556739,39.057822" id="path2486" sodipodi:nodetypes="ccccc" /> <path style="fill:url(#radialGradient2768);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 31.700193,36.064632 C 33.856104,34.022756 41.533326,36.960840 30.074415,46.996117 C 27.040566,49.653034 20.084264,46.285384 19.175195,46.559592 C 17.357053,47.107978 15.858845,45.608278 16.970919,43.862028 C 17.971662,42.905884 13.585748,40.546033 15.073670,41.515616 C 16.561592,42.485258 17.942012,42.507126 18.726470,42.433452 C 20.845628,41.882546 22.606344,43.387346 24.638643,43.494887 C 29.092895,43.575311 30.951009,37.213870 31.700193,36.064632 z " id="path2762" sodipodi:nodetypes="cscccccc" /> <path style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.5364780;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 24.338323,35.708351 C 25.213336,37.815532 24.099717,40.231628 22.787546,41.194311 C 21.200181,42.443921 18.804473,42.233368 17.444968,40.690742 C 16.875417,40.061212 16.498129,39.223439 16.415437,38.343820" id="path2507" sodipodi:nodetypes="cccc" /> <path style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#radialGradient2723);stroke-width:2.5364780;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 25.486577,36.382217 C 26.361586,38.489398 25.247971,40.905524 23.935800,41.868177 C 22.348434,43.117817 19.952727,42.907264 18.593220,41.364608 C 18.023672,40.735108 17.646385,39.897305 17.563693,39.017716" id="path2722" sodipodi:nodetypes="cccc" /> <path style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.2682390;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 24.180876,35.229469 C 25.292059,38.134766 24.099717,40.231628 22.787546,41.194311 C 21.200181,42.443921 18.804473,42.233368 17.444968,40.690742 C 16.875417,40.061212 16.498129,39.223439 16.415437,38.343820" id="path2527" sodipodi:nodetypes="cccc" /> <path style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#bbbb00;stroke-width:0.47558972;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 24.653219,34.750617 C 26.315471,38.853029 23.942270,42.546123 20.189652,42.471249" id="path2529" sodipodi:nodetypes="cc" /> <path style="fill:url(#linearGradient2512);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 25.726638,34.939002 C 26.259033,34.143616 25.036793,33.257487 24.467316,34.045314 C 23.870117,34.508957 23.389021,35.103689 22.809760,35.588150" id="path2492" /> <path style="fill:url(#linearGradient2775);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 22.533560,50.822910 C 23.278566,52.970318 26.750859,49.253436 25.940066,48.209849 C 24.541141,47.025634 23.044241,46.953490 22.627990,46.333980 C 20.809849,46.882366 22.080077,49.515795 22.533560,50.822910 z " id="path2774" sodipodi:nodetypes="cccs" /> <path style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 25.940066,48.209849 C 24.318476,46.122677 21.485583,46.502026 19.176677,46.559742 C 17.358538,47.108128 15.858452,45.604918 16.970523,43.858668 C 17.102948,43.340729 17.108642,42.639596 16.549158,42.367787" id="path2493" /> <path style="fill:url(#linearGradient2623);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 21.315756,48.426222 C 19.803578,50.731567 20.550548,53.314300 22.958627,53.780193 C 25.307763,55.154533 25.451677,57.915902 24.655966,59.682940 C 26.613898,58.666771 27.748749,55.974007 26.329837,54.033943 C 26.271053,53.943770 26.212278,53.853597 26.153495,53.763395" id="path2494" sodipodi:nodetypes="ccccc" /> <path style="fill:url(#linearGradient2624);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 31.631526,48.354108 C 33.328857,49.701060 32.302059,51.692000 30.337779,52.989787 C 28.933042,54.078070 29.983315,54.810250 29.166161,56.169532 C 28.821489,57.584848 26.804882,58.256644 27.857345,56.914162 C 28.266740,55.805331 28.713437,54.544712 28.145506,53.402793" id="path2495" sodipodi:nodetypes="ccccc" /> <path style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 42.729870,31.981899 C 43.562736,35.121838 42.176095,38.420253 40.021617,40.861818 C 37.820067,43.356688 33.914760,45.418783 33.410106,48.931112" id="path2496" sodipodi:nodetypes="csc" /> <path style="fill:#2f2f2f;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 49.688641,27.469151 C 52.587946,30.161165 51.610003,35.104229 48.721632,37.398745 C 46.521508,39.752837 43.366005,41.051703 40.169910,40.935822 C 38.686614,41.046423 36.032238,40.575611 35.334753,41.923973 C 38.554026,43.489938 42.086419,45.144845 45.760962,44.684382 C 50.286772,43.779564 55.087495,41.950311 57.853294,38.000557 C 60.138916,34.289524 60.145267,29.433874 58.634389,25.430395 C 57.087283,22.080743 54.260413,19.434414 50.911785,17.997950 C 47.968434,16.558785 45.219423,14.684895 43.122915,12.110831 C 41.438553,10.211653 39.639019,8.1204013 36.992461,7.7307323 C 34.192416,7.0769343 31.212750,7.9995413 29.117757,9.9505543 C 29.039124,10.005240 28.724417,10.223683 28.645699,10.278188" id="path2497" /> <rect style="fill:#2f2f2f;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect2645" width="13.359918" height="5.8691216" x="21.975943" y="10.014898" /> <path style="fill:url(#linearGradient2617);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 20.468021,16.178655 C 18.216267,17.159097 15.288346,16.767928 14.044945,19.309475 C 12.582296,21.605941 11.496840,24.335092 10.468969,26.872169 C 9.9121263,28.246659 6.7244443,30.547354 9.7630130,30.524106 C 12.242421,30.102789 14.937965,29.869229 16.926051,28.117729 C 17.525434,27.668935 18.006003,27.089232 18.541173,26.572613" id="path2491" sodipodi:nodetypes="ccsccc" /> <path style="fill:url(#linearGradient2719);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 9.5078783,30.270446 C 13.167749,27.032566 16.903591,29.286886 18.797319,22.129879 C 18.687056,22.083592 19.963358,25.494319 18.537532,26.575313 C 18.002361,27.091901 17.523067,27.666836 16.923684,28.115600 C 14.935602,29.867129 12.239202,30.104559 9.7597943,30.525876" id="path2707" sodipodi:nodetypes="ccccc" /> <path style="fill:url(#linearGradient2725);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 22.880905,15.537607 C 20.758925,15.520808 19.193335,17.146198 18.519641,19.039257 C 17.678498,21.024497 19.789439,22.707393 19.270774,24.685494 C 18.952083,26.663206 17.011187,28.113110 17.193415,30.206701 C 17.240233,30.431473 17.338986,30.643916 17.474021,30.827921" id="path2490" /> <path style="fill:url(#radialGradient2633);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 49.688641,27.469151 C 52.587946,30.161165 51.610003,35.104229 48.721632,37.398745 C 46.521508,39.752837 43.366005,41.051703 40.169910,40.935822 C 38.686614,41.046423 36.032238,40.575611 35.334753,41.923973 C 38.554026,43.489938 42.086419,45.144845 45.760962,44.684382 C 50.286772,43.779564 55.087495,41.950311 57.853294,38.000557 C 60.138916,34.289524 60.145267,29.433874 58.634389,25.430395 C 57.087283,22.080743 54.260413,19.434414 50.911785,17.997950 C 47.968434,16.558785 45.219423,14.684895 43.122915,12.110831 C 41.438553,10.211653 39.639019,8.1204013 36.992461,7.7307323 C 34.192416,7.0769343 31.212750,7.9995413 29.117757,9.9505543 C 29.039124,10.005240 28.724417,10.223683 28.645699,10.278188" id="path2632" /> <path style="fill:url(#linearGradient2622);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 24.090337,49.075340 C 24.310673,50.204749 22.710620,50.789853 23.052313,51.923041 C 23.597775,53.278453 25.382482,53.762404 25.655495,55.278033" id="path2501" /> <path sodipodi:type="arc" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2502" sodipodi:cx="139.36806" sodipodi:cy="134.82051" sodipodi:rx="2.8240740" sodipodi:ry="2.6828704" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 0 136.54398,134.82051 A 2.8240740 2.6828704 0 1 0 142.19213 134.82051 z" transform="matrix(-0.503835,0.000000,0.000000,0.510781,101.4230,-44.74339)" /> <path sodipodi:type="arc" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2503" sodipodi:cx="139.36806" sodipodi:cy="134.82051" sodipodi:rx="2.8240740" sodipodi:ry="2.6828704" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 0 136.54398,134.82051 A 2.8240740 2.6828704 0 1 0 142.19213 134.82051 z" transform="matrix(-0.358137,0.000000,0.000000,0.378900,69.94423,-27.11202)" /> <path sodipodi:type="arc" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2504" sodipodi:cx="139.36806" sodipodi:cy="134.82051" sodipodi:rx="2.8240740" sodipodi:ry="2.6828704" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 0 136.54398,134.82051 A 2.8240740 2.6828704 0 1 0 142.19213 134.82051 z" transform="matrix(-0.180298,0.000000,0.000000,0.190586,55.82677,-1.905338)" /> <path sodipodi:type="arc" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2505" sodipodi:cx="139.36806" sodipodi:cy="134.82051" sodipodi:rx="2.8240740" sodipodi:ry="2.6828704" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 0 136.54398,134.82051 A 2.8240740 2.6828704 0 1 0 142.19213 134.82051 z" transform="matrix(-0.131713,0.000000,0.000000,0.138376,37.98490,4.955712)" /> <path style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.47558972;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 16.106765,37.703581 C 15.861548,38.374177 15.951752,38.874867 16.161784,39.278905" id="path2989" sodipodi:nodetypes="cc" /> <path style="fill:url(#linearGradient2613);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 22.179307,21.073183 C 22.624264,22.359990 22.529285,23.826933 21.486786,24.794266 C 20.248461,26.320154 19.514263,28.168846 18.586299,29.888667 C 18.158545,31.014927 16.984856,32.222780 15.704623,31.758567 C 14.587699,30.767326 13.112964,32.033585 13.146238,33.320692 C 12.928684,35.019126 14.051179,36.504067 15.316652,37.472719 C 16.538773,38.537244 17.941733,39.430843 19.537176,39.771315" id="path2488" sodipodi:nodetypes="ccccccc" /> <path style="fill:url(#linearGradient2609);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 28.856938,34.506257 C 29.861221,32.220830 27.728006,29.970201 25.442726,30.280825 C 23.469652,30.462101 22.311810,32.357379 20.568877,33.100480 C 19.893829,33.516636 19.217318,33.945662 18.470027,34.217770" id="path2487" /> <path style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.47558972;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 24.102150,37.065082 C 24.111200,38.853029 23.560269,40.159184 22.393926,40.954900 C 21.348670,41.667943 19.906608,41.754546 18.547107,40.930152" id="path2528" sodipodi:nodetypes="css" /> <path style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 9.5078783,30.267176 C 13.167749,27.029296 16.903591,29.283616 18.797319,22.126609" id="path2530" sodipodi:nodetypes="cc" /> <path style="fill:url(#radialGradient2682);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 49.688641,27.469151 C 52.587946,30.161165 51.610003,35.104229 48.721632,37.398745 C 46.521508,39.752837 43.366005,41.051703 40.169910,40.935822 C 38.686614,41.046423 36.032238,40.575611 35.334753,41.923973 C 38.554026,43.489938 42.086419,45.144845 45.760962,44.684382 C 50.286772,43.779564 55.087495,41.950311 57.853294,38.000557 C 60.138916,34.289524 60.145267,29.433874 58.634389,25.430395 C 57.087283,22.080743 54.260413,19.434414 50.911785,17.997950 C 47.968434,16.558785 45.219423,14.684895 43.122915,12.110831 C 41.438553,10.211653 39.639019,8.1204013 36.992461,7.7307323 C 34.192416,7.0769343 31.212750,7.9995413 29.117757,9.9505543 C 29.039124,10.005240 28.724417,10.223683 28.645699,10.278188" id="path2690" /> <rect style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect2663" width="16.811230" height="5.5305181" x="20.751286" y="12.120670" /> <path style="fill:url(#radialGradient2705);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 49.688641,27.469151 C 52.587946,30.161165 51.610003,35.104229 48.721632,37.398745 C 46.521508,39.752837 43.366005,41.051703 40.169910,40.935822 C 38.686614,41.046423 36.032238,40.575611 35.334753,41.923973 C 38.554026,43.489938 42.086419,45.144845 45.760962,44.684382 C 50.286772,43.779564 55.087495,41.950311 57.853294,38.000557 C 60.138916,34.289524 60.145267,29.433874 58.634389,25.430395 C 57.087283,22.080743 54.260413,19.434414 50.911785,17.997950 C 47.968434,16.558785 45.219423,14.684895 43.122915,12.110831 C 41.438553,10.211653 39.639019,8.1204013 36.992461,7.7307323 C 34.192416,7.0769343 31.212750,7.9995413 29.117757,9.9505543 C 29.039124,10.005240 28.724417,10.223683 28.645699,10.278188" id="path2681" /> <path style="fill:#000000;fill-opacity:0.18431373;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:0.49803922;" d="M 49.939180,36.537214 C 51.028542,36.817782 49.785208,36.155015 51.749719,37.500107 C 53.206863,38.447581 53.934568,38.033284 53.123088,36.413174 C 51.137586,33.319432 48.879247,36.187562 49.939180,36.537214 z " id="path2732" sodipodi:nodetypes="cccc" /> <path style="fill:#000000;fill-opacity:0.18431373;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 42.574713,31.600630 C 44.190160,33.618298 42.679755,31.628347 42.920829,33.979079 C 39.274590,31.351380 37.638972,26.793605 37.749840,23.222961" id="path2760" sodipodi:nodetypes="ccc" /> <path style="fill:url(#radialGradient2771);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 49.688641,27.469151 C 52.587946,30.161165 51.610003,35.104229 48.721632,37.398745 C 46.521508,39.752837 43.366005,41.051703 40.169910,40.935822 C 38.686614,41.046423 36.032238,40.575611 35.334753,41.923973 C 38.554026,43.489938 42.086419,45.144845 45.760962,44.684382 C 50.286772,43.779564 55.087495,41.950311 57.853294,38.000557 C 60.138916,34.289524 60.145267,29.433874 58.634389,25.430395 C 57.087283,22.080743 54.260413,19.434414 50.911785,17.997950 C 47.968434,16.558785 45.219423,14.684895 43.122915,12.110831 C 41.438553,10.211653 39.639019,8.1204013 36.992461,7.7307323 C 34.192416,7.0769343 31.212750,7.9995413 29.117757,9.9505543 C 29.039124,10.005240 28.724417,10.223683 28.645699,10.278188" id="path2770" /> <path style="fill:url(#linearGradient2618);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 34.761822,15.898238 C 39.448558,14.961653 44.503003,17.212103 47.139349,21.220141 C 48.754800,23.237781 49.189534,25.880299 49.462060,28.383478 C 49.622203,29.854470 50.364826,31.124868 50.861928,32.448602 C 51.302809,33.622618 52.958296,34.268196 52.736200,35.710781 C 51.511366,36.271076 50.583675,34.929733 49.547479,34.520296 C 46.873549,33.463630 43.904415,32.873218 41.584839,31.047834 C 38.717925,28.758749 37.638972,24.878199 37.749840,21.307555" id="path2489" sodipodi:nodetypes="ccsscscc" /> <path style="fill:url(#radialGradient2680);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 28.570036,10.693505 C 25.132324,8.7914473 20.977921,10.247680 17.989474,12.365601 C 15.356939,14.139089 13.165301,17.107321 9.7759361,17.306355 C 7.3840891,17.223562 5.6737888,14.703464 5.6166793,12.478782 C 5.2446280,9.2411713 7.4942020,5.5682663 10.596724,4.6087623 C 13.437036,3.7303723 16.538218,3.6303003 19.409439,3.3297553 C 21.616853,3.0987143 17.217524,1.2736593 15.973788,1.1040833 C 12.714640,0.65972930 9.8170271,1.2328933 6.7414888,2.7694893 C 3.3301443,4.4738333 2.2983475,6.0268983 1.1156930,9.3538423 C 0.021465961,12.432076 0.0017711857,16.283707 1.3676198,19.341962 C 2.8863370,22.653847 6.3096979,24.980760 9.9485046,24.871779 C 10.251710,24.874119 11.223026,24.862240 11.525113,24.835782" id="path2674" sodipodi:nodetypes="ccccsssssccc" /> <path style="fill:url(#radialGradient2684);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 28.570036,10.693505 C 25.132324,8.7914473 20.977921,10.247680 17.989474,12.365601 C 15.356939,14.139089 13.165301,17.107321 9.7759361,17.306355 C 7.3840891,17.223562 5.6737888,14.703464 5.6166793,12.478782 C 5.2446280,9.2411713 7.4942020,5.5682663 10.596724,4.6087623 C 13.437036,3.7303723 16.538218,3.6303003 19.409439,3.3297553 C 21.616853,3.0987143 17.217524,1.2736593 15.973788,1.1040833 C 12.714640,0.65972930 9.8170271,1.2328933 6.7414888,2.7694893 C 3.3301443,4.4738333 2.2983475,6.0268983 1.1156930,9.3538423 C 0.021465961,12.432076 0.0017711857,16.283707 1.3676198,19.341962 C 2.8863370,22.653847 6.3096979,24.980760 9.9485046,24.871779 C 10.251710,24.874119 11.223026,24.862240 11.525113,24.835782" id="path2683" sodipodi:nodetypes="ccccsssssccc" /> <path style="fill:url(#linearGradient2686);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 5.6166793,11.840283 C 5.2446280,8.6027023 7.4942020,4.9297963 10.596724,3.9702943 C 13.437036,3.0918733 16.538218,2.9918013 19.409439,2.6912563 C 21.616853,2.4602143 17.217524,0.63522130 15.973788,0.46561330 C 12.714640,0.021230304 9.8170271,0.59442330 6.7414888,2.1310213 C 3.3301443,3.8353343 2.2983475,5.3884293 1.1156930,8.7153733 C 0.021465961,11.793607 0.0017711857,15.645239 1.3676198,18.703494" id="path2685" sodipodi:nodetypes="csssssc" /> <path style="fill:url(#linearGradient2721);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 34.761822,15.898238 C 39.448558,14.961653 44.503003,17.212103 47.139349,21.220141 C 48.754800,23.237781 49.189534,25.880299 49.462060,28.383478 C 49.622203,29.854470 50.364826,31.124868 50.861928,32.448602 C 51.302809,33.622618 52.958296,34.268196 52.736200,35.710781 C 51.511366,36.271076 50.583675,34.929733 49.547479,34.520296 C 46.873549,33.463630 43.904415,32.873218 41.584839,31.047834 C 38.717925,28.758749 37.638972,24.878199 37.749840,21.307555" id="path2720" sodipodi:nodetypes="ccsscscc" /> <path style="fill:url(#linearGradient2773);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:2.5000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 5.6166793,11.840283 C 5.2446280,8.6027023 7.4942020,4.9297963 10.596724,3.9702943 C 13.437036,3.0918733 16.538218,2.9918013 19.409439,2.6912563 C 21.616853,2.4602143 17.217524,0.63522130 15.973788,0.46561330 C 12.714640,0.021230304 9.8170271,0.59442330 6.7414888,2.1310213 C 3.3301443,3.8353343 2.2983475,5.3884293 1.1156930,8.7153733 C 0.021465961,11.793607 0.0017711857,15.645239 1.3676198,18.703494" id="path2772" sodipodi:nodetypes="csssssc" /> <path style="fill:url(#radialGradient2688);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 28.570036,10.055036 C 25.132324,8.1529783 20.977921,9.6091823 17.989474,11.727132 C 15.356939,13.500590 13.165301,16.468883 9.7759361,16.667856 C 7.3840891,16.585093 5.6737888,14.064995 5.6166793,11.840283 C 5.2446280,8.6027023 7.4942020,4.9297963 10.596724,3.9702943 C 13.437036,3.0918733 16.538218,2.9918013 19.409439,2.6912563 C 21.616853,2.4602143 17.217524,0.63522130 15.973788,0.46561330 C 12.714640,0.021230304 9.8170271,0.59442330 6.7414888,2.1310213 C 3.3301443,3.8353343 2.2983475,5.3884293 1.1156930,8.7153733 C 0.021465961,11.793607 0.0017711857,15.645239 1.3676198,18.703494 C 2.8863370,22.015378 6.3096979,24.342291 9.9485046,24.233281 C 10.251710,24.235650 11.223026,24.223771 11.525113,24.197283" id="path2687" sodipodi:nodetypes="ccccsssssccc" /> <rect style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3185" width="16.811230" height="5.5305181" x="20.751286" y="12.120670" /> <rect style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3186" width="16.811230" height="5.5305181" x="20.751286" y="12.120670" /> <rect style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3187" width="16.811230" height="5.5305181" x="20.751286" y="12.120670" /> <rect style="fill:url(#radialGradient2664);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3188" width="16.811230" height="5.5305181" x="20.751286" y="12.759109" /> <path sodipodi:type="arc" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient3193);stroke-width:0.93750000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3190" sodipodi:cx="139.36806" sodipodi:cy="134.82051" sodipodi:rx="2.8240740" sodipodi:ry="2.6828704" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 0 136.54398,134.82051 A 2.8240740 2.6828704 0 1 0 142.19213 134.82051 z" transform="matrix(-0.354699,0.000000,0.000000,0.359590,80.63839,-24.35974)" /> <path sodipodi:type="arc" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient3191);stroke-width:0.72265625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3192" sodipodi:cx="139.36806" sodipodi:cy="134.82051" sodipodi:rx="2.8240740" sodipodi:ry="2.6828704" d="M 142.19213 134.82051 A 2.8240740 2.6828704 0 1 0 136.54398,134.82051 A 2.8240740 2.6828704 0 1 0 142.19213 134.82051 z" transform="matrix(-0.312135,0.000000,0.000000,0.316442,63.48142,-18.65480)" /> <path style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.63411951;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 33.858882,23.763818 C 32.750625,23.007489 32.030891,22.787366 30.657417,22.745430 C 30.179103,22.770718 29.577464,22.639838 29.212655,23.038536" id="path2499" sodipodi:nodetypes="ccc" /> <path style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.47558972;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" d="M 21.537167,23.399137 C 20.730427,22.920585 20.037875,22.800296 19.120029,22.898867 C 18.846788,23.113440 18.942838,22.873159 18.683459,23.110651" id="path2500" sodipodi:nodetypes="ccc" /> </svg> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/���������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�015507� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/Makefile.am����������������������������������������������������������0000644�0001750�0001750�00000000452�10410766736�017552� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������iconsdir = $(pkgdatadir)/pixmaps/userlist icons_DATA = idleaway.svg \ idle.svg \ away.svg \ friend.svg \ inhabitant.svg \ inhabitantplus.svg \ key.svg \ newbie.svg \ schooled.svg \ star.svg \ wizard.svg EXTRA_DIST = $(icons_DATA) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/Makefile.in����������������������������������������������������������0000644�0001750�0001750�00000030201�10517752445�017556� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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/userlist DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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)$(iconsdir)" iconsDATA_INSTALL = $(INSTALL_DATA) DATA = $(icons_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ iconsdir = $(pkgdatadir)/pixmaps/userlist icons_DATA = idleaway.svg \ idle.svg \ away.svg \ friend.svg \ inhabitant.svg \ inhabitantplus.svg \ key.svg \ newbie.svg \ schooled.svg \ star.svg \ wizard.svg EXTRA_DIST = $(icons_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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/userlist/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/userlist/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-iconsDATA: $(icons_DATA) @$(NORMAL_INSTALL) test -z "$(iconsdir)" || $(mkdir_p) "$(DESTDIR)$(iconsdir)" @list='$(icons_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(iconsdir)/$$f'"; \ $(iconsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(iconsdir)/$$f"; \ done uninstall-iconsDATA: @$(NORMAL_UNINSTALL) @list='$(icons_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(iconsdir)/$$f'"; \ rm -f "$(DESTDIR)$(iconsdir)/$$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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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)$(iconsdir)"; 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 distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconsDATA install-exec-am: install-info: install-info-am install-man: 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-iconsDATA uninstall-info-am .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-exec install-exec-am \ install-iconsDATA install-info install-info-am install-man \ 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-iconsDATA uninstall-info-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: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/idleaway.svg���������������������������������������������������������0000644�0001750�0001750�00000036730�10410766736�020046� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient3124" inkscape:collect="always" xlink:href="#linearGradient2954" /> <radialGradient cx="0.81666684" cy="0.86111093" r="0.63335794" fx="0.82222235" fy="0.85555542" id="radialGradient2957" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.98351645" y1="0.98333335" x2="0.23076923" y2="0.17777778" id="linearGradient2915" inkscape:collect="always" xlink:href="#linearGradient2907" /> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient2952" inkscape:collect="always" xlink:href="#linearGradient2946" /> <linearGradient x1="0.34615386" y1="0.27222222" x2="0.98901099" y2="0.99444443" id="linearGradient2913" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="matrix(0.870990,0.000000,0.000000,0.874807,-179.5880,-31.53432)" style="stroke-linecap:round;stroke-linejoin:round;" id="g842"> <path d="M 124.36267 57.778187 A 7.7183714 7.7684908 0 1 0 108.92593,57.778187 A 7.7183714 7.7684908 0 1 0 124.36267 57.778187 z" transform="matrix(1.198851,0.000000,0.000000,1.191107,79.31174,-20.62342)" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path824" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.301979,0.000000,0.000000,1.301288,67.79584,-28.07474)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.5865387;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path825" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2913);stroke-width:0.54178977;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path826" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.25333717;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path827" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.191763,0.000000,0.000000,1.184580,80.60843,-21.23427)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2915);stroke-width:0.60939527;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path828" /> <path d="M 123.79466 57.694656 A 5.7135997 5.6801867 0 1 0 112.36746,57.694656 A 5.7135997 5.6801867 0 1 0 123.79466 57.694656 z" transform="matrix(1.211269,0.000000,0.000000,1.218512,76.12298,-22.10502)" style="fill:#ececf3;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path829" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2957);stroke-width:0.25333717;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path830" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.179335,0.000000,0.000000,1.179308,82.05316,-20.92520)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient3124);stroke-width:0.21919590;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path831" /> <rect width="1.0204374" height="4.0817494" x="-184.82507" y="115.64051" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect832" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,116.1740,1.567967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path833" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,127.4240,1.567967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path834" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,121.7990,7.192967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path835" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,121.7990,-4.057033)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path836" /> <rect width="1.0204374" height="4.0817494" x="-184.84271" y="112.10372" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect837" /> <rect width="1.0204378" height="4.0817513" x="112.95801" y="-188.59544" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect838" /> <rect width="1.0204381" height="4.0817523" x="112.97358" y="-187.03423" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect839" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(0.970462,0.000000,0.000000,0.970463,106.2717,-8.747276)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.64402282;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path840" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(-1.179335,0.000000,0.000000,-1.179308,356.2486,117.3184)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.21919590;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path841" /> </g> <path d="M 8.3354651,4.4211148 C 8.5569944,5.1059582 8.7834603,5.7956727 8.8937870,6.5088281 C 8.7560403,5.3737095 8.8687557,4.2233891 9.0197197,3.0952896 C 8.0225194,4.1700147 7.0944412,5.3063488 6.1271889,6.4077896 C 6.1782268,6.7788595 6.0238789,7.3562929 6.2063733,7.5952896 C 7.8698833,7.5952896 9.5333834,7.5952896 11.196893,7.5952896 C 11.135146,7.1775163 11.322378,6.5072977 11.099973,6.2524280 C 10.095577,6.2599689 9.0899267,6.2174400 8.0866452,6.2827896 C 9.0152310,5.2944373 9.9301018,4.2929446 10.821454,3.2704959 C 10.447219,3.3424473 10.102723,3.5931982 9.7475078,3.7522748 C 9.2825033,3.9867014 8.8198775,4.2289247 8.3354651,4.4211148 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ff0000;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:2.4940922;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text818" /> <path d="M -1.7763568e-15,6.3306406 C -1.7763568e-15,5.9385506 -1.7763568e-15,5.5464606 -1.7763568e-15,5.1543716 C 0.96806847,4.0519846 1.9049449,2.9211866 2.9027424,1.8457776 C 2.0052591,1.8832936 1.1065616,1.8673056 0.20849113,1.8780036 C 0.20849113,1.4608496 0.20849113,1.0436946 0.20849113,0.62653957 C 1.7730107,0.62653957 3.3375302,0.62653957 4.9020497,0.62653957 C 4.9020497,0.98282157 4.9020497,1.3391046 4.9020497,1.6953866 C 3.9254218,2.8122656 2.9819168,3.9589156 1.9672394,5.0415786 C 2.9993143,4.9741756 4.0342457,5.0152336 5.0677637,5.0039806 C 5.0677637,5.4462006 5.0677637,5.8884206 5.0677637,6.3306406 C 3.3785058,6.3306406 1.6892579,6.3306406 -1.7763568e-15,6.3306406 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text821" /> <path d="M 6.2204963,7.5806406 C 6.2204963,7.1885506 6.2204963,6.7964606 6.2204963,6.4043716 C 7.1885648,5.3019846 8.1254412,4.1711866 9.1232387,3.0957776 C 8.2257554,3.1332936 7.3270579,3.1173056 6.4289875,3.1280036 C 6.4289875,2.7108496 6.4289875,2.2936946 6.4289875,1.8765396 C 7.9935070,1.8765396 9.5580265,1.8765396 11.122546,1.8765396 C 11.122546,2.2328216 11.122546,2.5891046 11.122546,2.9453866 C 10.145918,4.0622656 9.2024132,5.2089156 8.1877358,6.2915786 C 9.2198107,6.2241756 10.254742,6.2652336 11.288260,6.2539806 C 11.288260,6.6962006 11.288260,7.1384206 11.288260,7.5806406 C 9.5990022,7.5806406 7.9097542,7.5806406 6.2204963,7.5806406 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text870" /> </svg> ����������������������������������������gnoemoe-2.2.0/pixmaps/userlist/idle.svg�������������������������������������������������������������0000644�0001750�0001750�00000023255�10410766736�017162� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 3.7499495,0.69047613 C 2.7564195,0.70692713 1.9539395,1.5148171 1.9374495,2.5057001 L 1.8749495,2.5057001 L 1.8749495,12.520733 L 1.9374495,12.520733 C 1.9372795,12.531081 1.9374495,12.541642 1.9374495,12.552031 C 1.9374495,13.557377 2.7458095,14.382204 3.7499495,14.398553 C 3.7601495,14.398718 3.7709595,14.398553 3.7811995,14.398553 L 17.499950,14.398553 L 17.499950,14.304661 C 18.478900,14.288451 19.242330,13.491474 19.281200,12.520733 L 19.374950,12.520733 L 19.374950,2.5057001 L 19.312450,2.5057001 C 19.295950,1.5148141 18.493470,0.70692713 17.499950,0.69047613 L 17.499950,0.62788213 L 3.7499495,0.69047613 z " style="fill:#e7e7e7;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1582" /> <path d="M 4.9081495,9.4541103 C 4.9081495,9.0620203 4.9081495,8.6699303 4.9081495,8.2778403 C 5.8332495,7.2249683 6.7382695,6.1541593 7.6813095,5.1172891 C 8.0169095,4.8586881 7.4112895,5.0277891 7.2366095,4.9892221 C 6.5302895,4.9951521 5.8239495,4.9971101 5.1176295,5.0014731 C 5.1176295,4.5843181 5.1176295,4.1671631 5.1176295,3.7500081 C 6.6895695,3.7500081 8.2615095,3.7500081 9.8334495,3.7500081 C 9.8334495,4.1062911 9.8334495,4.4625731 9.8334495,4.8188561 C 9.0552495,5.7093271 8.2899695,6.6113433 7.5034595,7.4943773 C 7.2972095,7.7179343 7.0909595,7.9414913 6.8847195,8.1650473 C 7.8341295,8.0994263 8.7862995,8.1376173 9.7371495,8.1274493 C 9.8215195,8.1551413 10.029060,8.0596733 9.9999495,8.2008523 C 9.9999495,8.6186043 9.9999495,9.0363573 9.9999495,9.4541103 C 8.3026795,9.4541103 6.6054195,9.4541103 4.9081495,9.4541103 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text1516" /> <path d="M 11.158150,10.704110 C 11.158150,10.312020 11.158150,9.9199303 11.158150,9.5278403 C 12.083250,8.4749683 12.988270,7.4041593 13.931310,6.3672893 C 14.266910,6.1086881 13.661290,6.2777893 13.486610,6.2392223 C 12.780290,6.2451523 12.073950,6.2471103 11.367630,6.2514733 C 11.367630,5.8343181 11.367630,5.4171631 11.367630,5.0000081 C 12.939570,5.0000081 14.511510,5.0000081 16.083450,5.0000081 C 16.083450,5.3562911 16.083450,5.7125731 16.083450,6.0688561 C 15.305250,6.9593273 14.539970,7.8613433 13.753460,8.7443773 C 13.547210,8.9679343 13.340960,9.1914913 13.134720,9.4150473 C 14.084130,9.3494263 15.036300,9.3876173 15.987150,9.3774493 C 16.071520,9.4051413 16.279060,9.3096733 16.249950,9.4508523 C 16.249950,9.8686043 16.249950,10.286357 16.249950,10.704110 C 14.552680,10.704110 12.855420,10.704110 11.158150,10.704110 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text1519" /> <path d="M 4.2186995,13.158392 L 16.249950,13.158392 C 18.102860,13.220066 18.045960,12.334051 18.062450,11.343168 L 18.124950,3.0468851" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#bfbfbf;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1635" /> <path d="M 7.0812795,13.750031 C 7.1032495,14.791984 2.9365195,13.841465 2.9561295,13.593936 C 2.9757395,13.346408 3.0378995,13.102543 3.1366995,12.875715 C 3.3343095,12.422061 3.6784995,12.036557 4.1221295,11.826198 C 4.9949595,11.370192 6.1499895,11.679048 6.7002495,12.514711 C 6.9476195,12.872340 7.0825695,13.310386 7.0812795,13.750031 z " style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.2805939;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1616" /> <path d="M 228.70486 67.715950 A 2.5411651 2.5411651 0 1 0 223.62253,67.715950 A 2.5411651 2.5411651 0 1 0 228.70486 67.715950 z" transform="matrix(0.545196,0.000000,0.000000,0.545198,-121.4181,-18.80404)" style="fill:#e7e7e7;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.8341994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1615" /> <path d="M 228.70486 67.715950 A 2.5411651 2.5411651 0 1 0 223.62253,67.715950 A 2.5411651 2.5411651 0 1 0 228.70486 67.715950 z" transform="matrix(0.741589,0.000000,0.000000,0.743692,-162.7301,-36.62463)" style="fill:#e7e7e7;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.6831849;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1617" /> <path d="M 17.031200,1.9376041 L 4.9999495,1.9376041 C 3.1470395,1.8759301 3.2039395,2.7619451 3.1874495,3.7528281 L 3.1249495,10.720986" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1620" /> </svg> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/away.svg�������������������������������������������������������������0000644�0001750�0001750�00000032301�10410766736�017176� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient3124" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <radialGradient cx="0.81666684" cy="0.86111093" r="0.63335794" fx="0.82222235" fy="0.85555542" id="radialGradient2957" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.98351645" y1="0.98333335" x2="0.23076923" y2="0.17777778" id="linearGradient2915" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient2952" inkscape:collect="always" xlink:href="#linearGradient2946" /> <linearGradient x1="0.34615386" y1="0.27222222" x2="0.98901099" y2="0.99444443" id="linearGradient2913" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="translate(-100.0014,-48.29105)" id="g983"> <path d="M 124.36267 57.778187 A 7.7183714 7.7684908 0 1 0 108.92593,57.778187 A 7.7183714 7.7684908 0 1 0 124.36267 57.778187 z" transform="matrix(1.198851,0.000000,0.000000,1.191107,-29.83768,-10.52891)" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2938" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.301979,0.000000,0.000000,1.301288,-41.35358,-17.98022)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.5865387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1664" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2913);stroke-width:0.54178977;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2911" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.25333717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2950" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.191763,0.000000,0.000000,1.184580,-28.54099,-11.13975)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2915);stroke-width:0.60939527;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2914" /> <path d="M 123.79466 57.694656 A 5.7135997 5.6801867 0 1 0 112.36746,57.694656 A 5.7135997 5.6801867 0 1 0 123.79466 57.694656 z" transform="matrix(1.211269,0.000000,0.000000,1.218512,-33.02644,-12.01050)" style="fill:#ececf3;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2924" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2957);stroke-width:0.25333717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2953" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.179335,0.000000,0.000000,1.179308,-27.09626,-10.83068)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient3124);stroke-width:0.21919590;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3123" /> <rect width="1.0204374" height="4.0817494" x="-118.01519" y="33.943893" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect2958" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,7.024595,11.66249)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2976" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,18.27460,11.66249)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3024" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,12.64960,17.28749)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3025" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,12.64960,6.037485)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3026" /> <rect width="1.0204374" height="4.0817494" x="-118.03284" y="30.407104" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3028" /> <rect width="1.0204378" height="4.0817513" x="31.261391" y="-121.78556" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3029" /> <rect width="1.0204381" height="4.0817523" x="31.276966" y="-120.22436" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3118" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(0.970462,0.000000,0.000000,0.970463,-2.877711,1.347242)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.64402282;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3120" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(-1.179335,0.000000,0.000000,-1.179308,247.0991,127.4130)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.21919590;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3122" /> </g> </svg> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/friend.svg�����������������������������������������������������������0000644�0001750�0001750�00000034125�10410766736�017512� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1"> <defs id="defs3"> <linearGradient id="linearGradient1351"> <stop style="stop-color:#44e704;stop-opacity:1.0000000;" offset="0.0000000" id="stop1352" /> <stop style="stop-color:#1e5c1e;stop-opacity:1.0000000;" offset="1.0000000" id="stop1353" /> </linearGradient> <linearGradient id="linearGradient1276"> <stop style="stop-color:#04ff00;stop-opacity:0.74901962;" offset="0.0000000" id="stop1277" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="0.50000000" id="stop1281" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="1.0000000" id="stop1279" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient1210"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1211" /> <stop style="stop-color:#ffa619;stop-opacity:1.0000000;" offset="0.50000000" id="stop1212" /> <stop style="stop-color:#bb7200;stop-opacity:1.0000000;" offset="1.0000000" id="stop1213" /> </linearGradient> <linearGradient id="linearGradient1206"> <stop style="stop-color:#ff0000;stop-opacity:0.74901962;" offset="0.0000000" id="stop1207" /> <stop style="stop-color:#ff0000;stop-opacity:0.25098041;" offset="0.50000000" id="stop1208" /> <stop style="stop-color:#ff0000;stop-opacity:0.0000000;" offset="1.0000000" id="stop1209" /> </linearGradient> <linearGradient id="linearGradient1115"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1116" /> <stop style="stop-color:#000000;stop-opacity:0.062745102;" offset="0.34999999" id="stop1117" /> <stop style="stop-color:#000000;stop-opacity:0.18431373;" offset="0.69999999" id="stop1118" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="1.0000000" id="stop1119" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient1100"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1101" /> <stop style="stop-color:#ffffff;stop-opacity:0.62352943;" offset="0.34999999" id="stop1102" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1103" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1104" /> </linearGradient> <linearGradient id="linearGradient1048"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1049" /> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.34999999" id="stop1050" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1051" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1052" /> </linearGradient> <linearGradient id="linearGradient1042"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1043" /> <stop style="stop-color:#000000;stop-opacity:0.12549020;" offset="0.34999999" id="stop1044" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="0.69999999" id="stop1045" /> <stop style="stop-color:#000000;stop-opacity:0.74901962;" offset="1.0000000" id="stop1046" /> </linearGradient> <linearGradient id="linearGradient1035"> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.0000000" id="stop1036" /> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.34999999" id="stop1037" /> <stop style="stop-color:#3a44b3;stop-opacity:1.0000000;" offset="0.69999999" id="stop1038" /> <stop style="stop-color:#111464;stop-opacity:1.0000000;" offset="1.0000000" id="stop1039" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1623"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1624" /> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.50000000" id="stop1626" /> <stop style="stop-color:#bbbb00;stop-opacity:1.0000000;" offset="1.0000000" id="stop1625" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> <linearGradient id="linearGradient3172"> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3173" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3174" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3152"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3153" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3154" /> </linearGradient> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient x1="-0.10416666" y1="0.63157892" x2="0.83333331" y2="0.73026317" id="linearGradient1123" inkscape:collect="always" xlink:href="#linearGradient1005" /> <linearGradient x1="1.1037736" y1="0.55921054" x2="0.71698111" y2="0.53947371" id="linearGradient1129" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="-0.20754717" y1="0.57894737" x2="0.32075471" y2="0.54605263" id="linearGradient1131" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.011428571" y1="0.50000000" x2="1.0085714" y2="0.50000000" id="linearGradient1133" inkscape:collect="always" xlink:href="#linearGradient1005" /> <linearGradient x1="-0.020000000" y1="0.46875000" x2="0.28857142" y2="0.46875000" id="linearGradient1135" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="-0.020000000" y1="0.44000000" x2="0.29714286" y2="0.44000000" id="linearGradient1137" inkscape:collect="always" xlink:href="#linearGradient2954" /> </defs> <metadata id="metadata4"> <rdf:RDF id="RDF5"> <cc:Work rdf:about="" id="Work6"> <dc:format id="format7">image/svg+xml</dc:format> <dc:type id="type9" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 3.1250000,3.0000000e-06 L 3.1250000,4.7337310 L 4.2091400,7.9053280 L 5.2932700,19.905328 L 14.891830,20.000003 L 15.790860,7.9526660 L 16.875000,4.7337310 L 16.875000,3.0000000e-06 L 3.1250000,3.0000000e-06 z " style="fill:url(#linearGradient1123);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:0.69542289pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1074" /> <path d="M 4.3750000,3.0000000e-06 L 4.3750000,4.4378730 L 5.2620200,7.4112450 L 6.1490400,18.661245 L 14.002410,18.750003 L 14.737980,7.4556240 L 15.625000,4.4378730 L 15.625000,3.0000000e-06 L 4.3750000,3.0000000e-06 z " style="fill:#f8e519;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.69542289pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1126" /> <rect width="11.250000" height="5.0000000" x="4.3750000" y="2.6171874e-06" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1121" /> <path d="M 16.875000,3.0000000e-06 L 16.875000,4.7337310 L 15.790860,7.9053280 L 14.706730,19.905328 L 5.1081700,20.000003 L 4.2091400,7.9526660 L 3.1250000,4.7337310 L 3.1250000,3.0000000e-06 L 16.875000,3.0000000e-06 z " style="fill:url(#linearGradient1129);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:0.69542289pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1128" /> <path d="M 16.875000,3.0000000e-06 L 16.875000,4.7337310 L 15.790860,7.9053280 L 14.706730,19.905328 L 5.1081700,20.000003 L 4.2091400,7.9526660 L 3.1250000,4.7337310 L 3.1250000,3.0000000e-06 L 16.875000,3.0000000e-06 z " style="fill:url(#linearGradient1131);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:0.69542289pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1130" /> <rect width="13.750000" height="1.2500000" x="3.1250000" y="2.6171874e-06" style="fill:url(#linearGradient1133);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1132" /> <rect width="13.750000" height="1.2500000" x="3.1250000" y="2.6171874e-06" style="fill:url(#linearGradient1135);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1134" /> <rect width="8.7500000" height="1.2500000" x="5.6250000" y="18.750002" style="fill:url(#linearGradient1137);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1136" /> </svg> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/inhabitant.svg�������������������������������������������������������0000644�0001750�0001750�00000007635�10410766736�020372� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient x1="0.29298297" y1="0.23977646" x2="0.62951213" y2="0.86258322" id="linearGradient1252" xlink:href="#linearGradient1243" /> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <RDF id="RDF1118"> <Work about="" id="Work1119"> <format id="format1120">image/svg+xml</format> <type id="type1122" resource="http://purl.org/dc/dcmitype/StillImage" /> </Work> </RDF> <rdf:RDF id="RDF1034"> <cc:Work rdf:about="" id="Work1035"> <dc:format id="format1036">image/svg+xml</dc:format> <dc:type id="type1038" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(1.059916,-0.275504,0.284004,1.028195,-203.6913,-0.166886)" style="fill:#769abe;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;" id="path1399" /> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(0.847932,-0.220404,0.227204,0.822555,-160.9527,1.625846)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient1252);stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1400" /> </svg> ���������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/inhabitantplus.svg���������������������������������������������������0000644�0001750�0001750�00000010341�10410766736�021262� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient x1="0.29298297" y1="0.23977646" x2="0.62951213" y2="0.86258322" id="linearGradient1252" inkscape:collect="always" xlink:href="#linearGradient1243" /> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(1.059916,-0.275504,0.284004,1.028195,-203.6913,-0.166886)" style="fill:#769abe;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;" id="path1399" /> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(0.847932,-0.220404,0.227204,0.822555,-160.9527,1.625846)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient1252);stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1400" /> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(0.317976,-8.265093e-2,8.520083e-2,0.308459,-54.03724,6.514604)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:4.1666641;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1276" /> </svg> �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/key.svg��������������������������������������������������������������0000644�0001750�0001750�00000032450�10410766736�017032� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1"> <defs id="defs3"> <linearGradient id="linearGradient1351"> <stop style="stop-color:#44e704;stop-opacity:1.0000000;" offset="0.0000000" id="stop1352" /> <stop style="stop-color:#1e5c1e;stop-opacity:1.0000000;" offset="1.0000000" id="stop1353" /> </linearGradient> <linearGradient id="linearGradient1276"> <stop style="stop-color:#04ff00;stop-opacity:0.74901962;" offset="0.0000000" id="stop1277" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="0.50000000" id="stop1281" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="1.0000000" id="stop1279" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient1210"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1211" /> <stop style="stop-color:#ffa619;stop-opacity:1.0000000;" offset="0.50000000" id="stop1212" /> <stop style="stop-color:#bb7200;stop-opacity:1.0000000;" offset="1.0000000" id="stop1213" /> </linearGradient> <linearGradient id="linearGradient1206"> <stop style="stop-color:#ff0000;stop-opacity:0.74901962;" offset="0.0000000" id="stop1207" /> <stop style="stop-color:#ff0000;stop-opacity:0.25098041;" offset="0.50000000" id="stop1208" /> <stop style="stop-color:#ff0000;stop-opacity:0.0000000;" offset="1.0000000" id="stop1209" /> </linearGradient> <linearGradient id="linearGradient1115"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1116" /> <stop style="stop-color:#000000;stop-opacity:0.062745102;" offset="0.34999999" id="stop1117" /> <stop style="stop-color:#000000;stop-opacity:0.18431373;" offset="0.69999999" id="stop1118" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="1.0000000" id="stop1119" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient1100"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1101" /> <stop style="stop-color:#ffffff;stop-opacity:0.62352943;" offset="0.34999999" id="stop1102" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1103" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1104" /> </linearGradient> <linearGradient id="linearGradient1048"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1049" /> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.34999999" id="stop1050" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1051" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1052" /> </linearGradient> <linearGradient id="linearGradient1042"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1043" /> <stop style="stop-color:#000000;stop-opacity:0.12549020;" offset="0.34999999" id="stop1044" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="0.69999999" id="stop1045" /> <stop style="stop-color:#000000;stop-opacity:0.74901962;" offset="1.0000000" id="stop1046" /> </linearGradient> <linearGradient id="linearGradient1035"> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.0000000" id="stop1036" /> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.34999999" id="stop1037" /> <stop style="stop-color:#3a44b3;stop-opacity:1.0000000;" offset="0.69999999" id="stop1038" /> <stop style="stop-color:#111464;stop-opacity:1.0000000;" offset="1.0000000" id="stop1039" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1623"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1624" /> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.50000000" id="stop1626" /> <stop style="stop-color:#bbbb00;stop-opacity:1.0000000;" offset="1.0000000" id="stop1625" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> <linearGradient id="linearGradient3172"> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3173" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3174" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3152"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3153" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3154" /> </linearGradient> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient x1="-1.1449175e-16" y1="0.50000000" x2="1.0000000" y2="0.50000000" id="linearGradient1083" inkscape:collect="always" xlink:href="#linearGradient3175" /> <linearGradient x1="3.2612801e-15" y1="0.50000000" x2="1.0000000" y2="0.50000000" id="linearGradient1084" inkscape:collect="always" xlink:href="#linearGradient3175" /> <linearGradient x1="1.0560997e-14" y1="0.50000000" x2="1.0000000" y2="0.50000000" id="linearGradient1085" inkscape:collect="always" xlink:href="#linearGradient3175" /> <linearGradient x1="-1.0624939" y1="-0.74989635" x2="-0.43110916" y2="-0.73004663" id="linearGradient1087" inkscape:collect="always" xlink:href="#linearGradient3175" gradientTransform="matrix(-1.174076,1.573924e-2,8.270293e-2,-0.852842,-1.179612e-16,-6.473988e-15)" /> </defs> <metadata id="metadata4"> <rdf:RDF id="RDF5"> <cc:Work rdf:about="" id="Work6"> <dc:format id="format7">image/svg+xml</dc:format> <dc:type id="type9" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <rect width="1.4153235" height="16.106644" x="13.215102" y="-3.6870356" transform="matrix(0.707107,0.707107,-0.707107,0.707107,0.000000,0.000000)" style="fill:url(#linearGradient1084);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.50000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="rect1077" /> <path d="M 293.22835 52.745213 A 4.4194174 3.3698058 0 1 0 284.38951,52.745213 A 4.4194174 3.3698058 0 1 0 293.22835 52.745213 z" transform="matrix(0.613545,0.613545,-0.651541,0.651541,-127.5683,-207.1369)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0969698;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1076" /> <path d="M 293.22835 52.745213 A 4.4194174 3.3698058 0 1 0 284.38951,52.745213 A 4.4194174 3.3698058 0 1 0 293.22835 52.745213 z" transform="matrix(0.613545,0.613545,-0.651541,0.651541,-127.5911,-207.2619)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient1083);stroke-width:1.5377779;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1089" /> <rect width="1.4153264" height="2.9310091" x="-9.0651045" y="14.978394" transform="matrix(0.707107,-0.707107,0.707107,0.707107,0.000000,0.000000)" style="fill:url(#linearGradient1087);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.33259907pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1078" /> <rect width="1.4686625" height="2.0691783" x="8.2835970" y="-17.159742" transform="matrix(-0.689574,0.724215,-0.668650,-0.743577,0.000000,0.000000)" style="fill:url(#linearGradient1085);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.28467178pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1080" /> <rect width="1.3760998" height="2.8497746" x="-8.2051229" y="15.313398" transform="matrix(0.727320,-0.686299,0.727320,0.686299,0.000000,0.000000)" style="fill:url(#linearGradient1087);fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.32338102pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect1093" /> </svg> ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/newbie.svg�����������������������������������������������������������0000644�0001750�0001750�00000012224�10410766736�017510� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 5.6024550,5.8992082 L 5.6024550,16.720614 L 17.799951,16.720614 L 17.799951,14.517686 C 18.642953,13.928521 19.324638,12.982768 19.324638,11.657742 C 19.324638,10.332716 18.642953,9.4256112 17.799951,8.8364462 L 17.799951,5.8992082 L 5.6024550,5.8992082 z " style="fill:#44e704;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1329" /> <path d="M 310.68503,54.236767 C 311.27106,54.831541 310.17241,55.320161 309.69647,55.210784 C 308.40672,54.914378 308.21130,53.258102 308.73699,52.259661 C 309.67734,50.473683 312.08630,50.281482 313.65069,51.314716 C 315.94650,52.831027 316.13664,56.079643 314.58110,58.190979 C 312.50780,61.005059 308.39379,61.191022 305.74226,59.106852 C 302.40559,56.484138 302.22487,51.493943 304.84093,48.305448 C 308.00932,44.443754 313.88125,44.268817 317.60490,47.418647 C 320.07424,49.507459 321.35017,52.753471 321.08983,55.963815" transform="matrix(1.015408,0.000000,0.000000,1.046821,-306.9678,-45.92515)" style="fill:#44e704;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.4399315;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1330" /> <path d="M 19.391341,12.983581 C 17.009041,15.301132 20.519011,16.092121 17.782246,17.074763 L 8.8693068,17.168538" style="fill:#44e704;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.2282115;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1331" /> <path d="M 7.6036177,10.640254 C 6.2693604,8.5099522 9.6443859,7.9109192 10.129759,8.4977562 M 4.1615614,14.971187 C 2.4580597,13.481965 1.4553061,12.047713 1.6437322,9.4915422 C 1.7722789,6.7292222 3.6541491,4.4305522 6.1081613,3.2933912 C 9.3879471,1.6983032 13.191789,2.7460062 15.602060,5.5145812" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.2449100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1333" /> <path d="M 14.521722,10.496187 C 15.061797,12.958370 14.510891,13.730650 13.378033,15.535256" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.2449100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1334" /> <path d="M 11.957612,10.334997 C 13.306281,12.911391 10.194846,17.157833 6.9057658,16.055205" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#1e5c1e;stroke-width:1.2449100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1335" /> </svg> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/schooled.svg���������������������������������������������������������0000644�0001750�0001750�00000020076�10410766736�020043� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <radialGradient cx="0.29884115" cy="0.31566316" r="0.37779850" fx="0.30547899" fy="0.30235189" id="radialGradient1210" inkscape:collect="always" xlink:href="#linearGradient1105" /> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <radialGradient cx="0.36492822" cy="0.36232752" r="0.65115207" fx="0.37136021" fy="0.35577169" id="radialGradient1015" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <radialGradient cx="0.37594351" cy="0.41496417" r="0.54327917" fx="0.38247278" fy="0.39534050" id="radialGradient1004" inkscape:collect="always" xlink:href="#linearGradient1005" /> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 358.52524 59.871521 A 5.1375728 4.6403885 0 1 0 348.25009,59.871521 A 5.1375728 4.6403885 0 1 0 358.52524 59.871521 z" transform="matrix(1.105911,0.000000,0.000000,1.224354,-384.5647,-65.95213)" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.97714454;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1850" /> <path d="M 358.52524 59.871521 A 5.1375728 4.6403885 0 1 0 348.25009,59.871521 A 5.1375728 4.6403885 0 1 0 358.52524 59.871521 z" transform="matrix(1.105911,0.000000,0.000000,1.224354,-384.5651,-65.95214)" style="fill:url(#radialGradient1004);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.97714454;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1318" /> <path d="M 354.65826 61.363075 A 1.9334952 1.9334952 0 1 0 350.79127,61.363075 A 1.9334952 1.9334952 0 1 0 354.65826 61.363075 z" transform="matrix(0.976755,0.000000,0.000000,0.978381,-339.5254,-51.43144)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#6497c9;stroke-width:1.2511200;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:0.74901962;" id="path1320" /> <g transform="matrix(0.868224,-0.501269,0.500000,0.866025,-351.5901,112.9847)" id="g1359"> <path d="M 360.29300 66.555893 A 2.5411651 2.3754368 0 1 0 355.21067,66.555893 A 2.5411651 2.3754368 0 1 0 360.29300 66.555893 z" transform="matrix(1.469920,0.000000,0.000000,1.300493,-168.3633,7.042330)" style="fill:url(#radialGradient1015);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.93501318;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1355" /> <path d="M 204.17709 91.083618 A 9.3912621 9.6674757 0 1 0 185.39457,91.083618 A 9.3912621 9.6674757 0 1 0 204.17709 91.083618 z" transform="matrix(0.398204,0.000000,0.000000,0.322125,279.9459,64.25723)" style="fill:url(#radialGradient1210);fill-opacity:0.75000000;fill-rule:evenodd;stroke:none;stroke-width:3.5494294;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1358" /> </g> <path d="M 358.52524 59.871521 A 5.1375728 4.6403885 0 1 0 348.25009,59.871521 A 5.1375728 4.6403885 0 1 0 358.52524 59.871521 z" transform="matrix(1.105911,0.000000,0.000000,1.224354,-377.0647,-60.95213)" style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.97714454;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1852" /> <path d="M 358.52524 59.871521 A 5.1375728 4.6403885 0 1 0 348.25009,59.871521 A 5.1375728 4.6403885 0 1 0 358.52524 59.871521 z" transform="matrix(1.105867,0.000000,0.000000,1.224354,-377.0494,-60.95212)" style="fill:url(#radialGradient1004);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.97714454;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1317" /> <path d="M 354.65826 61.363075 A 1.9334952 1.9334952 0 1 0 350.79127,61.363075 A 1.9334952 1.9334952 0 1 0 354.65826 61.363075 z" transform="matrix(0.954700,0.000000,0.000000,0.976928,-324.1960,-47.58852)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#6497c9;stroke-width:1.2511200;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:0.74901962;" id="path1319" /> </svg> ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/star.svg�������������������������������������������������������������0000644�0001750�0001750�00000010437�10410766736�017214� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="translate(-151.2566,-49.86218)" id="g1377"> <path d="M 160.84388,50.490043 C 158.16790,50.607034 155.52869,51.913796 153.86691,54.004251 C 157.45375,52.080542 158.50627,52.653172 160.12104,52.977978 C 160.86422,53.127465 163.25726,54.277849 163.89118,55.881845 C 164.44124,57.273597 164.02091,59.870049 159.76237,59.970876 C 159.96760,60.393148 161.76806,62.282017 163.52565,62.504815 C 161.80296,62.175187 161.30797,61.505315 161.06552,62.555345 C 159.91356,65.304460 156.01932,64.361159 154.18119,62.991916 C 151.28451,60.834154 151.76944,59.476556 152.23266,62.618726 C 153.41643,66.588716 157.52250,69.541709 161.72386,69.211754 C 166.19724,68.947948 170.27361,65.227410 170.58651,60.752775 C 171.00591,56.321977 167.93122,51.790379 163.48382,50.801035 C 162.61590,50.567918 161.73588,50.451046 160.84388,50.490043 z " style="fill:#f8e519;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0004182pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;" id="path3252" /> <path d="M 166.61204 58.131374 A 0.69053400 0.69053400 0 1 0 165.23097,58.131374 A 0.69053400 0.69053400 0 1 0 166.61204 58.131374 z" transform="matrix(0.854362,0.299031,-0.598008,1.708568,58.72609,-89.02283)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3306" /> <path d="M 160.30313,51.762937 C 162.67464,52.048938 164.82819,53.916044 165.30032,55.739755 C 165.83329,57.798468 165.04335,59.948930 162.49733,60.767913 M 162.14320,63.462867 C 160.32833,66.156740 157.92945,66.184563 154.96762,64.962559" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3312" /> <path d="M 157.88800,67.113969 C 159.23750,67.935124 160.30522,67.794525 160.97104,67.961754 C 165.44442,67.697948 169.48581,64.602669 169.22602,59.392290 C 169.14588,57.784788 167.95180,54.462612 165.60363,53.197054" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#bbbb00;stroke-width:1.0004182pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;" id="path3313" /> </g> </svg> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/userlist/wizard.svg�����������������������������������������������������������0000644�0001750�0001750�00000030117�10410766736�017540� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1"> <defs id="defs3"> <linearGradient id="linearGradient1351"> <stop style="stop-color:#44e704;stop-opacity:1.0000000;" offset="0.0000000" id="stop1352" /> <stop style="stop-color:#1e5c1e;stop-opacity:1.0000000;" offset="1.0000000" id="stop1353" /> </linearGradient> <linearGradient id="linearGradient1276"> <stop style="stop-color:#04ff00;stop-opacity:0.74901962;" offset="0.0000000" id="stop1277" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="0.50000000" id="stop1281" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="1.0000000" id="stop1279" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient1210"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1211" /> <stop style="stop-color:#ffa619;stop-opacity:1.0000000;" offset="0.50000000" id="stop1212" /> <stop style="stop-color:#bb7200;stop-opacity:1.0000000;" offset="1.0000000" id="stop1213" /> </linearGradient> <linearGradient id="linearGradient1206"> <stop style="stop-color:#ff0000;stop-opacity:0.74901962;" offset="0.0000000" id="stop1207" /> <stop style="stop-color:#ff0000;stop-opacity:0.25098041;" offset="0.50000000" id="stop1208" /> <stop style="stop-color:#ff0000;stop-opacity:0.0000000;" offset="1.0000000" id="stop1209" /> </linearGradient> <linearGradient id="linearGradient1115"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1116" /> <stop style="stop-color:#000000;stop-opacity:0.062745102;" offset="0.34999999" id="stop1117" /> <stop style="stop-color:#000000;stop-opacity:0.18431373;" offset="0.69999999" id="stop1118" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="1.0000000" id="stop1119" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient1100"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1101" /> <stop style="stop-color:#ffffff;stop-opacity:0.62352943;" offset="0.34999999" id="stop1102" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1103" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1104" /> </linearGradient> <linearGradient id="linearGradient1048"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1049" /> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.34999999" id="stop1050" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1051" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1052" /> </linearGradient> <linearGradient id="linearGradient1042"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1043" /> <stop style="stop-color:#000000;stop-opacity:0.12549020;" offset="0.34999999" id="stop1044" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="0.69999999" id="stop1045" /> <stop style="stop-color:#000000;stop-opacity:0.74901962;" offset="1.0000000" id="stop1046" /> </linearGradient> <linearGradient id="linearGradient1035"> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.0000000" id="stop1036" /> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.34999999" id="stop1037" /> <stop style="stop-color:#3a44b3;stop-opacity:1.0000000;" offset="0.69999999" id="stop1038" /> <stop style="stop-color:#111464;stop-opacity:1.0000000;" offset="1.0000000" id="stop1039" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1623"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1624" /> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.50000000" id="stop1626" /> <stop style="stop-color:#bbbb00;stop-opacity:1.0000000;" offset="1.0000000" id="stop1625" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> <linearGradient id="linearGradient3172"> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3173" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3174" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3152"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3153" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3154" /> </linearGradient> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient x1="0.34868422" y1="0.74342108" x2="0.11184210" y2="0.50000000" id="linearGradient3149" inkscape:collect="always" xlink:href="#linearGradient3175" spreadMethod="pad" /> <linearGradient x1="-0.18888889" y1="0.25000000" x2="0.92222220" y2="0.84210527" id="linearGradient3164" inkscape:collect="always" xlink:href="#linearGradient3165" /> <radialGradient cx="0.29651532" cy="0.44973168" r="0.44808188" fx="0.30226764" fy="0.45367077" id="radialGradient3179" inkscape:collect="always" xlink:href="#linearGradient3175" /> </defs> <metadata id="metadata4"> <rdf:RDF id="RDF5"> <cc:Work rdf:about="" id="Work6"> <dc:format id="format7">image/svg+xml</dc:format> <dc:type id="type9" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="matrix(0.990854,0.000000,0.000000,0.990711,-126.3339,-47.97486)" id="g1373"> <path d="M 133.28125 64.998901 A 2.9296875 1.6210938 0 1 0 127.42188,64.998901 A 2.9296875 1.6210938 0 1 0 133.28125 64.998901 z" transform="matrix(2.295720,1.768142,-0.610189,0.792257,-124.9777,-219.0142)" style="fill:url(#radialGradient3179);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.36715820;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3144" /> <path d="M 130.77344,59.440308 L 133.07812,58.463746 L 144.87500,48.737183 L 147.37500,51.237183 L 144.99219,49.909055 L 139.13281,62.819212 L 138.78125,65.299681 C 138.78125,65.338743 134.13281,64.518435 130.77344,59.440308 z " style="fill:url(#linearGradient3149);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.62500000;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3147" /> <path d="M 134.51247,56.782032 L 133.03487,58.012331 C 134.15310,60.486423 137.37121,62.433195 139.56918,62.958630 L 140.36116,61.077423 C 138.20884,60.533310 135.78372,59.153083 134.51247,56.782032 z " style="fill:url(#linearGradient3164);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.25000000;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3163" /> </g> </svg> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/�����������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�016245� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/Makefile.am������������������������������������������������������0000644�0001750�0001750�00000000374�10410766735�020312� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������iconsdir = $(pkgdatadir)/pixmaps/ice-userlist icons_DATA = inhabitant.svg \ programmer.svg \ wizard.svg \ avail+idle.svg \ busy.svg \ busy+idle.svg \ away.svg \ away+idle.svg EXTRA_DIST = $(icons_DATA) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/Makefile.in������������������������������������������������������0000644�0001750�0001750�00000030137�10517752444�020323� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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/ice-userlist DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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)$(iconsdir)" iconsDATA_INSTALL = $(INSTALL_DATA) DATA = $(icons_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ iconsdir = $(pkgdatadir)/pixmaps/ice-userlist icons_DATA = inhabitant.svg \ programmer.svg \ wizard.svg \ avail+idle.svg \ busy.svg \ busy+idle.svg \ away.svg \ away+idle.svg EXTRA_DIST = $(icons_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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/ice-userlist/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/ice-userlist/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-iconsDATA: $(icons_DATA) @$(NORMAL_INSTALL) test -z "$(iconsdir)" || $(mkdir_p) "$(DESTDIR)$(iconsdir)" @list='$(icons_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(iconsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(iconsdir)/$$f'"; \ $(iconsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(iconsdir)/$$f"; \ done uninstall-iconsDATA: @$(NORMAL_UNINSTALL) @list='$(icons_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(iconsdir)/$$f'"; \ rm -f "$(DESTDIR)$(iconsdir)/$$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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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)$(iconsdir)"; 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 distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-iconsDATA install-exec-am: install-info: install-info-am install-man: 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-iconsDATA uninstall-info-am .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-exec install-exec-am \ install-iconsDATA install-info install-info-am install-man \ 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-iconsDATA uninstall-info-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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/inhabitant.svg���������������������������������������������������0000644�0001750�0001750�00000012224�10410766735�021115� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 5.6024550,5.8992082 L 5.6024550,16.720614 L 17.799951,16.720614 L 17.799951,14.517686 C 18.642953,13.928521 19.324638,12.982768 19.324638,11.657742 C 19.324638,10.332716 18.642953,9.4256112 17.799951,8.8364462 L 17.799951,5.8992082 L 5.6024550,5.8992082 z " style="fill:#44e704;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1329" /> <path d="M 310.68503,54.236767 C 311.27106,54.831541 310.17241,55.320161 309.69647,55.210784 C 308.40672,54.914378 308.21130,53.258102 308.73699,52.259661 C 309.67734,50.473683 312.08630,50.281482 313.65069,51.314716 C 315.94650,52.831027 316.13664,56.079643 314.58110,58.190979 C 312.50780,61.005059 308.39379,61.191022 305.74226,59.106852 C 302.40559,56.484138 302.22487,51.493943 304.84093,48.305448 C 308.00932,44.443754 313.88125,44.268817 317.60490,47.418647 C 320.07424,49.507459 321.35017,52.753471 321.08983,55.963815" transform="matrix(1.015408,0.000000,0.000000,1.046821,-306.9678,-45.92515)" style="fill:#44e704;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.4399315;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1330" /> <path d="M 19.391341,12.983581 C 17.009041,15.301132 20.519011,16.092121 17.782246,17.074763 L 8.8693068,17.168538" style="fill:#44e704;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.2282115;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1331" /> <path d="M 7.6036177,10.640254 C 6.2693604,8.5099522 9.6443859,7.9109192 10.129759,8.4977562 M 4.1615614,14.971187 C 2.4580597,13.481965 1.4553061,12.047713 1.6437322,9.4915422 C 1.7722789,6.7292222 3.6541491,4.4305522 6.1081613,3.2933912 C 9.3879471,1.6983032 13.191789,2.7460062 15.602060,5.5145812" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.2449100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1333" /> <path d="M 14.521722,10.496187 C 15.061797,12.958370 14.510891,13.730650 13.378033,15.535256" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.2449100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1334" /> <path d="M 11.957612,10.334997 C 13.306281,12.911391 10.194846,17.157833 6.9057658,16.055205" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#1e5c1e;stroke-width:1.2449100;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1335" /> </svg> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/programmer.svg���������������������������������������������������0000644�0001750�0001750�00000007635�10410766735�021161� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient x1="0.29298297" y1="0.23977646" x2="0.62951213" y2="0.86258322" id="linearGradient1252" xlink:href="#linearGradient1243" /> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <RDF id="RDF1118"> <Work about="" id="Work1119"> <format id="format1120">image/svg+xml</format> <type id="type1122" resource="http://purl.org/dc/dcmitype/StillImage" /> </Work> </RDF> <rdf:RDF id="RDF1034"> <cc:Work rdf:about="" id="Work1035"> <dc:format id="format1036">image/svg+xml</dc:format> <dc:type id="type1038" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(1.059916,-0.275504,0.284004,1.028195,-203.6913,-0.166886)" style="fill:#769abe;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;" id="path1399" /> <path d="M 191.63699,67.494974 L 186.23800,64.595877 L 180.78903,67.399890 L 181.87785,61.369279 L 177.52725,57.053485 L 183.59917,56.225459 L 186.35933,50.754139 L 189.02315,56.273001 L 195.07962,57.207334 L 190.65404,61.446204 L 191.63699,67.494974 z " transform="matrix(0.847932,-0.220404,0.227204,0.822555,-160.9527,1.625846)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient1252);stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path1400" /> </svg> ���������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/wizard.svg�������������������������������������������������������0000644�0001750�0001750�00000030117�10410766735�020275� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1"> <defs id="defs3"> <linearGradient id="linearGradient1351"> <stop style="stop-color:#44e704;stop-opacity:1.0000000;" offset="0.0000000" id="stop1352" /> <stop style="stop-color:#1e5c1e;stop-opacity:1.0000000;" offset="1.0000000" id="stop1353" /> </linearGradient> <linearGradient id="linearGradient1276"> <stop style="stop-color:#04ff00;stop-opacity:0.74901962;" offset="0.0000000" id="stop1277" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="0.50000000" id="stop1281" /> <stop style="stop-color:#04ff00;stop-opacity:0.0000000;" offset="1.0000000" id="stop1279" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient1210"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1211" /> <stop style="stop-color:#ffa619;stop-opacity:1.0000000;" offset="0.50000000" id="stop1212" /> <stop style="stop-color:#bb7200;stop-opacity:1.0000000;" offset="1.0000000" id="stop1213" /> </linearGradient> <linearGradient id="linearGradient1206"> <stop style="stop-color:#ff0000;stop-opacity:0.74901962;" offset="0.0000000" id="stop1207" /> <stop style="stop-color:#ff0000;stop-opacity:0.25098041;" offset="0.50000000" id="stop1208" /> <stop style="stop-color:#ff0000;stop-opacity:0.0000000;" offset="1.0000000" id="stop1209" /> </linearGradient> <linearGradient id="linearGradient1115"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1116" /> <stop style="stop-color:#000000;stop-opacity:0.062745102;" offset="0.34999999" id="stop1117" /> <stop style="stop-color:#000000;stop-opacity:0.18431373;" offset="0.69999999" id="stop1118" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="1.0000000" id="stop1119" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient1100"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1101" /> <stop style="stop-color:#ffffff;stop-opacity:0.62352943;" offset="0.34999999" id="stop1102" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1103" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1104" /> </linearGradient> <linearGradient id="linearGradient1048"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1049" /> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.34999999" id="stop1050" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.69999999" id="stop1051" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1052" /> </linearGradient> <linearGradient id="linearGradient1042"> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="0.0000000" id="stop1043" /> <stop style="stop-color:#000000;stop-opacity:0.12549020;" offset="0.34999999" id="stop1044" /> <stop style="stop-color:#000000;stop-opacity:0.37254903;" offset="0.69999999" id="stop1045" /> <stop style="stop-color:#000000;stop-opacity:0.74901962;" offset="1.0000000" id="stop1046" /> </linearGradient> <linearGradient id="linearGradient1035"> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.0000000" id="stop1036" /> <stop style="stop-color:#8aa2fc;stop-opacity:1.0000000;" offset="0.34999999" id="stop1037" /> <stop style="stop-color:#3a44b3;stop-opacity:1.0000000;" offset="0.69999999" id="stop1038" /> <stop style="stop-color:#111464;stop-opacity:1.0000000;" offset="1.0000000" id="stop1039" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1623"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1624" /> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.50000000" id="stop1626" /> <stop style="stop-color:#bbbb00;stop-opacity:1.0000000;" offset="1.0000000" id="stop1625" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> <linearGradient id="linearGradient3172"> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3173" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3174" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3152"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3153" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="1.0000000" id="stop3154" /> </linearGradient> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient x1="0.34868422" y1="0.74342108" x2="0.11184210" y2="0.50000000" id="linearGradient3149" inkscape:collect="always" xlink:href="#linearGradient3175" spreadMethod="pad" /> <linearGradient x1="-0.18888889" y1="0.25000000" x2="0.92222220" y2="0.84210527" id="linearGradient3164" inkscape:collect="always" xlink:href="#linearGradient3165" /> <radialGradient cx="0.29651532" cy="0.44973168" r="0.44808188" fx="0.30226764" fy="0.45367077" id="radialGradient3179" inkscape:collect="always" xlink:href="#linearGradient3175" /> </defs> <metadata id="metadata4"> <rdf:RDF id="RDF5"> <cc:Work rdf:about="" id="Work6"> <dc:format id="format7">image/svg+xml</dc:format> <dc:type id="type9" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="matrix(0.990854,0.000000,0.000000,0.990711,-126.3339,-47.97486)" id="g1373"> <path d="M 133.28125 64.998901 A 2.9296875 1.6210938 0 1 0 127.42188,64.998901 A 2.9296875 1.6210938 0 1 0 133.28125 64.998901 z" transform="matrix(2.295720,1.768142,-0.610189,0.792257,-124.9777,-219.0142)" style="fill:url(#radialGradient3179);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.36715820;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3144" /> <path d="M 130.77344,59.440308 L 133.07812,58.463746 L 144.87500,48.737183 L 147.37500,51.237183 L 144.99219,49.909055 L 139.13281,62.819212 L 138.78125,65.299681 C 138.78125,65.338743 134.13281,64.518435 130.77344,59.440308 z " style="fill:url(#linearGradient3149);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.62500000;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3147" /> <path d="M 134.51247,56.782032 L 133.03487,58.012331 C 134.15310,60.486423 137.37121,62.433195 139.56918,62.958630 L 140.36116,61.077423 C 138.20884,60.533310 135.78372,59.153083 134.51247,56.782032 z " style="fill:url(#linearGradient3164);fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.25000000;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3163" /> </g> </svg> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/avail+idle.svg���������������������������������������������������0000644�0001750�0001750�00000023255�10410766735�021007� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <path d="M 3.7499495,0.69047613 C 2.7564195,0.70692713 1.9539395,1.5148171 1.9374495,2.5057001 L 1.8749495,2.5057001 L 1.8749495,12.520733 L 1.9374495,12.520733 C 1.9372795,12.531081 1.9374495,12.541642 1.9374495,12.552031 C 1.9374495,13.557377 2.7458095,14.382204 3.7499495,14.398553 C 3.7601495,14.398718 3.7709595,14.398553 3.7811995,14.398553 L 17.499950,14.398553 L 17.499950,14.304661 C 18.478900,14.288451 19.242330,13.491474 19.281200,12.520733 L 19.374950,12.520733 L 19.374950,2.5057001 L 19.312450,2.5057001 C 19.295950,1.5148141 18.493470,0.70692713 17.499950,0.69047613 L 17.499950,0.62788213 L 3.7499495,0.69047613 z " style="fill:#e7e7e7;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1582" /> <path d="M 4.9081495,9.4541103 C 4.9081495,9.0620203 4.9081495,8.6699303 4.9081495,8.2778403 C 5.8332495,7.2249683 6.7382695,6.1541593 7.6813095,5.1172891 C 8.0169095,4.8586881 7.4112895,5.0277891 7.2366095,4.9892221 C 6.5302895,4.9951521 5.8239495,4.9971101 5.1176295,5.0014731 C 5.1176295,4.5843181 5.1176295,4.1671631 5.1176295,3.7500081 C 6.6895695,3.7500081 8.2615095,3.7500081 9.8334495,3.7500081 C 9.8334495,4.1062911 9.8334495,4.4625731 9.8334495,4.8188561 C 9.0552495,5.7093271 8.2899695,6.6113433 7.5034595,7.4943773 C 7.2972095,7.7179343 7.0909595,7.9414913 6.8847195,8.1650473 C 7.8341295,8.0994263 8.7862995,8.1376173 9.7371495,8.1274493 C 9.8215195,8.1551413 10.029060,8.0596733 9.9999495,8.2008523 C 9.9999495,8.6186043 9.9999495,9.0363573 9.9999495,9.4541103 C 8.3026795,9.4541103 6.6054195,9.4541103 4.9081495,9.4541103 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text1516" /> <path d="M 11.158150,10.704110 C 11.158150,10.312020 11.158150,9.9199303 11.158150,9.5278403 C 12.083250,8.4749683 12.988270,7.4041593 13.931310,6.3672893 C 14.266910,6.1086881 13.661290,6.2777893 13.486610,6.2392223 C 12.780290,6.2451523 12.073950,6.2471103 11.367630,6.2514733 C 11.367630,5.8343181 11.367630,5.4171631 11.367630,5.0000081 C 12.939570,5.0000081 14.511510,5.0000081 16.083450,5.0000081 C 16.083450,5.3562911 16.083450,5.7125731 16.083450,6.0688561 C 15.305250,6.9593273 14.539970,7.8613433 13.753460,8.7443773 C 13.547210,8.9679343 13.340960,9.1914913 13.134720,9.4150473 C 14.084130,9.3494263 15.036300,9.3876173 15.987150,9.3774493 C 16.071520,9.4051413 16.279060,9.3096733 16.249950,9.4508523 C 16.249950,9.8686043 16.249950,10.286357 16.249950,10.704110 C 14.552680,10.704110 12.855420,10.704110 11.158150,10.704110 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text1519" /> <path d="M 4.2186995,13.158392 L 16.249950,13.158392 C 18.102860,13.220066 18.045960,12.334051 18.062450,11.343168 L 18.124950,3.0468851" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#bfbfbf;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1635" /> <path d="M 7.0812795,13.750031 C 7.1032495,14.791984 2.9365195,13.841465 2.9561295,13.593936 C 2.9757395,13.346408 3.0378995,13.102543 3.1366995,12.875715 C 3.3343095,12.422061 3.6784995,12.036557 4.1221295,11.826198 C 4.9949595,11.370192 6.1499895,11.679048 6.7002495,12.514711 C 6.9476195,12.872340 7.0825695,13.310386 7.0812795,13.750031 z " style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:3.2805939;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1616" /> <path d="M 228.70486 67.715950 A 2.5411651 2.5411651 0 1 0 223.62253,67.715950 A 2.5411651 2.5411651 0 1 0 228.70486 67.715950 z" transform="matrix(0.545196,0.000000,0.000000,0.545198,-121.4181,-18.80404)" style="fill:#e7e7e7;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.8341994;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1615" /> <path d="M 228.70486 67.715950 A 2.5411651 2.5411651 0 1 0 223.62253,67.715950 A 2.5411651 2.5411651 0 1 0 228.70486 67.715950 z" transform="matrix(0.741589,0.000000,0.000000,0.743692,-162.7301,-36.62463)" style="fill:#e7e7e7;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.6831849;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1617" /> <path d="M 17.031200,1.9376041 L 4.9999495,1.9376041 C 3.1470395,1.8759301 3.2039395,2.7619451 3.1874495,3.7528281 L 3.1249495,10.720986" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.2500000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1620" /> </svg> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/busy.svg���������������������������������������������������������0000644�0001750�0001750�00000032301�10410766735�017754� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient3124" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <radialGradient cx="0.81666684" cy="0.86111093" r="0.63335794" fx="0.82222235" fy="0.85555542" id="radialGradient2957" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.98351645" y1="0.98333335" x2="0.23076923" y2="0.17777778" id="linearGradient2915" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient2952" inkscape:collect="always" xlink:href="#linearGradient2946" /> <linearGradient x1="0.34615386" y1="0.27222222" x2="0.98901099" y2="0.99444443" id="linearGradient2913" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="translate(-100.0014,-48.29105)" id="g983"> <path d="M 124.36267 57.778187 A 7.7183714 7.7684908 0 1 0 108.92593,57.778187 A 7.7183714 7.7684908 0 1 0 124.36267 57.778187 z" transform="matrix(1.198851,0.000000,0.000000,1.191107,-29.83768,-10.52891)" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2938" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.301979,0.000000,0.000000,1.301288,-41.35358,-17.98022)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.5865387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1664" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2913);stroke-width:0.54178977;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2911" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.25333717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2950" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.191763,0.000000,0.000000,1.184580,-28.54099,-11.13975)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2915);stroke-width:0.60939527;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2914" /> <path d="M 123.79466 57.694656 A 5.7135997 5.6801867 0 1 0 112.36746,57.694656 A 5.7135997 5.6801867 0 1 0 123.79466 57.694656 z" transform="matrix(1.211269,0.000000,0.000000,1.218512,-33.02644,-12.01050)" style="fill:#ececf3;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2924" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2957);stroke-width:0.25333717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2953" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.179335,0.000000,0.000000,1.179308,-27.09626,-10.83068)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient3124);stroke-width:0.21919590;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3123" /> <rect width="1.0204374" height="4.0817494" x="-118.01519" y="33.943893" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect2958" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,7.024595,11.66249)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2976" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,18.27460,11.66249)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3024" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,12.64960,17.28749)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3025" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,12.64960,6.037485)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3026" /> <rect width="1.0204374" height="4.0817494" x="-118.03284" y="30.407104" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3028" /> <rect width="1.0204378" height="4.0817513" x="31.261391" y="-121.78556" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3029" /> <rect width="1.0204381" height="4.0817523" x="31.276966" y="-120.22436" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3118" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(0.970462,0.000000,0.000000,0.970463,-2.877711,1.347242)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.64402282;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3120" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(-1.179335,0.000000,0.000000,-1.179308,247.0991,127.4130)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.21919590;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3122" /> </g> </svg> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/busy+idle.svg����������������������������������������������������0000644�0001750�0001750�00000036730�10410766735�020677� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient3124" inkscape:collect="always" xlink:href="#linearGradient2954" /> <radialGradient cx="0.81666684" cy="0.86111093" r="0.63335794" fx="0.82222235" fy="0.85555542" id="radialGradient2957" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.98351645" y1="0.98333335" x2="0.23076923" y2="0.17777778" id="linearGradient2915" inkscape:collect="always" xlink:href="#linearGradient2907" /> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient2952" inkscape:collect="always" xlink:href="#linearGradient2946" /> <linearGradient x1="0.34615386" y1="0.27222222" x2="0.98901099" y2="0.99444443" id="linearGradient2913" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="matrix(0.870990,0.000000,0.000000,0.874807,-179.5880,-31.53432)" style="stroke-linecap:round;stroke-linejoin:round;" id="g842"> <path d="M 124.36267 57.778187 A 7.7183714 7.7684908 0 1 0 108.92593,57.778187 A 7.7183714 7.7684908 0 1 0 124.36267 57.778187 z" transform="matrix(1.198851,0.000000,0.000000,1.191107,79.31174,-20.62342)" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path824" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.301979,0.000000,0.000000,1.301288,67.79584,-28.07474)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.5865387;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path825" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2913);stroke-width:0.54178977;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path826" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.25333717;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path827" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.191763,0.000000,0.000000,1.184580,80.60843,-21.23427)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2915);stroke-width:0.60939527;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path828" /> <path d="M 123.79466 57.694656 A 5.7135997 5.6801867 0 1 0 112.36746,57.694656 A 5.7135997 5.6801867 0 1 0 123.79466 57.694656 z" transform="matrix(1.211269,0.000000,0.000000,1.218512,76.12298,-22.10502)" style="fill:#ececf3;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path829" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2957);stroke-width:0.25333717;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path830" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.179335,0.000000,0.000000,1.179308,82.05316,-20.92520)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient3124);stroke-width:0.21919590;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path831" /> <rect width="1.0204374" height="4.0817494" x="-184.82507" y="115.64051" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect832" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,116.1740,1.567967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path833" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,127.4240,1.567967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path834" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,121.7990,7.192967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path835" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,121.7990,-4.057033)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path836" /> <rect width="1.0204374" height="4.0817494" x="-184.84271" y="112.10372" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect837" /> <rect width="1.0204378" height="4.0817513" x="112.95801" y="-188.59544" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect838" /> <rect width="1.0204381" height="4.0817523" x="112.97358" y="-187.03423" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect839" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(0.970462,0.000000,0.000000,0.970463,106.2717,-8.747276)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.64402282;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path840" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(-1.179335,0.000000,0.000000,-1.179308,356.2486,117.3184)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.21919590;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path841" /> </g> <path d="M 8.3354651,4.4211148 C 8.5569944,5.1059582 8.7834603,5.7956727 8.8937870,6.5088281 C 8.7560403,5.3737095 8.8687557,4.2233891 9.0197197,3.0952896 C 8.0225194,4.1700147 7.0944412,5.3063488 6.1271889,6.4077896 C 6.1782268,6.7788595 6.0238789,7.3562929 6.2063733,7.5952896 C 7.8698833,7.5952896 9.5333834,7.5952896 11.196893,7.5952896 C 11.135146,7.1775163 11.322378,6.5072977 11.099973,6.2524280 C 10.095577,6.2599689 9.0899267,6.2174400 8.0866452,6.2827896 C 9.0152310,5.2944373 9.9301018,4.2929446 10.821454,3.2704959 C 10.447219,3.3424473 10.102723,3.5931982 9.7475078,3.7522748 C 9.2825033,3.9867014 8.8198775,4.2289247 8.3354651,4.4211148 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ff0000;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:2.4940922;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text818" /> <path d="M -1.7763568e-15,6.3306406 C -1.7763568e-15,5.9385506 -1.7763568e-15,5.5464606 -1.7763568e-15,5.1543716 C 0.96806847,4.0519846 1.9049449,2.9211866 2.9027424,1.8457776 C 2.0052591,1.8832936 1.1065616,1.8673056 0.20849113,1.8780036 C 0.20849113,1.4608496 0.20849113,1.0436946 0.20849113,0.62653957 C 1.7730107,0.62653957 3.3375302,0.62653957 4.9020497,0.62653957 C 4.9020497,0.98282157 4.9020497,1.3391046 4.9020497,1.6953866 C 3.9254218,2.8122656 2.9819168,3.9589156 1.9672394,5.0415786 C 2.9993143,4.9741756 4.0342457,5.0152336 5.0677637,5.0039806 C 5.0677637,5.4462006 5.0677637,5.8884206 5.0677637,6.3306406 C 3.3785058,6.3306406 1.6892579,6.3306406 -1.7763568e-15,6.3306406 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text821" /> <path d="M 6.2204963,7.5806406 C 6.2204963,7.1885506 6.2204963,6.7964606 6.2204963,6.4043716 C 7.1885648,5.3019846 8.1254412,4.1711866 9.1232387,3.0957776 C 8.2257554,3.1332936 7.3270579,3.1173056 6.4289875,3.1280036 C 6.4289875,2.7108496 6.4289875,2.2936946 6.4289875,1.8765396 C 7.9935070,1.8765396 9.5580265,1.8765396 11.122546,1.8765396 C 11.122546,2.2328216 11.122546,2.5891046 11.122546,2.9453866 C 10.145918,4.0622656 9.2024132,5.2089156 8.1877358,6.2915786 C 9.2198107,6.2241756 10.254742,6.2652336 11.288260,6.2539806 C 11.288260,6.6962006 11.288260,7.1384206 11.288260,7.5806406 C 9.5990022,7.5806406 7.9097542,7.5806406 6.2204963,7.5806406 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text870" /> </svg> ����������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/away.svg���������������������������������������������������������0000644�0001750�0001750�00000032301�10410766735�017733� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient3124" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <radialGradient cx="0.81666684" cy="0.86111093" r="0.63335794" fx="0.82222235" fy="0.85555542" id="radialGradient2957" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.98351645" y1="0.98333335" x2="0.23076923" y2="0.17777778" id="linearGradient2915" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient2952" inkscape:collect="always" xlink:href="#linearGradient2946" /> <linearGradient x1="0.34615386" y1="0.27222222" x2="0.98901099" y2="0.99444443" id="linearGradient2913" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="translate(-100.0014,-48.29105)" id="g983"> <path d="M 124.36267 57.778187 A 7.7183714 7.7684908 0 1 0 108.92593,57.778187 A 7.7183714 7.7684908 0 1 0 124.36267 57.778187 z" transform="matrix(1.198851,0.000000,0.000000,1.191107,-29.83768,-10.52891)" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2938" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.301979,0.000000,0.000000,1.301288,-41.35358,-17.98022)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.5865387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path1664" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2913);stroke-width:0.54178977;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2911" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.25333717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2950" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.191763,0.000000,0.000000,1.184580,-28.54099,-11.13975)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2915);stroke-width:0.60939527;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2914" /> <path d="M 123.79466 57.694656 A 5.7135997 5.6801867 0 1 0 112.36746,57.694656 A 5.7135997 5.6801867 0 1 0 123.79466 57.694656 z" transform="matrix(1.211269,0.000000,0.000000,1.218512,-33.02644,-12.01050)" style="fill:#ececf3;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2924" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,-66.42380,-30.67413)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2957);stroke-width:0.25333717;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path2953" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.179335,0.000000,0.000000,1.179308,-27.09626,-10.83068)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient3124);stroke-width:0.21919590;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3123" /> <rect width="1.0204374" height="4.0817494" x="-118.01519" y="33.943893" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect2958" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,7.024595,11.66249)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path2976" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,18.27460,11.66249)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3024" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,12.64960,17.28749)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3025" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,12.64960,6.037485)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="path3026" /> <rect width="1.0204374" height="4.0817494" x="-118.03284" y="30.407104" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3028" /> <rect width="1.0204378" height="4.0817513" x="31.261391" y="-121.78556" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3029" /> <rect width="1.0204381" height="4.0817523" x="31.276966" y="-120.22436" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" id="rect3118" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(0.970462,0.000000,0.000000,0.970463,-2.877711,1.347242)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.64402282;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3120" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(-1.179335,0.000000,0.000000,-1.179308,247.0991,127.4130)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.21919590;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path3122" /> </g> </svg> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/ice-userlist/away+idle.svg����������������������������������������������������0000644�0001750�0001750�00000036730�10410766735�020656� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0.0000000" y="0.0000000" width="20.000000" height="20.000000" id="svg1114"> <defs id="defs1116"> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient3124" inkscape:collect="always" xlink:href="#linearGradient2954" /> <radialGradient cx="0.81666684" cy="0.86111093" r="0.63335794" fx="0.82222235" fy="0.85555542" id="radialGradient2957" inkscape:collect="always" xlink:href="#linearGradient2954" /> <linearGradient x1="0.98351645" y1="0.98333335" x2="0.23076923" y2="0.17777778" id="linearGradient2915" inkscape:collect="always" xlink:href="#linearGradient2907" /> <radialGradient cx="0.19444431" cy="0.22777788" r="0.63335794" fx="0.18888874" fy="0.21666677" id="radialGradient2952" inkscape:collect="always" xlink:href="#linearGradient2946" /> <linearGradient x1="0.34615386" y1="0.27222222" x2="0.98901099" y2="0.99444443" id="linearGradient2913" inkscape:collect="always" xlink:href="#linearGradient2907" /> <linearGradient id="linearGradient2954"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop2955" /> <stop style="stop-color:#000000;stop-opacity:0.0000000;" offset="1.0000000" id="stop2956" /> </linearGradient> <linearGradient id="linearGradient2946"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop2947" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop2948" /> </linearGradient> <linearGradient id="linearGradient1105"> <stop style="stop-color:#ffffff;stop-opacity:0.74901962;" offset="0.0000000" id="stop1106" /> <stop style="stop-color:#ffffff;stop-opacity:0.25098041;" offset="0.50000000" id="stop1110" /> <stop style="stop-color:#ffffff;stop-opacity:0.0000000;" offset="1.0000000" id="stop1109" /> </linearGradient> <linearGradient id="linearGradient2907"> <stop style="stop-color:#ffff19;stop-opacity:1.0000000;" offset="0.0000000" id="stop2908" /> <stop style="stop-color:#705319;stop-opacity:1.0000000;" offset="1.0000000" id="stop2909" /> </linearGradient> <linearGradient id="linearGradient1005"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1006" /> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.34999999" id="stop1009" /> <stop style="stop-color:#bfbfbf;stop-opacity:1.0000000;" offset="0.69999999" id="stop1008" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop1007" /> </linearGradient> <linearGradient id="linearGradient1243"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop1244" /> <stop style="stop-color:#5f8ebe;stop-opacity:1.0000000;" offset="0.50000000" id="stop1245" /> <stop style="stop-color:#3a5775;stop-opacity:1.0000000;" offset="1.0000000" id="stop1246" /> </linearGradient> <linearGradient id="linearGradient3165"> <stop style="stop-color:#ffffff;stop-opacity:1.0000000;" offset="0.0000000" id="stop3166" /> <stop style="stop-color:#ff7f7f;stop-opacity:1.0000000;" offset="0.25000000" id="stop3180" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.50000000" id="stop3168" /> <stop style="stop-color:#ff0000;stop-opacity:1.0000000;" offset="0.75000000" id="stop3169" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3167" /> </linearGradient> <linearGradient id="linearGradient3175"> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="0.0000000" id="stop3176" /> <stop style="stop-color:#7f7f7f;stop-opacity:1.0000000;" offset="0.50000000" id="stop3178" /> <stop style="stop-color:#000000;stop-opacity:1.0000000;" offset="1.0000000" id="stop3177" /> </linearGradient> </defs> <metadata id="metadata1117"> <rdf:RDF id="RDF1118"> <cc:Work rdf:about="" id="Work1119"> <dc:format id="format1120">image/svg+xml</dc:format> <dc:type id="type1122" rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> </metadata> <g transform="matrix(0.870990,0.000000,0.000000,0.874807,-179.5880,-31.53432)" style="stroke-linecap:round;stroke-linejoin:round;" id="g842"> <path d="M 124.36267 57.778187 A 7.7183714 7.7684908 0 1 0 108.92593,57.778187 A 7.7183714 7.7684908 0 1 0 124.36267 57.778187 z" transform="matrix(1.198851,0.000000,0.000000,1.191107,79.31174,-20.62342)" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path824" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.301979,0.000000,0.000000,1.301288,67.79584,-28.07474)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#f8e519;stroke-width:1.5865387;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path825" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2913);stroke-width:0.54178977;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path826" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.25333717;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path827" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.191763,0.000000,0.000000,1.184580,80.60843,-21.23427)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#linearGradient2915);stroke-width:0.60939527;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path828" /> <path d="M 123.79466 57.694656 A 5.7135997 5.6801867 0 1 0 112.36746,57.694656 A 5.7135997 5.6801867 0 1 0 123.79466 57.694656 z" transform="matrix(1.211269,0.000000,0.000000,1.218512,76.12298,-22.10502)" style="fill:#ececf3;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path829" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.517637,0.000000,0.000000,1.517862,42.72562,-40.76865)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2957);stroke-width:0.25333717;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path830" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(1.179335,0.000000,0.000000,1.179308,82.05316,-20.92520)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient3124);stroke-width:0.21919590;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path831" /> <rect width="1.0204374" height="4.0817494" x="-184.82507" y="115.64051" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect832" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,116.1740,1.567967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path833" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,127.4240,1.567967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path834" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,121.7990,7.192967)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path835" /> <path d="M 116.57747 61.269833 A 0.15035789 0.16706431 0 1 0 116.27676,61.269833 A 0.15035789 0.16706431 0 1 0 116.57747 61.269833 z" transform="matrix(0.836155,0.000000,0.000000,0.761026,121.7990,-4.057033)" style="fill:#ff0000;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000000pt;stroke-opacity:1.0000000;" id="path836" /> <rect width="1.0204374" height="4.0817494" x="-184.84271" y="112.10372" transform="matrix(-0.734981,-0.678088,0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect837" /> <rect width="1.0204378" height="4.0817513" x="112.95801" y="-188.59544" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect838" /> <rect width="1.0204381" height="4.0817523" x="112.97358" y="-187.03423" transform="matrix(0.734981,-0.678088,-0.734981,-0.678088,0.000000,0.000000)" style="fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.42491827pt;stroke-opacity:1.0000000;" id="rect839" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(0.970462,0.000000,0.000000,0.970463,106.2717,-8.747276)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.64402282;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path840" /> <path d="M 122.50000 58.612183 A 6.2500000 6.2500000 0 1 0 110.00000,58.612183 A 6.2500000 6.2500000 0 1 0 122.50000 58.612183 z" transform="matrix(-1.179335,0.000000,0.000000,-1.179308,356.2486,117.3184)" style="fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:url(#radialGradient2952);stroke-width:0.21919590;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;" id="path841" /> </g> <path d="M 8.3354651,4.4211148 C 8.5569944,5.1059582 8.7834603,5.7956727 8.8937870,6.5088281 C 8.7560403,5.3737095 8.8687557,4.2233891 9.0197197,3.0952896 C 8.0225194,4.1700147 7.0944412,5.3063488 6.1271889,6.4077896 C 6.1782268,6.7788595 6.0238789,7.3562929 6.2063733,7.5952896 C 7.8698833,7.5952896 9.5333834,7.5952896 11.196893,7.5952896 C 11.135146,7.1775163 11.322378,6.5072977 11.099973,6.2524280 C 10.095577,6.2599689 9.0899267,6.2174400 8.0866452,6.2827896 C 9.0152310,5.2944373 9.9301018,4.2929446 10.821454,3.2704959 C 10.447219,3.3424473 10.102723,3.5931982 9.7475078,3.7522748 C 9.2825033,3.9867014 8.8198775,4.2289247 8.3354651,4.4211148 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ff0000;fill-opacity:1.0000000;stroke:#ffffff;stroke-width:2.4940922;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text818" /> <path d="M -1.7763568e-15,6.3306406 C -1.7763568e-15,5.9385506 -1.7763568e-15,5.5464606 -1.7763568e-15,5.1543716 C 0.96806847,4.0519846 1.9049449,2.9211866 2.9027424,1.8457776 C 2.0052591,1.8832936 1.1065616,1.8673056 0.20849113,1.8780036 C 0.20849113,1.4608496 0.20849113,1.0436946 0.20849113,0.62653957 C 1.7730107,0.62653957 3.3375302,0.62653957 4.9020497,0.62653957 C 4.9020497,0.98282157 4.9020497,1.3391046 4.9020497,1.6953866 C 3.9254218,2.8122656 2.9819168,3.9589156 1.9672394,5.0415786 C 2.9993143,4.9741756 4.0342457,5.0152336 5.0677637,5.0039806 C 5.0677637,5.4462006 5.0677637,5.8884206 5.0677637,6.3306406 C 3.3785058,6.3306406 1.6892579,6.3306406 -1.7763568e-15,6.3306406 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text821" /> <path d="M 6.2204963,7.5806406 C 6.2204963,7.1885506 6.2204963,6.7964606 6.2204963,6.4043716 C 7.1885648,5.3019846 8.1254412,4.1711866 9.1232387,3.0957776 C 8.2257554,3.1332936 7.3270579,3.1173056 6.4289875,3.1280036 C 6.4289875,2.7108496 6.4289875,2.2936946 6.4289875,1.8765396 C 7.9935070,1.8765396 9.5580265,1.8765396 11.122546,1.8765396 C 11.122546,2.2328216 11.122546,2.5891046 11.122546,2.9453866 C 10.145918,4.0622656 9.2024132,5.2089156 8.1877358,6.2915786 C 9.2198107,6.2241756 10.254742,6.2652336 11.288260,6.2539806 C 11.288260,6.6962006 11.288260,7.1384206 11.288260,7.5806406 C 9.5990022,7.5806406 7.9097542,7.5806406 6.2204963,7.5806406 z " style="font-size:11.000000;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1.0000000;font-family:Arial;text-anchor:start;writing-mode:lr;" id="text870" /> </svg> ����������������������������������������gnoemoe-2.2.0/pixmaps/tray/�������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�014614� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/tray/Makefile.am��������������������������������������������������������������0000644�0001750�0001750�00000000210�10410766735�016646� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������traydir = $(pkgdatadir)/pixmaps/tray tray_DATA = default.svg \ active.svg \ activity.svg \ notify.svg EXTRA_DIST = $(tray_DATA) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/tray/Makefile.in��������������������������������������������������������������0000644�0001750�0001750�00000027675�10517752445�016710� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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/tray DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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)$(traydir)" trayDATA_INSTALL = $(INSTALL_DATA) DATA = $(tray_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ traydir = $(pkgdatadir)/pixmaps/tray tray_DATA = default.svg \ active.svg \ activity.svg \ notify.svg EXTRA_DIST = $(tray_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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/tray/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu pixmaps/tray/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-trayDATA: $(tray_DATA) @$(NORMAL_INSTALL) test -z "$(traydir)" || $(mkdir_p) "$(DESTDIR)$(traydir)" @list='$(tray_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(trayDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(traydir)/$$f'"; \ $(trayDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(traydir)/$$f"; \ done uninstall-trayDATA: @$(NORMAL_UNINSTALL) @list='$(tray_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(traydir)/$$f'"; \ rm -f "$(DESTDIR)$(traydir)/$$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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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)$(traydir)"; 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 distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-trayDATA install-exec-am: install-info: install-info-am install-man: 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-info-am uninstall-trayDATA .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-exec install-exec-am \ install-info install-info-am install-man install-strip \ install-trayDATA installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am uninstall-trayDATA # 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: �������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/tray/default.svg��������������������������������������������������������������0000644�0001750�0001750�00000034673�10410766735�017003� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1383" height="20.000000" width="20.000000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2407" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2405" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2099"> <stop id="stop2101" offset="0.0000000" style="stop-color:#babbdc;stop-opacity:1.0000000;" /> <stop id="stop2103" offset="0.60000002" style="stop-color:#9193d5;stop-opacity:1.0000000;" /> <stop id="stop2105" offset="1.0000000" style="stop-color:#6164c4;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2099" id="radialGradient2403" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> <linearGradient id="linearGradient2170"> <stop id="stop2172" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.62352943;" /> <stop id="stop2174" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2389" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <linearGradient id="linearGradient2156"> <stop id="stop2158" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> <stop id="stop2162" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2387" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2183"> <stop id="stop2185" offset="0.0000000" style="stop-color:#dcbbbb;stop-opacity:1.0000000;" /> <stop id="stop2187" offset="0.60000002" style="stop-color:#d59191;stop-opacity:1.0000000;" /> <stop id="stop2189" offset="1.0000000" style="stop-color:#c46161;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2183" id="radialGradient2385" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> </defs> <g id="layer1"> <g id="g2352" transform="matrix(3.960176e-2,0.000000,0.000000,3.960176e-2,8.583018e-2,-0.542443)"> <path id="path2205" style="fill:url(#radialGradient2403);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2207" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 49.437500,116.68750 C 9.5976600,169.60788 -7.6271960,238.90434 2.9105100,304.39310 C 10.308170,354.10552 33.551850,401.19028 68.005840,437.74812 C 101.74452,473.63467 146.21320,499.26985 194.24680,510.25156 C 199.99153,509.77997 204.92357,504.08065 210.37445,501.55834 C 215.90779,497.67119 223.83362,494.37316 226.03125,487.84375 C 214.71347,483.03902 201.26103,489.57962 190.31449,482.76524 C 183.05001,480.40226 172.18692,473.68002 177.21875,464.71875 C 181.84751,455.69206 188.37504,446.27587 187.84375,435.81250 C 182.27407,432.29351 176.75441,439.84769 171.85169,442.23271 C 163.44133,448.75531 155.02010,439.49404 147.83592,435.54196 C 141.04333,431.13375 133.90750,423.08322 138.65546,414.63331 C 140.43113,409.52457 144.56495,404.72912 145.00000,399.43750 C 132.04760,387.74827 112.42524,381.33455 106.61503,363.19063 C 103.49587,357.85237 108.14552,350.98603 114.32775,353.19001 C 130.59663,356.43830 144.14277,367.19756 159.53125,372.59375 C 159.03403,362.21575 150.46649,353.36290 151.00000,342.90625 C 155.25471,338.23625 163.21295,340.61619 168.81504,338.17213 C 180.29677,335.24106 192.71966,332.03960 202.34375,325.43750 C 197.91139,314.26859 189.38937,305.02268 182.04158,295.62421 C 172.08277,286.05686 164.87883,272.96910 166.22505,258.78312 C 167.59111,251.89486 161.52097,248.10257 155.68750,246.71875 C 147.36821,242.57850 137.13811,240.61477 130.75000,233.56250 C 127.56405,225.44229 132.68058,217.37859 134.65625,209.68750 C 127.81109,194.34143 110.02988,187.49041 94.103600,187.62518 C 85.825620,187.08688 71.951440,187.44949 71.187500,176.34375 C 69.469880,168.39415 71.102430,159.54252 78.320230,154.80574 C 84.761240,148.88834 97.483650,143.82876 93.788660,132.90201 C 88.703610,118.40413 76.709880,106.47826 62.687500,100.50000 C 58.270830,105.89583 53.854170,111.29167 49.437500,116.68750 z " /> <path id="path2209" style="opacity:0.24999996;fill:url(#radialGradient2405);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2211" style="fill:url(#radialGradient2407);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2213" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 399.65625,62.656250 C 382.54719,65.809370 363.97591,82.236010 344.21875,117.96875 C 348.41098,131.94283 317.84416,130.43163 304.56250,136.46875 C 294.03305,141.25487 292.40506,151.23182 291.34375,162.90625 C 289.64992,181.53839 312.27807,174.90784 286.03125,188.03125 C 274.43186,193.83095 288.05331,216.68222 279.43750,226.37500 C 268.46058,238.72403 284.65807,245.38859 292.65625,250.18750 C 308.12778,259.47042 324.86886,219.77254 327.03125,211.84375 C 331.91737,193.92794 337.00795,191.37256 345.53125,185.40625 C 355.16461,178.66291 350.37475,208.43658 353.46875,219.78125 C 356.05583,229.26718 347.30719,246.40211 346.84375,251.50000 C 346.16847,258.92820 378.05172,253.87859 345.53125,264.71875 C 338.97503,266.90416 346.08936,273.95213 342.90625,284.56250 C 340.81195,291.54352 334.17822,295.45725 332.31250,305.71875 C 330.62965,314.97443 323.54941,324.44727 319.09375,330.81250 C 314.49539,337.38158 341.49218,341.03906 345.53125,341.40625 C 353.24994,342.10796 363.33867,349.86047 371.96875,353.31250 C 386.54655,359.14361 374.74782,374.74768 371.96875,379.75000 C 366.61834,389.38075 365.35096,412.81610 375.93750,400.90625 C 387.25289,388.17646 407.94039,383.69590 414.28125,367.84375 C 420.27486,352.85972 405.96038,347.20200 399.75000,334.78125 C 392.94162,321.16450 405.78361,313.60281 411.62500,307.03125 C 475.09922,315.11177 404.24911,360.92665 448.65625,359.90625 C 455.23268,356.25268 452.86072,283.91891 460.56250,283.21875 C 469.26117,282.42797 488.86303,287.73014 501.84375,288.34375 C 502.47868,281.04649 502.87500,273.67982 502.87500,266.21875 C 502.87500,182.69263 462.20861,108.63106 399.65625,62.656250 z " /> <path id="path2215" style="fill:#18551f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 135.32722,110.03897 C 121.98710,120.71107 152.08415,135.15817 159.12436,135.15817 C 180.96110,135.15817 190.38957,140.12381 194.82006,117.97135 C 197.74779,103.33269 216.13712,99.812010 223.90545,95.496280 C 232.84080,90.532190 224.93446,74.879410 227.87163,65.088830 C 232.15017,50.827040 213.12453,51.331700 205.39656,49.224070 C 189.97641,45.018570 178.92989,58.503920 171.02292,66.410890 C 164.35819,73.075620 149.22800,70.105020 141.93754,73.021210 C 126.36521,79.250140 155.35654,86.241830 161.76848,86.241830 C 175.52283,83.597700 146.88983,100.78888 135.32722,110.03897 z " /> <path id="path2217" style="opacity:0.099999972;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 48.187500,124.40625 C -1.6207600,190.56969 -13.978323,282.87199 17.061220,359.72647 C 45.173010,431.33820 108.99006,488.71895 184.04223,506.50276 C 192.51780,509.02061 199.09197,500.95210 206.03285,497.26410 C 207.81574,494.65005 195.65768,496.82064 191.70916,495.07030 C 181.71784,493.32843 170.39424,489.08779 165.71875,479.34375 C 160.37898,468.30241 171.08569,459.31509 174.05637,449.35193 C 174.19270,446.36595 166.58063,453.68019 162.92103,453.77971 C 153.25451,456.30241 145.14979,448.17720 137.37784,443.68475 C 127.72164,437.44422 121.62953,424.16910 128.41304,413.67460 C 132.57168,408.29626 132.27474,403.55922 125.50063,400.97969 C 112.16569,391.68729 96.881990,381.45420 93.916170,364.16335 C 92.510810,353.38952 106.59067,347.62877 114.88882,352.84504 C 125.12373,355.88026 134.30336,361.42984 144.03125,365.68750 C 141.05661,358.45086 135.93602,348.03258 142.49324,341.47261 C 152.70468,335.90215 165.03357,337.03535 175.60779,332.16962 C 179.36902,330.54499 186.85772,329.57638 187.86265,326.15458 C 177.52178,306.86016 156.08045,293.01972 154.39657,269.58757 C 154.51617,264.46394 154.76014,257.60868 148.25153,256.59640 C 137.09561,251.36225 120.80599,248.33845 117.81250,234.31250 C 116.76895,227.02308 121.90199,219.97546 121.21549,213.14418 C 111.90553,198.11962 92.413510,197.54866 76.656250,196.78125 C 65.970910,195.62856 57.235050,185.95527 58.647090,175.00645 C 57.974580,162.52727 67.873420,153.19094 77.613480,147.14427 C 82.764790,143.79110 83.101260,137.23780 79.128590,132.86860 C 74.583390,123.95207 66.930840,116.87622 58.156250,112.18750 C 54.833330,116.26042 51.510420,120.33333 48.187500,124.40625 z " /> <path id="path2219" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 399.37500,70.093750 C 378.29141,80.086930 364.72487,100.70788 354.20936,120.52866 C 353.54971,132.87632 338.98983,135.47392 329.25510,137.47334 C 319.33904,139.48865 305.10504,140.60223 303.10159,153.00100 C 300.88136,160.28952 300.24041,169.50025 307.00000,174.59375 C 311.74293,183.44393 301.30223,189.41807 294.53125,192.40625 C 287.43904,198.49610 293.62889,208.51152 292.31906,216.40610 C 293.44124,223.41168 287.01197,228.87655 286.62500,235.18750 C 289.61107,240.51338 296.32367,243.57831 301.93679,244.89706 C 310.40467,242.68375 313.71627,232.88257 318.43750,226.37500 C 326.31132,210.65509 328.73782,189.78081 345.89502,180.88085 C 352.80806,175.61900 360.86666,182.13224 361.56250,189.62500 C 361.77949,201.78476 363.24024,213.92725 363.36635,226.08849 C 363.80310,234.50241 359.13324,241.77081 357.90625,249.75000 C 363.21804,250.01381 371.15411,253.44787 369.40625,260.31250 C 366.43351,266.61567 358.54840,267.05580 353.03125,270.00000 C 355.05234,280.86303 351.24782,291.82104 344.88544,300.47050 C 340.45931,310.86159 337.52199,322.30876 330.12500,331.00000 C 340.60124,334.85022 352.97436,334.77049 363.35368,339.97934 C 372.19442,345.51028 385.29528,348.26033 388.62062,359.45184 C 390.35779,372.21800 379.28802,382.23593 377.81250,394.53125 C 388.27941,384.30020 404.25153,379.87559 411.73404,366.79806 C 417.15865,356.81953 405.91795,349.69951 401.46737,342.06510 C 393.55808,333.15402 394.91462,319.32929 403.13220,311.11574 C 407.95921,306.11871 413.93296,299.01026 421.68561,302.25164 C 435.22896,303.19276 450.88128,312.82483 449.53125,328.09375 C 448.83115,336.51118 443.23641,344.00746 443.81250,352.56250 C 448.83380,356.72366 450.77585,349.70056 450.01113,345.75989 C 452.99959,324.39633 451.01999,302.02173 458.25000,281.46875 C 466.01067,272.90788 477.96689,279.58417 487.58569,279.80942 C 493.09157,279.85509 502.84925,285.04161 500.50923,275.60079 C 504.07415,198.78507 468.47279,121.54970 408.28591,73.819440 C 405.84158,71.817640 402.79052,68.517350 399.37500,70.093750 z " /> <path id="path2221" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 196.03125,52.906250 C 182.00437,57.216240 175.15670,74.984920 159.18750,74.812500 C 151.16243,74.846220 147.23312,76.198190 157.48405,77.439620 C 162.27451,78.713660 169.80722,75.918110 170.87803,82.654960 C 172.32034,91.697580 161.43665,95.747350 155.74416,100.54906 C 149.86694,104.68076 143.92700,108.77405 138.71875,113.75000 C 141.15812,121.11726 150.07831,123.83205 156.71540,126.12510 C 165.40474,127.98036 175.16304,128.43926 183.50914,125.87681 C 190.54103,118.43112 189.02421,105.44226 198.57500,99.722680 C 205.09564,93.401230 216.48303,93.057250 221.56332,85.691980 C 222.94075,76.913280 220.18862,68.050720 221.90625,59.281250 C 217.78697,53.226760 208.89717,55.022290 202.62390,52.950740 C 200.44632,52.459090 198.23369,52.885700 196.03125,52.906250 z " /> </g> </g> </svg> ���������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/tray/active.svg���������������������������������������������������������������0000644�0001750�0001750�00000036475�10410766735�016634� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1383" height="20.000000" width="20.000000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2395" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2393" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2147"> <stop id="stop2149" offset="0.0000000" style="stop-color:#dcdcbb;stop-opacity:1.0000000;" /> <stop id="stop2153" offset="0.60000002" style="stop-color:#d5d591;stop-opacity:1.0000000;" /> <stop id="stop2151" offset="1.0000000" style="stop-color:#c4c361;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2147" id="radialGradient2391" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2401" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2399" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2329"> <stop id="stop2331" offset="0.0000000" style="stop-color:#c0dcbb;stop-opacity:1.0000000;" /> <stop id="stop2333" offset="0.60000002" style="stop-color:#9bd591;stop-opacity:1.0000000;" /> <stop id="stop2335" offset="1.0000000" style="stop-color:#6fc461;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2329" id="radialGradient2397" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> <linearGradient id="linearGradient2099"> <stop id="stop2101" offset="0.0000000" style="stop-color:#babbdc;stop-opacity:1.0000000;" /> <stop id="stop2103" offset="0.60000002" style="stop-color:#9193d5;stop-opacity:1.0000000;" /> <stop id="stop2105" offset="1.0000000" style="stop-color:#6164c4;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2170"> <stop id="stop2172" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.62352943;" /> <stop id="stop2174" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <linearGradient id="linearGradient2156"> <stop id="stop2158" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> <stop id="stop2162" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <linearGradient id="linearGradient2183"> <stop id="stop2185" offset="0.0000000" style="stop-color:#dcbbbb;stop-opacity:1.0000000;" /> <stop id="stop2187" offset="0.60000002" style="stop-color:#d59191;stop-opacity:1.0000000;" /> <stop id="stop2189" offset="1.0000000" style="stop-color:#c46161;stop-opacity:1.0000000;" /> </linearGradient> </defs> <g id="layer1"> <g id="g2363" transform="matrix(3.960064e-2,0.000000,0.000000,3.960176e-2,-20.50650,-0.542442)"> <path id="path2237" style="fill:url(#radialGradient2391);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2239" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 569.43750,116.68750 C 529.59766,169.60788 512.37280,238.90434 522.91051,304.39310 C 530.30817,354.10552 553.55185,401.19028 588.00584,437.74812 C 621.74452,473.63467 666.21320,499.26985 714.24680,510.25156 C 719.99153,509.77997 724.92357,504.08065 730.37445,501.55834 C 735.90779,497.67119 743.83362,494.37316 746.03125,487.84375 C 734.71347,483.03902 721.26103,489.57962 710.31449,482.76524 C 703.05001,480.40226 692.18692,473.68002 697.21875,464.71875 C 701.84751,455.69206 708.37504,446.27587 707.84375,435.81250 C 702.27407,432.29351 696.75441,439.84769 691.85169,442.23271 C 683.44133,448.75531 675.02010,439.49404 667.83592,435.54196 C 661.04333,431.13375 653.90750,423.08322 658.65546,414.63331 C 660.43113,409.52457 664.56495,404.72912 665.00000,399.43750 C 652.04760,387.74827 632.42524,381.33455 626.61503,363.19063 C 623.49587,357.85237 628.14552,350.98603 634.32775,353.19001 C 650.59663,356.43830 664.14277,367.19756 679.53125,372.59375 C 679.03403,362.21575 670.46649,353.36290 671.00000,342.90625 C 675.25471,338.23625 683.21295,340.61619 688.81504,338.17213 C 700.29677,335.24106 712.71966,332.03960 722.34375,325.43750 C 717.91139,314.26859 709.38937,305.02268 702.04158,295.62421 C 692.08277,286.05686 684.87883,272.96910 686.22505,258.78312 C 687.59111,251.89486 681.52097,248.10257 675.68750,246.71875 C 667.36821,242.57850 657.13811,240.61477 650.75000,233.56250 C 647.56405,225.44229 652.68058,217.37859 654.65625,209.68750 C 647.81109,194.34143 630.02988,187.49041 614.10360,187.62518 C 605.82562,187.08688 591.95144,187.44949 591.18750,176.34375 C 589.46988,168.39415 591.10243,159.54252 598.32023,154.80574 C 604.76124,148.88834 617.48365,143.82876 613.78866,132.90201 C 608.70361,118.40413 596.70988,106.47826 582.68750,100.50000 C 578.27083,105.89583 573.85417,111.29167 569.43750,116.68750 z " /> <path id="path2241" style="opacity:0.24999996;fill:url(#radialGradient2393);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2243" style="fill:url(#radialGradient2395);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,-100.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2245" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 919.65625,62.656250 C 902.54719,65.809370 883.97591,82.236010 864.21875,117.96875 C 868.41098,131.94283 837.84416,130.43163 824.56250,136.46875 C 814.03305,141.25487 812.40506,151.23182 811.34375,162.90625 C 809.64992,181.53839 832.27807,174.90784 806.03125,188.03125 C 794.43186,193.83095 808.05331,216.68222 799.43750,226.37500 C 788.46058,238.72403 804.65807,245.38859 812.65625,250.18750 C 828.12778,259.47042 844.86886,219.77254 847.03125,211.84375 C 851.91737,193.92794 857.00795,191.37256 865.53125,185.40625 C 875.16461,178.66291 870.37475,208.43658 873.46875,219.78125 C 876.05583,229.26718 867.30719,246.40211 866.84375,251.50000 C 866.16847,258.92820 898.05172,253.87859 865.53125,264.71875 C 858.97503,266.90416 866.08936,273.95213 862.90625,284.56250 C 860.81195,291.54352 854.17822,295.45725 852.31250,305.71875 C 850.62965,314.97443 843.54941,324.44727 839.09375,330.81250 C 834.49539,337.38158 861.49218,341.03906 865.53125,341.40625 C 873.24994,342.10796 883.33867,349.86047 891.96875,353.31250 C 906.54655,359.14361 894.74782,374.74768 891.96875,379.75000 C 886.61834,389.38075 885.35096,412.81610 895.93750,400.90625 C 907.25289,388.17646 927.94039,383.69590 934.28125,367.84375 C 940.27486,352.85972 925.96038,347.20200 919.75000,334.78125 C 912.94162,321.16450 925.78361,313.60281 931.62500,307.03125 C 995.09922,315.11177 924.24911,360.92665 968.65625,359.90625 C 975.23268,356.25268 972.86072,283.91891 980.56250,283.21875 C 989.26117,282.42797 1008.8630,287.73014 1021.8438,288.34375 C 1022.4787,281.04649 1022.8750,273.67982 1022.8750,266.21875 C 1022.8750,182.69263 982.20861,108.63106 919.65625,62.656250 z " /> <path id="path2247" style="fill:#18551f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 655.32722,110.03897 C 641.98710,120.71107 672.08415,135.15817 679.12436,135.15817 C 700.96110,135.15817 710.38957,140.12381 714.82006,117.97135 C 717.74779,103.33269 736.13712,99.812010 743.90545,95.496280 C 752.84080,90.532190 744.93446,74.879410 747.87163,65.088830 C 752.15017,50.827040 733.12453,51.331700 725.39656,49.224070 C 709.97641,45.018570 698.92989,58.503920 691.02292,66.410890 C 684.35819,73.075620 669.22800,70.105020 661.93754,73.021210 C 646.36521,79.250140 675.35654,86.241830 681.76848,86.241830 C 695.52283,83.597700 666.88983,100.78888 655.32722,110.03897 z " /> <path id="path2249" style="opacity:0.099999972;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 568.18750,124.40625 C 518.37924,190.56969 506.02168,282.87199 537.06122,359.72647 C 565.17301,431.33820 628.99006,488.71895 704.04223,506.50276 C 712.51780,509.02061 719.09197,500.95210 726.03285,497.26410 C 727.81574,494.65005 715.65768,496.82064 711.70916,495.07030 C 701.71784,493.32843 690.39424,489.08779 685.71875,479.34375 C 680.37898,468.30241 691.08569,459.31509 694.05637,449.35193 C 694.19270,446.36595 686.58063,453.68019 682.92103,453.77971 C 673.25451,456.30241 665.14979,448.17720 657.37784,443.68475 C 647.72164,437.44422 641.62953,424.16910 648.41304,413.67460 C 652.57168,408.29626 652.27474,403.55922 645.50063,400.97969 C 632.16569,391.68729 616.88199,381.45420 613.91617,364.16335 C 612.51081,353.38952 626.59067,347.62877 634.88882,352.84504 C 645.12373,355.88026 654.30336,361.42984 664.03125,365.68750 C 661.05661,358.45086 655.93602,348.03258 662.49324,341.47261 C 672.70468,335.90215 685.03357,337.03535 695.60779,332.16962 C 699.36902,330.54499 706.85772,329.57638 707.86265,326.15458 C 697.52178,306.86016 676.08045,293.01972 674.39657,269.58757 C 674.51617,264.46394 674.76014,257.60868 668.25153,256.59640 C 657.09561,251.36225 640.80599,248.33845 637.81250,234.31250 C 636.76895,227.02308 641.90199,219.97546 641.21549,213.14418 C 631.90553,198.11962 612.41351,197.54866 596.65625,196.78125 C 585.97091,195.62856 577.23505,185.95527 578.64709,175.00645 C 577.97458,162.52727 587.87342,153.19094 597.61348,147.14427 C 602.76479,143.79110 603.10126,137.23780 599.12859,132.86860 C 594.58339,123.95207 586.93084,116.87622 578.15625,112.18750 C 574.83333,116.26042 571.51042,120.33333 568.18750,124.40625 z " /> <path id="path2251" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 919.37500,70.093750 C 898.29141,80.086930 884.72487,100.70788 874.20936,120.52866 C 873.54971,132.87632 858.98983,135.47392 849.25510,137.47334 C 839.33904,139.48865 825.10504,140.60223 823.10159,153.00100 C 820.88136,160.28952 820.24041,169.50025 827.00000,174.59375 C 831.74293,183.44393 821.30223,189.41807 814.53125,192.40625 C 807.43904,198.49610 813.62889,208.51152 812.31906,216.40610 C 813.44124,223.41168 807.01197,228.87655 806.62500,235.18750 C 809.61107,240.51338 816.32367,243.57831 821.93679,244.89706 C 830.40467,242.68375 833.71627,232.88257 838.43750,226.37500 C 846.31132,210.65509 848.73782,189.78081 865.89502,180.88085 C 872.80806,175.61900 880.86666,182.13224 881.56250,189.62500 C 881.77949,201.78476 883.24024,213.92725 883.36635,226.08849 C 883.80310,234.50241 879.13324,241.77081 877.90625,249.75000 C 883.21804,250.01381 891.15411,253.44787 889.40625,260.31250 C 886.43351,266.61567 878.54840,267.05580 873.03125,270.00000 C 875.05234,280.86303 871.24782,291.82104 864.88544,300.47050 C 860.45931,310.86159 857.52199,322.30876 850.12500,331.00000 C 860.60124,334.85022 872.97436,334.77049 883.35368,339.97934 C 892.19442,345.51028 905.29528,348.26033 908.62062,359.45184 C 910.35779,372.21800 899.28802,382.23593 897.81250,394.53125 C 908.27941,384.30020 924.25153,379.87559 931.73404,366.79806 C 937.15865,356.81953 925.91795,349.69951 921.46737,342.06510 C 913.55808,333.15402 914.91462,319.32929 923.13220,311.11574 C 927.95921,306.11871 933.93296,299.01026 941.68561,302.25164 C 955.22896,303.19276 970.88128,312.82483 969.53125,328.09375 C 968.83115,336.51118 963.23641,344.00746 963.81250,352.56250 C 968.83380,356.72366 970.77585,349.70056 970.01113,345.75989 C 972.99959,324.39633 971.01999,302.02173 978.25000,281.46875 C 986.01067,272.90788 997.96689,279.58417 1007.5857,279.80942 C 1013.0916,279.85509 1022.8492,285.04161 1020.5092,275.60079 C 1024.0741,198.78507 988.47279,121.54970 928.28591,73.819440 C 925.84158,71.817640 922.79052,68.517350 919.37500,70.093750 z " /> <path id="path2253" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 716.03125,52.906250 C 702.00437,57.216240 695.15670,74.984920 679.18750,74.812500 C 671.16243,74.846220 667.23312,76.198190 677.48405,77.439620 C 682.27451,78.713660 689.80722,75.918110 690.87803,82.654960 C 692.32034,91.697580 681.43665,95.747350 675.74416,100.54906 C 669.86694,104.68076 663.92700,108.77405 658.71875,113.75000 C 661.15812,121.11726 670.07831,123.83205 676.71540,126.12510 C 685.40474,127.98036 695.16304,128.43926 703.50914,125.87681 C 710.54103,118.43112 709.02421,105.44226 718.57500,99.722680 C 725.09564,93.401230 736.48303,93.057250 741.56332,85.691980 C 742.94075,76.913280 740.18862,68.050720 741.90625,59.281250 C 737.78697,53.226760 728.89717,55.022290 722.62390,52.950740 C 720.44632,52.459090 718.23369,52.885700 716.03125,52.906250 z " /> </g> </g> </svg> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/tray/activity.svg�������������������������������������������������������������0000644�0001750�0001750�00000037120�10410766735�017201� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1383" height="20.000000" width="20.000000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2401" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2399" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2329"> <stop id="stop2331" offset="0.0000000" style="stop-color:#c0dcbb;stop-opacity:1.0000000;" /> <stop id="stop2333" offset="0.60000002" style="stop-color:#9bd591;stop-opacity:1.0000000;" /> <stop id="stop2335" offset="1.0000000" style="stop-color:#6fc461;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2329" id="radialGradient2397" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2407" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2405" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2099"> <stop id="stop2101" offset="0.0000000" style="stop-color:#babbdc;stop-opacity:1.0000000;" /> <stop id="stop2103" offset="0.60000002" style="stop-color:#9193d5;stop-opacity:1.0000000;" /> <stop id="stop2105" offset="1.0000000" style="stop-color:#6164c4;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2099" id="radialGradient2403" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> <linearGradient id="linearGradient2170"> <stop id="stop2172" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.62352943;" /> <stop id="stop2174" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2389" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <linearGradient id="linearGradient2156"> <stop id="stop2158" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> <stop id="stop2162" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2387" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2183"> <stop id="stop2185" offset="0.0000000" style="stop-color:#dcbbbb;stop-opacity:1.0000000;" /> <stop id="stop2187" offset="0.60000002" style="stop-color:#d59191;stop-opacity:1.0000000;" /> <stop id="stop2189" offset="1.0000000" style="stop-color:#c46161;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2183" id="radialGradient2385" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> </defs> <g id="layer1"> <g id="g2341" transform="matrix(3.960176e-2,0.000000,0.000000,3.960176e-2,8.583018e-2,-21.13536)"> <path id="path1291" style="fill:url(#radialGradient2397);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2204" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 49.437500,636.68750 C 9.5976600,689.60788 -7.6271960,758.90434 2.9105100,824.39310 C 10.308170,874.10552 33.551850,921.19028 68.005840,957.74812 C 101.74452,993.63467 146.21320,1019.2699 194.24680,1030.2516 C 199.99153,1029.7800 204.92357,1024.0806 210.37445,1021.5583 C 215.90779,1017.6712 223.83362,1014.3732 226.03125,1007.8438 C 214.71347,1003.0390 201.26103,1009.5796 190.31449,1002.7652 C 183.05001,1000.4023 172.18692,993.68002 177.21875,984.71875 C 181.84751,975.69206 188.37504,966.27587 187.84375,955.81250 C 182.27407,952.29351 176.75441,959.84769 171.85169,962.23271 C 163.44133,968.75531 155.02010,959.49404 147.83592,955.54196 C 141.04333,951.13375 133.90750,943.08322 138.65546,934.63331 C 140.43113,929.52457 144.56495,924.72912 145.00000,919.43750 C 132.04760,907.74827 112.42524,901.33455 106.61503,883.19063 C 103.49587,877.85237 108.14552,870.98603 114.32775,873.19001 C 130.59663,876.43830 144.14277,887.19756 159.53125,892.59375 C 159.03403,882.21575 150.46649,873.36290 151.00000,862.90625 C 155.25471,858.23625 163.21295,860.61619 168.81504,858.17213 C 180.29677,855.24106 192.71966,852.03960 202.34375,845.43750 C 197.91139,834.26859 189.38937,825.02268 182.04158,815.62421 C 172.08277,806.05686 164.87883,792.96910 166.22505,778.78312 C 167.59111,771.89486 161.52097,768.10257 155.68750,766.71875 C 147.36821,762.57850 137.13811,760.61477 130.75000,753.56250 C 127.56405,745.44229 132.68058,737.37859 134.65625,729.68750 C 127.81109,714.34143 110.02988,707.49041 94.103600,707.62518 C 85.825620,707.08688 71.951440,707.44949 71.187500,696.34375 C 69.469880,688.39415 71.102430,679.54252 78.320230,674.80574 C 84.761240,668.88834 97.483650,663.82876 93.788660,652.90201 C 88.703610,638.40413 76.709880,626.47826 62.687500,620.50000 C 58.270830,625.89583 53.854170,631.29167 49.437500,636.68750 z " /> <path id="path2434" style="opacity:0.24999996;fill:url(#radialGradient2399);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2166" style="fill:url(#radialGradient2401);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(-97.35587,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2401" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 399.65625,582.65625 C 382.54719,585.80937 363.97591,602.23601 344.21875,637.96875 C 348.41098,651.94283 317.84416,650.43163 304.56250,656.46875 C 294.03305,661.25487 292.40506,671.23182 291.34375,682.90625 C 289.64992,701.53839 312.27807,694.90784 286.03125,708.03125 C 274.43186,713.83095 288.05331,736.68222 279.43750,746.37500 C 268.46058,758.72403 284.65807,765.38859 292.65625,770.18750 C 308.12778,779.47042 324.86886,739.77254 327.03125,731.84375 C 331.91737,713.92794 337.00795,711.37256 345.53125,705.40625 C 355.16461,698.66291 350.37475,728.43658 353.46875,739.78125 C 356.05583,749.26718 347.30719,766.40211 346.84375,771.50000 C 346.16847,778.92820 378.05172,773.87859 345.53125,784.71875 C 338.97503,786.90416 346.08936,793.95213 342.90625,804.56250 C 340.81195,811.54352 334.17822,815.45725 332.31250,825.71875 C 330.62965,834.97443 323.54941,844.44727 319.09375,850.81250 C 314.49539,857.38158 341.49218,861.03906 345.53125,861.40625 C 353.24994,862.10796 363.33867,869.86047 371.96875,873.31250 C 386.54655,879.14361 374.74782,894.74768 371.96875,899.75000 C 366.61834,909.38075 365.35096,932.81610 375.93750,920.90625 C 387.25289,908.17646 407.94039,903.69590 414.28125,887.84375 C 420.27486,872.85972 405.96038,867.20200 399.75000,854.78125 C 392.94162,841.16450 405.78361,833.60281 411.62500,827.03125 C 475.09922,835.11177 404.24911,880.92665 448.65625,879.90625 C 455.23268,876.25268 452.86072,803.91891 460.56250,803.21875 C 469.26117,802.42797 488.86303,807.73014 501.84375,808.34375 C 502.47868,801.04649 502.87500,793.67982 502.87500,786.21875 C 502.87500,702.69263 462.20861,628.63106 399.65625,582.65625 z " /> <path id="path2399" style="fill:#18551f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 135.32722,630.03897 C 121.98710,640.71107 152.08415,655.15817 159.12436,655.15817 C 180.96110,655.15817 190.38957,660.12381 194.82006,637.97135 C 197.74779,623.33269 216.13712,619.81201 223.90545,615.49628 C 232.84080,610.53219 224.93446,594.87941 227.87163,585.08883 C 232.15017,570.82704 213.12453,571.33170 205.39656,569.22407 C 189.97641,565.01857 178.92989,578.50392 171.02292,586.41089 C 164.35819,593.07562 149.22800,590.10502 141.93754,593.02121 C 126.36521,599.25014 155.35654,606.24183 161.76848,606.24183 C 175.52283,603.59770 146.88983,620.78888 135.32722,630.03897 z " /> <path id="path2423" style="opacity:0.099999972;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 48.187500,644.40625 C -1.6207600,710.56969 -13.978323,802.87199 17.061220,879.72647 C 45.173010,951.33820 108.99006,1008.7189 184.04223,1026.5028 C 192.51780,1029.0206 199.09197,1020.9521 206.03285,1017.2641 C 207.81574,1014.6500 195.65768,1016.8206 191.70916,1015.0703 C 181.71784,1013.3284 170.39424,1009.0878 165.71875,999.34375 C 160.37898,988.30241 171.08569,979.31509 174.05637,969.35193 C 174.19270,966.36595 166.58063,973.68019 162.92103,973.77971 C 153.25451,976.30241 145.14979,968.17720 137.37784,963.68475 C 127.72164,957.44422 121.62953,944.16910 128.41304,933.67460 C 132.57168,928.29626 132.27474,923.55922 125.50063,920.97969 C 112.16569,911.68729 96.881990,901.45420 93.916170,884.16335 C 92.510810,873.38952 106.59067,867.62877 114.88882,872.84504 C 125.12373,875.88026 134.30336,881.42984 144.03125,885.68750 C 141.05661,878.45086 135.93602,868.03258 142.49324,861.47261 C 152.70468,855.90215 165.03357,857.03535 175.60779,852.16962 C 179.36902,850.54499 186.85772,849.57638 187.86265,846.15458 C 177.52178,826.86016 156.08045,813.01972 154.39657,789.58757 C 154.51617,784.46394 154.76014,777.60868 148.25153,776.59640 C 137.09561,771.36225 120.80599,768.33845 117.81250,754.31250 C 116.76895,747.02308 121.90199,739.97546 121.21549,733.14418 C 111.90553,718.11962 92.413510,717.54866 76.656250,716.78125 C 65.970910,715.62856 57.235050,705.95527 58.647090,695.00645 C 57.974580,682.52727 67.873420,673.19094 77.613480,667.14427 C 82.764790,663.79110 83.101260,657.23780 79.128590,652.86860 C 74.583390,643.95207 66.930840,636.87622 58.156250,632.18750 C 54.833330,636.26042 51.510420,640.33333 48.187500,644.40625 z " /> <path id="path2226" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 399.37500,590.09375 C 378.29141,600.08693 364.72487,620.70788 354.20936,640.52866 C 353.54971,652.87632 338.98983,655.47392 329.25510,657.47334 C 319.33904,659.48865 305.10504,660.60223 303.10159,673.00100 C 300.88136,680.28952 300.24041,689.50025 307.00000,694.59375 C 311.74293,703.44393 301.30223,709.41807 294.53125,712.40625 C 287.43904,718.49610 293.62889,728.51152 292.31906,736.40610 C 293.44124,743.41168 287.01197,748.87655 286.62500,755.18750 C 289.61107,760.51338 296.32367,763.57831 301.93679,764.89706 C 310.40467,762.68375 313.71627,752.88257 318.43750,746.37500 C 326.31132,730.65509 328.73782,709.78081 345.89502,700.88085 C 352.80806,695.61900 360.86666,702.13224 361.56250,709.62500 C 361.77949,721.78476 363.24024,733.92725 363.36635,746.08849 C 363.80310,754.50241 359.13324,761.77081 357.90625,769.75000 C 363.21804,770.01381 371.15411,773.44787 369.40625,780.31250 C 366.43351,786.61567 358.54840,787.05580 353.03125,790.00000 C 355.05234,800.86303 351.24782,811.82104 344.88544,820.47050 C 340.45931,830.86159 337.52199,842.30876 330.12500,851.00000 C 340.60124,854.85022 352.97436,854.77049 363.35368,859.97934 C 372.19442,865.51028 385.29528,868.26033 388.62062,879.45184 C 390.35779,892.21800 379.28802,902.23593 377.81250,914.53125 C 388.27941,904.30020 404.25153,899.87559 411.73404,886.79806 C 417.15865,876.81953 405.91795,869.69951 401.46737,862.06510 C 393.55808,853.15402 394.91462,839.32929 403.13220,831.11574 C 407.95921,826.11871 413.93296,819.01026 421.68561,822.25164 C 435.22896,823.19276 450.88128,832.82483 449.53125,848.09375 C 448.83115,856.51118 443.23641,864.00746 443.81250,872.56250 C 448.83380,876.72366 450.77585,869.70056 450.01113,865.75989 C 452.99959,844.39633 451.01999,822.02173 458.25000,801.46875 C 466.01067,792.90788 477.96689,799.58417 487.58569,799.80942 C 493.09157,799.85509 502.84925,805.04161 500.50923,795.60079 C 504.07415,718.78507 468.47279,641.54970 408.28591,593.81944 C 405.84158,591.81764 402.79052,588.51735 399.37500,590.09375 z " /> <path id="path2232" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 196.03125,572.90625 C 182.00437,577.21624 175.15670,594.98492 159.18750,594.81250 C 151.16243,594.84622 147.23312,596.19819 157.48405,597.43962 C 162.27451,598.71366 169.80722,595.91811 170.87803,602.65496 C 172.32034,611.69758 161.43665,615.74735 155.74416,620.54906 C 149.86694,624.68076 143.92700,628.77405 138.71875,633.75000 C 141.15812,641.11726 150.07831,643.83205 156.71540,646.12510 C 165.40474,647.98036 175.16304,648.43926 183.50914,645.87681 C 190.54103,638.43112 189.02421,625.44226 198.57500,619.72268 C 205.09564,613.40123 216.48303,613.05725 221.56332,605.69198 C 222.94075,596.91328 220.18862,588.05072 221.90625,579.28125 C 217.78697,573.22676 208.89717,575.02229 202.62390,572.95074 C 200.44632,572.45909 198.23369,572.88570 196.03125,572.90625 z " /> </g> </g> </svg> ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/pixmaps/tray/notify.svg���������������������������������������������������������������0000644�0001750�0001750�00000032430�10410766735�016654� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg1383" height="20.000000" width="20.000000" y="0.0000000" x="0.0000000" version="1.0"> <defs id="defs3"> <linearGradient id="linearGradient2170"> <stop id="stop2172" offset="0.0000000" style="stop-color:#ffffff;stop-opacity:0.62352943;" /> <stop id="stop2174" offset="1.0000000" style="stop-color:#ffffff;stop-opacity:0.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2170" id="radialGradient2389" fy="261.72299" fx="239.48222" r="54.908401" cy="273.33273" cx="253.91165" /> <linearGradient id="linearGradient2156"> <stop id="stop2158" offset="0.0000000" style="stop-color:#000000;stop-opacity:0.0000000;" /> <stop id="stop2162" offset="1.0000000" style="stop-color:#000000;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2156" id="radialGradient2387" fy="473.60248" fx="421.29236" r="225.21623" cy="354.60162" cx="317.40088" /> <linearGradient id="linearGradient2183"> <stop id="stop2185" offset="0.0000000" style="stop-color:#dcbbbb;stop-opacity:1.0000000;" /> <stop id="stop2187" offset="0.60000002" style="stop-color:#d59191;stop-opacity:1.0000000;" /> <stop id="stop2189" offset="1.0000000" style="stop-color:#c46161;stop-opacity:1.0000000;" /> </linearGradient> <radialGradient gradientUnits="userSpaceOnUse" xlink:href="#linearGradient2183" id="radialGradient2385" fy="247.21059" fx="213.50940" r="252.51404" cy="374.91882" cx="360.68903" /> </defs> <g id="layer1"> <g id="g2374" transform="matrix(3.960176e-2,0.000000,0.000000,3.960176e-2,-20.50708,-21.13536)"> <path id="path2263" style="fill:url(#radialGradient2385);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2265" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 569.43750,636.68750 C 529.59766,689.60788 512.37280,758.90434 522.91051,824.39310 C 530.30817,874.10552 553.55185,921.19028 588.00584,957.74812 C 621.74452,993.63467 666.21320,1019.2699 714.24680,1030.2516 C 719.99153,1029.7800 724.92357,1024.0806 730.37445,1021.5583 C 735.90779,1017.6712 743.83362,1014.3732 746.03125,1007.8438 C 734.71347,1003.0390 721.26103,1009.5796 710.31449,1002.7652 C 703.05001,1000.4023 692.18692,993.68002 697.21875,984.71875 C 701.84751,975.69206 708.37504,966.27587 707.84375,955.81250 C 702.27407,952.29351 696.75441,959.84769 691.85169,962.23271 C 683.44133,968.75531 675.02010,959.49404 667.83592,955.54196 C 661.04333,951.13375 653.90750,943.08322 658.65546,934.63331 C 660.43113,929.52457 664.56495,924.72912 665.00000,919.43750 C 652.04760,907.74827 632.42524,901.33455 626.61503,883.19063 C 623.49587,877.85237 628.14552,870.98603 634.32775,873.19001 C 650.59663,876.43830 664.14277,887.19756 679.53125,892.59375 C 679.03403,882.21575 670.46649,873.36290 671.00000,862.90625 C 675.25471,858.23625 683.21295,860.61619 688.81504,858.17213 C 700.29677,855.24106 712.71966,852.03960 722.34375,845.43750 C 717.91139,834.26859 709.38937,825.02268 702.04158,815.62421 C 692.08277,806.05686 684.87883,792.96910 686.22505,778.78312 C 687.59111,771.89486 681.52097,768.10257 675.68750,766.71875 C 667.36821,762.57850 657.13811,760.61477 650.75000,753.56250 C 647.56405,745.44229 652.68058,737.37859 654.65625,729.68750 C 647.81109,714.34143 630.02988,707.49041 614.10360,707.62518 C 605.82562,707.08688 591.95144,707.44949 591.18750,696.34375 C 589.46988,688.39415 591.10243,679.54252 598.32023,674.80574 C 604.76124,668.88834 617.48365,663.82876 613.78866,652.90201 C 608.70361,638.40413 596.70988,626.47826 582.68750,620.50000 C 578.27083,625.89583 573.85417,631.29167 569.43750,636.68750 z " /> <path id="path2267" style="opacity:0.24999996;fill:url(#radialGradient2387);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2269" style="fill:url(#radialGradient2389);fill-opacity:1.0000000;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" transform="translate(422.6441,420.0000)" d="M 600.21661 366.21146 A 252.51404 252.51404 0 1 1 95.188538,366.21146 A 252.51404 252.51404 0 1 1 600.21661 366.21146 z" /> <path id="path2271" style="fill:#18551f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 919.65625,582.65625 C 902.54719,585.80937 883.97591,602.23601 864.21875,637.96875 C 868.41098,651.94283 837.84416,650.43163 824.56250,656.46875 C 814.03305,661.25487 812.40506,671.23182 811.34375,682.90625 C 809.64992,701.53839 832.27807,694.90784 806.03125,708.03125 C 794.43186,713.83095 808.05331,736.68222 799.43750,746.37500 C 788.46058,758.72403 804.65807,765.38859 812.65625,770.18750 C 828.12778,779.47042 844.86886,739.77254 847.03125,731.84375 C 851.91737,713.92794 857.00795,711.37256 865.53125,705.40625 C 875.16461,698.66291 870.37475,728.43658 873.46875,739.78125 C 876.05583,749.26718 867.30719,766.40211 866.84375,771.50000 C 866.16847,778.92820 898.05172,773.87859 865.53125,784.71875 C 858.97503,786.90416 866.08936,793.95213 862.90625,804.56250 C 860.81195,811.54352 854.17822,815.45725 852.31250,825.71875 C 850.62965,834.97443 843.54941,844.44727 839.09375,850.81250 C 834.49539,857.38158 861.49218,861.03906 865.53125,861.40625 C 873.24994,862.10796 883.33867,869.86047 891.96875,873.31250 C 906.54655,879.14361 894.74782,894.74768 891.96875,899.75000 C 886.61834,909.38075 885.35096,932.81610 895.93750,920.90625 C 907.25289,908.17646 927.94039,903.69590 934.28125,887.84375 C 940.27486,872.85972 925.96038,867.20200 919.75000,854.78125 C 912.94162,841.16450 925.78361,833.60281 931.62500,827.03125 C 995.09922,835.11177 924.24911,880.92665 968.65625,879.90625 C 975.23268,876.25268 972.86072,803.91891 980.56250,803.21875 C 989.26117,802.42797 1008.8630,807.73014 1021.8438,808.34375 C 1022.4787,801.04649 1022.8750,793.67982 1022.8750,786.21875 C 1022.8750,702.69263 982.20861,628.63106 919.65625,582.65625 z " /> <path id="path2273" style="fill:#18551f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 655.32722,630.03897 C 641.98710,640.71107 672.08415,655.15817 679.12436,655.15817 C 700.96110,655.15817 710.38957,660.12381 714.82006,637.97135 C 717.74779,623.33269 736.13712,619.81201 743.90545,615.49628 C 752.84080,610.53219 744.93446,594.87941 747.87163,585.08883 C 752.15017,570.82704 733.12453,571.33170 725.39656,569.22407 C 709.97641,565.01857 698.92989,578.50392 691.02292,586.41089 C 684.35819,593.07562 669.22800,590.10502 661.93754,593.02121 C 646.36521,599.25014 675.35654,606.24183 681.76848,606.24183 C 695.52283,603.59770 666.88983,620.78888 655.32722,630.03897 z " /> <path id="path2275" style="opacity:0.099999972;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 568.18750,644.40625 C 518.37924,710.56969 506.02168,802.87199 537.06122,879.72647 C 565.17301,951.33820 628.99006,1008.7189 704.04223,1026.5028 C 712.51780,1029.0206 719.09197,1020.9521 726.03285,1017.2641 C 727.81574,1014.6500 715.65768,1016.8206 711.70916,1015.0703 C 701.71784,1013.3284 690.39424,1009.0878 685.71875,999.34375 C 680.37898,988.30241 691.08569,979.31509 694.05637,969.35193 C 694.19270,966.36595 686.58063,973.68019 682.92103,973.77971 C 673.25451,976.30241 665.14979,968.17720 657.37784,963.68475 C 647.72164,957.44422 641.62953,944.16910 648.41304,933.67460 C 652.57168,928.29626 652.27474,923.55922 645.50063,920.97969 C 632.16569,911.68729 616.88199,901.45420 613.91617,884.16335 C 612.51081,873.38952 626.59067,867.62877 634.88882,872.84504 C 645.12373,875.88026 654.30336,881.42984 664.03125,885.68750 C 661.05661,878.45086 655.93602,868.03258 662.49324,861.47261 C 672.70468,855.90215 685.03357,857.03535 695.60779,852.16962 C 699.36902,850.54499 706.85772,849.57638 707.86265,846.15458 C 697.52178,826.86016 676.08045,813.01972 674.39657,789.58757 C 674.51617,784.46394 674.76014,777.60868 668.25153,776.59640 C 657.09561,771.36225 640.80599,768.33845 637.81250,754.31250 C 636.76895,747.02308 641.90199,739.97546 641.21549,733.14418 C 631.90553,718.11962 612.41351,717.54866 596.65625,716.78125 C 585.97091,715.62856 577.23505,705.95527 578.64709,695.00645 C 577.97458,682.52727 587.87342,673.19094 597.61348,667.14427 C 602.76479,663.79110 603.10126,657.23780 599.12859,652.86860 C 594.58339,643.95207 586.93084,636.87622 578.15625,632.18750 C 574.83333,636.26042 571.51042,640.33333 568.18750,644.40625 z " /> <path id="path2277" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;stroke:none;stroke-width:0.35230049;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000" d="M 919.37500,590.09375 C 898.29141,600.08693 884.72487,620.70788 874.20936,640.52866 C 873.54971,652.87632 858.98983,655.47392 849.25510,657.47334 C 839.33904,659.48865 825.10504,660.60223 823.10159,673.00100 C 820.88136,680.28952 820.24041,689.50025 827.00000,694.59375 C 831.74293,703.44393 821.30223,709.41807 814.53125,712.40625 C 807.43904,718.49610 813.62889,728.51152 812.31906,736.40610 C 813.44124,743.41168 807.01197,748.87655 806.62500,755.18750 C 809.61107,760.51338 816.32367,763.57831 821.93679,764.89706 C 830.40467,762.68375 833.71627,752.88257 838.43750,746.37500 C 846.31132,730.65509 848.73782,709.78081 865.89502,700.88085 C 872.80806,695.61900 880.86666,702.13224 881.56250,709.62500 C 881.77949,721.78476 883.24024,733.92725 883.36635,746.08849 C 883.80310,754.50241 879.13324,761.77081 877.90625,769.75000 C 883.21804,770.01381 891.15411,773.44787 889.40625,780.31250 C 886.43351,786.61567 878.54840,787.05580 873.03125,790.00000 C 875.05234,800.86303 871.24782,811.82104 864.88544,820.47050 C 860.45931,830.86159 857.52199,842.30876 850.12500,851.00000 C 860.60124,854.85022 872.97436,854.77049 883.35368,859.97934 C 892.19442,865.51028 905.29528,868.26033 908.62062,879.45184 C 910.35779,892.21800 899.28802,902.23593 897.81250,914.53125 C 908.27941,904.30020 924.25153,899.87559 931.73404,886.79806 C 937.15865,876.81953 925.91795,869.69951 921.46737,862.06510 C 913.55808,853.15402 914.91462,839.32929 923.13220,831.11574 C 927.95921,826.11871 933.93296,819.01026 941.68561,822.25164 C 955.22896,823.19276 970.88128,832.82483 969.53125,848.09375 C 968.83115,856.51118 963.23641,864.00746 963.81250,872.56250 C 968.83380,876.72366 970.77585,869.70056 970.01113,865.75989 C 972.99959,844.39633 971.01999,822.02173 978.25000,801.46875 C 986.01067,792.90788 997.96689,799.58417 1007.5857,799.80942 C 1013.0916,799.85509 1022.8492,805.04161 1020.5092,795.60079 C 1024.0741,718.78507 988.47279,641.54970 928.28591,593.81944 C 925.84158,591.81764 922.79052,588.51735 919.37500,590.09375 z " /> <path id="path2279" style="opacity:0.20000000;fill:#18001f;fill-opacity:0.62352943;fill-rule:evenodd;stroke:none;stroke-width:1.0000000pt;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M 716.03125,572.90625 C 702.00437,577.21624 695.15670,594.98492 679.18750,594.81250 C 671.16243,594.84622 667.23312,596.19819 677.48405,597.43962 C 682.27451,598.71366 689.80722,595.91811 690.87803,602.65496 C 692.32034,611.69758 681.43665,615.74735 675.74416,620.54906 C 669.86694,624.68076 663.92700,628.77405 658.71875,633.75000 C 661.15812,641.11726 670.07831,643.83205 676.71540,646.12510 C 685.40474,647.98036 695.16304,648.43926 703.50914,645.87681 C 710.54103,638.43112 709.02421,625.44226 718.57500,619.72268 C 725.09564,613.40123 736.48303,613.05725 741.56332,605.69198 C 742.94075,596.91328 740.18862,588.05072 741.90625,579.28125 C 737.78697,573.22676 728.89717,575.02229 722.62390,572.95074 C 720.44632,572.45909 718.23369,572.88570 716.03125,572.90625 z " /> </g> </g> </svg> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�013643� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/Makefile.am�������������������������������������������������������������������0000644�0001750�0001750�00000000246�10410766736�015707� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������scriptsdir = $(pkgdatadir)/scripts scripts_DATA = misc.rb \ run.rb \ editing.rb \ music.rb EXTRA_DIST = $(scripts_DATA) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/Makefile.in�������������������������������������������������������������������0000644�0001750�0001750�00000030011�10517752445�015711� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = scripts DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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)$(scriptsdir)" scriptsDATA_INSTALL = $(INSTALL_DATA) DATA = $(scripts_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ scriptsdir = $(pkgdatadir)/scripts scripts_DATA = misc.rb \ run.rb \ editing.rb \ music.rb EXTRA_DIST = $(scripts_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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 scripts/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu scripts/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-scriptsDATA: $(scripts_DATA) @$(NORMAL_INSTALL) test -z "$(scriptsdir)" || $(mkdir_p) "$(DESTDIR)$(scriptsdir)" @list='$(scripts_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(scriptsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(scriptsdir)/$$f'"; \ $(scriptsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(scriptsdir)/$$f"; \ done uninstall-scriptsDATA: @$(NORMAL_UNINSTALL) @list='$(scripts_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(scriptsdir)/$$f'"; \ rm -f "$(DESTDIR)$(scriptsdir)/$$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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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)$(scriptsdir)"; 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 distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-scriptsDATA install-exec-am: install-info: install-info-am install-man: 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-info-am uninstall-scriptsDATA .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-exec install-exec-am \ install-info install-info-am install-man install-scriptsDATA \ 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-info-am uninstall-scriptsDATA # 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: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/misc.rb�����������������������������������������������������������������������0000644�0001750�0001750�00000003216�10410766736�015133� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������=begin misc.rb Copyright (c) 2004 by Jesse van den Kieboom <jesse@icecrew.nl> 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 Defines: open - open a world sendall - send all connected worlds the same text =end def register_functions $scripts.register("open", "use: /open <worldname>\nopen a world") $scripts.register("sendall", "use: /sendall <some>\nsends <some> to all currently connected worlds") $scripts.register("sendfile", "use: /sendfile <file-on-disk>\nsends contents of <file-on-disk> to world") end def open(argstr) $client.open(argstr) end def sendall(argstr) $client.worlds.each {|wld| if (wld.loaded? && wld.connected?) wld.sendln(argstr) end } end def sendfile(argstr) if FileTest.exists?(argstr) lines = IO.readlines(argstr) $world.writeln("Sending contents of file #{argstr} (#{lines.length})") lines.each do |line| $world.sendln(line.chomp) end else $world.writeln("File #{argstr} does not exist!") end end ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/run.rb������������������������������������������������������������������������0000644�0001750�0001750�00000007103�10416245342�014772� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# # run.rb - several scripts to redirect shell command output to the world # # Copyright (c) 2006 by Paul van Tilburg <paul@luon.net> # # 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 # # Defines: # sh - run a command, send output to the user only # run - run a command, send the output to the world # crun - run a commend, send the output to a channel in the world # pstrun - run a command, send the output to the world via @paste # ppstrun - run a command, send the output to a player in the world via @paste # prefrun - run a command, send the output to the world with each # line prefixed def register_functions $scripts.register("sh", "use: /sh <command>\nruns <command> in a subshell and sends output to the screen") $scripts.register("run", "use: /run <command>\nruns <command> in a subshell and sends output to the world") $scripts.register("crun", "use: /crun <chanalias> <command>\nruns <command> in a subshell and sends output to the channel identified by the <chanalias>") $scripts.register("pstrun", "use: /pstrun <command>\nruns <command> in a subshell and sends output via @paste to the world") $scripts.register("ppstrun", "use: /ppstrun <player> <command>\nruns <command> in a subshell and sends output via @paste to <player>") $scripts.register("prefrun", "use: /prefun <prefix> <command>\nruns <command> in a subshell and sends output to the world with each line preceeded by <prefix>") end def sh(cmd) if cmd $world.status("Executing `#{cmd}`") do_cmd(cmd) { |line| $world.status(line) } else error("use /sh <command>") end end # def sh def run(cmd) if cmd $world.sendln("emote LINUXes `#{cmd}`") do_cmd(cmd) { |line| $world.sendln("emote | #{line}") } else error("use /run <command>") end end # def run def crun(argstr) chan, cmd = argstr.split(/\s+/, 2) if chan and cmd $world.sendln("#{chan} emote LINUXes `#{cmd}`") do_cmd(cmd) { |line| $world.sendln("#{chan} emote | #{line}") } else error("use /crun <chanalias> <command>") end end # def crun def pstrun(cmd) if cmd $world.sendln("@paste") $world.sendln("$ #{cmd}") do_cmd(cmd) { |line| $world.sendln(line) } $world.sendln(".") else error("use /pstrun <command>") end end # def pstrun def ppstrun(argstr) player, cmd = argstr.split(/\s+/, 2) if player and cmd $world.sendln("@paste #{player}") $world.sendln("$ #{cmd}") do_cmd(cmd) { |line| $world.sendln(line) } $world.sendln(".") else error("use /ppstrun <player> <command>") end end # def ppstrun def prefrun(argstr) prefix, cmd = argstr.split(/\s+/, 2) if prefix and cmd do_cmd(cmd) { |line| $world.sendln("#{prefix} #{line}") } else error("use /prefrun <prefix> <command>") end end # def prefrun # Helper functions. def do_cmd(command, &action) IO.popen("#{command} 2>&1") do |io| io.each_line { |line| yield line.chomp } end end def error(msg) $world.status("Script error: #{msg}") end �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/editing.rb��������������������������������������������������������������������0000644�0001750�0001750�00000003303�10410766736�015620� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������=begin editing.rb Copyright (c) 2004 by Jesse van den Kieboom <jesse@icecrew.nl> 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 Defines: e - edit a verb me - edit your description he - edit your locations description de - edit a objects description ne - edit a property =end def register_functions $scripts.register("e", "use: /e <obj>:<verb>\nedit a verb", "edit_e") $scripts.register("me", "use: /me\nedit your description", "edit_me") $scripts.register("he", "use: /he\nedit your locations description", "edit_he") $scripts.register("de", "use: /de <obj>\nedit a objects description", "edit_de") $scripts.register("ne", "use: /ne <obj>.<prop>\nedit a property", "edit_ne") end def edit_e(argstr) $world.sendln("@edit " + argstr) end def edit_me(argstr) $world.sendln("@notedit me.description") end def edit_he(argstr) $world.sendln("@notedit here.description") end def edit_ne(argstr) $world.sendln("@notedit " + argstr) end def edit_de(argstr) $world.sendln("@notedit " + argstr + ".description") end �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/scripts/music.rb����������������������������������������������������������������������0000644�0001750�0001750�00000011571�10410766736�015323� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������=begin music.rb Copyright (c) 2004 by Jesse van den Kieboom <jesse@icecrew.nl> Copyright (c) 2004/07/29 by Simon Gijsen <simon@gijsen.org> 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 Defines: rb/rhythmbox - show which song rb is currenly playing, control rb xmms/beep - show which song xmms is playing, control xmms (thanks to Simon Gijsen) =end def register_functions $scripts.register("rhythmbox", "use: /rhythmbox <prefix>|next|prev|play|pause\nsends the song Rhythmbox is currently playing to the world prefixed by <prefix> or performs the action specified if pause, play, next or prev is specified") $scripts.register("rb", "alias for rhythmbox", "rhythmbox") $scripts.register("xmms", "use: /xmms <prefix>|prev|play|pause|stop|next\nsends the song XMMS is currently playing to the world prefixed by <prefix> or performs the action specified if prev, play, pause, stop or next is specified") $scripts.register("beep", "alias for xmms", "xmms") end def getOgginfo(filename) if (!File.exists?("/usr/bin/ogginfo")) return nil end info = `/usr/bin/ogginfo "#{filename}" 2> /dev/null` artist = nil title = nil if (!info.empty?) info.split("\n").each {|line| line = line.strip if (line[/^artist=/i]) artist = line[7..-1] elsif (line[/^title=/i]) title = line[6..-1] end } return "#{artist} - #{title}" else return nil end end def getID3info(filename) if (!File.exists?("/usr/bin/id3info")) nil end info = `/usr/bin/id3info "#{filename}" 2> /dev/null`.split("\n") artist = nil title = nil if (info.length == 1 && info[0].empty? == 0) return nil end info.each {|line| line = line.strip if (line.index(/TPE[1|2]/) != nil) artist = line[line.index(":") + 1..-1].strip elsif (line.index("TIT2") != nil) title = line[line.index(":") + 1..-1].strip end } if (title && artist) return "#{artist} - #{title}" else return nil end end def getMP3info(filename) if ((info = getID3info(filename))) return info end if (!File.exists?("/usr/bin/mp3info")) return nil end info = `/usr/bin/mp3info -p "%a - %t" "#{filename}" 2> /dev/null` if (!info.empty?) return info else return nil end end def rhythmbox(argstr) isopen = !(`/bin/ps -ae | /bin/grep rhythmbox`.empty?) if (!isopen) $world.writeln("Script error: rhythmbox is not running!") return end if (argstr == "next") `/usr/bin/rhythmbox --next` elsif (argstr == "prev") `/usr/bin/rhythmbox --previous` elsif (argstr == "play" || argstr == "pause") `/usr/bin/rhythmbox --play-pause` else path = `/usr/bin/rhythmbox --print-playing-path 2> /dev/null` info = nil if (!path.empty?) filename = path.split("\n")[0].gsub(/%20/, " ")[7..-1] if (filename[-3..-1] == "mp3" && (info = getMP3info(filename))) elsif (filename[-3..-1] == "ogg" && (info = getOgginfo(filename))) else info = `/usr/bin/rhythmbox --print-playing 2> /dev/null` if (!info.empty?) info = info.split("\n")[0] else info = nil end end if (info) $world.sendln(argstr + " :luistert op dit moment naar [ #{info} ]") else $world.writeln("Script error: cannot retrieve rhythmbox file play") end else $world.writeln("Script error: can not execute /usr/bin/rhythmbox!") end end end def xmms(argstr) case argstr when "prev", "play", "pause", "stop", "next" io = IO.popen("/usr/bin/xmms-shell -e " + argstr + " 2>&1") line = io.gets io.close else line = `/usr/bin/xmms-shell -e current-track 2>&1` end if (line[0..18] === "XMMS is not running") $world.writeln("Script error: " + line[0..-2]) elsif(line[0..3] === "sh: ") $world.writeln("Script error: " + line[12..-2]) elsif(line[0..12] === "Current song:") index = line.index('.') + 2 $world.sendln(argstr + " emote luistert op dit moment naar [ " + line[index..-2] + " ]") else line2 = `/usr/bin/xmms-shell -e current-track 2>&1` index = line2.index('.') + 2 $world.writeln(line[0..-2] + " [ " + line2[index..-2] + " ]") end end ���������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/�����������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�012571� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/Makefile.am������������������������������������������������������������������������0000644�0001750�0001750�00000000507�10416445620�014625� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������uidir = $(pkgdatadir)/ui ui_DATA = gm-scripts.glade \ gm-preferences.glade \ gm-worlds-list.glade \ gm-world-properties.glade \ gm-triggers.glade \ gm-world-info.glade \ gm-world-logs.glade \ gm-open-world.glade \ gm-world-paste.glade \ gm-ui.xml EXTRA_DIST = $(ui_DATA) CLEANFILES = *.bak *.gladep *.tmp �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/Makefile.in������������������������������������������������������������������������0000644�0001750�0001750�00000030140�10517752445�014642� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = ui DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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)$(uidir)" uiDATA_INSTALL = $(INSTALL_DATA) DATA = $(ui_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ uidir = $(pkgdatadir)/ui ui_DATA = gm-scripts.glade \ gm-preferences.glade \ gm-worlds-list.glade \ gm-world-properties.glade \ gm-triggers.glade \ gm-world-info.glade \ gm-world-logs.glade \ gm-open-world.glade \ gm-world-paste.glade \ gm-ui.xml EXTRA_DIST = $(ui_DATA) CLEANFILES = *.bak *.gladep *.tmp all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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 ui/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu ui/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-uiDATA: $(ui_DATA) @$(NORMAL_INSTALL) test -z "$(uidir)" || $(mkdir_p) "$(DESTDIR)$(uidir)" @list='$(ui_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(uiDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(uidir)/$$f'"; \ $(uiDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(uidir)/$$f"; \ done uninstall-uiDATA: @$(NORMAL_UNINSTALL) @list='$(ui_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(uidir)/$$f'"; \ rm -f "$(DESTDIR)$(uidir)/$$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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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)$(uidir)"; 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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 distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-uiDATA install-exec-am: install-info: install-info-am install-man: 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-info-am uninstall-uiDATA .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-exec install-exec-am \ install-info install-info-am install-man install-strip \ install-uiDATA installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am uninstall-uiDATA # 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: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-scripts.glade�������������������������������������������������������������������0000644�0001750�0001750�00000033113�10507211661�015653� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkWindow" id="gm_scripts_dialog"> <property name="visible">True</property> <property name="title" translatable="yes">Scripts</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="default_width">750</property> <property name="default_height">400</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="icon">../pixmaps/editor.xpm</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <signal name="delete_event" handler="on_gm_scripts_dialog_delete" last_modification_time="Wed, 05 Oct 2005 14:31:00 GMT"/> <child> <widget class="GtkNotebook" id="notebook_scripts"> <property name="border_width">6</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="show_tabs">True</property> <property name="show_border">True</property> <property name="tab_pos">GTK_POS_TOP</property> <property name="scrollable">False</property> <property name="enable_popup">False</property> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="border_width">6</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTextView" id="text_view_console"> <property name="border_width">3</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="overwrite">False</property> <property name="accepts_tab">True</property> <property name="justification">GTK_JUSTIFY_LEFT</property> <property name="wrap_mode">GTK_WRAP_WORD</property> <property name="cursor_visible">True</property> <property name="pixels_above_lines">0</property> <property name="pixels_below_lines">0</property> <property name="pixels_inside_wrap">0</property> <property name="left_margin">0</property> <property name="right_margin">0</property> <property name="indent">0</property> <property name="text" translatable="yes"></property> </widget> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label111"> <property name="visible">True</property> <property name="label" translatable="yes">Console</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkScrolledWindow" id="scrolledwindow2"> <property name="border_width">6</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTreeView" id="tree_view_scripts"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">False</property> <property name="rules_hint">True</property> <property name="reorderable">False</property> <property name="enable_search">True</property> <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> </widget> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label112"> <property name="visible">True</property> <property name="label" translatable="yes">Overview</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vboxScriptEditor"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">3</property> <child> <widget class="GtkToolbar" id="tlbScriptEditor"> <property name="border_width">3</property> <property name="visible">True</property> <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property> <property name="toolbar_style">GTK_TOOLBAR_ICONS</property> <property name="tooltips">True</property> <property name="show_arrow">True</property> <child> <widget class="GtkToolButton" id="tool_button_new"> <property name="border_width">3</property> <property name="visible">True</property> <property name="stock_id">gtk-new</property> <property name="visible_horizontal">True</property> <property name="visible_vertical">True</property> <property name="is_important">False</property> <signal name="clicked" handler="on_tool_button_new_clicked" last_modification_time="Wed, 05 Oct 2005 13:52:38 GMT"/> </widget> <packing> <property name="expand">False</property> <property name="homogeneous">True</property> </packing> </child> <child> <widget class="GtkToolButton" id="tool_button_save"> <property name="border_width">3</property> <property name="visible">True</property> <property name="stock_id">gtk-save</property> <property name="visible_horizontal">True</property> <property name="visible_vertical">True</property> <property name="is_important">False</property> <signal name="clicked" handler="on_tool_button_save_clicked" last_modification_time="Wed, 05 Oct 2005 13:53:14 GMT"/> </widget> <packing> <property name="expand">False</property> <property name="homogeneous">True</property> </packing> </child> <child> <widget class="GtkToolButton" id="tool_button_save_as"> <property name="border_width">3</property> <property name="visible">True</property> <property name="stock_id">gtk-save-as</property> <property name="visible_horizontal">True</property> <property name="visible_vertical">True</property> <property name="is_important">False</property> <signal name="clicked" handler="on_tool_button_save_as_clicked" last_modification_time="Wed, 05 Oct 2005 13:53:51 GMT"/> </widget> <packing> <property name="expand">False</property> <property name="homogeneous">True</property> </packing> </child> <child> <widget class="GtkToolButton" id="tool_button_delete"> <property name="border_width">2</property> <property name="visible">True</property> <property name="sensitive">False</property> <property name="stock_id">gtk-delete</property> <property name="visible_horizontal">True</property> <property name="visible_vertical">True</property> <property name="is_important">False</property> <signal name="clicked" handler="on_tool_button_delete_clicked" last_modification_time="Wed, 05 Oct 2005 13:53:25 GMT"/> </widget> <packing> <property name="expand">False</property> <property name="homogeneous">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkHPaned" id="hpaned_editor"> <property name="border_width">3</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="position">150</property> <child> <widget class="GtkScrolledWindow" id="scrolledwindow3"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTreeView" id="tree_view_files"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">True</property> <property name="rules_hint">True</property> <property name="reorderable">False</property> <property name="enable_search">True</property> <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> <signal name="row_activated" handler="on_tree_view_files_row_activated" last_modification_time="Wed, 05 Oct 2005 13:54:08 GMT"/> </widget> </child> </widget> <packing> <property name="shrink">True</property> <property name="resize">False</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox24"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkScrolledWindow" id="scrolled_window_editor"> <property name="border_width">3</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <placeholder/> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkStatusbar" id="statusbar_editor"> <property name="visible">True</property> <property name="has_resize_grip">False</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> <packing> <property name="shrink">True</property> <property name="resize">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label113"> <property name="visible">True</property> <property name="label" translatable="yes">Editor</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> </widget> </child> </widget> </glade-interface> �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-preferences.glade���������������������������������������������������������������0000644�0001750�0001750�00000251614�10507211661�016475� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_preferences_dialog"> <property name="width_request">500</property> <property name="height_request">450</property> <property name="visible">True</property> <property name="title" translatable="yes">Preferences</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_CENTER</property> <property name="modal">False</property> <property name="resizable">False</property> <property name="destroy_with_parent">True</property> <property name="icon_name">gtk-preferences</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <signal name="delete_event" handler="on_gm_preferences_dialog_delete" last_modification_time="Thu, 02 Jun 2005 09:54:40 GMT"/> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox5"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area5"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="okbutton1"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-close</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-7</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkNotebook" id="notebook_preferences"> <property name="border_width">12</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="show_tabs">True</property> <property name="show_border">True</property> <property name="tab_pos">GTK_POS_TOP</property> <property name="scrollable">False</property> <property name="enable_popup">False</property> <child> <widget class="GtkVBox" id="vbox9"> <property name="border_width">6</property> <property name="width_request">16</property> <property name="height_request">32</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame_font"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment29"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkTable" id="table4"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkLabel" id="label_font_description"> <property name="visible">True</property> <property name="label" translatable="yes">Font description:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkFontButton" id="font_button_font"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="show_style">True</property> <property name="show_size">True</property> <property name="use_font">True</property> <property name="use_size">True</property> <property name="focus_on_click">True</property> <signal name="font_set" handler="on_font_button_font_font_set" last_modification_time="Sat, 19 Nov 2005 13:45:18 GMT"/> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_system_font"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Use system font</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="clicked" handler="on_check_button_system_font_clicked" last_modification_time="Mon, 02 Jan 2006 16:31:48 GMT"/> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label_font"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Font</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label102"> <property name="visible">True</property> <property name="label" translatable="yes">Font</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox17"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame14"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment28"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkHBox" id="hbox26"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">3</property> <child> <widget class="GtkLabel" id="label109"> <property name="visible">True</property> <property name="label" translatable="yes">Select scheme:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkComboBox" id="combo_box_scheme"> <property name="visible">True</property> <property name="items" translatable="yes"></property> <property name="add_tearoffs">False</property> <property name="focus_on_click">True</property> <signal name="changed" handler="on_combo_box_scheme_changed" last_modification_time="Sat, 19 Nov 2005 18:49:43 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label108"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Schemes</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkFrame" id="frame8"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment23"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkTable" id="table8"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">3</property> <property name="homogeneous">False</property> <property name="row_spacing">3</property> <property name="column_spacing">3</property> <child> <widget class="GtkLabel" id="label93"> <property name="visible">True</property> <property name="label" translatable="yes">Foreground:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label94"> <property name="visible">True</property> <property name="label" translatable="yes">Background:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_default"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Foreground</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_default_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Foreground High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">2</property> <property name="right_attach">3</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_default"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Background</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label92"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Default</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame9"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment24"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkTable" id="table9"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">8</property> <property name="homogeneous">False</property> <property name="row_spacing">3</property> <property name="column_spacing">3</property> <child> <widget class="GtkColorButton" id="color_button_fg_black"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Black</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_red"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Red</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_red_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Red High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_green"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Green</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">2</property> <property name="right_attach">3</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_green_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Green High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">2</property> <property name="right_attach">3</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_yellow"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Yellow</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">3</property> <property name="right_attach">4</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_yellow_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Yellow High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">3</property> <property name="right_attach">4</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_blue"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Blue</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">4</property> <property name="right_attach">5</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_blue_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Blue High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">4</property> <property name="right_attach">5</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_purple"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Purple</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">5</property> <property name="right_attach">6</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_purple_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Purple High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">5</property> <property name="right_attach">6</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_cyan"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Cyan</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">6</property> <property name="right_attach">7</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_cyan_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Cyan High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">6</property> <property name="right_attach">7</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_white"> <property name="visible">True</property> <property name="tooltip" translatable="yes">White</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">7</property> <property name="right_attach">8</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_white_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">White High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">7</property> <property name="right_attach">8</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_fg_black_h"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Black High</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label97"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Foreground</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkFrame" id="frame10"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment25"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkTable" id="table10"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">1</property> <property name="n_columns">8</property> <property name="homogeneous">False</property> <property name="row_spacing">3</property> <property name="column_spacing">3</property> <child> <widget class="GtkColorButton" id="color_button_bg_black"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Black</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_red"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Red</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_green"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Green</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">2</property> <property name="right_attach">3</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_yellow"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Yellow</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">3</property> <property name="right_attach">4</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_blue"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Blue</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">4</property> <property name="right_attach">5</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_purple"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Purple</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">5</property> <property name="right_attach">6</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_cyan"> <property name="visible">True</property> <property name="tooltip" translatable="yes">Cyan</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">6</property> <property name="right_attach">7</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkColorButton" id="color_button_bg_white"> <property name="visible">True</property> <property name="tooltip" translatable="yes">White</property> <property name="can_focus">True</property> <property name="use_alpha">False</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">7</property> <property name="right_attach">8</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label98"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Background</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label91"> <property name="visible">True</property> <property name="label" translatable="yes">Colors</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox14"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame7"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment22"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox15"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">3</property> <child> <widget class="GtkCheckButton" id="check_button_alt_editor"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Use alternative editor</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="clicked" handler="on_check_button_alt_editor_clicked" last_modification_time="Thu, 10 Jun 2004 18:08:25 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkEntry" id="entry_alt_editor"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> <signal name="focus_out_event" handler="on_entry_alt_editor_focus_out" last_modification_time="Sat, 19 Nov 2005 13:36:43 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_embed_editor"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Embed editor into GnoeMoe (implies terminal)</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="clicked" handler="on_check_button_embed_editor_clicked" last_modification_time="Thu, 10 Jun 2004 19:08:43 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_needs_terminal"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Needs terminal</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="clicked" handler="on_check_button_needs_terminal_clicked" last_modification_time="Sat, 19 Nov 2005 13:36:15 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label90"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Application</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame_internal_editor"> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment32"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox20"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">3</property> <child> <widget class="GtkCheckButton" id="check_button_auto_syntax"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Check syntax automatically</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="clicked" handler="on_check_button_auto_syntax_clicked" last_modification_time="Sat, 17 Dec 2005 17:50:03 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label115"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Internal editor</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label87"> <property name="visible">True</property> <property name="label" translatable="yes">Editor</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox18"> <property name="border_width">6</property> <property name="width_request">16</property> <property name="height_request">32</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame15"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment30"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkCheckButton" id="check_button_logging_disable_all"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Disable all logging</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_disable_all_toggled" last_modification_time="Sun, 02 Apr 2006 15:39:16 GMT"/> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label113"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Logging</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame_log_types"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment31"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox19"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkCheckButton" id="check_button_logging_in"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Incoming</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_in_toggled" last_modification_time="Sat, 26 Nov 2005 16:15:52 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_out"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Outgoing</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_out_toggled" last_modification_time="Sat, 26 Nov 2005 16:15:49 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_status"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Status</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_status_toggled" last_modification_time="Sat, 26 Nov 2005 16:15:45 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_mcp_in"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Mcp incoming</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_mcp_in_toggled" last_modification_time="Sat, 26 Nov 2005 16:15:42 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_mcp_out"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Mcp outgoing</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_mcp_out_toggled" last_modification_time="Sat, 26 Nov 2005 16:15:36 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_mcp_status"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Mcp status</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_mcp_status_toggled" last_modification_time="Sat, 26 Nov 2005 16:15:32 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label114"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Log types</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkFrame" id="frame_log_format"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment35"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox25"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkCheckButton" id="check_button_logging_add_timestamp"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Add timestamp before each line</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_add_timestamp_toggled" last_modification_time="Sun, 02 Apr 2006 16:38:44 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_add_log_type"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Add log type before each line</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_add_log_type_toggled" last_modification_time="Sun, 02 Apr 2006 16:25:40 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label119"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Log format</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label110"> <property name="visible">True</property> <property name="label" translatable="yes">Logging</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox21"> <property name="border_width">6</property> <property name="width_request">16</property> <property name="height_request">32</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame19"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment36"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox26"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkCheckButton" id="check_button_show_object_number"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Show object number</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_show_object_number_toggled" last_modification_time="Fri, 07 Apr 2006 11:21:24 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label120"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Text</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame17"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment33"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox22"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkCheckButton" id="check_button_show_player_status"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Show player status message</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_show_player_status_toggled" last_modification_time="Sat, 01 Apr 2006 13:51:53 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_use_state_icon"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Use state icon</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_use_state_icon_toggled" last_modification_time="Sat, 01 Apr 2006 22:10:08 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label117"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Player state</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame18"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment34"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox24"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkRadioButton" id="radio_button_state_rank_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">State, rank, name</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_radio_button_sort_toggled" last_modification_time="Sat, 01 Apr 2006 21:04:08 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkRadioButton" id="radio_button_rank_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Rank, name</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <property name="group">radio_button_state_rank_name</property> <signal name="toggled" handler="on_radio_button_sort_toggled" last_modification_time="Sat, 01 Apr 2006 21:04:01 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkRadioButton" id="radio_button_state_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">State, name</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <property name="group">radio_button_state_rank_name</property> <signal name="toggled" handler="on_radio_button_sort_toggled" last_modification_time="Sat, 01 Apr 2006 21:04:18 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkRadioButton" id="radio_button_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Name</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <property name="group">radio_button_state_rank_name</property> <signal name="toggled" handler="on_radio_button_sort_toggled" last_modification_time="Sat, 01 Apr 2006 21:04:24 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label118"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Sort</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label116"> <property name="visible">True</property> <property name="label" translatable="yes">Userlist</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> ��������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-worlds-list.glade���������������������������������������������������������������0000644�0001750�0001750�00000027273�10507211661�016461� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_worlds_list_dialog"> <property name="width_request">400</property> <property name="height_request">300</property> <property name="title" translatable="yes">Edit Worlds</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_CENTER</property> <property name="modal">False</property> <property name="default_width">400</property> <property name="default_height">300</property> <property name="resizable">False</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox1"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area1"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="cmdCloseWorldsListing"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-close</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-7</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkHBox" id="hbox_main"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkScrolledWindow" id="srlWndWorldsListing"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkViewport" id="viewport1"> <property name="visible">True</property> <property name="shadow_type">GTK_SHADOW_IN</property> <child> <widget class="Custom" id="tree_view_worlds"> <property name="visible">True</property> <property name="creation_function">gm_worlds_list_dialog_create_tree_view</property> <property name="int1">0</property> <property name="int2">0</property> <property name="last_modification_time">Tue, 28 Mar 2006 22:00:23 GMT</property> </widget> </child> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkVButtonBox" id="vbutton_box_buttons"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_START</property> <property name="spacing">0</property> <child> <widget class="GtkButton" id="button_new"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-new</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_new_clicked" last_modification_time="Sun, 25 Sep 2005 16:24:00 GMT"/> </widget> </child> <child> <widget class="GtkButton" id="button_duplicate"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_duplicate_clicked" last_modification_time="Sun, 25 Sep 2005 16:24:10 GMT"/> <child> <widget class="GtkAlignment" id="alignment17"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">0</property> <property name="yscale">0</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">0</property> <property name="right_padding">0</property> <child> <widget class="GtkHBox" id="hbox22"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">2</property> <child> <widget class="GtkImage" id="image19"> <property name="visible">True</property> <property name="stock">gtk-copy</property> <property name="icon_size">4</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkLabel" id="label52"> <property name="visible">True</property> <property name="label" translatable="yes">_Duplicate</property> <property name="use_underline">True</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> </widget> </child> <child> <widget class="GtkButton" id="button_modify"> <property name="visible">True</property> <property name="can_default">True</property> <property name="has_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-edit</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_modify_clicked" last_modification_time="Sun, 25 Sep 2005 16:24:19 GMT"/> </widget> </child> <child> <widget class="GtkButton" id="button_delete"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-delete</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_delete_clicked" last_modification_time="Sun, 25 Sep 2005 16:24:27 GMT"/> </widget> </child> <child> <widget class="GtkButton" id="button_connect"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_connect_clicked" last_modification_time="Sun, 25 Sep 2005 16:24:37 GMT"/> <child> <widget class="GtkAlignment" id="alignment18"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">0</property> <property name="yscale">0</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">0</property> <property name="right_padding">0</property> <child> <widget class="GtkHBox" id="hbox23"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">2</property> <child> <widget class="GtkImage" id="image20"> <property name="visible">True</property> <property name="stock">gtk-network</property> <property name="icon_size">4</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkLabel" id="label53"> <property name="visible">True</property> <property name="label" translatable="yes">_Connect</property> <property name="use_underline">True</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> </widget> </child> </widget> <packing> <property name="padding">6</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-world-properties.glade����������������������������������������������������������0000644�0001750�0001750�00000137101�10507213306�017505� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_world_properties_dialog"> <property name="width_request">400</property> <property name="height_request">400</property> <property name="visible">True</property> <property name="title" translatable="yes">World properties</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="resizable">False</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">True</property> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox4"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area4"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="button_cancel"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-cancel</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-6</property> </widget> </child> <child> <widget class="GtkButton" id="button_ok"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-ok</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-5</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkNotebook" id="notebook_main"> <property name="border_width">12</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="show_tabs">True</property> <property name="show_border">True</property> <property name="tab_pos">GTK_POS_TOP</property> <property name="scrollable">False</property> <property name="enable_popup">False</property> <child> <widget class="GtkVBox" id="vbox7"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame1"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkTable" id="table1"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkEntry" id="entry_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="lblName"> <property name="visible">True</property> <property name="label" translatable="yes">Name:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_auto_load"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Load on startup</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> </child> <child> <widget class="GtkLabel" id="lblGen"> <property name="visible">True</property> <property name="label" translatable="yes"><b>General</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame2"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkTable" id="table2"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">3</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkEntry" id="entry_host"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="lblHost"> <property name="visible">True</property> <property name="label" translatable="yes">Host:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="lblPort"> <property name="visible">True</property> <property name="label" translatable="yes">Port:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_auto_reconnect"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Automatic reconnect</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">2</property> <property name="bottom_attach">3</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkSpinButton" id="spin_button_port"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="climb_rate">1</property> <property name="digits">0</property> <property name="numeric">True</property> <property name="update_policy">GTK_UPDATE_ALWAYS</property> <property name="snap_to_ticks">False</property> <property name="wrap">False</property> <property name="adjustment">1111 1 65535 1 10 10</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="y_options"></property> </packing> </child> </widget> </child> <child> <widget class="GtkLabel" id="lblServer"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Server</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <placeholder/> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="lblWorld"> <property name="visible">True</property> <property name="label" translatable="yes">World</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox8"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame3"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkTable" id="table3"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkEntry" id="entry_player_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="lblPassword"> <property name="visible">True</property> <property name="label" translatable="yes">Password:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="lblPlayerName"> <property name="visible">True</property> <property name="label" translatable="yes">Player name:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkEntry" id="entry_password"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">False</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="y_options"></property> </packing> </child> </widget> </child> <child> <widget class="GtkLabel" id="lblLogin"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Automatic login</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <placeholder/> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="lblAutologin"> <property name="visible">True</property> <property name="label" translatable="yes">Automatic login</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox18"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame12"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkTable" id="table11"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">1</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkLabel" id="label105"> <property name="visible">True</property> <property name="label" translatable="yes">Character encoding:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkComboBoxEntry" id="combo_box_charset"> <property name="visible">True</property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options"></property> </packing> </child> </widget> </child> <child> <widget class="GtkLabel" id="label106"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Language</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <placeholder/> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label103"> <property name="visible">True</property> <property name="label" translatable="yes">Language</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkHBox" id="hbox_triggers"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTreeView" id="tree_view_triggers"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">False</property> <property name="rules_hint">True</property> <property name="reorderable">True</property> <property name="enable_search">False</property> <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> <signal name="row_activated" handler="on_tree_view_triggers_row_activated" last_modification_time="Sun, 25 Sep 2005 21:15:03 GMT"/> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkVButtonBox" id="vbuttonbox1"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_START</property> <property name="spacing">6</property> <child> <widget class="GtkButton" id="button_add_trigger"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-add</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_add_trigger_clicked" last_modification_time="Sun, 25 Sep 2005 21:14:24 GMT"/> </widget> </child> <child> <widget class="GtkButton" id="button_edit_trigger"> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-edit</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_edit_trigger_clicked" last_modification_time="Sun, 25 Sep 2005 21:14:31 GMT"/> </widget> </child> <child> <widget class="GtkButton" id="button_delete_trigger"> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-remove</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_delete_trigger_clicked" last_modification_time="Sun, 25 Sep 2005 21:14:38 GMT"/> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label107"> <property name="visible">True</property> <property name="label" translatable="yes">Triggers</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox19"> <property name="border_width">6</property> <property name="width_request">16</property> <property name="height_request">32</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkFrame" id="frame13"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment1"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkCheckButton" id="check_button_logging_override"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Override application logging settings</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> <signal name="toggled" handler="on_check_button_logging_override_toggled" last_modification_time="Sun, 02 Apr 2006 15:17:56 GMT"/> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label109"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Logging</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkFrame" id="frame_log_types"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment2"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox20"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkCheckButton" id="check_button_logging_in"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Incoming</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_out"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Outgoing</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_status"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Status</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_mcp_in"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Mcp incoming</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_mcp_out"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Mcp outgoing</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_mcp_status"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Mcp status</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label110"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Log types</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkFrame" id="frame_log_format"> <property name="border_width">3</property> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment3"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkVBox" id="vbox21"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child> <widget class="GtkCheckButton" id="check_button_logging_add_timestamp"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Add timestamp before each line</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkCheckButton" id="check_button_logging_add_log_type"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes">Add log type before each line</property> <property name="use_underline">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="active">False</property> <property name="inconsistent">False</property> <property name="draw_indicator">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label111"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Log format</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label108"> <property name="visible">True</property> <property name="label" translatable="yes">Logging</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-triggers.glade������������������������������������������������������������������0000644�0001750�0001750�00000042234�10507211661�016016� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_triggers_dialog"> <property name="title" translatable="yes">Triggers</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">True</property> <property name="default_width">400</property> <property name="default_height">300</property> <property name="resizable">True</property> <property name="destroy_with_parent">True</property> <property name="icon">../pixmaps/world.svg</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox6"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area6"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="button_cancel"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-cancel</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-6</property> </widget> </child> <child> <widget class="GtkButton" id="button_ok"> <property name="visible">True</property> <property name="sensitive">False</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-ok</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-5</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkNotebook" id="notebook_triggers"> <property name="visible">True</property> <property name="show_tabs">False</property> <property name="show_border">False</property> <property name="tab_pos">GTK_POS_TOP</property> <property name="scrollable">False</property> <property name="enable_popup">False</property> <signal name="switch_page" handler="on_notebook_triggers_switch_page" last_modification_time="Mon, 26 Sep 2005 14:04:40 GMT"/> <child> <widget class="GtkVBox" id="vbox1"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkLabel" id="label116"> <property name="visible">True</property> <property name="label" translatable="yes">Choose which type of event you want to create a trigger for.</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">True</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">False</property> </packing> </child> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTreeView" id="tree_view_event_types"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">False</property> <property name="rules_hint">True</property> <property name="reorderable">False</property> <property name="enable_search">False</property> <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkHButtonBox" id="hbuttonbox1"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <property name="spacing">6</property> <child> <widget class="GtkButton" id="button_next"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-media-next</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_next_clicked" last_modification_time="Wed, 12 Oct 2005 18:10:54 GMT"/> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label117"> <property name="visible">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> <child> <widget class="GtkTable" id="tblRule"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">4</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkLabel" id="lblName"> <property name="visible">True</property> <property name="label" translatable="yes">Name:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkEntry" id="entry_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label116"> <property name="visible">True</property> <property name="label" translatable="yes">Actions:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0</property> <property name="xpad">0</property> <property name="ypad">3</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">3</property> <property name="bottom_attach">4</property> <property name="x_options">fill</property> <property name="y_options">fill</property> </packing> </child> <child> <widget class="GtkHSeparator" id="hseparator2"> <property name="visible">True</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">2</property> <property name="top_attach">2</property> <property name="bottom_attach">3</property> <property name="x_options">fill</property> <property name="y_options">fill</property> </packing> </child> <child> <widget class="GtkLabel" id="label115"> <property name="visible">True</property> <property name="label" translatable="yes">Conditions:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0</property> <property name="xpad">0</property> <property name="ypad">3</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options">fill</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox_conditions"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkHBox" id="hbox_add_condition"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkButton" id="button_add_condition"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label">gtk-add</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_add_condition_clicked" last_modification_time="Mon, 26 Sep 2005 13:19:02 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox_actions"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkHBox" id="hbox_add_action"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkButton" id="button_add_action"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label">gtk-add</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <signal name="clicked" handler="on_button_add_action_clicked" last_modification_time="Mon, 26 Sep 2005 13:19:11 GMT"/> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">3</property> <property name="bottom_attach">4</property> <property name="x_options">fill</property> </packing> </child> </widget> <packing> <property name="tab_expand">False</property> <property name="tab_fill">True</property> </packing> </child> <child> <widget class="GtkLabel" id="label118"> <property name="visible">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">tab</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-world-info.glade����������������������������������������������������������������0000644�0001750�0001750�00000067661�10507211661�016263� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_world_info_dialog"> <property name="visible">True</property> <property name="title" translatable="yes">World info</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="default_width">300</property> <property name="default_height">300</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="icon">../pixmaps/world.svg</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <signal name="delete_event" handler="on_gm_world_info_dialog_delete" last_modification_time="Sun, 13 Nov 2005 10:11:31 GMT"/> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox2"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area2"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="button_close"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-close</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-7</property> <signal name="clicked" handler="on_button_close_clicked" last_modification_time="Sun, 13 Nov 2005 10:10:01 GMT"/> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkFrame" id="frame1"> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment18"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkHBox" id="hbox1"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkTable" id="table2"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">2</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkLabel" id="label55"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Name:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label56"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Email:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkEventBox" id="event_box_email"> <property name="visible">True</property> <property name="visible_window">True</property> <property name="above_child">False</property> <child> <widget class="GtkLabel" id="label_email"> <property name="visible">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> <signal name="button_release_event" handler="on_label_email_button_release" last_modification_time="Sun, 13 Nov 2005 10:09:15 GMT"/> </widget> </child> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="y_options"></property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkImage" id="image_logo"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">6</property> <property name="ypad">0</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label60"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Administrator</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkHSeparator" id="hseparator1"> <property name="visible">True</property> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkFrame" id="frame2"> <property name="visible">True</property> <property name="label_xalign">0</property> <property name="label_yalign">0.5</property> <property name="shadow_type">GTK_SHADOW_NONE</property> <child> <widget class="GtkAlignment" id="alignment19"> <property name="visible">True</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xscale">1</property> <property name="yscale">1</property> <property name="top_padding">0</property> <property name="bottom_padding">0</property> <property name="left_padding">12</property> <property name="right_padding">0</property> <child> <widget class="GtkTable" id="table1"> <property name="border_width">6</property> <property name="visible">True</property> <property name="n_rows">6</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">6</property> <property name="column_spacing">6</property> <child> <widget class="GtkLabel" id="label53"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Homepage:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label57"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Character set:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">5</property> <property name="bottom_attach">6</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label58"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Language:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">2</property> <property name="bottom_attach">3</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label54"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Location:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">3</property> <property name="bottom_attach">4</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label59"> <property name="visible">True</property> <property name="label" translatable="yes"><b>System:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">4</property> <property name="bottom_attach">5</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label_language"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">2</property> <property name="bottom_attach">3</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label_location"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">3</property> <property name="bottom_attach">4</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label_system"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">4</property> <property name="bottom_attach">5</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label_characterset"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">5</property> <property name="bottom_attach">6</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkEventBox" id="event_box_homepage"> <property name="visible">True</property> <property name="visible_window">True</property> <property name="above_child">False</property> <child> <widget class="GtkLabel" id="label_homepage"> <property name="visible">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> <signal name="button_release_event" handler="on_label_homepage_button_release" last_modification_time="Sun, 13 Nov 2005 10:11:43 GMT"/> </widget> </child> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label62"> <property name="visible">True</property> <property name="label" translatable="yes"><b>Name:</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label_world_name"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="label" translatable="yes"></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">True</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> </widget> </child> </widget> </child> <child> <widget class="GtkLabel" id="label61"> <property name="visible">True</property> <property name="label" translatable="yes"><b>World</b></property> <property name="use_underline">False</property> <property name="use_markup">True</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0.5</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="type">label_item</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> �������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-world-logs.glade����������������������������������������������������������������0000644�0001750�0001750�00000010750�10507211661�016257� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_world_logs_dialog"> <property name="title" translatable="yes">Select log file to open</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property> <property name="modal">True</property> <property name="default_width">300</property> <property name="default_height">300</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="icon_name">gtk-justify-left</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <child internal-child="vbox"> <widget class="GtkVBox" id="vbox1"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="hbuttonbox1"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="button_close"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-close</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-7</property> </widget> </child> <child> <widget class="GtkButton" id="button_open"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-open</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-5</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox2"> <property name="border_width">6</property> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">6</property> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTreeView" id="tree_view_files"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="headers_visible">False</property> <property name="rules_hint">True</property> <property name="reorderable">False</property> <property name="enable_search">True</property> <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> <signal name="row_activated" handler="on_tree_view_files_row_activated" last_modification_time="Mon, 06 Feb 2006 12:01:17 GMT"/> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> ������������������������gnoemoe-2.2.0/ui/gm-open-world.glade����������������������������������������������������������������0000644�0001750�0001750�00000007652�10507211662�016264� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_open_world_dialog"> <property name="width_request">400</property> <property name="height_request">300</property> <property name="visible">True</property> <property name="title" translatable="yes">Open World</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox1"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area1"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="button_cancel"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-close</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-7</property> </widget> </child> <child> <widget class="GtkButton" id="button_open"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-open</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-5</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkViewport" id="viewport1"> <property name="visible">True</property> <property name="shadow_type">GTK_SHADOW_IN</property> <child> <widget class="Custom" id="tree_view_worlds"> <property name="visible">True</property> <property name="creation_function">gm_open_world_dialog_create_tree_view</property> <property name="int1">0</property> <property name="int2">0</property> <property name="last_modification_time">Tue, 28 Mar 2006 22:30:19 GMT</property> </widget> </child> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> ��������������������������������������������������������������������������������������gnoemoe-2.2.0/ui/gm-world-paste.glade���������������������������������������������������������������0000644�0001750�0001750�00000023725�10507212475�016441� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"> <glade-interface> <widget class="GtkDialog" id="gm_world_paste_dialog"> <property name="width_request">400</property> <property name="height_request">300</property> <property name="visible">True</property> <property name="title" translatable="yes">Paste</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="default_width">500</property> <property name="default_height">400</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property> <property name="icon_name">stock_paste</property> <property name="decorated">True</property> <property name="skip_taskbar_hint">False</property> <property name="skip_pager_hint">False</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="gravity">GDK_GRAVITY_NORTH_WEST</property> <property name="focus_on_map">True</property> <property name="urgency_hint">False</property> <property name="has_separator">False</property> <child internal-child="vbox"> <widget class="GtkVBox" id="dialog-vbox1"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">0</property> <child internal-child="action_area"> <widget class="GtkHButtonBox" id="dialog-action_area1"> <property name="visible">True</property> <property name="layout_style">GTK_BUTTONBOX_END</property> <child> <widget class="GtkButton" id="button_paste"> <property name="visible">True</property> <property name="can_default">True</property> <property name="can_focus">True</property> <property name="label">gtk-paste</property> <property name="use_stock">True</property> <property name="relief">GTK_RELIEF_NORMAL</property> <property name="focus_on_click">True</property> <property name="response_id">-10</property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">GTK_PACK_END</property> </packing> </child> <child> <widget class="GtkVBox" id="vbox1"> <property name="visible">True</property> <property name="homogeneous">False</property> <property name="spacing">3</property> <child> <widget class="GtkTable" id="table1"> <property name="visible">True</property> <property name="n_rows">3</property> <property name="n_columns">2</property> <property name="homogeneous">False</property> <property name="row_spacing">3</property> <property name="column_spacing">3</property> <child> <widget class="GtkLabel" id="label1"> <property name="visible">True</property> <property name="label" translatable="yes">Command:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">0</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label2"> <property name="visible">True</property> <property name="label" translatable="yes">To:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkLabel" id="label3"> <property name="visible">True</property> <property name="label" translatable="yes">End with:</property> <property name="use_underline">False</property> <property name="use_markup">False</property> <property name="justify">GTK_JUSTIFY_LEFT</property> <property name="wrap">False</property> <property name="selectable">False</property> <property name="xalign">1</property> <property name="yalign">0.5</property> <property name="xpad">0</property> <property name="ypad">0</property> <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property> <property name="width_chars">-1</property> <property name="single_line_mode">False</property> <property name="angle">0</property> </widget> <packing> <property name="left_attach">0</property> <property name="right_attach">1</property> <property name="top_attach">2</property> <property name="bottom_attach">3</property> <property name="x_options">fill</property> <property name="y_options"></property> </packing> </child> <child> <widget class="GtkComboBoxEntry" id="combo_box_command"> <property name="visible">True</property> <property name="items" translatable="yes"></property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">0</property> <property name="bottom_attach">1</property> <property name="y_options">fill</property> </packing> </child> <child> <widget class="GtkComboBoxEntry" id="combo_box_to"> <property name="visible">True</property> <property name="add_tearoffs">False</property> <property name="has_frame">True</property> <property name="focus_on_click">True</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">1</property> <property name="bottom_attach">2</property> <property name="x_options">fill</property> <property name="y_options">fill</property> </packing> </child> <child> <widget class="GtkEntry" id="entry_end_with"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="visibility">True</property> <property name="max_length">0</property> <property name="text" translatable="yes"></property> <property name="has_frame">True</property> <property name="invisible_char">*</property> <property name="activates_default">False</property> </widget> <packing> <property name="left_attach">1</property> <property name="right_attach">2</property> <property name="top_attach">2</property> <property name="bottom_attach">3</property> <property name="y_options"></property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">False</property> <property name="fill">True</property> </packing> </child> <child> <widget class="GtkScrolledWindow" id="scrolledwindow1"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hscrollbar_policy">GTK_POLICY_NEVER</property> <property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property> <property name="shadow_type">GTK_SHADOW_IN</property> <property name="window_placement">GTK_CORNER_TOP_LEFT</property> <child> <widget class="GtkTextView" id="text_view_text"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="editable">True</property> <property name="overwrite">False</property> <property name="accepts_tab">True</property> <property name="justification">GTK_JUSTIFY_LEFT</property> <property name="wrap_mode">GTK_WRAP_CHAR</property> <property name="cursor_visible">True</property> <property name="pixels_above_lines">1</property> <property name="pixels_below_lines">1</property> <property name="pixels_inside_wrap">0</property> <property name="left_margin">1</property> <property name="right_margin">1</property> <property name="indent">0</property> <property name="text" translatable="yes"></property> </widget> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> <packing> <property name="padding">0</property> <property name="expand">True</property> <property name="fill">True</property> </packing> </child> </widget> </child> </widget> </glade-interface> �������������������������������������������gnoemoe-2.2.0/ui/gm-ui.xml��������������������������������������������������������������������������0000644�0001750�0001750�00000006244�10507237244�014337� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<ui> <menubar name="MenuBar"> <menu name="WorldMenu" action="World"> <menuitem name="WorldNewMenu" action="WorldNew"/> <menuitem name="WorldOpenMenu" action="WorldOpen"/> <separator/> <menuitem name="WorldConnectMenu" action="WorldConnect"/> <menuitem name="WorldPasteMenu" action="WorldPaste"/> <separator/> <menuitem name="WorldLogsMenu" action="WorldLogs"/> <menuitem name="WorldInfoMenu" action="WorldInfo"/> <separator/> <placeholder name="WorldMenuAdditions" /> <separator/> <menuitem name="WorldCloseMenu" action="WorldClose"/> <menuitem name="WorldQuitMenu" action="WorldQuit"/> </menu> <menu name="EditMenu" action="Edit"> <menuitem name="EditCutMenu" action="EditCut"/> <menuitem name="EditCopyMenu" action="EditCopy"/> <menuitem name="EditPasteMenu" action="EditPaste"/> <separator/> <menuitem name="EditWorldsMenu" action="EditWorlds"/> <menuitem name="EditWorldMenu" action="EditWorld"/> <separator/> <menuitem name="EditFindMenu" action="EditFind"/> <menuitem name="EditFindNextMenu" action="EditFindNext"/> <menuitem name="EditReplaceMenu" action="EditReplace"/> <separator/> <menuitem name="EditScriptsMenu" action="EditScripts"/> <separator/> <menuitem name="EditPreferencesMenu" action="EditPreferences"/> </menu> <menu name="ViewMenu" action="View"> <menuitem name="ViewToolbarMenu" action="ViewToolbar"/> <menuitem name="ViewUserlistMenu" action="ViewUserlist"/> </menu> <menu name="EditorMenu" action="Editor"> <menuitem name="EditorSaveMenu" action="EditorSave"/> <menuitem name="EditorSaveCloseMenu" action="EditorSaveClose"/> <placeholder name="EditorMenuAdditions"/> <separator/> <menuitem name="EditorCloseMenu" action="EditorClose"/> </menu> <menu name="HelpMenu" action="Help"> <menuitem name="HelpAboutMenu" action="HelpAbout"/> </menu> </menubar> <toolbar name="ToolBar"> <separator/> <placeholder name="ToolOps_1"/> <toolitem name="WorldOpenTool" action="WorldOpen"/> <separator/> <toolitem name="EditorSaveTool" action="EditorSave"/> <toolitem name="EditorSaveCloseTool" action="EditorSaveClose"/> <placeholder name="EditorToolAdditions"/> <separator/> <placeholder name="ToolOps_2"/> <separator/> <toolitem name="WorldConnectTool" action="WorldConnect"/> <toolitem name="WorldPasteTool" action="WorldPaste"/> <toolitem name="WorldPropertiesTool" action="WorldProperties"/> <toolitem name="WorldLogsTool" action="WorldLogs"/> <toolitem name="WorldTriggersTool" action="WorldTriggers"/> <separator/> <placeholder name="ToolOps_3"/> <separator/> <toolitem name="EditCutTool" action="EditCut"/> <toolitem name="EditCopyTool" action="EditCopy"/> <toolitem name="EditPasteTool" action="EditPaste"/> <separator/> <placeholder name="ToolOps_3"/> <separator/> <toolitem name="EditFindTool" action="EditFind"/> <toolitem name="EditReplaceTool" action="EditReplace"/> <separator/> <placeholder name="ToolOps_4"/> </toolbar> </ui> ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/data/���������������������������������������������������������������������������������0000755�0001750�0001750�00000000000�10517753114�013065� 5����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/data/Makefile.am����������������������������������������������������������������������0000644�0001750�0001750�00000000702�10416214225�015111� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������desktopdir = $(datadir)/applications desktop_in_files = gnoemoe.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ mimedir = $(datadir)/mime/packages mime_DATA = gnoemoe.xml man_MANS = gnoemoe.1 langdir = $(datadir)/gtksourceview-1.0/language-specs lang_DATA = moo.lang EXTRA_DIST = \ $(desktop_in_files) \ $(mime_DATA) \ $(lang_DATA) \ $(man_MANS) CLEANFILES = \ $(desktop_DATA) ��������������������������������������������������������������gnoemoe-2.2.0/data/Makefile.in����������������������������������������������������������������������0000644�0001750�0001750�00000036667�10517752444�015161� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = data DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ $(top_srcdir)/configure.ac 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 = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" \ "$(DESTDIR)$(langdir)" "$(DESTDIR)$(mimedir)" NROFF = nroff MANS = $(man_MANS) 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|^.*/||'`; desktopDATA_INSTALL = $(INSTALL_DATA) langDATA_INSTALL = $(INSTALL_DATA) mimeDATA_INSTALL = $(INSTALL_DATA) DATA = $(desktop_DATA) $(lang_DATA) $(mime_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ 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@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@ GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@ GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@ GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GPERF = @GPERF@ GREP = @GREP@ HAS_PARSER_FALSE = @HAS_PARSER_FALSE@ HAS_PARSER_TRUE = @HAS_PARSER_TRUE@ HAS_RUBY_FALSE = @HAS_RUBY_FALSE@ HAS_RUBY_TRUE = @HAS_RUBY_TRUE@ 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@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ NOTIFY_CFLAGS = @NOTIFY_CFLAGS@ NOTIFY_LIBS = @NOTIFY_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ 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@ RUBY = @RUBY@ RUBY_CFLAGS = @RUBY_CFLAGS@ RUBY_LIBS = @RUBY_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ USE_NOTIFY_FALSE = @USE_NOTIFY_FALSE@ USE_NOTIFY_TRUE = @USE_NOTIFY_TRUE@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ 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@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ desktopdir = $(datadir)/applications desktop_in_files = gnoemoe.desktop.in desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) mimedir = $(datadir)/mime/packages mime_DATA = gnoemoe.xml man_MANS = gnoemoe.1 langdir = $(datadir)/gtksourceview-1.0/language-specs lang_DATA = moo.lang EXTRA_DIST = \ $(desktop_in_files) \ $(mime_DATA) \ $(lang_DATA) \ $(man_MANS) CLEANFILES = \ $(desktop_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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 data/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu data/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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done 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-langDATA: $(lang_DATA) @$(NORMAL_INSTALL) test -z "$(langdir)" || $(mkdir_p) "$(DESTDIR)$(langdir)" @list='$(lang_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(langDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(langdir)/$$f'"; \ $(langDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(langdir)/$$f"; \ done uninstall-langDATA: @$(NORMAL_UNINSTALL) @list='$(lang_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(langdir)/$$f'"; \ rm -f "$(DESTDIR)$(langdir)/$$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 tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ 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 $(MANS) $(DATA) installdirs: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(langdir)" "$(DESTDIR)$(mimedir)"; 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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 distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-desktopDATA install-langDATA install-man \ install-mimeDATA install-exec-am: install-info: install-info-am install-man: install-man1 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-desktopDATA uninstall-info-am \ uninstall-langDATA uninstall-man uninstall-mimeDATA uninstall-man: uninstall-man1 .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-desktopDATA install-exec \ install-exec-am install-info install-info-am install-langDATA \ install-man install-man1 install-mimeDATA 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-desktopDATA uninstall-info-am uninstall-langDATA \ uninstall-man uninstall-man1 uninstall-mimeDATA @INTLTOOL_DESKTOP_RULE@ # 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: �������������������������������������������������������������������������gnoemoe-2.2.0/data/gnoemoe.desktop.in���������������������������������������������������������������0000644�0001750�0001750�00000000261�10410766740�016516� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[Desktop Entry] Name=GnoeMoe GenericName=MOO Client Comment=GnoeMoe Gnome MOO Client Exec=gnoemoe Icon=gnoemoe-logo.svg Terminal=0 Type=Application Categories=GNOME;GTK;Network �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/data/gnoemoe.xml����������������������������������������������������������������������0000644�0001750�0001750�00000000352�10410766740�015241� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/x-moo"> <comment>MOO Code</comment> <glob pattern="*.moo"/> </mime-type> </mime-info> ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/data/moo.lang�������������������������������������������������������������������������0000644�0001750�0001750�00000014577�10410766740�014541� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd"> <language _name="MOO" version="1.0" _section="Sources" mimetypes="text/x-moo"> <escape-char>\</escape-char> <line-comment _name = "Line Comment" style= "Comment" end-at-line-end = "TRUE"> <start-regex>^[ ]*"</start-regex> <end-regex>"</end-regex> </line-comment> <string _name = "String" style = "String" end-at-line-end = "TRUE"> <start-regex>"</start-regex> <end-regex>"</end-regex> </string> <keyword-list _name = "Keywords" style = "Keyword" case-sensitive="FALSE"> <keyword>if</keyword> <keyword>else</keyword> <keyword>elseif</keyword> <keyword>endif</keyword> <keyword>for</keyword> <keyword>endfor</keyword> <keyword>break</keyword> <keyword>continue</keyword> <keyword>while</keyword> <keyword>endwhile</keyword> <keyword>in</keyword> <keyword>return</keyword> <keyword>try</keyword> <keyword>except</keyword> <keyword>endtry</keyword> <keyword>finally</keyword> <keyword>fork</keyword> <keyword>endfork</keyword> </keyword-list> <keyword-list _name = "Error" style = "Data Type" case-sensitive="FALSE"> <keyword>E_NONE</keyword> <keyword>E_TYPE</keyword> <keyword>E_DIV</keyword> <keyword>E_PERM</keyword> <keyword>E_PROPNF</keyword> <keyword>E_VERBNF</keyword> <keyword>E_VARNF</keyword> <keyword>E_INVIND</keyword> <keyword>E_RECMOVE</keyword> <keyword>E_MAXREC</keyword> <keyword>E_RANGE</keyword> <keyword>E_ARGS</keyword> <keyword>E_NACC</keyword> <keyword>E_INVARG</keyword> <keyword>E_QUOTA</keyword> <keyword>E_FLOAT</keyword> </keyword-list> <keyword-list _name = "Builtin Functions" style = "Function" case-sensitive = "FALSE"> <keyword>abs</keyword> <keyword>acos</keyword> <keyword>add_property</keyword> <keyword>asin</keyword> <keyword>atan</keyword> <keyword>binary_hash</keyword> <keyword>boot_player</keyword> <keyword>buffered_output_length</keyword> <keyword>call_function</keyword> <keyword>caller_perms</keyword> <keyword>callers</keyword> <keyword>ceil</keyword> <keyword>children</keyword> <keyword>chparent</keyword> <keyword>clear_property</keyword> <keyword>connected_players</keyword> <keyword>connected_seconds</keyword> <keyword>connection_name</keyword> <keyword>connection_option</keyword> <keyword>connection_options</keyword> <keyword>cos</keyword> <keyword>cosh</keyword> <keyword>create</keyword> <keyword>crypt</keyword> <keyword>ctime</keyword> <keyword>db_disk_size</keyword> <keyword>decode_binary</keyword> <keyword>delete_property</keyword> <keyword>delete_verb</keyword> <keyword>disassemble</keyword> <keyword>dump_database</keyword> <keyword>encode_binary</keyword> <keyword>equal</keyword> <keyword>eval</keyword> <keyword>exp</keyword> <keyword>floatstr</keyword> <keyword>floor</keyword> <keyword>flush_input</keyword> <keyword>force_input</keyword> <keyword>function_info</keyword> <keyword>idle_seconds</keyword> <keyword>index</keyword> <keyword>is_clear_property</keyword> <keyword>is_member</keyword> <keyword>is_player</keyword> <keyword>kill_task</keyword> <keyword>length</keyword> <keyword>listappend</keyword> <keyword>listdelete</keyword> <keyword>listen</keyword> <keyword>listeners</keyword> <keyword>listinsert</keyword> <keyword>listset</keyword> <keyword>log</keyword> <keyword>log10</keyword> <keyword>match</keyword> <keyword>max</keyword> <keyword>max_object</keyword> <keyword>memory_usage</keyword> <keyword>min</keyword> <keyword>move</keyword> <keyword>notify</keyword> <keyword>object_bytes</keyword> <keyword>open_network_connection</keyword> <keyword>output_delimiters</keyword> <keyword>parent</keyword> <keyword>pass</keyword> <keyword>players</keyword> <keyword>properties</keyword> <keyword>property_info</keyword> <keyword>queue_info</keyword> <keyword>queued_tasks</keyword> <keyword>raise</keyword> <keyword>random</keyword> <keyword>read</keyword> <keyword>recycle</keyword> <keyword>renumber</keyword> <keyword>reset_max_object</keyword> <keyword>resume</keyword> <keyword>rindex</keyword> <keyword>rmatch</keyword> <keyword>seconds_left</keyword> <keyword>server_log</keyword> <keyword>server_version</keyword> <keyword>set_connection_option</keyword> <keyword>set_player_flag</keyword> <keyword>set_property_info</keyword> <keyword>set_task_perms</keyword> <keyword>set_verb_args</keyword> <keyword>set_verb_code</keyword> <keyword>set_verb_info</keyword> <keyword>setadd</keyword> <keyword>setremove</keyword> <keyword>shutdown</keyword> <keyword>sin</keyword> <keyword>sinh</keyword> <keyword>sqrt</keyword> <keyword>strcmp</keyword> <keyword>string_hash</keyword> <keyword>strsub</keyword> <keyword>substitute</keyword> <keyword>suspend</keyword> <keyword>tan</keyword> <keyword>tanh</keyword> <keyword>task_id</keyword> <keyword>task_stack</keyword> <keyword>ticks_left</keyword> <keyword>time</keyword> <keyword>tofloat</keyword> <keyword>toint</keyword> <keyword>toliteral</keyword> <keyword>tonum</keyword> <keyword>toobj</keyword> <keyword>tostr</keyword> <keyword>trunc</keyword> <keyword>typeof</keyword> <keyword>unlisten</keyword> <keyword>valid</keyword> <keyword>value_bytes</keyword> <keyword>value_hash</keyword> <keyword>verb_args</keyword> <keyword>verb_code</keyword> <keyword>verb_info</keyword> <keyword>verbs</keyword> </keyword-list> <keyword-list _name = "Builtin Variables" style = "Data Type" case-sensitive = "FALSE"> <keyword>player</keyword> <keyword>this</keyword> <keyword>caller</keyword> <keyword>verb</keyword> <keyword>argstr</keyword> <keyword>args</keyword> <keyword>dobjstr</keyword> <keyword>dobj</keyword> <keyword>prepstr</keyword> <keyword>iobjstr</keyword> <keyword>iobj</keyword> </keyword-list> <keyword-list _name = "Types" style = "Data Type" case-sensitive="FALSE"> <keyword>ERR</keyword> <keyword>LIST</keyword> <keyword>STR</keyword> <keyword>OBJ</keyword> <keyword>INT</keyword> <keyword>FLOAT</keyword> <keyword>ANY</keyword> </keyword-list> <pattern-item _name = "S-Ref" style = "Data Type" case-sensitive="FALSE"> <regex>\$[A-Za-z0-9_]+</regex> </pattern-item> <pattern-item _name = "Object Number" style = "Base-N Integer"> <regex>#[-]?[0-9]+</regex> </pattern-item> </language> ���������������������������������������������������������������������������������������������������������������������������������gnoemoe-2.2.0/data/gnoemoe.1������������������������������������������������������������������������0000644�0001750�0001750�00000002474�10416204003�014571� 0����������������������������������������������������������������������������������������������������ustar �jesse���������������������������jesse������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������.TH "GNOEMOE" 1 "April 2006" "User Commands" .SH NAME gnoemoe \- a GNOME MOO client .SH SYNOPSIS .B gnoemoe [\fIOPTION ...\fR] .SH DESCRIPTION GnoeMoe is a GNOME/GTK+ MOO client. It's stable and feature rich. Some of the features include ANSI, MCP (the MOO Client Protocol), multiple tabbed worlds, internal editor with syntax checker, external editors, limited ruby scripting and triggers. GnoeMoe aims to integrate in the GNOME desktop environment as well as possible. .SH OPTIONS .TP .B \-?, \-\-help Show the help message of the application and exit. .TP .B \-d, \-\-debug=DEBUGLEVEL Enable debugging. Specify multiple debug levels with a comma seperated list. Available levels: default, mcp, all. .TP .B \-l, \-\-load=WORLDS Load specified worlds. Specify multiple worlds with a comma separated list. .TP .B \-r, \-\-recover Recover from the previous session (used with GNOME session). .TP .B \-\-usage Display the brief ussage message of the application and exit. .TP .B \-v, \-\-version Show the version of the application and exit. .SH SEE ALSO The Gnoemoe website, http://wiki.icecrew.nl/software/GnoeMoe, and the MOO website, http://www.moo.mud.org/, for more information. .SH AUTHOR Gnoemoe was written by Jesse van den Kieboom <jesse@icecrew.nl>. .PP This manual page was written by Paul van Tilburg <paulvt@debian.org>. ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������