gnomekiss-2.0/0000777000076400007640000000000010365201124010361 500000000000000gnomekiss-2.0/missing0000755000076400007640000002517010203673767011722 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-02-08.22 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -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 ." 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 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: gnomekiss-2.0/doc/0000777000076400007640000000000010365201124011126 500000000000000gnomekiss-2.0/doc/COMPATIBILITY0000664000076400007640000000721607421215164013016 00000000000000How to solve compatibility problems with GnomeKiSS by Nick Lamb, last major changes 16 January 2002 1. The problem Many artists can't or won't test their dolls with any viewer except the one they used to create the doll, or their personal favourite. This causes problems wherever the various KiSS viewers vary in their behaviour. This problem is exaggerated by the fact that a number of popular viewers are currently unmaintained. Because problems in unmaintained viewers aren't fixed over time the user community learns to work around them or even accept them as "features". At the time of writing: * I am not aware of any ongoing work to improve KiSS viewers on classic MacOS, although there is a reward (see The Big KiSS Page) for programmers willing to implement a modern FKiSS 3.0 capable viewer for MacOS. * The venerable WKiSS 0.68 for Windows has not seen any further updates in several years and can be considered abandoned. * Chad Randall's Amiga Viewer PlayFKiSS 2.06 is no longer maintained since 1996. I understand that there was (is?) an update from a third party with some more modern features. * Chad's more recent Windows PlayFKiSS viewer stopped development while still described as BETA in 1998. The last versions are 0.84 and 0.83b * Chad's new PlayFKiSS 2.0 (also for Windows) hasn't seen any releases since May 2000, and is still alpha quality although Chad is apparently still working on it. 2. The solutions The best long term solution to these problems is the availability of viewers for all popular platforms which implement all KiSS features "correctly" according to our best understanding. Together with work to clearly define the hazy bits of existing specifications this would make dolls behave similarly for users on every platform. In the short term though GnomeKiSS can help its users to enjoy more dolls by being compatible with popular viewers, in particular PlayFKiSS so that the large library of dolls created on PFK work as expected. In some cases this can easily be done within the specifications, but often it means sacrificing correctness. Obviously it cannot be right to make such a decision on behalf of the users, so these changes in behaviour are where appropriate options in the "Features" section of the preferences dialog in GnomeKiSS. The defaults have been chosen to conform closely to existing documentation. 3. "Features" 3.1. Use PFK default palette (default OFF) This mimics the PlayFKiSS behaviour of filling "unused" palette entries from a pre-determined palette during loading. Dolls with no palette or incomplete palette data sometimes look better with this option. 3.2 Case insensitive FKiSS parser (default OFF) This squashes all FKiSS commands to lowercase so that otherwise invalid commands become valid as they are in PlayFKiSS and KiSSLD. 3.3 Ignore lone colon (default OFF) When parsing cell lines from a CNF file this changes the behaviour when the cell includes a ":" marker to indicate which sets it is visible in, but does not list any sets. 3.4 No {catch,drop} triggered if object is fixed (default OFF) The events catch() and drop() will not be triggered on an object or its cells if the object is fixed and this preference is set. 3.5 Slow down factor (default 1 == No slow down) This slows timers and therefore makes the doll seem to be in "slow motion" which is useful for debugging some problems, and makes the perceived behaviour more similar to some other viewers (for small factors). 3.6 Minimum timer interval (default 1ms) This changes the effective behaviour of timers to make them less fine grained. You can approximate the behaviour of PlayFKiSS by setting this to 10ms and adjust it for other viewers appropriately. gnomekiss-2.0/doc/Makefile.in0000664000076400007640000002361010364777445013142 00000000000000# Makefile.in generated by automake 1.9.5 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 = : subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_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_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ man_MANS = gnomekiss.1 EXTRA_DIST = $(man_MANS) COMPATIBILITY 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 doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 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 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) installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic 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-man1 install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-info-am uninstall-man uninstall-man1 # 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: gnomekiss-2.0/doc/gnomekiss.10000644000076400007640000000260207475074772013154 00000000000000.TH gnomekiss 1 "26 October 2001" .SH NAME gnomekiss \- A KiSS paper doll viewer for GNOME .SH SYNOPSIS .B gnomekiss [\-\-help] .RI .SH DESCRIPTION This manual page documents briefly the .B gnomekiss command. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. .PP \fBgnomekiss\fP is a viewer for all KiSS paper dolls. Cherry KiSS and Enhanced Palette are supported, with full alpha transparency and FKiSS. .br For downloading dolls please look at \fBhttp://www.otakuworld.com/kiss/\fP. There you find a large doll library and you also get further infos. Please note: Some dolls contain nudity. If you download dolls for your children to play with, please carefully check that they are not adult stuff! .SH OPTIONS \fBgnomekiss\fP accepts the following options: .TP .B \-\-help Show summary of options inherited from GNOME. .SH AUTHOR: .I Nick Lamb .br e-mail: njl195@zepler.org.uk .br Word-Wide-Web: http://www.zepler.org.uk/~njl195/code/kiss/ .PP This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page (but may be used by others). .SH HISTORY 24 February 2001 \- Originally written by Dr. Guenter Bechly . .br 26 October 2001 \- Amaya Rodrigo is now responsible for developing and maintaining this manual page. gnomekiss-2.0/doc/Makefile.am0000664000076400007640000000017207422560413013111 00000000000000## Process this file with automake to produce Makefile.in man_MANS = gnomekiss.1 EXTRA_DIST = $(man_MANS) COMPATIBILITY gnomekiss-2.0/gnomekiss.desktop0000644000076400007640000000040310362262410013666 00000000000000[Desktop Entry] Encoding=UTF-8 Categories=Application;Game Name=GnomeKiSS Name[es]=GnomeKiSS Comment=Gnome's KiSSekae dolls viewer Comment[es]=EL visor de muņecas KiSSekae de Gnome Icon=gnomekiss/besito_sinfondo.png Exec=gnomekiss Terminal=0 Type=Application gnomekiss-2.0/depcomp0000755000076400007640000003677410203673767011714 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-02-09.22 # 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . 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 . 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 '/^# [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: gnomekiss-2.0/INSTALL0000644000076400007640000002240610203673767011353 00000000000000Installation 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. gnomekiss-2.0/configure.in0000664000076400007640000000123210364770152012621 00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(gnomekiss, 2.0) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC pkg_modules="libgnomeui-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) GETTEXT_PACKAGE=gnomekiss AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) dnl Add the languages which your application supports here. ALL_LINGUAS="en_GB es es_ES" AM_GLIB_GNU_GETTEXT AC_OUTPUT([ Makefile src/Makefile po/Makefile.in doc/Makefile gnomekiss.spec ]) gnomekiss-2.0/gnomekiss.glade0000664000076400007640000017716010364205330013312 00000000000000 True GnomeKiss GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False besito_sinfondo.png True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True True True True 2 True GTK_SHADOW_OUT True True GNOMEUIINFO_MENU_FILE_TREE True GNOMEUIINFO_MENU_OPEN_ITEM True Open a different config file Open _Configuration... True True Open _Add-on... True True GNOMEUIINFO_MENU_CLOSE_ITEM True True GNOMEUIINFO_MENU_EXIT_ITEM True GNOMEUIINFO_MENU_VIEW_TREE True Switch to set 0 Set _0 True True True False Switch to set 1 Set _1 True True set_0 True False Switch to set 2 Set _2 True True set_0 True False Switch to set 3 Set _3 True True set_0 True False Switch to set 4 Set _4 True True set_0 True False Switch to set 5 Set _5 True True set_0 True False Switch to set 6 Set _6 True True set_0 True False Switch to set 7 Set _7 True True set_0 True False Switch to set 8 Set _8 True True set_0 True False Switch to set 9 Set _9 True True set_0 True _Colors True True Use palette group 0 Group _0 True True True Use palette group 1 Group _1 True True group_0 True Use palette group 2 Group _2 True True group_0 True Use palette group 3 Group _3 True True group_0 True Use palette group 4 Group _4 True True group_0 True Use palette group 5 Group _5 True True group_0 True Use palette group 6 Group _6 True True group_0 True Use palette group 7 Group _7 True True group_0 True Use palette group 8 Group _8 True True group_0 True Use palette group 9 Group _9 True True group_0 True _Tools True True _Error list True True _Unfix True True GNOMEUIINFO_MENU_SETTINGS_TREE True GNOMEUIINFO_MENU_PREFERENCES_ITEM True GNOMEUIINFO_MENU_HELP_TREE True GNOMEUIINFO_MENU_ABOUT_ITEM BONOBO_DOCK_TOP 0 0 0 BONOBO_DOCK_ITEM_BEH_EXCLUSIVE|BONOBO_DOCK_ITEM_BEH_NEVER_VERTICAL|BONOBO_DOCK_ITEM_BEH_LOCKED 1 True GTK_SHADOW_OUT 1 True GTK_ORIENTATION_HORIZONTAL GTK_TOOLBAR_ICONS True True True Open File Open True gtk-open True True False False True True True True True False False True Switch to set 0 0 True gnome-stock-book-red True True False False False True True False Switch to set 1 1 True gnome-stock-book-green True True False False show_set0 False True True False Switch to set 2 2 True gnome-stock-book-blue True True False False show_set0 False True True False Switch to set 3 3 True gnome-stock-book-red True True False False show_set0 False True True False Switch to set 4 4 True gnome-stock-book-green True True False False show_set0 False True True False Switch to set 5 5 True gnome-stock-book-blue True True False False show_set0 False True True False Switch to set 6 6 True gnome-stock-book-red True True False False show_set0 False True True False Switch to set 7 7 True gnome-stock-book-green True True False False show_set0 False True True False Switch to set 8 8 True gnome-stock-book-blue True True False False show_set0 False True True False Switch to set 9 9 True gnome-stock-book-red True True False False show_set0 False True True True True True False False True Unfix current object Unfix True gnome-stock-attach True True False False True BONOBO_DOCK_TOP 1 0 0 BONOBO_DOCK_ITEM_BEH_EXCLUSIVE|BONOBO_DOCK_ITEM_BEH_LOCKED 600 400 True GTK_POLICY_ALWAYS GTK_POLICY_ALWAYS GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True GTK_SHADOW_IN True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 0 True True True True True 0 True True 10 True Open KiSS Set GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE True True False True True True GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True True True True GTK_RELIEF_NORMAL True True True True GTK_RELIEF_NORMAL True 10 True Select Config file GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True True True GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True True True True GTK_RELIEF_NORMAL True True True True GTK_RELIEF_NORMAL True True Error list GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True True False 0 True GTK_POLICY_ALWAYS GTK_POLICY_ALWAYS GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True 3 80,80,80 GTK_SELECTION_SINGLE True GTK_SHADOW_IN True File False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 True Line False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 True Message False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True GTK_BUTTONBOX_DEFAULT_STYLE 30 True True True Close True GTK_RELIEF_NORMAL True True True True Clear True GTK_RELIEF_NORMAL True 0 False False 10 True Select Add-on GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True True True GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True True True True GTK_RELIEF_NORMAL True True True True GTK_RELIEF_NORMAL True True Preferences GTK_WIN_POS_NONE False False False True True True GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True True True True GTK_POS_TOP False False True 3 2 False 0 0 True True Play MIDI using external program True GTK_RELIEF_NORMAL True False False True 0 2 0 1 expand True True Play digital audio (needs GNOME audio) True GTK_RELIEF_NORMAL True False False True 0 2 2 3 expand True Command that plays MIDI on your system e.g. playmidi -a True True True 0 True * False 1 2 1 2 True MIDI player False False GTK_JUSTIFY_CENTER False False 0 0.5 5 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 fill False True True _Sound True False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True 3 2 False 0 0 True True Show error list (if any) after each doll loads True GTK_RELIEF_NORMAL True True False True 0 2 0 1 expand True True Trace actions at runtime True GTK_RELIEF_NORMAL True False False True 0 2 2 3 expand True True Include warnings as well as errors True GTK_RELIEF_NORMAL True False False True 0 2 1 2 10 expand False True True _Diagnostics True False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True 6 2 False 0 0 True True Ignore lone colon (show cell in all sets) True GTK_RELIEF_NORMAL True False False True 0 2 2 3 expand True True Case insensitive FKiSS parser True GTK_RELIEF_NORMAL True False False True 0 2 1 2 expand True True Use PFK default palette (reload doll for effect) True GTK_RELIEF_NORMAL True False False True 0 2 0 1 expand True Slow down factor False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 4 5 expand True True 1 0 False GTK_UPDATE_IF_VALID False False 1 1 100 1 10 10 1 2 4 5 True Minimum timer interval (ms) False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 5 6 expand True True 1 0 False GTK_UPDATE_IF_VALID False False 1 1 100 1 10 10 1 2 5 6 True True No {catch,drop} triggered if object is fixed True GTK_RELIEF_NORMAL True False False True 0 2 3 4 expand False True True "_Features" True False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 0 True True True False Gnomekiss Copyright 2000-2005 Nick Lamb A KiSS viewer for the GNOME desktop This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Nick Lamb <drnick-gnomekiss@totl.net> and a cast of... dozens see source code. Zazu Vega <zazu.vega@hispalinux.es> translator-credits besito_sinfondo.png gnomekiss-2.0/pixmaps/0000777000076400007640000000000010365201124012042 500000000000000gnomekiss-2.0/pixmaps/besito_sinfondo.png0000644000076400007640000000375207475055042015675 00000000000000‰PNG  IHDR szzôbKGDĸĸĸ ―§“ pHYs  ŌÝ~ütIMEŌĪĖwIDATxœí–ۏdUÆûr.uíę[UũTũāpqfÄÎĢ"ˆ1>€ hˆA1č‹ „ĸ ˆ&&$ūðĀA$AĒd@† Ģsé™qz.Ý]]S5U]—Sįœ―·§zĶÁ€|Ð•ŽŽ“ģũúÖZß^{Áĸåŋ,âģnžï>Âéi”ˆV ŧē‚i40ý>„!ēVÃ_\$˜™ÁZ-âĩ5â^4Õ*ŠVÃӟĀÂþâ"žï#ÛmlĐD†$í6ÖóssčË.#˜Ÿ'ÖŨA€ëõ P@Öëõ:þgPĐ įæĘetĩM°ýM>ß9Ëöv‘ŨŽ]ÃęD ]ŦĄ·mÃS ‚Ŧf8D”Ëčz Vû7ž ,_ÚĀ_öOÁ T~™Éô9ņ€jđá(‰ŋÝ{€—ãoÎ|35…ö<ÐãyxI‚*•ÐÕ*aąˆRŸā<ū <<|XĒ;amíFTų•Ņ3üLtøÉT>(/îÞĐ*Öîîm ŋîŸ'_ðXÝM\ž €\&'Ņģģø• ZkÄŋðˆ#ôā;cįs€ŲĒ+^Lðz ļ/åÝõÅé`Ũwï$Ü}5øE:ŋĸƒ;øüģ―$œØÍ+Wü˜Ũó;éÆ1)€įeä HÔGœëuÛp‡…_ó…r™ëîšKîšĸ~]ŧé& ‡•AģđČ| ËÞÉBč}ņ‡?@Ä=šÏ<ÍčÄÂ]WˆËŋwW0XZZčë^78BÁķؘšœÁD H)qIēĀP(ŽĀ-1üØ^ĻTÄūGó·Þ*/ūˆ;{VLïŲ#ĒsįDïB;D"j9OčÕSDy’ķ―Jtč=ėúYęßžEVwlÏõ—Î]Ý>_Ó_Âk4ōģ$Ō#5†äb ^‚üėÁŊ„R;Kõ:Ũ?ø cýņĮą―. ąđýn|ð ā•!,.€ôÎRâÏÎǧ§ļpôļíĪņ†ŦðĮŲÛyzþn§>=ĩÉöū2‚'ĪïaĮ=ũˆ{Lpô(Í'žĀEQ†RŒ1Ø( *•ŋ:*<> R9LÜĮī›k„ïÃ>—ŊeĮ…#4tĶxΆŊĶð”Îįw\õĀ+Ņé%ž>ĀƒĖ‚BŒY(€8›‡īŪAÁų <ð8ąk!ē`ðb\4ÂĖ“á<ŋOBx^(ĩ7œÅĨ)Ģvm 3Y@Ī@Ø1Ä>˜˜<Č/Ŧ―0< ·°-€…Bĩęízč!98s†°ZĨīšĘœĩĖģĀÔX+c-9ČJfdR:Ŧ―ĩYÄĪāb°ôae2ĶíßČσ›9ĨއÂ{°ïˆiđnwŠđPŽŨåî‡&jĩ—— ƑŦ,Ļ“qŠĨĐw‰8.ĀZ§z éŋŠxęϒCžĮš2p•―ˆī ô&ãļ-/‡Ãåe1}óÍDžgÎ Ž―8@lZ·€·5—‚eVXX3°ÃhČÆsðô[ÖO7ĩcNĻ:Œ†PV0ąýsÐōĄWuŪ:ZYÉ·ß_Ôï―—ÉÛnÃŪ­‘v:Xį›ÎÉRî΀3įÖÂ?t€ĄĨó;Áoþ6ĪҌčEŽýå2gTbį™@9ۀ ĀFE’„­ƒÅ"—=ú(Þ 70Ęåp§OcŌ'ēT&5›ZTšH , ‘Gëõ/Ohމ)Į|Ÿw€hó-H 4}P { Ð)ÁhĖÛ$ņûGŠÆŧï2l6…ŦTh,-Ҋc6&ĘäoŋƒÕV›fgƒūƒ…Ó††įĸ4ŋËëį#Ē~ĖqßįU­Ųčũ1[Ÿc ”€Āž&wÂÔį`á:Ø3U•ņ,Wí@H!4āŒ”NZĢ…ËŠŒ%ĶpæÍi^mÍŌJņpČņR‰Wš]šŦŦÄÝ.FoᓹĀaē+{ý!ā$l‚Óu˜LÁNBAd|S“ÎMÄ[cė,ĖFE0*Aå<īŽÅŽļ4‚b‘“Ũ^ˍ―8ÆjQHoá’Gdå3ūķĨ hÏxņiEHžA#(–9ąs'•bÃ’8ūÔX·Î„nœ…MĮɚۍ@a\"ĮĨĀGöēeÝ:Gj &IXÚķBu:Äý>é`€KÓlÏĮ΄ãC‡Āúø? Ævó]’\ÕôxÝnY?\(ðöĖ Ý҈ļŲ$]_ĮtŧØNįR ųÄTŽįÉjĮßãÖC‰ėĄtĀ$0b tĪääô4ɉė°Ņ7d:~:ĸą ˆÍŲÛčũ/–ëDīFxÞĮgúŸÕFNNėHÓŅIENDŪB`‚gnomekiss-2.0/pixmaps/gnome-kiss.png0000664000076400007640000000301507323445753014563 00000000000000‰PNG  IHDR((ŒþļmÔIDATXÃí˜kˆTeÆÏûžËL۝Ļ,Ë."]!ėBvĄŋ!HHå‡?öÁĘ “ t‚VÝŌÂM)\žĖîŠ3{™ÝYggö6;Ū{ÓÝžD™šNÏßįeCAGûf朙óþÎĸþŽã\<þņļzÚõ@ÃPšįŋ„š―e ÓPéoôᅆŠA/@ÛÂP>tôērJŦĩSÚm…–+gͅ› ­€Z(=― Ļ`†\§t€FĻvWVŧŪ>Ÿ`C5Ðėzč%@Õj―PęƒöRÎįĄ†Ā=Zíyþųû:ķÖĮĘŒB ýk†:Ą.BĄÝū[Ļ4ØĩÐWÐ)sĄđÐ:X+ÃE›h1Q_ÓP”åûė„{RïnŪ$ÜÐ~óöĀ~ÁBƒīŽ,Þí"€…IB[  |9Ÿ1€ïV î2HÜQš mŌ&Č{đPNŪ‰ÖĄk%{‘ÞĨũīđ.nîöTĐöŌŠ•\*qķ õsá}!h1Û Õ3îÖčV&Ïe,ŨAĩųú$2xĘđ‚ÝÄš64Į1–:@‹IķÆZΚ·zE›Pļŧ”9ŨFIĐiôtę\ĀۃÖCژŦÕ&žzCÖK&AØ U“ÝâčgZļČsĘCmފŊŒ wÔ+7G-Í km†6‡=%Ĩ‚ļxˆ)ĄV†^7qÍfq+-?îëRM<ðKđųÃÐũÚļī3äÎ:m\)ÚĩÐjKĩI wŧc~gKJŠ bÅīï\åû‘:ČýRãæ9&ōĖļ ãl!m&æøįՙCĀte’ĨĀëfŅ–vwLîøŸGSŌäŊvL›ę`|5Ņ‚{đX‚€õīĖcepũ*ó›<ÁzCąw:„ōē1" āY`‰2…·ČxŦ§;mķf.?― î!ezí0Čšķ‡Ųĸ;Ôïë"ĘKĪþ›ļibIl;_mÃb›V6ÛÍVƍĮB™nÛ_;― !ē3ðߏũ”,ēœîÉĒ™ &ƒXæ0ôŽ>îieâ-ÃļģîâûūvzęôZߋ4Eo―Í10ÛéĘV–†Ņfžēp ”q{-mg>;(t„úģXv·§QûŠÎîFčÄkläiÆZKĻoJÐŊ*ƒ[ތĩrĄūœ§ĨŽ;‹ü―PwƃåQŽũÆåXp‹6ÖĖ8ËņÆ}īœmú.GĶöP i Í}­eI2ČũÍū;ē:Ū9[8ĐEý Yõ›čYdŒ7ŊL@8y/īčĄåš —s'‹s8IF&ū§}įûģĒXožXd­ŨH ą Ö†āĶqšÉðēünŽî,Ŧw6I\ܧiQ‡‚5:æĶŧBõN\[]BļYjē­%čR šfÜiýē$Āũ"O,qčČJeîķ…Ú]ŝÚB5Ų ēžÞIË%éæ~ÖŧaáÖ°ę§€žų\Ō'ąÉ˜ØáwŌ*cī’ ˜WBŸņZšðîdrØ>›á5iqĮeðõéÚXėņJė1ޔ]ŲmÜŨÂEæÃbs•‰ÉϧéÎ=Lû h3īFû­.{ąR› š%ĖÞ$! œPōĄ$hglĩ„ ·dæQ&“X―ÍS'\]]ãy3*ķÁE|­“iđ‰ŪK…†ÏūvąÍåw)‚šĒŽJ}žhð―e5ąXåĀBĖnÔ&öŽm,ēŒōÜŊ·{š”ðÝ^čĢõž7+ęČþŊŽjĨ‚ÝÚ9n`8ԞÆčFŲXįï@ŌÓßn žÅØäÜųĩ™š/ĖąYŦgŅ‚ķīšjWJĮümíWˆŊĸ æã_§Đĸūxüߎŋõ?É5”iîIENDŪB`‚gnomekiss-2.0/AUTHORS0000664000076400007640000000004110351063362011347 00000000000000Nick Lamb gnomekiss-2.0/autogen.sh0000775000076400007640000001063010351063200012274 00000000000000#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` test -z "$srcdir" && srcdir=. DIE=0 if [ -n "$GNOME2_DIR" ]; then ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS" LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH" PATH="$GNOME2_DIR/bin:$PATH" export PATH export LD_LIBRARY_PATH fi (test -f $srcdir/configure.in) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level package directory" exit 1 } (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`autoconf' installed." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1 } (grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && { (intltoolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`intltool' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && { (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`xml-i18n-toolize' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && { (libtool --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`libtool' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 } } (grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && { (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \ (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`glib' installed." echo "You can get it from: ftp://ftp.gtk.org/pub/gtk" DIE=1 } } (automake --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`automake' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 NO_AUTOMAKE=yes } # if no automake, don't bother testing for aclocal test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: Missing \`aclocal'. The version of \`automake'" echo "installed doesn't appear recent enough." echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/" DIE=1 } if test "$DIE" -eq 1; then exit 1 fi if test -z "$*"; then echo "**Warning**: I am going to run \`configure' with no arguments." echo "If you wish to pass any to it, please specify them on the" echo \`$0\'" command line." echo fi case $CC in xlc ) am_opt=--include-deps;; esac for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print` do dr=`dirname $coin` if test -f $dr/NO-AUTO-GEN; then echo skipping $dr -- flagged as no auto-gen else echo processing $dr ( cd $dr aclocalinclude="$ACLOCAL_FLAGS" if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 echo "Running glib-gettextize... Ignore non-fatal messages." echo "no" | glib-gettextize --force --copy echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then echo "Running intltoolize..." intltoolize --copy --force --automake fi if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then echo "Running xml-i18n-toolize..." xml-i18n-toolize --copy --force --automake fi if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then if test -z "$NO_LIBTOOLIZE" ; then echo "Running libtoolize..." libtoolize --force --copy fi fi echo "Running aclocal $aclocalinclude ..." aclocal $aclocalinclude if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then echo "Running autoheader..." autoheader fi echo "Running automake --gnu $am_opt ..." automake --add-missing --gnu $am_opt echo "Running autoconf ..." autoconf ) fi done conf_flags="--enable-maintainer-mode" if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile. || exit 1 else echo Skipping configure process. fi gnomekiss-2.0/install-sh0000755000076400007640000002202110203673767012317 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-02-02.21 # 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: gnomekiss-2.0/ChangeLog0000664000076400007640000001537010365051713012066 000000000000002.0 GNOME 2.x conversion aiming at GNOME 2.6 and later Many new compiler warnings fixed, e.g. sign and const fixes Further changes to event handling to ensure interactivity when stressed Fixed snprintf() call to stay strictly within the buffer Still warn, but don't ignore objects declared after @EventHandler 1.7 Improvements to interactivity hack in the light of life010 testset. Sets are now interrupted every 65000 instructions or so for events. 1.6 Improved stack depth break & interactivity during long FKiSS routines. Tail recursion re-activated in celeberation. No matter what happens you should be able to (at least) load a different doll or quit GnomeKiSS. Collision detection now more closely resembles PFK and others, more or less all the work is done in the move() functions, so the performance might be slightly better overall too. Added line numbers to trace output, hopefully it's more useful now. Allow external MIDI program to have up to 10 command line parameters specified. Add a tooltip to help users figure this out. Run only one instance at a time, and clean up zombies. Allow music("") to kill the external MIDI program Removed arbitrary limits for # of labels, # of alarms Maximum fixed objects introduced, these cannot be unfixed by repeated clicking, and never cause catch/drop type events. Currently only objects with fix >= 32767 are treated as MFOs. This might change. 1.5 Auto* upgrades may require you to upgrade some tools if you want to maintain the build system for GnomeKiSS. Most people can ignore this. New icon from Zazu Vega . She is a lot more talented than I am, but if for some reason you prefer my icon it is still included with GnomeKiSS. Kevin Bond donated performance tweaks for cell rendering. He describes the difference as "huge" on OS X but on a Duron Linux system I measured around 5% improvement. You mileage will undoubtedly vary. Set column titles passive in error list, so that no affordance exists where no functionality exists. 1.4 Support [nn background specifier for when scrolled viewport is larger than set widthxheight. Added "Clear" button to error log window, Window / Error List menu item, plus the Error list now automagically scrolls to the first new error (if any) when loading a new set Added "Unfix" menu item and button to toolbar. Click a cell, and "Unfix" has a similar effect to clicking until the item becomes unfixed ** Switched to radio buttons for Set selection UI and made the UI reflect current set properly all the time ** Maximum number of KiSS objects now only limited by system resources Changed errors -> fkiss_errors to make GnomeKiSS more portable. (**) based on contributions by Didier Poliart. Thanks Didier. 1.3 Bumped character array length for object declarations #obj.fix and for cell filenames (even though in theory the latter should never be more than DOS-style 8.3 filenames) Integrated new Spanish translation as well as a brief manual page and a .desktop file -- all from Amaya who is the Debian packager for GnomeKiSS. Thanks Amaya. The desktop file was hacked into Makefile.am, I hope that's the correct way to do it, I was going by several non-Gnome package sources. 1.2 Increased maximum string length for notify() and similar actions Added a preference to choose the name of the program for external MIDI. Completed gettext i18n support in program code, translations are now welcome for GnomeKiSS 1.x 1.1 Added primitive support for Xdnd and GNOME drag-and-drop. Files dropped from a compliant file manager onto GnomeKiSS will open automatically. Added a preference which supresses {catch,drop} when the object is fixed Fixed letmousex() and letmousey() Minimum timer interval "feature" preference now more closely mimics PFK See the file COMPATIBILITY which should be wherever you found this file. 1.0 Changed palette groups implementation to match the actual documentation, not just my faulty recollection of it. Provided a GUI for palette groups as in other viewers Code cleaned up, compiler warnings fixed or silenced as appropriate. Provided simple implementation of letmousex() and letmousey() to shut up any dolls which use them. More work is needed for a full implementation. Preferences for MIDI and digital audio, so that they can be disabled for people who like their KiSS quiet. 0.9.1 Further performance improvements, especially for the solid color background and for rendering indexed cells. Force defaults in preferences code to sane values. Implemented letinside() correctly Various memory leaks fixed (thanks to MemProf from Red Hat / Owen Taylor) Improved all cell-level collision detection features to match the FKiSS specification more exactly. Added option to mimic the behaviour of Windows PlayFKiSS 0.8x when a doll is loaded with no palette or not enough palette entries. -- also an option to ignore case mistakes in FKiSS events and actions 0.9 Fixed hit-detection for CKiSS cells. This has probably been broken since GnomeKiSS stopped expanding all cel files to RGBA during loading, maybe longer. Finally optimise render cases for stuff like simple movement and map or unmap actions. Only changed scanlines are recalculated. Removed system() kludge from MIDI support. This makes it harder to debug but I have always said that MIDI in GnomeKiSS is basically unsupported. It is no longer possible for nefarious KiSS authors to construct a music() action which runs code with user privileges. More helpful error messages when LZH decompression fails, or when you don't have LHA installed. I cannot always detect when decompression fails, so don't rely on this 100%. Fixed potential parser crash for excess $set layout definitions, added support for ^M Mac OS style line separators everywhere. New FKiSS parser improves detection of invalid and excess parameters for both events and actions, simplifies some things but required fairly extensive changes to the whole FK parser. Preferences implemented, initially only a few preferences concentrating on debugging support and work-arounds for some "features" in other viewers. The standard Gnome prefs functionality is used. lettransparent() implemented 0.8.1 Check timer numbers at run-time to avoid segfault in jun.lzh Stack now increases only for gosub() or where a secondary event is triggered (not for goto) and does not increase when it has already reached the maximum allowed size. Somehow changecol() was missing the line of code that makes it actually change the palette set on screen. Fixed. Ghost was implemented. All of the FKiSS 3 let*() family of actions are now implemented except for letmousex() letmousey() letinside() and lettransparent() Control actions goto() and gotorandom() as well as exitevent() were implemented using a long awaited new conditional in the event trigger. gnomekiss-2.0/config.h.in0000664000076400007640000000362210364770326012343 00000000000000/* config.h.in. Generated from configure.in 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 if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* 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 gnomekiss-2.0/src/0000777000076400007640000000000010365201124011150 500000000000000gnomekiss-2.0/src/kiss.h0000664000076400007640000002303010364213224012211 00000000000000#ifdef HAVE_CONFIG_H # include #endif #include /* arbitrary limit */ #define PALETTES 100 /* Kiss/GS */ #define SETS 10 #define COLS 10 #define KISS_MFO 32767 /* event stack */ #define MAX_DEPTH 16 #define KISS_PENDING 0 #define KISS_DONE 1 extern GtkWidget *app, *area, *appbar, *pref_dialog, *error_clist; extern GtkWidget *about, *error_list, *set_open, *config_open, *add_open; extern GtkWidget *buttons[SETS], *items[SETS]; extern int mouse_x, mouse_y; extern int view; extern int global_lock; /* if KISS_PENDING, redraw will refresh rgb_buf */ extern guchar *global_start, *global_end; typedef GSList *KissActionList; typedef struct { KissActionList press; /* fKiSS press("name.cel") */ KissActionList unfix; /* fKiSS unfix("name.cel") */ KissActionList catch; /* fKiSS catch("name.cel") */ KissActionList fixcatch; /* fKiSS fixcatch("name.cel") */ KissActionList drop; /* fKiSS drop("name.cel") */ KissActionList fixdrop; /* fKiSS fixdrop("name.cel") */ KissActionList release; /* fKiSS release("name.cel") */ } KissCellEvents; typedef struct { int id; /* Object #id */ GSList *cells; /* KissCellRefs in this object */ int x[SETS], y[SETS]; /* co-ordinatess */ int ox[SETS], oy[SETS]; /* original co-ordinatess */ int width, height; /* Object size */ int fix; /* +ve values indicate fixed */ KissActionList press; /* fKiSS press(#1) */ KissActionList unfix; /* fKiSS unfix(#1) */ KissActionList catch; /* fKiSS catch(#1) */ KissActionList fixcatch; /* fKiSS fixcatch(#1) */ KissActionList drop; /* fKiSS drop(#1) */ KissActionList fixdrop; /* fKiSS fixdrop(#1) */ KissActionList release; /* fKiSS release(#1) */ GSList *cell_collisions; /* fKiSS collide("name.cel","other.cel") etc. */ GSList *obj_collisions; /* fKiSS in(#1,#2) stillout(#1,#2) etc. */ } KissObject; typedef struct { gchar *name; /* Name of CEL file */ guchar *index, *argb; /* Image buffers */ guint width, height; /* Image size */ int offx, offy; /* offset co-ordinatess */ KissCellEvents *events; /* fKiSS events */ unsigned int mapped; /* boolean map/ unmap -- share ? */ int alpha; /* (signed) cell-level alpha -- share ? */ /* Not shareable */ KissObject *object; int x[SETS], y[SETS]; /* co-ords */ unsigned int visible; /* 1 << N FALSE if hidden */ unsigned int ghosted; /* positive is ghosted */ unsigned int duplicate; /* not set for first instance */ unsigned int palette; /* palette number */ } KissCell; typedef enum { ACTION_FKISS_VER_1 = 100, ACTION_ALTMAP_CELL, ACTION_ALTMAP_OBJECT, ACTION_CHANGESET, ACTION_CHANGECOL, ACTION_DEBUG, ACTION_MAP_CELL, ACTION_MAP_OBJECT, ACTION_MOVE_OBJECT, ACTION_NOP, ACTION_QUIT, ACTION_RANDOMTIMER, ACTION_SHELL, ACTION_SOUND, ACTION_SOUND_CANCEL, ACTION_TIMER, ACTION_TRANSPARENT_CELL, ACTION_TRANSPARENT_OBJECT, ACTION_UNMAP_CELL, ACTION_UNMAP_OBJECT, ACTION_VIEWPORT, ACTION_WINDOW_SIZE, /* FKiSS 2 */ ACTION_FKISS_VER_2 = 200, ACTION_MOVE_BYX, ACTION_MOVE_BYY, ACTION_MOVE_TO, ACTION_MUSIC, ACTION_MUSIC_CANCEL, ACTION_NOTIFY, /* FKiSS 2.1 */ ACTION_FKISS_VER_2_1 = 300, ACTION_IF_FIXED, ACTION_IF_MAPPED, ACTION_IF_MOVED, ACTION_IF_NOT_FIXED, ACTION_IF_NOT_MAPPED, ACTION_IF_NOT_MOVED, ACTION_MOVE_RANDX, ACTION_MOVE_RANDY, ACTION_MOVE_TORAND, ACTION_SETFIX, /* FKiSS 3.0 */ ACTION_FKISS_VER_3 = 400, ACTION_VAR_LET, ACTION_VAR_ADD, ACTION_VAR_SUB, ACTION_VAR_MUL, ACTION_VAR_DIV, ACTION_VAR_MOD, ACTION_VAR_RANDOM, ACTION_VAR_OBJECT_X, ACTION_VAR_OBJECT_Y, ACTION_VAR_OBJECT_FIX, ACTION_VAR_CELL_MAPPED, ACTION_VAR_SET, ACTION_VAR_PAL, ACTION_VAR_MOUSE_X, ACTION_VAR_MOUSE_Y, ACTION_VAR_CATCH, ACTION_VAR_COLLIDE, ACTION_VAR_INSIDE, ACTION_VAR_CELL_TRANSPARENT, /* Ghost has been redefined, a pref controlling this would be good */ ACTION_GHOST_CELL, ACTION_GHOST_OBJECT, /* Control structures */ CONTROL = 500, CONTROL_EXIT_EVENT, CONTROL_GOTO, CONTROL_GOSUB, CONTROL_GOTO_RANDOM, CONTROL_GOSUB_RANDOM, CONTROL_CONDITIONAL = 600, CONTROL_EQUAL, CONTROL_NOT_EQUAL, CONTROL_GREATER_THAN, CONTROL_LESS_THAN, CONTROL_ELSE, CONTROL_ENDIF, /* Last action in the system */ ACTION_NONEXISTENT } KissActionType; typedef void * KissValue; #define KissCell(x) ((KissCell *) x) #define KissObject(x) ((KissObject *) x) #define KissString(x) ((gchar *) x) #define KissVariable(x) ((KissVariable *) x) #define KissValue(x) (((KissVariable *) x)->value) typedef struct { KissActionType type; guint line; KissValue args[3]; } KissAction; typedef struct { gchar *name; gint32 value; } KissVariable; typedef struct { int together; KissActionList collide, apart; } KissCollisionEvents; typedef struct { KissCell *cell1, *cell2; KissCollisionEvents *events; } KissCellCollision; typedef struct { KissObject *obj1, *obj2; KissActionList in, out; KissActionList stillin, stillout; int together; } KissObjectCollision; typedef struct micro_timer { long when; /* relative to previous event */ KissActionList what; struct micro_timer *next; struct micro_timer *prev; } MicroTimer; typedef struct { gchar *filename; /* config filename */ gchar *description; /* longer description */ KissActionList init; /* fKiSS initialize() */ KissActionList begin; /* fKiSS begin() */ KissActionList version; /* fKiSS version() */ KissActionList never; /* fKiSS never() */ KissActionList end; /* fKiSS end() */ KissActionList overflow; /* fKiSS overflow() */ KissActionList sets[SETS]; /* fKiSS set()s */ KissActionList cols[COLS]; /* fKiSS col()s */ GHashTable *alarms; /* fKiSS alarm()s */ GHashTable *labels; /* fKiSS labels()s */ GSList *variables; /* numeric variables and constants */ GHashTable *objects; /* hash table of KissObjects */ guchar *rgb_buf; /* RGB buffer */ gint32 width, height; /* RGB buffer size */ gint32 row_stride; /* RGB row stride */ gint pal_set[SETS]; /* default palette set */ guchar bg_color; /* KiSS background color */ KissCell *target; /* cell currently being dragged */ KissCell *selected; /* cell current "selected" */ } KissConfig; typedef struct { gboolean midi; /* play MIDI */ gchar * midi_player; /* external program to play MIDI */ gboolean esound; /* play WAVs and AUs with GNOME esound */ gboolean ignore_colon; /* treat : without set numbers as ALL */ gboolean default_palette; /* a 256 color default palette */ gboolean fkiss_case; /* ignore case of FKiSS */ guint min_timer; /* minimum timer interval 1... */ guint speed_factor; /* slow down factor, higher is slower */ gboolean catch_drop; /* catch / fixcatch mutually exclusive */ gboolean error_list; /* show diagnostic error list */ gboolean warnings; /* include warnings */ gboolean trace; /* run-time action tracing */ } KissPrefs; extern KissConfig config; extern KissPrefs prefs; extern guint fk_timer_source; /* Source of timers */ extern MicroTimer *timers; /* Timers ready to fire */ extern GSList *cells; /* Global list of ALL KissCells */ extern guchar *palettes[PALETTES * COLS]; /* KCF palettes */ /* KissActions */ extern KissActionList fkiss_errors; /* fKiSS errors... */ /* functions */ void set_timer(int which, long when); void reset_timers(void); void render_object(KissObject *object); void render_cell(KissCell *cell); void render_all(void); void cell_render(gpointer data, gpointer user_data); KissCell *cell_new(guint objid, guint pal, gchar *filename); void cell_delete(KissCell *cell); KissCell *cell_intersect(KissCell *cell, int x, int y); KissCell *cell_find(gchar *name); KissObject *object_id(guint id); KissObject *object_find(char *ref); void object_move(KissObject *object, int x, int y); void object_set_location(KissObject *object, int x, int y); void reset_cells(void); KissVariable *var_find(gchar *name); void var_describe(KissVariable *var); void reset_variables(void); KissCollisionEvents *collision_find(char *cell_one, char *cell_two); KissObjectCollision *impact_find(char *one, char *two); int cell_collision(KissCell *cell1, KissCell *cell2); void check_collisions(KissObject *object, int ignore); int object_collision(KissObject *obj1, KissObject *obj2); char *lha_open(const char *filename); void lha_extend(const char *filename); void lha_close(void); void parse_file(const char *filename); void reset_french(void); void parse_action(gchar *text); void events(KissActionList list); long numeric(gchar *integer); KissActionList *event_find(GHashTable *table, gint id); KissActionList *event_find_or_insert(GHashTable *table, gint id); void clean_up(void); #define FREE_ACTION_LIST(L) do { free_action_list(L); L= NULL; } while(0); void free_action_list(GSList *list); void change_cursor(GdkWindow *window, GdkCursorType type); int case_fixup(char *filename); FILE *open_any(const char *path, const char *mode); void open_either(const char *filename); KissCell *intersect(int x, int y); void switch_color(int col); void switch_view(int set); void log_error(char *format, ...); void log_warning(char *format, ...); void set_line(guint line); guint get_line(void); gnomekiss-2.0/src/timer.c0000664000076400007640000001044610351065621012364 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "kiss.h" guint fk_timer_source= 0; MicroTimer *timers = NULL; /* Timers ready to fire */ /* internals */ static gboolean check_timers(gpointer data); static MicroTimer timer_zero; static struct timeval lasttime; static void unset_timer(KissActionList alarm); static gboolean check_timers(gpointer data) { KissActionList actions; struct timeval thistime; long count; gettimeofday(&thistime, NULL); count= ( thistime.tv_sec - lasttime.tv_sec ) * 1000; count+= ( thistime.tv_usec - lasttime.tv_usec ) / 1000; count/= prefs.speed_factor; lasttime.tv_sec= thistime.tv_sec; lasttime.tv_usec= thistime.tv_usec; while (timers->what != NULL && timers->when < count) { count-= timers->when; actions= timers->what; timer_zero.next= timers->next; timers->next->prev= &timer_zero; g_free(timers); timers= timer_zero.next; events(actions); } if (timers->what) { timers->when-= count; return TRUE; } else { fk_timer_source= 0; /* source gone */ return FALSE; } } void set_timer(int which, long when) { long count= 0; MicroTimer *timer, *new_timer; KissActionList what, *event; event = event_find(config.alarms, which); if (!event) { log_error(_("alarm(%u) is undefined"), which); return; /* not valid */ } else { what = *event; } if (what == NULL) { log_warning(_("alarm(%u) has no actions"), which); return; /* nothing to do, so who cares when it would have happened */ } unset_timer(what); /* Wasteful but easiest to code it this way */ if (when == 0) { return; /* removing the old timer was all we needed to do */ } if (when % prefs.min_timer > 0) { when+= (prefs.min_timer - (when % prefs.min_timer)); } if (fk_timer_source == 0) { fk_timer_source= gtk_timeout_add(10, (GSourceFunc) check_timers, NULL); gettimeofday(&lasttime, NULL); } new_timer= g_new(MicroTimer, 1); new_timer->what= what; for (timer= timers; timer != NULL; timer=timer->next) { count+= timer->when; if (new_timer && count >= when) { new_timer->when= when + timer->when - count; new_timer->prev= timer->prev; new_timer->next= timer; timer->when= count - when; timer->prev->next= new_timer; timer->prev= new_timer; new_timer= NULL; } if (timer->what == NULL) { /* timer_zero */ timer->when= LONG_MAX / 2; break; } } timers= timer_zero.next; } static void unset_timer(KissActionList alarm) { MicroTimer *timer, *old_timer = NULL; if (alarm == NULL) { return; } for (timer= timers; timer != NULL; timer=timer->next) { if (timer->what == alarm) { old_timer= timer; timer->prev->next= timer->next; timer->next->when+= timer->when; timer->next->prev= timer->prev; timer= timer->prev; g_free(old_timer); /* clean up */ } if (timer->what == NULL) { /* timer_zero */ timer->when= LONG_MAX / 2; break; } } timers= timer_zero.next; } void reset_timers(void) { MicroTimer *next; while (timers && timers->what) { next= timers->next; g_free(timers); timers= next; } timer_zero.when= LONG_MAX / 2; timer_zero.what= NULL; timer_zero.next= &timer_zero; timer_zero.prev= &timer_zero; timers= timer_zero.next; if (fk_timer_source > 0) { g_source_remove(fk_timer_source); fk_timer_source= 0; } } gnomekiss-2.0/src/collision.c0000664000076400007640000001673410351065561013250 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include "kiss.h" #define KISS_IN 1 #define KISS_OUT 0 #define KISS_NEITHER -1 static int quick_collision(KissCell *cell1, KissCell *cell2); KissObjectCollision *impact_find(char *one, char *two) { KissObjectCollision *collision; GSList *list; KissObject *obj1, *obj2; obj1= object_find(one); obj2= object_find(two); /* If the objects aren't real they can't very well collide */ if (obj1 == NULL || obj2 == NULL) return NULL; for (list= obj1->obj_collisions; list != NULL; list= g_slist_next(list)) { collision= (KissObjectCollision *) list->data; if (collision->obj2 == obj2) return collision; } /* Can't find any suitable event, create one */ collision= g_new0(KissObjectCollision, 1); collision->obj1= obj1; collision->obj2= obj2; collision->together= KISS_OUT; obj1->obj_collisions= g_slist_prepend(obj1->obj_collisions, collision); obj2->obj_collisions= g_slist_prepend(obj2->obj_collisions, collision); return collision; } KissCollisionEvents *collision_find(char *cell_one, char *cell_two) { KissCellCollision *collision; KissCollisionEvents *events; KissCell *cell1, *cell2 = NULL; GSList *list1, *list2; cell1= cell_find(cell_one); if (cell1 == NULL) { log_error(_("cell \"%s\" not loaded"), cell_one); return NULL; } else { list1= cell1->object->cell_collisions; } for (; list1 != NULL; list1= g_slist_next(list1)) { collision= (KissCellCollision *) list1->data; /* We need to match BOTH cells, since this list is per OBJECT */ if ((collision->cell1 == cell1 && !g_strcasecmp(collision->cell2->name, cell_two)) || (collision->cell2 == cell1 && !g_strcasecmp(collision->cell1->name, cell_two))) { return collision->events; } } events= g_new0(KissCollisionEvents, 1); events->together= KISS_OUT; collision= NULL; for (list2= cells; list2 != NULL; list2= g_slist_next(list2)) { cell2= (KissCell *) list2->data; if (!g_strcasecmp(cell2->name, cell_two)) { if (cell2->duplicate) { log_warning(_("cell name \"%s\" is ambiguous"), cell_two); } for (list1= cells; list1 != NULL; list1= g_slist_next(list1)) { cell1= (KissCell *) list1->data; if (!g_strcasecmp(cell1->name, cell_one)) { collision= g_new(KissCellCollision, 1); collision->cell1= cell1; collision->cell2= cell2; collision->events= events; cell1->object->cell_collisions= g_slist_prepend(cell1->object->cell_collisions, collision); cell2->object->cell_collisions= g_slist_prepend(cell2->object->cell_collisions, collision); } } } } if (collision == NULL) { g_free(events); log_error(_("cell \"%s\" not loaded"), cell_two); return NULL; } else { return events; } } int cell_collision(KissCell *cell1, KissCell *cell2) { int x, x1, x2, y, y1, y2; int width, height; if (!cell1->mapped || !(cell1->visible & (1 << view))) return KISS_OUT; if (!cell2->mapped || !(cell2->visible & (1 << view))) return KISS_OUT; if (cell1->x[view] >= cell2->x[view] + cell2->width) return KISS_OUT; if (cell1->x[view] + cell1->width <= cell2->x[view]) return KISS_OUT; if (cell1->y[view] >= cell2->y[view] + cell2->height) return KISS_OUT; if (cell1->y[view] + cell1->height <= cell2->y[view]) return KISS_OUT; x1= MAX(cell1->x[view], cell2->x[view]) - cell1->x[view]; x2= MAX(cell1->x[view], cell2->x[view]) - cell2->x[view]; y1= MAX(cell1->y[view], cell2->y[view]) - cell1->y[view]; y2= MAX(cell1->y[view], cell2->y[view]) - cell2->y[view]; width= MIN(cell1->x[view] + cell1->width, cell2->x[view] + cell2->width) - MAX(cell1->x[view], cell2->x[view]); height= MIN(cell1->y[view] + cell1->height, cell2->y[view] + cell2->height) - MAX(cell1->y[view], cell2->y[view]); for (x = 0; x < width; ++x) { for (y = 0; y < height; ++y) { if (cell1->index && cell1->index[(y1+y) * cell1->width + x1 + x] == 0) continue; if (cell2->index && cell2->index[(y2+y) * cell2->width + x2 + x] == 0) continue; if (cell1->argb && cell1->argb[((y1+y) * cell1->width +x1 +x) * 4] == 0) continue; if (cell2->argb && cell2->argb[((y2+y) * cell2->width +x2 +x) * 4] == 0) continue; return KISS_IN; } } return KISS_OUT; } static int quick_collision(KissCell *cell1, KissCell *cell2) { if (!cell1->mapped || !(cell1->visible & (1 << view))) return KISS_OUT; if (!cell2->mapped || !(cell2->visible & (1 << view))) return KISS_OUT; if (cell1->x[view] >= cell2->x[view] + cell2->width) return KISS_OUT; if (cell1->x[view] + cell1->width <= cell2->x[view]) return KISS_OUT; if (cell1->y[view] >= cell2->y[view] + cell2->height) return KISS_OUT; if (cell1->y[view] + cell1->height <= cell2->y[view]) return KISS_OUT; return KISS_IN; } /* object collision ignores transparent pixels, it is a bbox collision */ int object_collision(KissObject *obj1, KissObject *obj2) { GSList *inner, *outer; KissCell *cell1, *cell2; for (outer = obj1->cells; outer != NULL ; outer= g_slist_next(outer)) { cell1= (KissCell *) outer->data; for (inner = obj2->cells; inner != NULL ; inner= g_slist_next(inner)) { cell2= (KissCell *) inner->data; if (quick_collision(cell1, cell2)) return KISS_IN; } } return KISS_OUT; } void check_collisions(KissObject *object, int ignore) { GSList *list; KissCellCollision *collision; KissObjectCollision *impact; for (list= object->cell_collisions; list != NULL; list= g_slist_next(list)) { collision= (KissCellCollision *) list->data; if (cell_collision(collision->cell1, collision->cell2)) { if (collision->events->together != KISS_IN) { collision->events->together= KISS_IN; if (!ignore) events(collision->events->collide); } } else { if (collision->events->together != KISS_OUT) { collision->events->together= KISS_OUT; if (!ignore) events(collision->events->apart); } } } for (list= object->obj_collisions; list != NULL; list= g_slist_next(list)) { impact= (KissObjectCollision *) list->data; if (object_collision(impact->obj1, impact->obj2)) { events(impact->stillin); /* Always */ if (impact->together != KISS_IN) { impact->together= KISS_IN; if (!ignore) events(impact->in); } } else { events(impact->stillout); /* Always */ if (impact->together != KISS_OUT) { impact->together= KISS_OUT; if (!ignore) events(impact->out); } } } } gnomekiss-2.0/src/event.c0000664000076400007640000007232010364213212012357 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "support.h" #include "kiss.h" KissActionList fkiss_errors; static int random_value(int from, int to); static KissActionList label_by_id(gint id); static void object_unmap(KissObject *object); static void object_map(KissObject *object); static void object_altmap(KissObject *object); static void object_ghost(KissObject *object, int value); static void object_transparent(KissObject *object, int amount); static void object_move_relative(KissObject *object, int x, int y); static void play_midi(gchar *song); static void stop_midi(void); static unsigned int depth= 0, cycles = 0; static unsigned int control_flag[MAX_DEPTH+1]; static pid_t midi_child= 0; /* MIDI child process */ /* returns a random integer between "from" and "to" inclusive */ static int random_value(int from, int to) { int range; if (to < from) { range= from - to; from= to; to= from + range; } else if (to == from) { return from; } else { range= to - from; } return from + (rand() % (range + 1)); } static KissActionList label_by_id(gint id) { KissActionList *event; event = event_find(config.labels, id); if (event == NULL) { log_error(_("label(%d) is undefined"), id); return NULL; } else { return *event; } } static void object_unmap(KissObject *object) { GSList *list; for (list= object->cells; list != NULL; list= g_slist_next(list)) { ((KissCell *) list->data)->mapped= 0; } render_object(object); } static void object_map(KissObject *object) { GSList *list; for (list= object->cells; list != NULL; list= g_slist_next(list)) { ((KissCell *) list->data)->mapped= 1; } render_object(object); } static void object_altmap(KissObject *object) { GSList *list; for (list= object->cells; list != NULL; list= g_slist_next(list)) { ((KissCell *) list->data)->mapped^= 1; } render_object(object); } static void object_ghost(KissObject *object, int value) { GSList *list; KissCell *cell; for (list= object->cells; list != NULL; list= g_slist_next(list)) { cell= (KissCell *) list->data; cell->ghosted= value; } } static void object_transparent(KissObject *object, int amount) { GSList *list; KissCell *cell; for (list= object->cells; list != NULL; list= g_slist_next(list)) { cell= (KissCell *) list->data; cell->alpha= CLAMP(cell->alpha - amount, 0, 255); } render_object(object); } static void object_move_relative(KissObject *object, int x, int y) { object_move(object, object->x[view] + x, object->y[view] + y); } static void stop_midi(void) { if (!prefs.midi) return; /* user doesn't want MIDI */ if (midi_child) { kill(midi_child, SIGTERM); waitpid(midi_child, NULL, 0); midi_child= 0; } } static void play_midi(gchar *song) { int k; char *string, *args[13]; /* 1 command, 10 parameters, 1 song, 1 NULL */ if (!prefs.midi) return; /* user doesn't want MIDI */ string = strdup(prefs.midi_player); args[0]= strtok(string, " "); for (k= 1; k < 11; ++k) { args[k]= strtok(NULL, " "); if (args[k] == NULL) break; } args[k]= song; args[k+1]= NULL; stop_midi(); /* just in case */ midi_child = fork(); if (midi_child == 0) { execvp(args[0], args); _exit(182); } else if (midi_child == -1) { midi_child = 0; } free(string); } static void trace(KissAction *action, int depth) { int k; if (action == NULL) return; if (!prefs.trace) return; fprintf(stderr, "%4u ", action->line); for(k= 1; k < depth; ++k) { fputc(' ', stderr); } if (action->type < CONTROL_CONDITIONAL && control_flag[depth] == 0) { fprintf(stderr, _("##skipped## ")); } switch (action->type) { case ACTION_ALTMAP_CELL: fprintf(stderr, "altmap(\"%s\")\n", KissCell(action->args[0])->name); break; case ACTION_ALTMAP_OBJECT: fprintf(stderr, "altmap(#%d)\n", KissObject(action->args[0])->id); break; case ACTION_CHANGESET: fprintf(stderr, "changeset("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ")\n"); break; case ACTION_CHANGECOL: fprintf(stderr, "changecol("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ")\n"); break; case ACTION_DEBUG: fprintf(stderr, "debug(\"%s\")\n", KissString(action->args[0])); break; case ACTION_MAP_CELL: fprintf(stderr, "map(\"%s\")\n", KissCell(action->args[0])->name); break; case ACTION_MAP_OBJECT: fprintf(stderr, "map(#%d)\n", KissObject(action->args[0])->id); break; case ACTION_MOVE_OBJECT: fprintf(stderr, "move(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_NOP: fprintf(stderr, "nop()\n"); break; case ACTION_QUIT: fprintf(stderr, "quit()\n"); break; case ACTION_RANDOMTIMER: fprintf(stderr, "randomtimer("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_SHELL: fprintf(stderr, "shell(\"%s\")\n", KissString(action->args[0])); break; case ACTION_SOUND: fprintf(stderr, "sound(\"%s\")\n", KissString(action->args[0])); break; case ACTION_SOUND_CANCEL: fprintf(stderr, "sound(\"\")\n"); break; case ACTION_TIMER: fprintf(stderr, "timer("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case ACTION_TRANSPARENT_CELL: fprintf(stderr, "transparent(\"%s\",", KissCell(action->args[0])->name); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case ACTION_TRANSPARENT_OBJECT: fprintf(stderr, "transparent(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case ACTION_UNMAP_CELL: fprintf(stderr, "unmap(\"%s\")\n", KissCell(action->args[0])->name); break; case ACTION_UNMAP_OBJECT: fprintf(stderr, "unmap(#%d)\n", KissObject(action->args[0])->id); break; case ACTION_VIEWPORT: fprintf(stderr, "viewport("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case ACTION_WINDOW_SIZE: fprintf(stderr, "windowsize("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; /* FKiSS 2 onwards */ case ACTION_MOVE_BYX: fprintf(stderr, "movebyx(#%d,#%d,", KissObject(action->args[0])->id, KissObject(action->args[1])->id); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_MOVE_BYY: fprintf(stderr, "movebyy(#%d,#%d,", KissObject(action->args[0])->id, KissObject(action->args[1])->id); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_MOVE_TO: fprintf(stderr, "moveto(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_MUSIC: fprintf(stderr, "music(\"%s\")\n", KissString(action->args[0])); break; case ACTION_MUSIC_CANCEL: fprintf(stderr, "music(\"\")\n"); break; case ACTION_NOTIFY: fprintf(stderr, "notify(\"%s\")\n", KissString(action->args[0])); break; /* FKiSS 2.1 onwards */ case ACTION_IF_FIXED: fprintf(stderr, "iffixed(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); if (KissObject(action->args[0])->fix > 0) fprintf(stderr, ") TRUE\n"); else fprintf(stderr, ") FALSE\n"); break; case ACTION_IF_MAPPED: fprintf(stderr, "ifmapped(\"%s\",", KissCell(action->args[0])->name); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); if (KissCell(action->args[0])->mapped) fprintf(stderr, ") TRUE\n"); else fprintf(stderr, ") FALSE\n"); break; case ACTION_IF_MOVED: fprintf(stderr, "ifmoved(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_IF_NOT_FIXED: fprintf(stderr, "ifnotfixed(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); if (KissObject(action->args[0])->fix == 0) fprintf(stderr, ") TRUE\n"); else fprintf(stderr, ") FALSE\n"); break; case ACTION_IF_NOT_MAPPED: fprintf(stderr, "ifnotmapped(\"%s\",", KissCell(action->args[0])->name); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); if (!KissCell(action->args[0])->mapped) fprintf(stderr, ") TRUE\n"); else fprintf(stderr, ") FALSE\n"); break; case ACTION_IF_NOT_MOVED: fprintf(stderr, "ifnotmoved(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_MOVE_RANDX: fprintf(stderr, "moverandx(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_MOVE_RANDY: fprintf(stderr, "moverandy(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_MOVE_TORAND: fprintf(stderr, "movetorand(#%d)\n", KissObject(action->args[0])->id); break; case ACTION_SETFIX: fprintf(stderr, "setfix(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; /* FKiSS 3.0 onwards */ case ACTION_VAR_LET: fprintf(stderr, "let("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case ACTION_VAR_ADD: fprintf(stderr, "add("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_VAR_SUB: fprintf(stderr, "sub("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_VAR_MUL: fprintf(stderr, "mul("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_VAR_DIV: fprintf(stderr, "div("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_VAR_MOD: fprintf(stderr, "mod("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_VAR_RANDOM: fprintf(stderr, "random("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case ACTION_VAR_OBJECT_X: fprintf(stderr, "letobjectx("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",#%d) = %d\n", KissObject(action->args[1])->id, KissObject(action->args[1])->x[view]); break; case ACTION_VAR_OBJECT_Y: fprintf(stderr, "letobjecty("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",#%d) = %d\n", KissObject(action->args[1])->id, KissObject(action->args[1])->y[view]); break; case ACTION_VAR_OBJECT_FIX: fprintf(stderr, "letfix("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",#%d) = %d\n", KissObject(action->args[1])->id, KissObject(action->args[1])->fix); break; case ACTION_VAR_CELL_MAPPED: fprintf(stderr, "letmapped("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",\"%s\")\n", KissCell(action->args[1])->name); break; case ACTION_VAR_SET: fprintf(stderr, "letset("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ") = %d\n", view); break; case ACTION_VAR_PAL: fprintf(stderr, "letpal("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ") = %d\n", config.pal_set[view]); break; case ACTION_VAR_MOUSE_X: fprintf(stderr, "letmousex("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ") = %d\n", mouse_x); break; case ACTION_VAR_MOUSE_Y: fprintf(stderr, "letmousey("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ") = %d\n", mouse_y); break; case ACTION_VAR_CATCH: fprintf(stderr, "letcatch("); var_describe(KissVariable(action->args[0])); if (config.target) fprintf(stderr, ") = %d\n", config.target->object->id); else fprintf(stderr, ") = none\n"); break; case ACTION_VAR_COLLIDE: fprintf(stderr, "letcollide("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",\"%s\",\"%s\")\n", KissCell(action->args[1])->name, KissCell(action->args[2])->name); break; case ACTION_VAR_INSIDE: fprintf(stderr, "letinside("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",#%d,#%d)\n", KissObject(action->args[1])->id, KissObject(action->args[2])->id); break; case ACTION_VAR_CELL_TRANSPARENT: fprintf(stderr, "lettransparent("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ",\"%s\")\n", KissCell(action->args[1])->name); break; case ACTION_GHOST_CELL: fprintf(stderr, "ghost(\"%s\",", KissCell(action->args[0])->name); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case ACTION_GHOST_OBJECT: fprintf(stderr, "ghost(#%d,", KissObject(action->args[0])->id); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; /* FKiSS 3.0 control structures :( */ case CONTROL_EXIT_EVENT: fprintf(stderr, "exitevent()\n"); break; case CONTROL_GOSUB: fprintf(stderr, "gosub("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ")\n"); break; case CONTROL_GOTO: fprintf(stderr, "goto("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ")\n"); break; case CONTROL_GOSUB_RANDOM: fprintf(stderr, "gosubrandom("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case CONTROL_GOTO_RANDOM: fprintf(stderr, "gotorandom("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ","); var_describe(KissVariable(action->args[2])); fprintf(stderr, ")\n"); break; case CONTROL_EQUAL: fprintf(stderr, "ifequal("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case CONTROL_NOT_EQUAL: fprintf(stderr, "ifnotequal("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case CONTROL_GREATER_THAN: fprintf(stderr, "ifgreaterthan("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case CONTROL_LESS_THAN: fprintf(stderr, "iflessthan("); var_describe(KissVariable(action->args[0])); fprintf(stderr, ","); var_describe(KissVariable(action->args[1])); fprintf(stderr, ")\n"); break; case CONTROL_ELSE: fprintf(stderr, "else()\n"); break; case CONTROL_ENDIF: fprintf(stderr, "endif()\n"); break; default: fprintf(stderr, "## Unknown action? ##\n"); } } /* if non-zero is returned no further actions should be processed from the current action list */ static KissActionList trigger(KissAction *action, KissActionList next) { int k; static unsigned int offset_x= 0, offset_y= 0; g_assert(action != NULL); if (action->type < CONTROL_CONDITIONAL && control_flag[depth] == 0) return next; /* FKiSS 3 if { ... } else { ... } endif */ switch (action->type) { case ACTION_ALTMAP_CELL: KissCell(action->args[0])->mapped^=1; render_cell(KissCell(action->args[0])); break; case ACTION_ALTMAP_OBJECT: object_altmap(KissObject(action->args[0])); render_object(KissObject(action->args[0])); break; case ACTION_CHANGESET: switch_view(KissValue(action->args[0])); /* includes render */ break; case ACTION_CHANGECOL: switch_color(KissValue(action->args[0])); /* includes render */ break; case ACTION_DEBUG: fprintf(stderr, _("DEBUG: %s\n"), KissString(action->args[0])); break; case ACTION_MAP_CELL: KissCell(action->args[0])->mapped= 1; render_cell(KissCell(action->args[0])); break; case ACTION_MAP_OBJECT: object_map(KissObject(action->args[0])); break; case ACTION_MOVE_OBJECT: object_move_relative(KissObject(action->args[0]), KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_NOP: break; case ACTION_QUIT: events(config.end); break; case ACTION_RANDOMTIMER: if (KissValue(action->args[2]) > 0) k= KissValue(action->args[1]) + (rand() % KissValue(action->args[2])); else k= KissValue(action->args[1]); set_timer(KissValue(action->args[0]), k); break; case ACTION_SHELL: fprintf(stderr, _("WARNING: tried to execute \"%s\"\n"), KissString(action->args[0])); break; case ACTION_SOUND: if (prefs.esound) { gnome_sound_play(KissString(action->args[0])); } break; case ACTION_SOUND_CANCEL: if (prefs.esound) { /* FIXME: it's not clear if even a non-portable cancel exists (!) */ fprintf(stderr, "Don't know how to cancel sounds yet\n"); } break; case ACTION_TIMER: set_timer(KissValue(action->args[0]), KissValue(action->args[1])); break; case ACTION_TRANSPARENT_CELL: k = KissCell(action->args[0])->alpha - KissValue(action->args[1]); KissCell(action->args[0])->alpha= CLAMP(k, 0, 255); render_cell(KissCell(action->args[0])); break; case ACTION_TRANSPARENT_OBJECT: object_transparent(KissObject(action->args[0]), KissValue(action->args[1])); break; case ACTION_UNMAP_CELL: KissCell(action->args[0])->mapped= 0; render_cell(KissCell(action->args[0])); break; case ACTION_UNMAP_OBJECT: object_unmap(KissObject(action->args[0])); break; case ACTION_VIEWPORT: /* FIXME */ fprintf(stderr, "Action viewport(...) ignored\n"); break; case ACTION_WINDOW_SIZE: offset_x+= KissValue(action->args[0]); offset_y+= KissValue(action->args[1]); gtk_widget_set_usize(lookup_widget(app, "scrolledwindow1"), config.width + offset_x, config.height + offset_y); break; /* FKiSS 2 onwards */ case ACTION_MOVE_BYX: object_move(KissObject(action->args[0]), KissObject(action->args[1])->x[view] + KissValue(action->args[2]), KissObject(action->args[0])->y[view]); break; case ACTION_MOVE_BYY: object_move(KissObject(action->args[0]), KissObject(action->args[0])->x[view], KissObject(action->args[1])->y[view] + KissValue(action->args[2])); break; case ACTION_MOVE_TO: object_move(KissObject(action->args[0]), KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_MUSIC: play_midi(KissString(action->args[0])); break; case ACTION_MUSIC_CANCEL: stop_midi(); break; case ACTION_NOTIFY: gnome_app_message(GNOME_APP(app), KissString(action->args[0])); break; /* FKiSS 2.1 onwards */ case ACTION_IF_FIXED: if (KissObject(action->args[0])->fix > 0) set_timer(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_IF_MAPPED: if (KissCell(action->args[0])->mapped) set_timer(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_IF_MOVED: if (KissObject(action->args[0])->ox[view] != KissObject(action->args[0])->x[view] || KissObject(action->args[0])->oy[view] != KissObject(action->args[0])->y[view]) set_timer(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_IF_NOT_FIXED: if (KissObject(action->args[0])->fix == 0) set_timer(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_IF_NOT_MAPPED: if (!KissCell(action->args[0])->mapped) set_timer(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_IF_NOT_MOVED: if (KissObject(action->args[0])->ox[view] == KissObject(action->args[0])->x[view] && KissObject(action->args[0])->oy[view] == KissObject(action->args[0])->y[view]) set_timer(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_MOVE_RANDX: k= random_value(KissValue(action->args[1]), KissValue(action->args[2])); object_move_relative(KissObject(action->args[0]), k, 0); break; case ACTION_MOVE_RANDY: k= random_value(KissValue(action->args[1]), KissValue(action->args[2])); object_move_relative(KissObject(action->args[0]), 0, k); break; case ACTION_MOVE_TORAND: object_move(KissObject(action->args[0]), rand() % config.width, rand() % config.height); break; case ACTION_SETFIX: k= KissValue(action->args[1]); KissObject(action->args[0])->fix= k; if (k == 0) events(KissObject(action->args[0])->unfix); break; /* FKiSS 3.0 onwards */ case ACTION_VAR_LET: KissValue(action->args[0]) = KissValue(action->args[1]); break; case ACTION_VAR_ADD: KissValue(action->args[0]) = KissValue(action->args[1]) + KissValue(action->args[2]); break; case ACTION_VAR_SUB: KissValue(action->args[0]) = KissValue(action->args[1]) - KissValue(action->args[2]); break; case ACTION_VAR_MUL: KissValue(action->args[0]) = KissValue(action->args[1]) * KissValue(action->args[2]); break; case ACTION_VAR_DIV: if (KissValue(action->args[2]) > 0) { KissValue(action->args[0]) = KissValue(action->args[1]) / KissValue(action->args[2]); } else { next= config.overflow; } break; case ACTION_VAR_MOD: if (KissValue(action->args[2]) > 0) { KissValue(action->args[0]) = KissValue(action->args[1]) % KissValue(action->args[2]); } else { next= config.overflow; } break; case ACTION_VAR_RANDOM: KissValue(action->args[0]) = random_value(KissValue(action->args[1]), KissValue(action->args[2])); break; case ACTION_VAR_OBJECT_X: KissValue(action->args[0]) = KissObject(action->args[1])->x[view]; break; case ACTION_VAR_OBJECT_Y: KissValue(action->args[0]) = KissObject(action->args[1])->y[view]; break; case ACTION_VAR_OBJECT_FIX: KissValue(action->args[0]) = KissObject(action->args[1])->fix; break; case ACTION_VAR_CELL_MAPPED: KissValue(action->args[0]) = KissCell(action->args[1])->mapped; break; case ACTION_VAR_SET: KissValue(action->args[0]) = view; break; case ACTION_VAR_PAL: KissValue(action->args[0]) = config.pal_set[view]; break; case ACTION_VAR_MOUSE_X: KissValue(action->args[0]) = mouse_x; break; case ACTION_VAR_MOUSE_Y: KissValue(action->args[0]) = mouse_y; break; case ACTION_VAR_CATCH: if (config.target) KissValue(action->args[0]) = config.target->object->id; break; case ACTION_VAR_COLLIDE: KissValue(action->args[0]) = cell_collision(KissCell(action->args[1]), KissCell(action->args[2])); break; case ACTION_VAR_INSIDE: KissValue(action->args[0]) = object_collision(KissObject(action->args[1]), KissObject(action->args[2])); break; case ACTION_VAR_CELL_TRANSPARENT: KissValue(action->args[0]) = 255 - KissCell(action->args[1])->alpha; break; case ACTION_GHOST_CELL: KissCell(action->args[0])->ghosted= KissValue(action->args[1]); break; case ACTION_GHOST_OBJECT: object_ghost(KissObject(action->args[0]), KissValue(action->args[1])); break; /* FKiSS 3.0 control structures :( */ case CONTROL_EXIT_EVENT: next= NULL; break; case CONTROL_GOTO: next= label_by_id(KissValue(action->args[0])); break; case CONTROL_GOSUB: if (next == NULL) /* tail recursion == loop, avoid stack */ next= label_by_id(KissValue(action->args[0])); else events(label_by_id(KissValue(action->args[0]))); break; case CONTROL_GOTO_RANDOM: if (random_value(1, 100) <= KissValue(action->args[0])) { next= label_by_id(KissValue(action->args[1])); } else { next= label_by_id(KissValue(action->args[2])); } break; case CONTROL_GOSUB_RANDOM: if (random_value(1, 100) <= KissValue(action->args[0])) k = 1; else k = 2; if (next == NULL) /* tail recursion == loop, avoid stack */ next= label_by_id(KissValue(action->args[k])); else events(label_by_id(KissValue(action->args[k]))); break; case CONTROL_EQUAL: if (KissValue(action->args[0]) == KissValue(action->args[1])) control_flag[depth]= 1; else control_flag[depth]= 0; break; case CONTROL_NOT_EQUAL: if (KissValue(action->args[0]) != KissValue(action->args[1])) control_flag[depth]= 1; else control_flag[depth]= 0; break; case CONTROL_GREATER_THAN: if (KissValue(action->args[0]) > KissValue(action->args[1])) control_flag[depth]= 1; else control_flag[depth]= 0; break; case CONTROL_LESS_THAN: if (KissValue(action->args[0]) < KissValue(action->args[1])) control_flag[depth]= 1; else control_flag[depth]= 0; break; case CONTROL_ELSE: control_flag[depth] = (control_flag[depth]) ? 0 : 1; break; case CONTROL_ENDIF: control_flag[depth] = 1; break; default: fprintf(stderr, _("Invalid action %d executed.\n"), action->type); } return next; } void events(KissActionList list) { if (list == NULL) return; if (depth >= MAX_DEPTH) { fprintf(stderr, _("French KiSS stack overflow.\n")); return; } depth++; control_flag[depth]= 1; while (list != NULL && config.labels) { trace(list->data, depth); list= trigger(list->data, g_slist_next(list)); if (cycles >= 65536) { while (gtk_events_pending()) gtk_main_iteration(); cycles -= 65536; } else { ++cycles; } } depth--; } gnomekiss-2.0/src/lzh.c0000664000076400007640000001040310351065605012034 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include "kiss.h" #define PREFIX "-xqifw=" #define TEMPLATE "/tmp/kiss-XXXXXX" static int package_open= 0; static char temp[]= TEMPLATE; static void lha_case_fixup(void); char *lha_open(const char *filename) { char options[]= PREFIX TEMPLATE; pid_t child; int status; lha_close(); strcpy(temp, TEMPLATE); /* Must be replaced each time */ mktemp(temp); /* safe in this context */ if (mkdir(temp, 0700) != 0) { fprintf(stderr, _("Couldn't create \"%s\": %s\n"), temp, strerror(errno)); gnome_app_message(GNOME_APP(app), _("Unable to create temporary directory")); return NULL; } child = fork(); if (child < 0) { gnome_app_message(GNOME_APP(app), _("Unable to run external programs")); } else if (child) { waitpid(child, &status, 0); package_open= 1; if (WEXITSTATUS(status) == 182) { gnome_app_message(GNOME_APP(app), _("You need LHA to unpack .LZH files")); lha_close(); return NULL; } else if (WEXITSTATUS(status) == 1) { gnome_app_message(GNOME_APP(app), _("Can't load this .LZH file - perhaps it is corrupted?")); lha_close(); return NULL; } else if (WEXITSTATUS(status) != 0) { gnome_app_message(GNOME_APP(app), _("Unknown error handling .LZH file")); } } else { snprintf(options, sizeof(options), PREFIX "%s", temp); execlp("lha", "lha", options, filename, NULL); _exit(182); /* it is important that this is _exit() not exit() */ } lha_case_fixup(); return g_strdup(temp); } void lha_extend(const char *filename) { char options[]= PREFIX TEMPLATE; pid_t child; int status; /* Can only extend an existing opened archive */ if (package_open == 0) return; child = fork(); if (child < 0) { gnome_app_message(GNOME_APP(app), _("Unable to run external programs")); } else if (child) { waitpid(child, &status, 0); if (WEXITSTATUS(status) == 182) { gnome_app_message(GNOME_APP(app), _("You need LHA to unpack .LZH files")); } else if (WEXITSTATUS(status) == 1) { gnome_app_message(GNOME_APP(app), _("Can't load this .LZH file - perhaps it is corrupted?")); } else if (WEXITSTATUS(status) != 0) { gnome_app_message(GNOME_APP(app), _("Unknown error handling .LZH file")); } } else { snprintf(options, sizeof(options), PREFIX "%s", temp); execlp("lha", "lha", options, filename, NULL); _exit(182); } lha_case_fixup(); } void lha_close() { DIR *dir; struct dirent *dirent; if (package_open == 0) return; dir= opendir(temp); if (dir == NULL) return; chdir(temp); while ((dirent= readdir(dir))) { if (dirent->d_name[0] != '.') { if ( unlink(dirent->d_name) ); } } chdir(".."); closedir(dir); rmdir(temp); package_open= 0; } static void lha_case_fixup(void) { DIR *dir; struct dirent *dirent; char *filename; size_t length; if (package_open == 0) return; dir= opendir(temp); if (dir == NULL) return; chdir(temp); while ((dirent= readdir(dir))) { length= strlen(dirent->d_name); filename= strdup(dirent->d_name); if (length > 3 && !strcmp(filename + length - 3, "CNF")) { strcpy(filename + length - 3, "cnf"); rename(dirent->d_name, filename); } } } gnomekiss-2.0/src/support.c0000664000076400007640000000562010364205330012753 00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "support.h" GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name) { GtkWidget *parent, *found_widget; for (;;) { if (GTK_IS_MENU (widget)) parent = gtk_menu_get_attach_widget (GTK_MENU (widget)); else parent = widget->parent; if (!parent) parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey"); if (parent == NULL) break; widget = parent; } found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget), widget_name); if (!found_widget) g_warning ("Widget not found: %s", widget_name); return found_widget; } /* This is an internally used function to create pixmaps. */ GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename) { GtkWidget *pixmap; gchar *pathname; if (!filename || !filename[0]) return gtk_image_new (); pathname = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP, filename, TRUE, NULL); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return gtk_image_new (); } pixmap = gtk_image_new_from_file (pathname); g_free (pathname); return pixmap; } /* This is an internally used function to create pixmaps. */ GdkPixbuf* create_pixbuf (const gchar *filename) { gchar *pathname = NULL; GdkPixbuf *pixbuf; GError *error = NULL; if (!filename || !filename[0]) return NULL; pathname = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP, filename, TRUE, NULL); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return NULL; } pixbuf = gdk_pixbuf_new_from_file (pathname, &error); if (!pixbuf) { fprintf (stderr, "Failed to load pixbuf file: %s: %s\n", pathname, error->message); g_error_free (error); } g_free (pathname); return pixbuf; } /* This is used to set ATK action descriptions. */ void glade_set_atk_action_description (AtkAction *action, const gchar *action_name, const gchar *description) { gint n_actions, i; n_actions = atk_action_get_n_actions (action); for (i = 0; i < n_actions; i++) { if (!strcmp (atk_action_get_name (action, i), action_name)) atk_action_set_description (action, i, description); } } gnomekiss-2.0/src/errors.c0000664000076400007640000000502210365042364012556 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include "kiss.h" /* Central error logging service */ static guint line_no= 0; static gint row= -1; /* last row added to the C list */ static void log_line(char *file, char *line, char *message) { gchar *text[3]; if (prefs.error_list) { gtk_widget_show(error_list); } text[0]= file; text[1]= line; text[2]= message; row= gtk_clist_append(GTK_CLIST(error_clist), text); } void log_error(char *format, ...) { gchar line[7], *message; va_list args; va_start(args, format); message= g_strdup_vprintf(format, args); if (config.filename != NULL) { if (line_no > 0) snprintf(line, 7, "%u", line_no); else strcpy(line, "N/A"); log_line(config.filename, line, message); } else { log_line("(none)", "N/A", message); gtk_clist_moveto(GTK_CLIST(error_clist), row, 0, 0.0, 0.0); } g_free(message); va_end(args); } void log_warning(char *format, ...) { gchar line[7], *message; va_list args; if (!prefs.warnings) { return; } va_start(args, format); message= g_strdup_vprintf(format, args); if (config.filename != NULL) { if (line_no > 0) snprintf(line, 7, "%u*", line_no); else strcpy(line, "N/A"); log_line(config.filename, line, message); } else { log_line("(none)", "N/A", message); gtk_clist_moveto(GTK_CLIST(error_clist), row, 0, 0.0, 0.0); } g_free(message); va_end(args); } guint get_line(void) { return line_no; } void set_line(guint line) { static int first_row= -1; if (line_no == 0) { first_row= row; } else if (line == 0) { gtk_clist_moveto(GTK_CLIST(error_clist), first_row + 1, 0, 0.0, 0.0); } line_no= line; } gnomekiss-2.0/src/cell.c0000664000076400007640000003173410351304303012157 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "kiss.h" /* Concrete instantiation */ GSList *cells = NULL; guchar *global_start, *global_end; static GMemChunk *object_chunk= NULL; #define NIBBLE(x) { if (j & 1) x = (*(tmp++)) & 15; else x = (*tmp) >> 4; } void reset_cells() { GSList *list; for (list= cells; list != NULL; list= g_slist_next(list)) { cell_delete ( (KissCell *) list->data); } g_slist_free(cells); cells= NULL; /* empty now */ if (config.objects != NULL) { g_hash_table_destroy(config.objects); } config.objects= NULL; if (object_chunk != NULL) { g_mem_chunk_destroy(object_chunk); } object_chunk= g_mem_chunk_create(KissObject, 100, G_ALLOC_ONLY); } static int cell_load(KissCell *cell, char *filename) { FILE *fp; guchar header[32], *buffer, *tmp; guchar k; int bpp, i, j; fp= open_any(filename, "r"); if (fp == NULL) return 1; fread(header, 4, 1, fp); if (strncmp((char *)header, "KiSS", 4)) { bpp= 4; cell->width= header[0] + (256 * header[1]); cell->height= header[2] + (256 * header[3]); cell->offx= 0; cell->offy= 0; } else { /* New-style image file, read full header */ fread(header + 4, 28, 1, fp); bpp= header[5]; cell->width= header[8] + (256 * header[9]); cell->height= header[10] + (256 * header[11]); cell->offx= header[12] + (256 * header[13]); cell->offy= header[14] + (256 * header[15]); } for (i= 0; i < SETS; ++i) { cell->x[i]= cell->offx; cell->y[i]= cell->offy; } if (bpp == 32) { cell->index= NULL; cell->argb= g_new(guchar, cell->width * cell->height * 4); } else { cell->index= g_new(guchar, cell->width * cell->height); cell->argb= NULL; } cell->events= g_new0(KissCellEvents, 1); switch (bpp) { case 4: buffer= g_new(guchar, (cell->width + 1) / 2); for (i= 0; i < cell->height; ++i) { fread(buffer, (cell->width + 1) / 2, 1, fp); for (j= 0, tmp= buffer; j < cell->width; ++j) { NIBBLE(k); cell->index[i * cell->width + j] = k; } } g_free(buffer); break; case 8: for (i= 0; i < cell->height; ++i) { buffer= cell->index + (i * cell->width); fread(buffer, cell->width, 1, fp); } break; case 32: buffer= g_new(guchar, cell->width * 4); for (i= 0; i < cell->height; ++i) { fread(buffer, cell->width, 4, fp); for (j= 0; j < cell->width; ++j) { cell->argb[4 * (i * cell->width + j)]= buffer[j*4 + 3]; cell->argb[4 * (i * cell->width + j) + 1]= buffer[j*4 + 2]; cell->argb[4 * (i * cell->width + j) + 2]= buffer[j*4 + 1]; cell->argb[4 * (i * cell->width + j) + 3]= buffer[j*4 ]; } } g_free(buffer); break; default: log_error(_("cell \"%s\" has unsupported color depth"), filename); /* leaves cell->index allocated but garbage filled */ break; } fclose(fp); cell->mapped= 1; /* mapped */ cell->duplicate= 0; /* first instance */ /* Some configs say (640,480) and then load an 800x600 background CEL */ if (config.width < cell->width + cell->offx) { config.width= cell->width + cell->offx; config.row_stride= config.width * 3; log_warning(_("cell \"%s\" is too wide for the playfield"), filename); } if (config.height < cell->height + cell->offy) { config.height= cell->height + cell->offy; log_warning(_("cell \"%s\" is too high for the playfield"), filename); } cell->name= g_strdup(filename); return 0; } void object_move(KissObject *object, int x, int y) { guchar *start, *end; start= config.rgb_buf + (config.row_stride * object->y[view]); if (start < global_start) global_start= start; end= start + (config.row_stride * object->height); if (end > global_end) global_end= end; gtk_widget_queue_draw_area(area, object->x[view], object->y[view], object->width, object->height); check_collisions(object, 1); /* don't fire events */ object_set_location(object, x, y); gtk_widget_queue_draw_area(area, object->x[view], object->y[view], object->width, object->height); start= config.rgb_buf + (config.row_stride * object->y[view]); if (start < global_start) global_start= start; end= start + (config.row_stride * object->height); if (end > global_end) global_end= end; if (global_lock != KISS_PENDING && area != NULL) { global_lock= KISS_PENDING; } check_collisions(object, 0); /* and fire events */ } void object_set_location(KissObject *object, int x, int y) { GSList *list; KissCell *cell; if (x + object->width > config.width) x= config.width - object->width; if (y + object->height > config.height) y= config.height - object->height; if (x < 0) x= 0; if (y < 0) y= 0; for (list= object->cells; list != NULL; list= g_slist_next(list)) { cell= (KissCell *) list->data; cell->x[view] = x + cell->offx; cell->y[view] = y + cell->offy; } object->x[view]= x; object->y[view]= y; } void cell_render(gpointer data, gpointer user_data) { guchar alpha; KissCell *cell; guchar *begin; guchar *source, *src, *dest, *dst, *pal; unsigned int row, col; /* investigate use of "temporary" constants to speed this up */ cell= (KissCell *) data; if (!cell->mapped || !cell->alpha || !(cell->visible & (1 << view))) return; if (cell->argb && cell->alpha == 255) { begin= config.rgb_buf; src= source= cell->argb; dst= dest= config.rgb_buf + (cell->y[view] * config.row_stride) + cell->x[view] * 3; for (row= 0; row < cell->height; ++row) { if (dest < global_start) { src= source+= cell->width * 4; dst= dest+= config.row_stride; continue; } if (dest >= global_end) { return; } for (col= 0; col < cell->width; ++col) { if (*src == 0) { dst+= 3; src+= 4; } else if (*src == 255) { src++; memcpy( dst, src, 3 * sizeof( *src ) ); dst += 3; src += 3; } else { alpha = *(src++); *dst = (alpha * ( *src - *dst )) / 255 + *dst; dst++; src++; *dst = (alpha * ( *src - *dst )) / 255 + *dst; dst++; src++; *dst = (alpha * ( *src - *dst )) / 255 + *dst; dst++; src++; } } src= source+= cell->width * 4; dst= dest+= config.row_stride; } } else if (cell->argb) { begin= config.rgb_buf; src= source= cell->argb; dst= dest= config.rgb_buf + (cell->y[view] * config.row_stride) + cell->x[view] * 3; for (row= 0; row < cell->height; ++row) { if (dest < global_start) { src= source+= cell->width * 4; dst= dest+= config.row_stride; continue; } if (dest >= global_end) { return; } for (col= 0; col < cell->width; ++col) { if (*src == 0) { dst+= 3; src+= 4; } else { alpha = (*(src++) * cell->alpha) / 255; *dst = (alpha * ( *src - *dst )) / 255 + *dst; dst++; src++; *dst = (alpha * ( *src - *dst )) / 255 + *dst; dst++; src++; *dst = (alpha * ( *src - *dst )) / 255 + *dst; dst++; src++; } } src= source+= cell->width * 4; dst= dest+= config.row_stride; } } else if (cell->index && cell->alpha == 255) { pal= palettes[cell->palette * COLS + config.pal_set[view]]; begin= config.rgb_buf; source= cell->index; /* src is abused terribly in this code fragment */ dst= dest= config.rgb_buf + (cell->y[view] * config.row_stride) + cell->x[view] * 3; for (row= 0; row < cell->height; ++row) { if (dest < global_start) { source+= cell->width; dst= dest+= config.row_stride; continue; } if (dest >= global_end) { return; } for (col= 0; col < cell->width; ++col) { if (source[col] != 0) { src= &pal[source[col] *3]; memcpy( dst, src, 3 * sizeof( *src ) ); } dst+= 3; } source+= cell->width; dst= dest+= config.row_stride; } } else if (cell->index) { alpha= cell->alpha; pal= palettes[cell->palette * COLS + config.pal_set[view]]; begin= config.rgb_buf; src= source= cell->index; dst= dest= config.rgb_buf + (cell->y[view] * config.row_stride) + cell->x[view] * 3; for (row= 0; row < cell->height; ++row) { if (dest < global_start) { source+= cell->width; dst= dest+= config.row_stride; continue; } if (dest >= global_end) { return; } for (col= 0; col < cell->width; ++col) { if (source[col] != 0) { src = pal + (source[col] * 3); dst[0] = (alpha * ( src[0] - dst[0] )) / 255 + dst[0]; dst[1] = (alpha * ( src[1] - dst[1] )) / 255 + dst[1]; dst[2] = (alpha * ( src[2] - dst[2] )) / 255 + dst[2]; } dst+= 3; } source+= cell->width; dst= dest+= config.row_stride; } } } /* NB Returns a pointer to the CELL */ KissCell *cell_intersect(KissCell *cell, int x, int y) { x-= cell->x[view]; y-= cell->y[view]; if (!cell->mapped || !(cell->visible & (1 << view))) return NULL; if (cell->ghosted) return NULL; if (x < 0 || x >= cell->width) return NULL; if (y < 0 || y >= cell->height) return NULL; if (cell->index && cell->index[x + y * cell->width] == 0) return NULL; if (cell->argb && cell->argb[(x + y * cell->width) * 4] == 0) return NULL; return cell; } KissCell *cell_find(gchar *name) { GSList *list; KissCell *current, *match= NULL; int count= 0; for (list= cells; list != NULL; list= g_slist_next(list)) { current= (KissCell *) list->data; if (!g_strcasecmp(current->name, name)) { match= current; ++count; } } if (count > 1) { log_warning(_("cell name \"%s\" is ambiguous"), name); } return match; } KissObject *object_id(guint id) { return (KissObject *) (g_hash_table_lookup(config.objects, GUINT_TO_POINTER(id))); } KissObject *object_find(gchar *ref) { KissObject *obj; obj= object_id(numeric(ref)); if (obj == NULL) { log_error(_("no object #%s defined in layout"), ref); } return obj; } KissCell *cell_new(guint objid, guint pal, gchar *filename) { KissCell *cell, *original = NULL; GSList *list; cell= g_new0(KissCell, 1); cell->object= object_id(objid); if (cell->object == NULL) { /* New object */ cell->object= g_chunk_new0(KissObject, object_chunk); cell->object->id = objid; g_hash_table_insert(config.objects, GUINT_TO_POINTER(objid), cell->object); } /* Check if a similarly named cell was already found */ for (list= cells; list != NULL; list= g_slist_next(list)) { if (!g_strcasecmp(((KissCell *) list->data)->name, filename)) { original= (KissCell *) list->data; break; } } /* If so copy the shareable data across */ if (original) { cell->name= original->name; cell->index= original->index; cell->argb= original->argb; cell->width= original->width; cell->height= original->height; cell->offx= original->offx; cell->offy= original->offy; cell->mapped= original->mapped; cell->events= original->events; cell->duplicate= 1; /* just a copy */ } else if (cell_load(cell, filename)) { g_free(cell); return NULL; } cell->palette= pal; /* Add to object and global display lists */ cells = g_slist_prepend(cells, cell); cell->object->cells = g_slist_prepend(cell->object->cells, cell); if (cell->width + cell->offx > cell->object->width) cell->object->width = cell->width + cell->offx; if (cell->height + cell->offy > cell->object->height) cell->object->height = cell->height + cell->offy; return cell; } void cell_delete(KissCell *cell) { if (!cell->duplicate) { g_free(cell->name); if (cell->index) g_free(cell->index); if (cell->argb) g_free(cell->argb); FREE_ACTION_LIST(cell->events->catch); FREE_ACTION_LIST(cell->events->drop); FREE_ACTION_LIST(cell->events->fixcatch); FREE_ACTION_LIST(cell->events->fixdrop); FREE_ACTION_LIST(cell->events->press); FREE_ACTION_LIST(cell->events->release); g_free(cell->events); } g_free(cell); } gnomekiss-2.0/src/variable.c0000664000076400007640000000402310351065627013031 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "kiss.h" static GSList *variables; static KissVariable *var_new(gchar *name); /* NB returns the value component only */ KissVariable *var_find(gchar *name) { GSList *list; KissVariable *current; for (list= variables; list != NULL; list= g_slist_next(list)) { current= (KissVariable *) list->data; if (!g_strcasecmp(current->name, name)) return current; } return var_new(name); } void var_describe(KissVariable *var) { if (isdigit(var->name[0]) || var->name[0]=='-') { fprintf(stderr, "%d", var->value); } else { fprintf(stderr, "%s=%d", var->name, var->value); } } void reset_variables() { GSList *list; KissVariable *current; for (list= variables; list != NULL; list= g_slist_next(list)) { current= (KissVariable *) list->data; g_free(current->name); g_free(current); } g_slist_free(variables); variables= NULL; } static KissVariable *var_new(gchar *name) { KissVariable *var; var= g_new0(KissVariable, 1); var->name= g_strdup(name); /* Add to object and global display lists */ variables = g_slist_prepend(variables, var); return var; } gnomekiss-2.0/src/interface.h0000664000076400007640000000047210364205330013204 00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_application (void); GtkWidget* create_set_open (void); GtkWidget* create_config_open (void); GtkWidget* create_error_list (void); GtkWidget* create_add_open (void); GtkWidget* create_preferences (void); GtkWidget* create_about (void); gnomekiss-2.0/src/callbacks.h0000664000076400007640000001531710351063200013161 00000000000000#include gboolean on_application_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data); void on_application_drag_data_received (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data); void on_open_activate (GtkMenuItem *menuitem, gpointer user_data); void on_open_config_activate (GtkMenuItem *menuitem, gpointer user_data); void on_open_add_on_activate (GtkMenuItem *menuitem, gpointer user_data); void on_close_activate (GtkMenuItem *menuitem, gpointer user_data); void on_exit_activate (GtkMenuItem *menuitem, gpointer user_data); void on_set_activate (GtkMenuItem *menuitem, gpointer user_data); void on_group_activate (GtkMenuItem *menuitem, gpointer user_data); void on_error_list_activate (GtkMenuItem *menuitem, gpointer user_data); void on_unfix_activate (GtkMenuItem *menuitem, gpointer user_data); void on_preferences_activate (GtkMenuItem *menuitem, gpointer user_data); void on_about_activate (GtkMenuItem *menuitem, gpointer user_data); void on_set_clicked (GtkToolButton *toolbutton, gpointer user_data); void on_unfix_clicked (GtkToolButton *toolbutton, gpointer user_data); gboolean on_area_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data); gboolean on_area_configure_event (GtkWidget *widget, GdkEventConfigure *event, gpointer user_data); gboolean on_area_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_area_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_area_motion_notify_event (GtkWidget *widget, GdkEventMotion *event, gpointer user_data); void on_set_open_ok (GtkButton *button, gpointer user_data); void on_set_open_cancel (GtkButton *button, gpointer user_data); void on_config_open_ok (GtkButton *button, gpointer user_data); void on_config_open_cancel (GtkButton *button, gpointer user_data); void on_close_errors_clicked (GtkButton *button, gpointer user_data); void on_clear_errors_clicked (GtkButton *button, gpointer user_data); void on_add_open_ok (GtkButton *button, gpointer user_data); void on_add_open_cancel (GtkButton *button, gpointer user_data); void on_preferences_apply (GnomePropertyBox *propertybox, gint page_num, gpointer user_data); gboolean on_preferences_close (GnomeDialog *gnomedialog, gpointer user_data); void on_pref_midi_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_esound_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_midi_player_changed (GtkEditable *editable, gpointer user_data); void on_pref_error_list_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_trace_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_warnings_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_ignore_colon_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_fkiss_case_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_default_palette_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_pref_speed_factor_changed (GtkEditable *editable, gpointer user_data); void on_pref_min_timer_changed (GtkEditable *editable, gpointer user_data); void on_pref_catch_drop_toggled (GtkToggleButton *togglebutton, gpointer user_data); gnomekiss-2.0/src/support.h0000664000076400007640000000251110364205330012754 00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #undef Q_ #ifdef ENABLE_NLS # define Q_(String) g_strip_context ((String), gettext (String)) #else # define Q_(String) g_strip_context ((String), (String)) #endif /* * Public Functions. */ /* * This function returns a widget in a component created by Glade. * Call it with the toplevel widget in the component (i.e. a window/dialog), * or alternatively any widget in the component, and the name of the widget * you want returned. */ GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name); /* * Private Functions. */ /* This is used to create the pixmaps used in the interface. */ GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename); /* This is used to create the pixbufs used in the interface. */ GdkPixbuf* create_pixbuf (const gchar *filename); /* This is used to set ATK action descriptions. */ void glade_set_atk_action_description (AtkAction *action, const gchar *action_name, const gchar *description); gnomekiss-2.0/src/interface.c0000664000076400007640000015053210364205330013202 00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "callbacks.h" #include "interface.h" #include "support.h" #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) static GnomeUIInfo file_menu_uiinfo[] = { GNOMEUIINFO_MENU_OPEN_ITEM (on_open_activate, NULL), { GNOME_APP_UI_ITEM, N_("Open _Configuration..."), N_("Open a different config file"), (gpointer) on_open_config_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Open _Add-on..."), NULL, (gpointer) on_open_add_on_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, GNOMEUIINFO_MENU_CLOSE_ITEM (on_close_activate, NULL), GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_MENU_EXIT_ITEM (on_exit_activate, NULL), GNOMEUIINFO_END }; static GnomeUIInfo set_0_uiinfo[] = { { GNOME_APP_UI_ITEM, N_("Set _0"), N_("Switch to set 0"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_0, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _1"), N_("Switch to set 1"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_1, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _2"), N_("Switch to set 2"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_2, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _3"), N_("Switch to set 3"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_3, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _4"), N_("Switch to set 4"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_4, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _5"), N_("Switch to set 5"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_5, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _6"), N_("Switch to set 6"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_6, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _7"), N_("Switch to set 7"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_7, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _8"), N_("Switch to set 8"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_8, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_ITEM, N_("Set _9"), N_("Switch to set 9"), (gpointer) on_set_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_9, (GdkModifierType) 0, NULL }, GNOMEUIINFO_END }; static GnomeUIInfo sets_menu_uiinfo[] = { { GNOME_APP_UI_RADIOITEMS, NULL, NULL, set_0_uiinfo, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, GNOMEUIINFO_END }; static GnomeUIInfo group_0_uiinfo[] = { { GNOME_APP_UI_ITEM, N_("Group _0"), N_("Use palette group 0"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_0, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _1"), N_("Use palette group 1"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_1, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _2"), N_("Use palette group 2"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_2, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _3"), N_("Use palette group 3"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_3, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _4"), N_("Use palette group 4"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_4, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _5"), N_("Use palette group 5"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_5, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _6"), N_("Use palette group 6"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_6, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _7"), N_("Use palette group 7"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_7, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _8"), N_("Use palette group 8"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_8, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("Group _9"), N_("Use palette group 9"), (gpointer) on_group_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_9, (GdkModifierType) GDK_CONTROL_MASK, NULL }, GNOMEUIINFO_END }; static GnomeUIInfo colors_menu_uiinfo[] = { { GNOME_APP_UI_RADIOITEMS, NULL, NULL, group_0_uiinfo, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, GNOMEUIINFO_END }; static GnomeUIInfo tools1_menu_uiinfo[] = { { GNOME_APP_UI_ITEM, N_("_Error list"), NULL, (gpointer) on_error_list_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, GDK_question, (GdkModifierType) GDK_CONTROL_MASK, NULL }, { GNOME_APP_UI_ITEM, N_("_Unfix"), NULL, (gpointer) on_unfix_activate, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, GNOMEUIINFO_END }; static GnomeUIInfo settings_menu_uiinfo[] = { GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences_activate, NULL), GNOMEUIINFO_END }; static GnomeUIInfo help_menu_uiinfo[] = { GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL), GNOMEUIINFO_END }; static GnomeUIInfo menubar1_uiinfo[] = { GNOMEUIINFO_MENU_FILE_TREE (file_menu_uiinfo), GNOMEUIINFO_MENU_VIEW_TREE (sets_menu_uiinfo), { GNOME_APP_UI_SUBTREE, N_("_Colors"), NULL, colors_menu_uiinfo, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, { GNOME_APP_UI_SUBTREE, N_("_Tools"), NULL, tools1_menu_uiinfo, NULL, NULL, GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL }, GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_uiinfo), GNOMEUIINFO_MENU_HELP_TREE (help_menu_uiinfo), GNOMEUIINFO_END }; GtkWidget* create_application (void) { GtkWidget *application; GdkPixbuf *application_icon_pixbuf; GtkWidget *dock1; GtkWidget *toolbar1; GtkIconSize tmp_toolbar_icon_size; GtkWidget *tmp_image; GtkWidget *button2; GtkWidget *separatortoolitem1; GSList *show_set0_group = NULL; GtkWidget *show_set0; GtkWidget *show_set1; GtkWidget *show_set2; GtkWidget *show_set3; GtkWidget *show_set4; GtkWidget *show_set5; GtkWidget *show_set6; GtkWidget *show_set7; GtkWidget *show_set8; GtkWidget *show_set9; GtkWidget *separatortoolitem2; GtkWidget *button5; GtkWidget *scrolledwindow1; GtkWidget *viewport1; GtkWidget *area; GtkWidget *appbar; GtkTooltips *tooltips; tooltips = gtk_tooltips_new (); application = gnome_app_new ("Gnomekiss", _("GnomeKiss")); gtk_widget_set_name (application, "application"); application_icon_pixbuf = create_pixbuf ("gnomekiss/besito_sinfondo.png"); if (application_icon_pixbuf) { gtk_window_set_icon (GTK_WINDOW (application), application_icon_pixbuf); gdk_pixbuf_unref (application_icon_pixbuf); } dock1 = GNOME_APP (application)->dock; gtk_widget_set_name (dock1, "dock1"); gtk_widget_show (dock1); gnome_app_create_menus (GNOME_APP (application), menubar1_uiinfo); gtk_widget_set_name (menubar1_uiinfo[0].widget, "file"); gtk_widget_set_name (file_menu_uiinfo[0].widget, "open"); gtk_widget_set_name (file_menu_uiinfo[1].widget, "open_config"); gtk_widget_set_name (file_menu_uiinfo[2].widget, "open_add_on"); gtk_widget_set_name (file_menu_uiinfo[3].widget, "close"); gtk_widget_set_name (file_menu_uiinfo[4].widget, "separator1"); gtk_widget_set_name (file_menu_uiinfo[5].widget, "exit"); gtk_widget_set_name (menubar1_uiinfo[1].widget, "sets"); gtk_widget_set_name (set_0_uiinfo[0].widget, "set_0"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[0].widget), TRUE); gtk_widget_set_name (set_0_uiinfo[1].widget, "set_1"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[1].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[1].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[2].widget, "set_2"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[2].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[2].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[3].widget, "set_3"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[3].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[3].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[4].widget, "set_4"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[4].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[4].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[5].widget, "set_5"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[5].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[5].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[6].widget, "set_6"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[6].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[6].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[7].widget, "set_7"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[7].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[7].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[8].widget, "set_8"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[8].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[8].widget, FALSE); gtk_widget_set_name (set_0_uiinfo[9].widget, "set_9"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (set_0_uiinfo[9].widget), TRUE); gtk_widget_set_sensitive (set_0_uiinfo[9].widget, FALSE); gtk_widget_set_name (menubar1_uiinfo[2].widget, "colors"); gtk_widget_set_name (group_0_uiinfo[0].widget, "group_0"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[0].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[1].widget, "group_1"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[1].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[2].widget, "group_2"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[2].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[3].widget, "group_3"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[3].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[4].widget, "group_4"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[4].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[5].widget, "group_5"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[5].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[6].widget, "group_6"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[6].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[7].widget, "group_7"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[7].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[8].widget, "group_8"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[8].widget), TRUE); gtk_widget_set_name (group_0_uiinfo[9].widget, "group_9"); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (group_0_uiinfo[9].widget), TRUE); gtk_widget_set_name (menubar1_uiinfo[3].widget, "tools1"); gtk_widget_set_name (tools1_menu_uiinfo[0].widget, "error_list1"); gtk_widget_set_name (tools1_menu_uiinfo[1].widget, "unfix"); gtk_widget_set_name (menubar1_uiinfo[4].widget, "settings"); gtk_widget_set_name (settings_menu_uiinfo[0].widget, "preferences"); gtk_widget_set_name (menubar1_uiinfo[5].widget, "help"); gtk_widget_set_name (help_menu_uiinfo[0].widget, "about"); toolbar1 = gtk_toolbar_new (); gtk_widget_set_name (toolbar1, "toolbar1"); gtk_widget_show (toolbar1); gnome_app_add_toolbar (GNOME_APP (application), GTK_TOOLBAR (toolbar1), "toolbar1", BONOBO_DOCK_ITEM_BEH_EXCLUSIVE | BONOBO_DOCK_ITEM_BEH_LOCKED, BONOBO_DOCK_TOP, 1, 0, 0); gtk_container_set_border_width (GTK_CONTAINER (toolbar1), 1); gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_ICONS); tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)); tmp_image = gtk_image_new_from_stock ("gtk-open", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); button2 = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Open")); gtk_widget_set_name (button2, "button2"); gtk_widget_show (button2); gtk_container_add (GTK_CONTAINER (toolbar1), button2); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (button2), tooltips, _("Open File"), NULL); separatortoolitem1 = (GtkWidget*) gtk_separator_tool_item_new (); gtk_widget_set_name (separatortoolitem1, "separatortoolitem1"); gtk_widget_show (separatortoolitem1); gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem1); show_set0 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set0), _("0")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-red", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set0), tmp_image); gtk_widget_set_name (show_set0, "show_set0"); gtk_widget_show (show_set0); gtk_container_add (GTK_CONTAINER (toolbar1), show_set0); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set0), tooltips, _("Switch to set 0"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set0), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set0)); show_set1 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set1), _("1")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-green", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set1), tmp_image); gtk_widget_set_name (show_set1, "show_set1"); gtk_widget_show (show_set1); gtk_container_add (GTK_CONTAINER (toolbar1), show_set1); gtk_widget_set_sensitive (show_set1, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set1), tooltips, _("Switch to set 1"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set1), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set1)); show_set2 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set2), _("2")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-blue", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set2), tmp_image); gtk_widget_set_name (show_set2, "show_set2"); gtk_widget_show (show_set2); gtk_container_add (GTK_CONTAINER (toolbar1), show_set2); gtk_widget_set_sensitive (show_set2, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set2), tooltips, _("Switch to set 2"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set2), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set2)); show_set3 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set3), _("3")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-red", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set3), tmp_image); gtk_widget_set_name (show_set3, "show_set3"); gtk_widget_show (show_set3); gtk_container_add (GTK_CONTAINER (toolbar1), show_set3); gtk_widget_set_sensitive (show_set3, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set3), tooltips, _("Switch to set 3"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set3), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set3)); show_set4 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set4), _("4")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-green", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set4), tmp_image); gtk_widget_set_name (show_set4, "show_set4"); gtk_widget_show (show_set4); gtk_container_add (GTK_CONTAINER (toolbar1), show_set4); gtk_widget_set_sensitive (show_set4, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set4), tooltips, _("Switch to set 4"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set4), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set4)); show_set5 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set5), _("5")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-blue", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set5), tmp_image); gtk_widget_set_name (show_set5, "show_set5"); gtk_widget_show (show_set5); gtk_container_add (GTK_CONTAINER (toolbar1), show_set5); gtk_widget_set_sensitive (show_set5, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set5), tooltips, _("Switch to set 5"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set5), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set5)); show_set6 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set6), _("6")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-red", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set6), tmp_image); gtk_widget_set_name (show_set6, "show_set6"); gtk_widget_show (show_set6); gtk_container_add (GTK_CONTAINER (toolbar1), show_set6); gtk_widget_set_sensitive (show_set6, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set6), tooltips, _("Switch to set 6"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set6), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set6)); show_set7 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set7), _("7")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-green", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set7), tmp_image); gtk_widget_set_name (show_set7, "show_set7"); gtk_widget_show (show_set7); gtk_container_add (GTK_CONTAINER (toolbar1), show_set7); gtk_widget_set_sensitive (show_set7, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set7), tooltips, _("Switch to set 7"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set7), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set7)); show_set8 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set8), _("8")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-blue", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set8), tmp_image); gtk_widget_set_name (show_set8, "show_set8"); gtk_widget_show (show_set8); gtk_container_add (GTK_CONTAINER (toolbar1), show_set8); gtk_widget_set_sensitive (show_set8, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set8), tooltips, _("Switch to set 8"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set8), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set8)); show_set9 = (GtkWidget*) gtk_radio_tool_button_new (NULL); gtk_tool_button_set_label (GTK_TOOL_BUTTON (show_set9), _("9")); tmp_image = gtk_image_new_from_stock ("gnome-stock-book-red", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); gtk_tool_button_set_icon_widget (GTK_TOOL_BUTTON (show_set9), tmp_image); gtk_widget_set_name (show_set9, "show_set9"); gtk_widget_show (show_set9); gtk_container_add (GTK_CONTAINER (toolbar1), show_set9); gtk_widget_set_sensitive (show_set9, FALSE); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (show_set9), tooltips, _("Switch to set 9"), NULL); gtk_radio_tool_button_set_group (GTK_RADIO_TOOL_BUTTON (show_set9), show_set0_group); show_set0_group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (show_set9)); separatortoolitem2 = (GtkWidget*) gtk_separator_tool_item_new (); gtk_widget_set_name (separatortoolitem2, "separatortoolitem2"); gtk_widget_show (separatortoolitem2); gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem2); tmp_image = gtk_image_new_from_stock ("gnome-stock-attach", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); button5 = (GtkWidget*) gtk_tool_button_new (tmp_image, _("Unfix")); gtk_widget_set_name (button5, "button5"); gtk_widget_show (button5); gtk_container_add (GTK_CONTAINER (toolbar1), button5); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (button5), tooltips, _("Unfix current object"), NULL); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow1, "scrolledwindow1"); gtk_widget_show (scrolledwindow1); gnome_app_set_contents (GNOME_APP (application), scrolledwindow1); gtk_widget_set_size_request (scrolledwindow1, 600, 400); GTK_WIDGET_UNSET_FLAGS (scrolledwindow1, GTK_CAN_FOCUS); viewport1 = gtk_viewport_new (NULL, NULL); gtk_widget_set_name (viewport1, "viewport1"); gtk_widget_show (viewport1); gtk_container_add (GTK_CONTAINER (scrolledwindow1), viewport1); area = gtk_drawing_area_new (); gtk_widget_set_name (area, "area"); gtk_widget_show (area); gtk_container_add (GTK_CONTAINER (viewport1), area); gtk_widget_set_events (area, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK); appbar = gnome_appbar_new (TRUE, TRUE, GNOME_PREFERENCES_NEVER); gtk_widget_set_name (appbar, "appbar"); gtk_widget_show (appbar); gnome_app_set_statusbar (GNOME_APP (application), appbar); g_signal_connect ((gpointer) application, "delete_event", G_CALLBACK (on_application_delete_event), NULL); g_signal_connect ((gpointer) application, "drag_data_received", G_CALLBACK (on_application_drag_data_received), NULL); gnome_app_install_menu_hints (GNOME_APP (application), menubar1_uiinfo); g_signal_connect ((gpointer) button2, "clicked", G_CALLBACK (on_open_activate), NULL); g_signal_connect ((gpointer) show_set0, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set1, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set2, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set3, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set4, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set5, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set6, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set7, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set8, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) show_set9, "clicked", G_CALLBACK (on_set_clicked), NULL); g_signal_connect ((gpointer) button5, "clicked", G_CALLBACK (on_unfix_clicked), NULL); g_signal_connect ((gpointer) area, "expose_event", G_CALLBACK (on_area_expose_event), NULL); g_signal_connect ((gpointer) area, "configure_event", G_CALLBACK (on_area_configure_event), NULL); g_signal_connect ((gpointer) area, "button_press_event", G_CALLBACK (on_area_button_press_event), NULL); g_signal_connect ((gpointer) area, "button_release_event", G_CALLBACK (on_area_button_release_event), NULL); g_signal_connect ((gpointer) area, "motion_notify_event", G_CALLBACK (on_area_motion_notify_event), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (application, application, "application"); GLADE_HOOKUP_OBJECT (application, dock1, "dock1"); GLADE_HOOKUP_OBJECT (application, menubar1_uiinfo[0].widget, "file"); GLADE_HOOKUP_OBJECT (application, file_menu_uiinfo[0].widget, "open"); GLADE_HOOKUP_OBJECT (application, file_menu_uiinfo[1].widget, "open_config"); GLADE_HOOKUP_OBJECT (application, file_menu_uiinfo[2].widget, "open_add_on"); GLADE_HOOKUP_OBJECT (application, file_menu_uiinfo[3].widget, "close"); GLADE_HOOKUP_OBJECT (application, file_menu_uiinfo[4].widget, "separator1"); GLADE_HOOKUP_OBJECT (application, file_menu_uiinfo[5].widget, "exit"); GLADE_HOOKUP_OBJECT (application, menubar1_uiinfo[1].widget, "sets"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[0].widget, "set_0"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[1].widget, "set_1"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[2].widget, "set_2"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[3].widget, "set_3"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[4].widget, "set_4"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[5].widget, "set_5"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[6].widget, "set_6"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[7].widget, "set_7"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[8].widget, "set_8"); GLADE_HOOKUP_OBJECT (application, set_0_uiinfo[9].widget, "set_9"); GLADE_HOOKUP_OBJECT (application, menubar1_uiinfo[2].widget, "colors"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[0].widget, "group_0"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[1].widget, "group_1"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[2].widget, "group_2"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[3].widget, "group_3"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[4].widget, "group_4"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[5].widget, "group_5"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[6].widget, "group_6"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[7].widget, "group_7"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[8].widget, "group_8"); GLADE_HOOKUP_OBJECT (application, group_0_uiinfo[9].widget, "group_9"); GLADE_HOOKUP_OBJECT (application, menubar1_uiinfo[3].widget, "tools1"); GLADE_HOOKUP_OBJECT (application, tools1_menu_uiinfo[0].widget, "error_list1"); GLADE_HOOKUP_OBJECT (application, tools1_menu_uiinfo[1].widget, "unfix"); GLADE_HOOKUP_OBJECT (application, menubar1_uiinfo[4].widget, "settings"); GLADE_HOOKUP_OBJECT (application, settings_menu_uiinfo[0].widget, "preferences"); GLADE_HOOKUP_OBJECT (application, menubar1_uiinfo[5].widget, "help"); GLADE_HOOKUP_OBJECT (application, help_menu_uiinfo[0].widget, "about"); GLADE_HOOKUP_OBJECT (application, toolbar1, "toolbar1"); GLADE_HOOKUP_OBJECT (application, button2, "button2"); GLADE_HOOKUP_OBJECT (application, separatortoolitem1, "separatortoolitem1"); GLADE_HOOKUP_OBJECT (application, show_set0, "show_set0"); GLADE_HOOKUP_OBJECT (application, show_set1, "show_set1"); GLADE_HOOKUP_OBJECT (application, show_set2, "show_set2"); GLADE_HOOKUP_OBJECT (application, show_set3, "show_set3"); GLADE_HOOKUP_OBJECT (application, show_set4, "show_set4"); GLADE_HOOKUP_OBJECT (application, show_set5, "show_set5"); GLADE_HOOKUP_OBJECT (application, show_set6, "show_set6"); GLADE_HOOKUP_OBJECT (application, show_set7, "show_set7"); GLADE_HOOKUP_OBJECT (application, show_set8, "show_set8"); GLADE_HOOKUP_OBJECT (application, show_set9, "show_set9"); GLADE_HOOKUP_OBJECT (application, separatortoolitem2, "separatortoolitem2"); GLADE_HOOKUP_OBJECT (application, button5, "button5"); GLADE_HOOKUP_OBJECT (application, scrolledwindow1, "scrolledwindow1"); GLADE_HOOKUP_OBJECT (application, viewport1, "viewport1"); GLADE_HOOKUP_OBJECT (application, area, "area"); GLADE_HOOKUP_OBJECT (application, appbar, "appbar"); GLADE_HOOKUP_OBJECT_NO_REF (application, tooltips, "tooltips"); return application; } GtkWidget* create_set_open (void) { GtkWidget *set_open; GtkWidget *ok_button1; GtkWidget *cancel_button1; set_open = gtk_file_selection_new (_("Open KiSS Set")); gtk_widget_set_name (set_open, "set_open"); gtk_container_set_border_width (GTK_CONTAINER (set_open), 10); gtk_window_set_modal (GTK_WINDOW (set_open), TRUE); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (set_open), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (set_open), TRUE); gtk_window_set_type_hint (GTK_WINDOW (set_open), GDK_WINDOW_TYPE_HINT_DIALOG); ok_button1 = GTK_FILE_SELECTION (set_open)->ok_button; gtk_widget_set_name (ok_button1, "ok_button1"); gtk_widget_show (ok_button1); GTK_WIDGET_SET_FLAGS (ok_button1, GTK_CAN_DEFAULT); cancel_button1 = GTK_FILE_SELECTION (set_open)->cancel_button; gtk_widget_set_name (cancel_button1, "cancel_button1"); gtk_widget_show (cancel_button1); GTK_WIDGET_SET_FLAGS (cancel_button1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) set_open, "delete_event", G_CALLBACK (gtk_widget_hide), NULL); g_signal_connect ((gpointer) ok_button1, "clicked", G_CALLBACK (on_set_open_ok), NULL); g_signal_connect ((gpointer) cancel_button1, "clicked", G_CALLBACK (on_set_open_cancel), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (set_open, set_open, "set_open"); GLADE_HOOKUP_OBJECT_NO_REF (set_open, ok_button1, "ok_button1"); GLADE_HOOKUP_OBJECT_NO_REF (set_open, cancel_button1, "cancel_button1"); return set_open; } GtkWidget* create_config_open (void) { GtkWidget *config_open; GtkWidget *ok_button2; GtkWidget *cancel_button2; config_open = gtk_file_selection_new (_("Select Config file")); gtk_widget_set_name (config_open, "config_open"); gtk_container_set_border_width (GTK_CONTAINER (config_open), 10); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (config_open), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (config_open), TRUE); gtk_window_set_type_hint (GTK_WINDOW (config_open), GDK_WINDOW_TYPE_HINT_DIALOG); ok_button2 = GTK_FILE_SELECTION (config_open)->ok_button; gtk_widget_set_name (ok_button2, "ok_button2"); gtk_widget_show (ok_button2); GTK_WIDGET_SET_FLAGS (ok_button2, GTK_CAN_DEFAULT); cancel_button2 = GTK_FILE_SELECTION (config_open)->cancel_button; gtk_widget_set_name (cancel_button2, "cancel_button2"); gtk_widget_show (cancel_button2); GTK_WIDGET_SET_FLAGS (cancel_button2, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) config_open, "delete_event", G_CALLBACK (gtk_widget_hide), NULL); g_signal_connect ((gpointer) ok_button2, "clicked", G_CALLBACK (on_config_open_ok), NULL); g_signal_connect ((gpointer) cancel_button2, "clicked", G_CALLBACK (on_config_open_cancel), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (config_open, config_open, "config_open"); GLADE_HOOKUP_OBJECT_NO_REF (config_open, ok_button2, "ok_button2"); GLADE_HOOKUP_OBJECT_NO_REF (config_open, cancel_button2, "cancel_button2"); return config_open; } GtkWidget* create_error_list (void) { GtkWidget *error_list; GtkWidget *vbox1; GtkWidget *scrolledwindow2; GtkWidget *error_clist; GtkWidget *label7; GtkWidget *label8; GtkWidget *label9; GtkWidget *hbuttonbox1; GtkWidget *button4; GtkWidget *button6; error_list = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_name (error_list, "error_list"); gtk_window_set_title (GTK_WINDOW (error_list), _("Error list")); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_set_name (vbox1, "vbox1"); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (error_list), vbox1); scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow2, "scrolledwindow2"); gtk_widget_show (scrolledwindow2); gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow2, TRUE, TRUE, 0); GTK_WIDGET_UNSET_FLAGS (scrolledwindow2, GTK_CAN_FOCUS); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_IN); error_clist = gtk_clist_new (3); gtk_widget_set_name (error_clist, "error_clist"); gtk_widget_show (error_clist); gtk_container_add (GTK_CONTAINER (scrolledwindow2), error_clist); gtk_clist_set_column_width (GTK_CLIST (error_clist), 0, 80); gtk_clist_set_column_width (GTK_CLIST (error_clist), 1, 80); gtk_clist_set_column_width (GTK_CLIST (error_clist), 2, 80); gtk_clist_column_titles_show (GTK_CLIST (error_clist)); label7 = gtk_label_new (_("File")); gtk_widget_set_name (label7, "label7"); gtk_widget_show (label7); gtk_clist_set_column_widget (GTK_CLIST (error_clist), 0, label7); label8 = gtk_label_new (_("Line")); gtk_widget_set_name (label8, "label8"); gtk_widget_show (label8); gtk_clist_set_column_widget (GTK_CLIST (error_clist), 1, label8); label9 = gtk_label_new (_("Message")); gtk_widget_set_name (label9, "label9"); gtk_widget_show (label9); gtk_clist_set_column_widget (GTK_CLIST (error_clist), 2, label9); hbuttonbox1 = gtk_hbutton_box_new (); gtk_widget_set_name (hbuttonbox1, "hbuttonbox1"); gtk_widget_show (hbuttonbox1); gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, FALSE, FALSE, 0); gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 30); button4 = gtk_button_new_with_mnemonic (_("Close")); gtk_widget_set_name (button4, "button4"); gtk_widget_show (button4); gtk_container_add (GTK_CONTAINER (hbuttonbox1), button4); GTK_WIDGET_SET_FLAGS (button4, GTK_CAN_DEFAULT); button6 = gtk_button_new_with_mnemonic (_("Clear")); gtk_widget_set_name (button6, "button6"); gtk_widget_show (button6); gtk_container_add (GTK_CONTAINER (hbuttonbox1), button6); GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) error_list, "delete_event", G_CALLBACK (gtk_widget_hide), NULL); g_signal_connect ((gpointer) button4, "clicked", G_CALLBACK (on_close_errors_clicked), NULL); g_signal_connect ((gpointer) button6, "clicked", G_CALLBACK (on_clear_errors_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (error_list, error_list, "error_list"); GLADE_HOOKUP_OBJECT (error_list, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (error_list, scrolledwindow2, "scrolledwindow2"); GLADE_HOOKUP_OBJECT (error_list, error_clist, "error_clist"); GLADE_HOOKUP_OBJECT (error_list, label7, "label7"); GLADE_HOOKUP_OBJECT (error_list, label8, "label8"); GLADE_HOOKUP_OBJECT (error_list, label9, "label9"); GLADE_HOOKUP_OBJECT (error_list, hbuttonbox1, "hbuttonbox1"); GLADE_HOOKUP_OBJECT (error_list, button4, "button4"); GLADE_HOOKUP_OBJECT (error_list, button6, "button6"); return error_list; } GtkWidget* create_add_open (void) { GtkWidget *add_open; GtkWidget *ok_button3; GtkWidget *cancel_button3; add_open = gtk_file_selection_new (_("Select Add-on")); gtk_widget_set_name (add_open, "add_open"); gtk_container_set_border_width (GTK_CONTAINER (add_open), 10); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (add_open), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (add_open), TRUE); gtk_window_set_type_hint (GTK_WINDOW (add_open), GDK_WINDOW_TYPE_HINT_DIALOG); ok_button3 = GTK_FILE_SELECTION (add_open)->ok_button; gtk_widget_set_name (ok_button3, "ok_button3"); gtk_widget_show (ok_button3); GTK_WIDGET_SET_FLAGS (ok_button3, GTK_CAN_DEFAULT); cancel_button3 = GTK_FILE_SELECTION (add_open)->cancel_button; gtk_widget_set_name (cancel_button3, "cancel_button3"); gtk_widget_show (cancel_button3); GTK_WIDGET_SET_FLAGS (cancel_button3, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) add_open, "delete_event", G_CALLBACK (gtk_widget_hide), NULL); g_signal_connect ((gpointer) ok_button3, "clicked", G_CALLBACK (on_add_open_ok), NULL); g_signal_connect ((gpointer) cancel_button3, "clicked", G_CALLBACK (on_add_open_cancel), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (add_open, add_open, "add_open"); GLADE_HOOKUP_OBJECT_NO_REF (add_open, ok_button3, "ok_button3"); GLADE_HOOKUP_OBJECT_NO_REF (add_open, cancel_button3, "cancel_button3"); return add_open; } GtkWidget* create_preferences (void) { GtkWidget *preferences; GtkWidget *notebook1; GtkWidget *table3; GtkWidget *pref_midi; GtkWidget *pref_esound; GtkWidget *pref_midi_player; GtkWidget *label6; GtkWidget *label5; GtkWidget *table2; GtkWidget *pref_error_list; GtkWidget *pref_trace; GtkWidget *pref_warnings; GtkWidget *diagnostics; GtkWidget *table1; GtkWidget *pref_ignore_colon; GtkWidget *pref_fkiss_case; GtkWidget *pref_default_palette; GtkWidget *label_speed_factor; GtkObject *pref_speed_factor_adj; GtkWidget *pref_speed_factor; GtkWidget *label_min_timer; GtkObject *pref_min_timer_adj; GtkWidget *pref_min_timer; GtkWidget *pref_catch_drop; GtkWidget *features; GtkTooltips *tooltips; tooltips = gtk_tooltips_new (); preferences = gnome_property_box_new (); gtk_widget_set_name (preferences, "preferences"); gtk_window_set_title (GTK_WINDOW (preferences), _("Preferences")); gtk_window_set_resizable (GTK_WINDOW (preferences), FALSE); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (preferences), TRUE); gtk_window_set_skip_pager_hint (GTK_WINDOW (preferences), TRUE); gtk_window_set_type_hint (GTK_WINDOW (preferences), GDK_WINDOW_TYPE_HINT_DIALOG); notebook1 = GNOME_PROPERTY_BOX (preferences)->notebook; gtk_widget_set_name (notebook1, "notebook1"); gtk_widget_show (notebook1); table3 = gtk_table_new (3, 2, FALSE); gtk_widget_set_name (table3, "table3"); gtk_widget_show (table3); gtk_container_add (GTK_CONTAINER (notebook1), table3); pref_midi = gtk_check_button_new_with_mnemonic (_("Play MIDI using external program")); gtk_widget_set_name (pref_midi, "pref_midi"); gtk_widget_show (pref_midi); gtk_table_attach (GTK_TABLE (table3), pref_midi, 0, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); pref_esound = gtk_check_button_new_with_mnemonic (_("Play digital audio (needs GNOME audio)")); gtk_widget_set_name (pref_esound, "pref_esound"); gtk_widget_show (pref_esound); gtk_table_attach (GTK_TABLE (table3), pref_esound, 0, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); pref_midi_player = gtk_entry_new (); gtk_widget_set_name (pref_midi_player, "pref_midi_player"); gtk_widget_show (pref_midi_player); gtk_table_attach (GTK_TABLE (table3), pref_midi_player, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_tooltips_set_tip (tooltips, pref_midi_player, _("Command that plays MIDI on your system e.g. playmidi -a"), NULL); label6 = gtk_label_new (_("MIDI player")); gtk_widget_set_name (label6, "label6"); gtk_widget_show (label6); gtk_table_attach (GTK_TABLE (table3), label6, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_label_set_justify (GTK_LABEL (label6), GTK_JUSTIFY_CENTER); gtk_misc_set_alignment (GTK_MISC (label6), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label6), 5, 0); label5 = gtk_label_new_with_mnemonic (_("_Sound")); gtk_widget_set_name (label5, "label5"); gtk_widget_show (label5); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label5); gtk_label_set_justify (GTK_LABEL (label5), GTK_JUSTIFY_CENTER); table2 = gtk_table_new (3, 2, FALSE); gtk_widget_set_name (table2, "table2"); gtk_widget_show (table2); gtk_container_add (GTK_CONTAINER (notebook1), table2); pref_error_list = gtk_check_button_new_with_mnemonic (_("Show error list (if any) after each doll loads")); gtk_widget_set_name (pref_error_list, "pref_error_list"); gtk_widget_show (pref_error_list); gtk_table_attach (GTK_TABLE (table2), pref_error_list, 0, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pref_error_list), TRUE); pref_trace = gtk_check_button_new_with_mnemonic (_("Trace actions at runtime")); gtk_widget_set_name (pref_trace, "pref_trace"); gtk_widget_show (pref_trace); gtk_table_attach (GTK_TABLE (table2), pref_trace, 0, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); pref_warnings = gtk_check_button_new_with_mnemonic (_("Include warnings as well as errors")); gtk_widget_set_name (pref_warnings, "pref_warnings"); gtk_widget_show (pref_warnings); gtk_table_attach (GTK_TABLE (table2), pref_warnings, 0, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 10, 0); diagnostics = gtk_label_new_with_mnemonic (_("_Diagnostics")); gtk_widget_set_name (diagnostics, "diagnostics"); gtk_widget_show (diagnostics); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), diagnostics); gtk_label_set_justify (GTK_LABEL (diagnostics), GTK_JUSTIFY_CENTER); table1 = gtk_table_new (6, 2, FALSE); gtk_widget_set_name (table1, "table1"); gtk_widget_show (table1); gtk_container_add (GTK_CONTAINER (notebook1), table1); pref_ignore_colon = gtk_check_button_new_with_mnemonic (_("Ignore lone colon (show cell in all sets)")); gtk_widget_set_name (pref_ignore_colon, "pref_ignore_colon"); gtk_widget_show (pref_ignore_colon); gtk_table_attach (GTK_TABLE (table1), pref_ignore_colon, 0, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); pref_fkiss_case = gtk_check_button_new_with_mnemonic (_("Case insensitive FKiSS parser")); gtk_widget_set_name (pref_fkiss_case, "pref_fkiss_case"); gtk_widget_show (pref_fkiss_case); gtk_table_attach (GTK_TABLE (table1), pref_fkiss_case, 0, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); pref_default_palette = gtk_check_button_new_with_mnemonic (_("Use PFK default palette (reload doll for effect)")); gtk_widget_set_name (pref_default_palette, "pref_default_palette"); gtk_widget_show (pref_default_palette); gtk_table_attach (GTK_TABLE (table1), pref_default_palette, 0, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); label_speed_factor = gtk_accel_label_new (_("Slow down factor")); gtk_widget_set_name (label_speed_factor, "label_speed_factor"); gtk_widget_show (label_speed_factor); gtk_table_attach (GTK_TABLE (table1), label_speed_factor, 0, 1, 4, 5, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); gtk_misc_set_alignment (GTK_MISC (label_speed_factor), 0, 0.5); pref_speed_factor_adj = gtk_adjustment_new (1, 1, 100, 1, 10, 10); pref_speed_factor = gtk_spin_button_new (GTK_ADJUSTMENT (pref_speed_factor_adj), 1, 0); gtk_widget_set_name (pref_speed_factor, "pref_speed_factor"); gtk_widget_show (pref_speed_factor); gtk_table_attach (GTK_TABLE (table1), pref_speed_factor, 1, 2, 4, 5, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (pref_speed_factor), GTK_UPDATE_IF_VALID); label_min_timer = gtk_accel_label_new (_("Minimum timer interval (ms)")); gtk_widget_set_name (label_min_timer, "label_min_timer"); gtk_widget_show (label_min_timer); gtk_table_attach (GTK_TABLE (table1), label_min_timer, 0, 1, 5, 6, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); gtk_misc_set_alignment (GTK_MISC (label_min_timer), 0, 0.5); pref_min_timer_adj = gtk_adjustment_new (1, 1, 100, 1, 10, 10); pref_min_timer = gtk_spin_button_new (GTK_ADJUSTMENT (pref_min_timer_adj), 1, 0); gtk_widget_set_name (pref_min_timer, "pref_min_timer"); gtk_widget_show (pref_min_timer); gtk_table_attach (GTK_TABLE (table1), pref_min_timer, 1, 2, 5, 6, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (pref_min_timer), GTK_UPDATE_IF_VALID); pref_catch_drop = gtk_check_button_new_with_mnemonic (_("No {catch,drop} triggered if object is fixed")); gtk_widget_set_name (pref_catch_drop, "pref_catch_drop"); gtk_widget_show (pref_catch_drop); gtk_table_attach (GTK_TABLE (table1), pref_catch_drop, 0, 2, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND), 0, 0); features = gtk_label_new_with_mnemonic (_("\"_Features\"")); gtk_widget_set_name (features, "features"); gtk_widget_show (features); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), features); gtk_label_set_justify (GTK_LABEL (features), GTK_JUSTIFY_CENTER); g_signal_connect ((gpointer) preferences, "apply", G_CALLBACK (on_preferences_apply), NULL); g_signal_connect ((gpointer) preferences, "close", G_CALLBACK (on_preferences_close), NULL); g_signal_connect ((gpointer) pref_midi, "toggled", G_CALLBACK (on_pref_midi_toggled), NULL); g_signal_connect ((gpointer) pref_esound, "toggled", G_CALLBACK (on_pref_esound_toggled), NULL); g_signal_connect ((gpointer) pref_midi_player, "changed", G_CALLBACK (on_pref_midi_player_changed), NULL); g_signal_connect ((gpointer) pref_error_list, "toggled", G_CALLBACK (on_pref_error_list_toggled), NULL); g_signal_connect ((gpointer) pref_trace, "toggled", G_CALLBACK (on_pref_trace_toggled), NULL); g_signal_connect ((gpointer) pref_warnings, "toggled", G_CALLBACK (on_pref_warnings_toggled), NULL); g_signal_connect ((gpointer) pref_ignore_colon, "toggled", G_CALLBACK (on_pref_ignore_colon_toggled), NULL); g_signal_connect ((gpointer) pref_fkiss_case, "toggled", G_CALLBACK (on_pref_fkiss_case_toggled), NULL); g_signal_connect ((gpointer) pref_default_palette, "toggled", G_CALLBACK (on_pref_default_palette_toggled), NULL); g_signal_connect ((gpointer) pref_speed_factor, "changed", G_CALLBACK (on_pref_speed_factor_changed), NULL); g_signal_connect ((gpointer) pref_min_timer, "changed", G_CALLBACK (on_pref_min_timer_changed), NULL); g_signal_connect ((gpointer) pref_catch_drop, "toggled", G_CALLBACK (on_pref_catch_drop_toggled), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (preferences, preferences, "preferences"); GLADE_HOOKUP_OBJECT_NO_REF (preferences, notebook1, "notebook1"); GLADE_HOOKUP_OBJECT (preferences, table3, "table3"); GLADE_HOOKUP_OBJECT (preferences, pref_midi, "pref_midi"); GLADE_HOOKUP_OBJECT (preferences, pref_esound, "pref_esound"); GLADE_HOOKUP_OBJECT (preferences, pref_midi_player, "pref_midi_player"); GLADE_HOOKUP_OBJECT (preferences, label6, "label6"); GLADE_HOOKUP_OBJECT (preferences, label5, "label5"); GLADE_HOOKUP_OBJECT (preferences, table2, "table2"); GLADE_HOOKUP_OBJECT (preferences, pref_error_list, "pref_error_list"); GLADE_HOOKUP_OBJECT (preferences, pref_trace, "pref_trace"); GLADE_HOOKUP_OBJECT (preferences, pref_warnings, "pref_warnings"); GLADE_HOOKUP_OBJECT (preferences, diagnostics, "diagnostics"); GLADE_HOOKUP_OBJECT (preferences, table1, "table1"); GLADE_HOOKUP_OBJECT (preferences, pref_ignore_colon, "pref_ignore_colon"); GLADE_HOOKUP_OBJECT (preferences, pref_fkiss_case, "pref_fkiss_case"); GLADE_HOOKUP_OBJECT (preferences, pref_default_palette, "pref_default_palette"); GLADE_HOOKUP_OBJECT (preferences, label_speed_factor, "label_speed_factor"); GLADE_HOOKUP_OBJECT (preferences, pref_speed_factor, "pref_speed_factor"); GLADE_HOOKUP_OBJECT (preferences, label_min_timer, "label_min_timer"); GLADE_HOOKUP_OBJECT (preferences, pref_min_timer, "pref_min_timer"); GLADE_HOOKUP_OBJECT (preferences, pref_catch_drop, "pref_catch_drop"); GLADE_HOOKUP_OBJECT (preferences, features, "features"); GLADE_HOOKUP_OBJECT_NO_REF (preferences, tooltips, "tooltips"); return preferences; } GtkWidget* create_about (void) { GtkWidget *about; const gchar *authors[] = { "Nick Lamb ", "and a cast of... dozens see source code.", NULL }; const gchar *artists[] = { "Zazu Vega ", NULL }; /* TRANSLATORS: Replace this string with your names, one name per line. */ gchar *translators = _("translator-credits"); GdkPixbuf *about_logo_pixbuf; about = gtk_about_dialog_new (); gtk_widget_set_name (about, "about"); gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about), VERSION); gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (about), _("Gnomekiss")); gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about), _("Copyright 2000-2005 Nick Lamb")); gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about), _("A KiSS viewer for the GNOME desktop")); gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about), _("This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.")); gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about), authors); gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG (about), artists); gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about), translators); about_logo_pixbuf = create_pixbuf ("gnomekiss/besito_sinfondo.png"); gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about), about_logo_pixbuf); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (about, about, "about"); return about; } gnomekiss-2.0/src/Makefile.in0000664000076400007640000003426210364777446013172 00000000000000# Makefile.in generated by automake 1.9.5 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@ SOURCES = $(gnomekiss_SOURCES) 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 = : bin_PROGRAMS = gnomekiss$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_gnomekiss_OBJECTS = main.$(OBJEXT) cell.$(OBJEXT) cnf.$(OBJEXT) \ collision.$(OBJEXT) errors.$(OBJEXT) event.$(OBJEXT) \ french.$(OBJEXT) lzh.$(OBJEXT) timer.$(OBJEXT) util.$(OBJEXT) \ variable.$(OBJEXT) support.$(OBJEXT) interface.$(OBJEXT) \ callbacks.$(OBJEXT) gnomekiss_OBJECTS = $(am_gnomekiss_OBJECTS) am__DEPENDENCIES_1 = gnomekiss_DEPENDENCIES = $(am__DEPENDENCIES_1) 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) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(gnomekiss_SOURCES) DIST_SOURCES = $(gnomekiss_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_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_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ gnomekiss_SOURCES = \ main.c \ kiss.h \ cell.c cnf.c collision.c errors.c event.c french.c \ lzh.c timer.c util.c variable.c \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h gnomekiss_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(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 src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(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: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) gnomekiss$(EXEEXT): $(gnomekiss_OBJECTS) $(gnomekiss_DEPENDENCIES) @rm -f gnomekiss$(EXEEXT) $(LINK) $(gnomekiss_LDFLAGS) $(gnomekiss_OBJECTS) $(gnomekiss_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cell.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cnf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/collision.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/errors.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/event.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/french.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lzh.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/variable.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) '$<'` 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 $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; 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-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic 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 maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS 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: gnomekiss-2.0/src/util.c0000664000076400007640000002236710351410771012226 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "kiss.h" int global_lock= KISS_DONE; static GMemChunk *event_chunk= NULL; void free_action_list(GSList *list) { /* FIXME small leak, debug() notify() strings lost */ g_slist_free(list); } static void free_actions(gpointer key, gpointer value, gpointer data) { KissActionList *list = (KissActionList *) value; FREE_ACTION_LIST(*list); } static void reset_events() { if (config.alarms) { g_hash_table_foreach(config.alarms, free_actions, NULL); g_hash_table_destroy(config.alarms); config.alarms= NULL; } if (config.labels) { g_hash_table_foreach(config.labels, free_actions, NULL); g_hash_table_destroy(config.labels); config.labels= NULL; } /* Now reset memchunk for the KissActionList placeholders */ if (event_chunk) { g_mem_chunk_destroy(event_chunk); } event_chunk= g_mem_chunk_create(KissActionList, 100, G_ALLOC_ONLY); } void render_object(KissObject *object) { guchar *start, *end; start= config.rgb_buf + (config.row_stride * object->y[view]); end= start + (config.row_stride * object->height); if (start < global_start) global_start= start; if (end > global_end) global_end= end; global_lock= KISS_PENDING; gtk_widget_queue_draw_area(area, object->x[view], object->y[view], object->width, object->height); } void render_cell(KissCell *cell) { guchar *start, *end; start= config.rgb_buf + (config.row_stride * cell->y[view]); end= start + (config.row_stride * cell->height); if (start < global_start) global_start= start; if (end > global_end) global_end= end; global_lock= KISS_PENDING; gtk_widget_queue_draw_area(area, cell->x[view], cell->y[view], cell->width, cell->height); } void render_all() { GdkColor color; GdkColormap *cmap; gint set; static long int last = -1; if (area == NULL) return; global_start= config.rgb_buf; global_end= config.rgb_buf + (config.row_stride * config.height); global_lock= KISS_PENDING; gtk_widget_queue_draw(area); /* redraw everything */ /* render_all gets called just in time to fix the bg color */ cmap= gtk_widget_get_colormap(area); set= config.pal_set[view]; if (set * 256 + config.bg_color != last) { last = set * 256 + config.bg_color; color.red= 257 * palettes[set][config.bg_color * 3]; color.green= 257 * palettes[set][config.bg_color * 3 + 1]; color.blue= 257 * palettes[set][config.bg_color * 3 + 2]; /* I have no idea if this is portable, removing it will just cause the unused border to be grey instead of colored */ if (gdk_colormap_alloc_color(cmap, &color, FALSE, TRUE)) { gdk_window_set_background(area->window, &color); gdk_window_clear(area->window); } } } /* Only works for filename in the current directory, deliberately */ int case_fixup(char *filename) { DIR *dir; struct dirent *dirent; dir= opendir("."); if (dir == NULL) return 0; while ((dirent= readdir(dir))) { if (!g_strcasecmp(filename, dirent->d_name)) { strcpy(filename, dirent->d_name); closedir(dir); return 1; } } closedir(dir); return 0; } static int length_fixup(char *filename) { int offset, j, k; for (k=0; k < 8; ++k) { if (filename[k] == '.' || filename[k] == 0) break; } if (filename[k] == 0) return 0; /* Remove additional characters before '.' separator */ offset= 0; while (filename[k] != '.' && filename[k] != 0) { offset++; filename[k]= filename[k+offset]; } if (filename[k] == 0) return offset; /* Count through first three characters after '.' separator */ for (j= 1; j <= 3; ++j) { filename[k + j]= filename[k+offset + j]; if (filename[k + j] == 0) break; } if (filename[k + j] == 0) return offset; /* truncating trailing characters after e.g. .CEL */ filename[k + j] = 0; return 1; } FILE *open_any(const char *path, const char *mode) { FILE *fp = NULL; char *temp; temp = g_strdup(path); fp= fopen(temp, mode); if (fp == NULL && case_fixup(temp)) { fp= fopen(temp, mode); } if (fp == NULL && length_fixup(temp) && case_fixup(temp)) { log_warning(_("filename \"%s\" is too long"), path); fp= fopen(temp, mode); } g_free(temp); if (fp == NULL) log_error(_("file not found \"%s\""), path); return fp; } void change_cursor(GdkWindow *window, GdkCursorType type) { GdkCursor *cursor; cursor = gdk_cursor_new(type); gdk_window_set_cursor(window, cursor); gdk_cursor_destroy(cursor); } void clean_up() { int k; /* Timers first */ reset_timers(); /* French KiSS */ reset_french(); /* Cells and Objects */ reset_cells(); /* Variables */ reset_variables(); /* Label and Alarm events */ reset_events(); if (area != NULL) { gdk_window_clear(area->window); } /* free config filename */ if (config.filename!= NULL) { g_free(config.filename); } config.filename= NULL; /* free config description */ if (config.description!= NULL) { g_free(config.description); } config.description= NULL; /* free Configuration wide actions */ FREE_ACTION_LIST(config.init); FREE_ACTION_LIST(config.begin); FREE_ACTION_LIST(config.version); FREE_ACTION_LIST(config.never); FREE_ACTION_LIST(config.end); FREE_ACTION_LIST(config.overflow); /* free Sets */ for (k=0; k < SETS; ++k) { FREE_ACTION_LIST(config.sets[k]); } /* free Cols */ for (k=0; k < COLS; ++k) { FREE_ACTION_LIST(config.cols[k]); } /* free Errors */ FREE_ACTION_LIST(fkiss_errors); /* Remove RGB buffer */ if (config.rgb_buf != NULL) { g_free(config.rgb_buf); config.rgb_buf= NULL; } config.width= 640; config.height= 480; config.row_stride= config.width * 3; /* free Palettes */ for (k= 0; k < PALETTES * COLS; ++k) { if (palettes[k] != NULL) { g_free(palettes[k]); } palettes[k]= NULL; } /* clear BG color index */ config.bg_color= 0; /* Selected and target cells */ config.target= NULL; config.selected= NULL; } KissCell *intersect(int x, int y) { GSList *list; KissCell *final, *current; final= NULL; for (list= cells; list != NULL; list= g_slist_next(list)) { current= cell_intersect((KissCell *) list->data, x, y); if (current) final= current; } return final; } void open_either(const char *filename) { int len; char *temp; len= strlen(filename); if (len > 4 && g_strcasecmp(filename + len - 4, ".lzh") == 0) { if ((temp= lha_open(filename))) { gtk_file_selection_complete(GTK_FILE_SELECTION(config_open), temp); gtk_file_selection_complete(GTK_FILE_SELECTION(config_open), "*.cnf"); gtk_widget_show (config_open); g_free(temp); } } else { parse_file(filename); } gtk_window_set_title(GTK_WINDOW(app), filename); } void switch_color(int col) { if (col < 0 || col >= COLS) return; if (config.pal_set[view] == col) return; if (config.objects == NULL) return; config.pal_set[view]= col; /* Should this be sticky or not? */ /* Run events */ events(config.cols[col]); render_all(); } static void check_each_object(gpointer key, gpointer value, gpointer data) { KissObject *object = KissObject (value); check_collisions(object, 1); /* suppress event firing */ } void switch_view(int set) { if (set < 0 || set >= SETS) return; if (set == view) return; if (config.objects == NULL) return; view= set; gtk_menu_item_activate(GTK_MENU_ITEM(items[view])); gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(buttons[view]), TRUE); /* Check all object collisions */ g_hash_table_foreach(config.objects, check_each_object, NULL); /* Run events */ events(config.sets[view]); render_all(); } long numeric(gchar *integer) { long value; value= atol(integer); while (*integer != '\0') { if (*integer != '-' && !isdigit(*integer)) return INT_MIN; integer++; } return value; } KissActionList *event_find(GHashTable *table, gint id) { return (KissActionList *) (g_hash_table_lookup(table, GINT_TO_POINTER(id))); } KissActionList *event_find_or_insert(GHashTable *table, gint id) { KissActionList *event; event= (KissActionList *) (g_hash_table_lookup(table, GINT_TO_POINTER(id))); if (event == NULL) { event= g_chunk_new0(KissActionList, event_chunk); g_hash_table_insert(table, GINT_TO_POINTER(id), event); } return event; } gnomekiss-2.0/src/Makefile.am0000664000076400007640000000072710351065736013144 00000000000000## Process this file with automake to produce Makefile.in INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ bin_PROGRAMS = gnomekiss gnomekiss_SOURCES = \ main.c \ kiss.h \ cell.c cnf.c collision.c errors.c event.c french.c \ lzh.c timer.c util.c variable.c \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h gnomekiss_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) gnomekiss-2.0/src/french.c0000664000076400007640000011357110365055040012513 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "kiss.h" #define FK_ERRORS &fkiss_errors static int parse(char *args, char *argv[], char types[], int max); static KissActionList *find_event(gchar *event, gchar *params); static KissAction *new_action(KissActionType type); static void *int_helper(gchar *integer, long min, long max); static void parse_error(char *function, char *args); static void check_and_add(char *method, char *params, KissAction *action, int required); static KissActionList *script; static GMemChunk *action_chunk= NULL; void reset_french() { if (action_chunk != NULL) { g_mem_chunk_destroy(action_chunk); } action_chunk= g_mem_chunk_create(KissAction, 100, G_ALLOC_ONLY); script= NULL; } static int parse(char *args, char *argv[], char types[], int max) { int start, end, offset, count= 0, quote= 0; char type= '?'; for (start= end= offset= 0; args[offset] != '\0'; ++offset) { if (args[offset] == ',' && !quote) { /* safety */ if (count == max) return count + 1; strncpy(argv[count], args + start, end - start); argv[count][end - start]= '\0'; types[count++]= type; start= end= offset + 1; type= '?'; } else if (type == '?' && start == offset && args[offset] == '#') { type= 'O'; start= end= offset + 1; } else if (type == '?' && start == offset && args[offset] == '\"') { type= 'S'; quote= !quote; start= end= offset + 1; } else if (type == 'S' && args[offset] == '\"' && quote) { quote= !quote; end= offset; } else if (type == '?' && start == offset && isspace(args[offset])) { start= end= offset + 1; } else if (!isspace(args[offset]) && !quote) { end= offset + 1; } } if (count > 0 || start < offset) { if (count == max) return count + 1; strncpy(argv[count], args + start, end - start); argv[count][end - start]= '\0'; types[count++]= type; } return count; } /* There aren't any unimplemented features in GnomeKiSS :) */ #if 0 static void unimplemented(char *function, char *args) { log_error(_("%s(%s) is not yet implemented"), function, args); } #endif static void parse_error(char *function, char *args) { log_error(_("%s(%s) has an incorrect number or type of parameters"), function, args); } static KissActionList *find_event(gchar *event, gchar *params) { KissCell *cell; KissObject *object; KissCollisionEvents *cell_hit; KissObjectCollision *object_hit; int count, val; gchar first[256], second[256], third[256]; gchar *argv[3] = { first, second, third }; gchar types[3]; /* @EventHandler is dealt with elsewhere */ count= parse(params, argv, types, 3); if (!strcmp("alarm", event)) { if (count == 1 && types[0] == '?') { val= numeric(first); if (val >= 0 && val <= INT_MAX) { return event_find_or_insert(config.alarms, val); } else { parse_error(event, params); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("apart", event)) { /* FKiSS 2.1 */ if (count == 2 && types[0] == 'S' && types[1] == 'S') { cell_hit = collision_find(first, second); if (cell_hit == NULL) return FK_ERRORS; /* Reason logged in collision_find() */ else return &(cell_hit->apart); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("begin", event)) { if (count == 0) { return &(config.begin); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("catch", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->catch; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->catch); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("col", event)) { if (count == 1 && types[0] == '?') { val= numeric(first); if (val >= 0 && val < COLS) { return &(config.cols[val]); } else { parse_error(event, params); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("collide", event)) { /* FKiSS 2.1 */ if (count == 2 && types[0] == 'S' && types[1] == 'S') { cell_hit = collision_find(first, second); if (cell_hit == NULL) return FK_ERRORS; /* Reason logged in collision_find() */ else return &(cell_hit->collide); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("drop", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->drop; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->drop); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("end", event)) { if (count == 0) { return &(config.end); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("fixcatch", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->fixcatch; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->fixcatch); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("fixdrop", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->fixdrop; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->fixdrop); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("in", event)) { /* FKiSS 2 */ if (count == 2 && types[0] == 'O' && types[1] == 'O') { object_hit = impact_find(first, second); if (object_hit == NULL) return FK_ERRORS; /* Reason logged in impact_find() */ else return &(object_hit->in); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("initialize", event)) { if (count == 0) { return &(config.init); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("label", event)) { /* FKiSS 3 */ if (count == 1 && types[0] == '?') { val= numeric(first); if (val >= 0 && val <= INT_MAX) { return event_find_or_insert(config.labels, val); } else { parse_error(event, params); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("never", event)) { if (count == 0) { return &(config.never); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("out", event)) { /* FKiSS 2 */ if (count == 2 && types[0] == 'O' && types[1] == 'O') { object_hit = impact_find(first, second); if (object_hit == NULL) return FK_ERRORS; /* Reason logged in impact_find() */ else return &(object_hit->out); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("overflow", event)) /* FKiSS 3 */ { if (count == 0) { return &(config.overflow); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("press", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->press; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->press); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("release", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->release; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->release); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("set", event)) { if (count == 1 && types[0] == '?') { val= numeric(first); if (val >= 0 && val < SETS) { return &(config.sets[val]); } else { parse_error(event, params); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("stillin", event)) { /* FKiSS 2 */ if (count == 2 && types[0] == 'O' && types[1] == 'O') { object_hit = impact_find(first, second); if (object_hit == NULL) return FK_ERRORS; /* Reason logged in impact_find() */ else return &(object_hit->stillin); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("stillout", event)) { /* FKiSS 2 */ if (count == 2 && types[0] == 'O' && types[1] == 'O') { object_hit = impact_find(first, second); if (object_hit == NULL) return FK_ERRORS; /* Reason logged in impact_find() */ else return &(object_hit->stillout); } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("unfix", event)) { if (count == 1 && types[0] == 'S') { if ((cell= cell_find(first)) != NULL) { return &cell->events->unfix; } else { log_error(_("cell \"%s\" not loaded"), first); return FK_ERRORS; } } else if (count == 1 && types[0] == 'O') { if ((object= object_find(first)) != NULL) { return &(object->unfix); } else { log_error(_("invalid object #%s"), first); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } else if (!strcmp("version", event)) { /* FKiSS 2 */ if (count == 1 && types[0] == '?') { if (numeric(first) <= 4) { return &(config.version); /* We claim FKiSS 3 compliance */ } else { log_warning(_("FKiSS version %s not available"), params); return FK_ERRORS; } } else { parse_error(event, params); return FK_ERRORS; } } log_error(_("%s(%s) is not a recognised action or event"), event, params); return NULL; } static KissAction *new_action(KissActionType type) { KissAction *action; action= g_chunk_new0(KissAction, action_chunk); action->type= type; action->line= get_line(); return action; } static void *int_helper(gchar *integer, long min, long max) { KissVariable *variable; long value = 0; if (isdigit(integer[0]) || integer[0]=='-') { if (max == 0L && min == 0L) return NULL; /* constants are not permitted on the LHS */ value= numeric(integer); if (value < min || value > max) { log_warning(_("value \"%s\" out of range"), integer); } } variable= var_find(integer); if (variable->value == 0) { variable->value= value; } return (void *) variable; } static void check_and_add(char *method, char *params, KissAction *action, int required) { if (script == NULL) { log_error(_("%s(%s) actions must be inside an event"), method, params); } else if (required > 0 && action->args[0] == NULL) { log_error(_("%s(%s) first parameter incorrect"), method, params); } else if (required > 1 && action->args[1] == NULL) { log_error(_("%s(%s) second parameter incorrect"), method, params); } else if (required > 2 && action->args[2] == NULL) { log_error(_("%s(%s) third parameter incorrect"), method, params); } else if (required > 3 && action->args[3] == NULL) { log_error(_("%s(%s) fourth parameter incorrect"), method, params); } else { *script= g_slist_append(*script, action); } } void parse_action(gchar *text) { gchar method[32], params[256], rest[512]; gchar first[256], second[256], third[256]; gchar *argv[3] = { first, second, third }; gchar types[3]; KissAction *action; KissActionList *event; int count; rest[0]= '\0'; /* slack */ count = sscanf(text, " %31[A-Za-z] (%255[^)]) %512[^;]", method, params, rest); if (count == 1) { count = sscanf(text, " %31[A-Za-z] () %512[^;]", method, rest); params[0]= '\0'; } if (count < 1) { log_warning(_("trailing garbage or syntax error")); return; } if (prefs.fkiss_case) { for (count= 0; method[count] != '\0'; ++count) { method[count] = tolower(method[count]); } } count = parse(params, argv, types, 3); if (!strcmp("add", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_VAR_ADD); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("altmap", method)) { if (count == 1 && types[0] == 'S') { action= new_action(ACTION_ALTMAP_CELL); action->args[0]= (void *) cell_find(first); check_and_add(method, params, action, 1); } else if (count == 1 && types[0] == 'O') { action= new_action(ACTION_ALTMAP_OBJECT); action->args[0]= (void *) object_find(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("changeset", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_CHANGESET); action->args[0]= int_helper(first, 0, SETS - 1); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("changecol", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_CHANGECOL); action->args[0]= int_helper(first, 0, COLS - 1); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("debug", method)) { if (count == 1 && types[0] == 'S') { action= new_action(ACTION_DEBUG); action->args[0]= (void *) g_strdup(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("div", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_VAR_DIV); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("else", method)) { if (count == 0) { action= new_action(CONTROL_ELSE); check_and_add(method, params, action, 0); } else { parse_error(method, params); } } else if (!strcmp("endif", method)) { if (count == 0) { action= new_action(CONTROL_ENDIF); check_and_add(method, params, action, 0); } else { parse_error(method, params); } } else if (!strcmp("exitevent", method)) { if (count == 0) { action= new_action(CONTROL_EXIT_EVENT); check_and_add(method, params, action, 0); } else { parse_error(method, params); } } else if (!strcmp("ghost", method)) { if (count == 2 && types[0] == 'S' && types[1] == '?') { action= new_action(ACTION_GHOST_CELL); action->args[0]= (void *) cell_find(first); action->args[1]= int_helper(second, 0, 1); check_and_add(method, params, action, 2); } else if (count == 2 && types[0] == 'O' && types[1] == '?') { action= new_action(ACTION_GHOST_OBJECT); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, 0, 1); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("gosub", method)) { if (count == 1 && types[0] == '?') { action= new_action(CONTROL_GOSUB); action->args[0]= int_helper(first, 0, INT_MAX); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("gosubrandom", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(CONTROL_GOSUB_RANDOM); action->args[0]= int_helper(first, 0, 100); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("goto", method)) { if (count == 1 && types[0] == '?') { action= new_action(CONTROL_GOTO); action->args[0]= int_helper(first, 0, INT_MAX); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("gotorandom", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(CONTROL_GOTO_RANDOM); action->args[0]= int_helper(first, 0, 100); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("ifequal", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(CONTROL_EQUAL); action->args[0]= int_helper(first, INT_MIN, INT_MAX); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("iffixed", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_IF_FIXED); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("iflessthan", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(CONTROL_LESS_THAN); action->args[0]= int_helper(first, INT_MIN, INT_MAX); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("ifgreaterthan", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(CONTROL_GREATER_THAN); action->args[0]= int_helper(first, INT_MIN, INT_MAX); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("ifmapped", method)) { if (count == 3 && types[0] == 'S' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_IF_MAPPED); action->args[0]= (void *) cell_find(first); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("ifmoved", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_IF_MOVED); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("ifnotequal", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(CONTROL_NOT_EQUAL); action->args[0]= int_helper(first, INT_MIN, INT_MAX); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("ifnotfixed", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_IF_NOT_FIXED); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("ifnotmapped", method)) { if (count == 3 && types[0] == 'S' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_IF_NOT_MAPPED); action->args[0]= (void *) cell_find(first); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("ifnotmoved", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_IF_NOT_MOVED); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("let", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(ACTION_VAR_LET); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("letcatch", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_VAR_CATCH); action->args[0]= int_helper(first, 0, 0); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("letcollide", method)) { if (count == 3 && types[0] == '?' && types[1] == 'S' && types[2] == 'S') { action= new_action(ACTION_VAR_COLLIDE); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) cell_find(second); action->args[2]= (void *) cell_find(third); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("letfix", method)) { if (count == 2 && types[0] == '?' && types[1] == 'O') { action= new_action(ACTION_VAR_OBJECT_FIX); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) object_find(second); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("letinside", method)) { if (count == 3 && types[0] == '?' && types[1] == 'O' && types[2] == 'O') { action= new_action(ACTION_VAR_INSIDE); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) object_find(second); action->args[2]= (void *) object_find(third); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("letmapped", method)) { if (count == 2 && types[0] == '?' && types[1] == 'S') { action= new_action(ACTION_VAR_CELL_MAPPED); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) cell_find(second); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("letmousex", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_VAR_MOUSE_X); action->args[0]= int_helper(first, 0, 0); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("letmousey", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_VAR_MOUSE_Y); action->args[0]= int_helper(first, 0, 0); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("letobjectx", method)) { if (count == 2 && types[0] == '?' && types[1] == 'O') { action= new_action(ACTION_VAR_OBJECT_X); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) object_find(second); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("letobjecty", method)) { if (count == 2 && types[0] == '?' && types[1] == 'O') { action= new_action(ACTION_VAR_OBJECT_Y); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) object_find(second); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("letpal", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_VAR_PAL); action->args[0]= int_helper(first, 0, 0); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("letset", method)) { if (count == 1 && types[0] == '?') { action= new_action(ACTION_VAR_SET); action->args[0]= int_helper(first, 0, 0); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("lettransparent", method)) { if (count == 2 && types[0] == '?' && types[1] == 'S') { action= new_action(ACTION_VAR_CELL_TRANSPARENT); action->args[0]= int_helper(first, 0, 0); action->args[1]= (void *) cell_find(second); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("map", method)) { if (count == 1 && types[0] == 'S') { action= new_action(ACTION_MAP_CELL); action->args[0]= (void *) cell_find(first); check_and_add(method, params, action, 1); } else if (count == 1 && types[0] == 'O') { action= new_action(ACTION_MAP_OBJECT); action->args[0]= (void *) object_find(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("mod", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_VAR_MOD); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("move", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_MOVE_OBJECT); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("movebyx", method)) { if (count == 3 && types[0] == 'O' && types[1] == 'O' && types[2] == '?') { action= new_action(ACTION_MOVE_BYX); action->args[0]= (void *) object_find(first); action->args[1]= (void *) object_find(second); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("movebyy", method)) { if (count == 3 && types[0] == 'O' && types[1] == 'O' && types[2] == '?') { action= new_action(ACTION_MOVE_BYY); action->args[0]= (void *) object_find(first); action->args[1]= (void *) object_find(second); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("moverandx", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_MOVE_RANDX); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("moverandy", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_MOVE_RANDY); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("moveto", method)) { if (count == 3 && types[0] == 'O' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_MOVE_TO); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("movetorand", method)) { if (count == 1 && types[0] == 'O') { action= new_action(ACTION_MOVE_TORAND); action->args[0]= (void *) object_find(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("mul", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_VAR_MUL); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("music", method)) { if (count == 1 && types[0] == 'S') { if (first[0] == '\0') { action= new_action(ACTION_MUSIC_CANCEL); check_and_add(method, params, action, 0); } else { action= new_action(ACTION_MUSIC); if (case_fixup(first)) action->args[0]= (void *) g_strdup(first); check_and_add(method, params, action, 1); } } else { parse_error(method, params); } } else if (!strcmp("nop", method)) { if (count == 0) { action= new_action(ACTION_NOP); check_and_add(method, params, action, 0); } else { parse_error(method, params); } } else if (!strcmp("notify", method)) { if (count == 1 && types[0] == 'S') { action= new_action(ACTION_NOTIFY); action->args[0]= (void *) g_strdup(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("quit", method)) { if (count == 0) { action= new_action(ACTION_QUIT); check_and_add(method, params, action, 0); } else { parse_error(method, params); } } else if (!strcmp("random", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_VAR_RANDOM); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("randomtimer", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_RANDOMTIMER); action->args[0]= int_helper(first, 0, INT_MAX); action->args[1]= int_helper(second, 0, INT_MAX); action->args[2]= int_helper(third, 0, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("setfix", method)) { if (count == 2 && types[0] == 'O' && types[1] == '?') { action= new_action(ACTION_SETFIX); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, 0, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("shell", method)) { if (count == 1 && types[0] == 'S') { action= new_action(ACTION_SHELL); action->args[0]= (void *) g_strdup(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("sound", method)) { if (count == 1 && types[0] == 'S') { if (first[0] == '\0') { action= new_action(ACTION_SOUND_CANCEL); check_and_add(method, params, action, 0); } else { action= new_action(ACTION_SOUND); if (case_fixup(first)) action->args[0]= (void *) g_strdup(first); check_and_add(method, params, action, 1); } } else { parse_error(method, params); } } else if (!strcmp("sub", method)) { if (count == 3 && types[0] == '?' && types[1] == '?' && types[2] == '?') { action= new_action(ACTION_VAR_SUB); action->args[0]= int_helper(first, 0, 0); action->args[1]= int_helper(second, INT_MIN, INT_MAX); action->args[2]= int_helper(third, INT_MIN, INT_MAX); check_and_add(method, params, action, 3); } else { parse_error(method, params); } } else if (!strcmp("timer", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(ACTION_TIMER); action->args[0]= int_helper(first, 0, INT_MAX); action->args[1]= int_helper(second, 0, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("transparent", method)) { if (count == 2 && types[0] == 'S' && types[1] == '?') { action= new_action(ACTION_TRANSPARENT_CELL); action->args[0]= (void *) cell_find(first); action->args[1]= int_helper(second, -255, 255); check_and_add(method, params, action, 2); } else if (count == 2 && types[0] == 'O' && types[1] == '?') { action= new_action(ACTION_TRANSPARENT_OBJECT); action->args[0]= (void *) object_find(first); action->args[1]= int_helper(second, -255, 255); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("unmap", method)) { if (count == 1 && types[0] == 'S') { action= new_action(ACTION_UNMAP_CELL); action->args[0]= (void *) cell_find(first); check_and_add(method, params, action, 1); } else if (count == 1 && types[0] == 'O') { action= new_action(ACTION_UNMAP_OBJECT); action->args[0]= (void *) object_find(first); check_and_add(method, params, action, 1); } else { parse_error(method, params); } } else if (!strcmp("viewport", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(ACTION_VIEWPORT); action->args[0]= int_helper(first, INT_MIN, INT_MAX); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else if (!strcmp("windowsize", method)) { if (count == 2 && types[0] == '?' && types[1] == '?') { action= new_action(ACTION_WINDOW_SIZE); action->args[0]= int_helper(first, INT_MIN, INT_MAX); action->args[1]= int_helper(second, INT_MIN, INT_MAX); check_and_add(method, params, action, 2); } else { parse_error(method, params); } } else { event= find_event(method, params); if (event != NULL) { script= event; if (event != FK_ERRORS && *event != NULL) { log_warning(_("%s(%s) event used more than once"), method, params); } } } if (*rest) { parse_action(rest); } } gnomekiss-2.0/src/main.c0000664000076400007640000001140410364204666012173 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include "interface.h" #include "support.h" #include "kiss.h" /* Implementation */ GtkWidget *app, *area, *appbar, *pref_dialog, *error_clist; GtkWidget *about, *error_list, *set_open, *config_open, *add_open; GtkWidget *buttons[SETS], *items[SETS]; static GtkTargetEntry targets[1]= { { "text/uri-list", 0, 1} }; static void set_toggle(char *toggle, gboolean value) { GtkWidget *widget; widget = lookup_widget(pref_dialog, toggle); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), value); } static void preferences(void) { GtkWidget *widget; gnome_config_push_prefix("/GnomeKiss/"); prefs.midi= gnome_config_get_bool("Sound/midi=true"); set_toggle("pref_midi", prefs.midi); prefs.midi_player= gnome_config_get_string("Sound/midi_player=playmidi"); widget = lookup_widget(pref_dialog, "pref_midi_player"); gtk_entry_set_text(GTK_ENTRY(widget), prefs.midi_player); prefs.esound= gnome_config_get_bool("Sound/esound=true"); set_toggle("pref_esound", prefs.esound); prefs.error_list= gnome_config_get_bool("Diagnostics/error_list=true"); set_toggle("pref_error_list", prefs.error_list); prefs.warnings= gnome_config_get_bool("Diagnostics/warnings=true"); set_toggle("pref_warnings", prefs.warnings); prefs.trace= gnome_config_get_bool("Diagnostics/trace=false"); set_toggle("pref_trace", prefs.trace); prefs.ignore_colon= gnome_config_get_bool("Features/ignore_colon=false"); set_toggle("pref_ignore_colon", prefs.ignore_colon); prefs.fkiss_case= gnome_config_get_bool("Features/fkiss_case=false"); set_toggle("pref_fkiss_case", prefs.fkiss_case); prefs.default_palette= gnome_config_get_bool("Features/default_palette=false"); set_toggle("pref_default_palette", prefs.default_palette); prefs.speed_factor= gnome_config_get_int("Features/speed_factor=1"); widget = lookup_widget(pref_dialog, "pref_speed_factor"); gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget),(gfloat)prefs.speed_factor); prefs.min_timer= gnome_config_get_int("Features/min_timer=1"); widget = lookup_widget(pref_dialog, "pref_min_timer"); gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget),(gfloat)prefs.min_timer); prefs.catch_drop= gnome_config_get_bool("Features/catch_drop=false"); set_toggle("pref_catch_drop", prefs.catch_drop); } int main (int argc, char *argv[]) { GtkWidget *application; int i; gchar widget_name[]= "show_setN"; #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); gtk_widget_push_visual(gdk_rgb_get_visual()); gtk_widget_push_colormap(gdk_rgb_get_cmap()); application = create_application (); about= create_about (); error_list= create_error_list (); set_open= create_set_open (); config_open= create_config_open (); add_open= create_add_open (); pref_dialog= create_preferences (); gtk_widget_pop_visual(); gtk_widget_pop_colormap(); /* Get initial prefs state */ preferences(); app = application; area = lookup_widget(app, "area"); appbar = lookup_widget(app, "appbar"); error_clist = lookup_widget(error_list, "error_clist"); gtk_clist_column_titles_passive(GTK_CLIST (error_clist)); for (i= 0; i < SETS; ++i) { snprintf(widget_name, sizeof(widget_name), "show_set%d", i); buttons[i]= lookup_widget(app, widget_name); snprintf(widget_name, sizeof(widget_name), "set_%d", i); items[i]= lookup_widget(app, widget_name); } gtk_menu_item_activate(GTK_MENU_ITEM(items[0])); gtk_drag_dest_set(app, GTK_DEST_DEFAULT_ALL, targets, 1, GDK_ACTION_COPY); gtk_widget_show (app); /* GNOME2FIXME learn to use popt apparently if (argc > 1) { open_either(argv[1]); } */ gtk_main (); return 0; } gnomekiss-2.0/src/cnf.c0000664000076400007640000004041110365055015012006 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "support.h" #include "kiss.h" KissConfig config; KissPrefs prefs; int view; guchar *palettes[PALETTES * COLS]; /* concrete */ static int numpal, numcol, ckiss, views; static guchar magic_palette[] = { 0, 0, 0, 0, 0, 80, 0, 0, 160, 0, 0, 255, 0, 32, 0, 0, 32, 80, 0, 32, 160, 0, 32, 255, 0, 71, 0, 0, 71, 80, 0, 71, 160, 0, 71, 255, 0, 104, 0, 0, 104, 80, 0, 104, 160, 0, 104, 255, 0, 143, 0, 0, 143, 80, 0, 143, 160, 0, 143, 255, 0, 176, 0, 0, 176, 80, 0, 176, 160, 0, 176, 255, 0, 215, 0, 0, 215, 80, 0, 215, 160, 0, 215, 255, 0, 255, 0, 0, 255, 80, 0, 255, 160, 0, 255, 255, 32, 0, 0, 32, 0, 80, 32, 0, 160, 32, 0, 255, 32, 32, 0, 32, 32, 80, 32, 32, 160, 32, 32, 255, 32, 71, 0, 32, 71, 80, 32, 71, 160, 32, 71, 255, 32, 104, 0, 32, 104, 80, 32, 104, 160, 32, 104, 255, 32, 143, 0, 32, 143, 80, 32, 143, 160, 32, 143, 255, 32, 176, 0, 32, 176, 80, 32, 176, 160, 32, 176, 255, 32, 215, 0, 32, 215, 80, 32, 215, 160, 32, 215, 255, 32, 255, 0, 32, 255, 80, 32, 255, 160, 32, 255, 255, 64, 0, 0, 64, 0, 80, 64, 0, 160, 64, 0, 255, 64, 32, 0, 64, 32, 80, 64, 32, 160, 64, 32, 255, 64, 71, 0, 64, 71, 80, 64, 71, 160, 64, 71, 255, 64, 104, 0, 64, 104, 80, 64, 104, 160, 64, 104, 255, 64, 143, 0, 64, 143, 80, 64, 143, 160, 64, 143, 255, 64, 176, 0, 64, 176, 80, 64, 176, 160, 64, 176, 255, 64, 215, 0, 64, 215, 80, 64, 215, 160, 64, 215, 255, 64, 255, 0, 64, 255, 80, 64, 255, 160, 64, 255, 255, 111, 0, 0, 111, 0, 80, 111, 0, 160, 111, 0, 255, 111, 32, 0, 111, 32, 80, 111, 32, 160, 111, 32, 255, 111, 71, 0, 111, 71, 80, 111, 71, 160, 111, 71, 255, 111, 104, 0, 111, 104, 80, 111, 104, 160, 111, 104, 255, 111, 143, 0, 111, 143, 80, 111, 143, 160, 111, 143, 255, 111, 176, 0, 111, 176, 80, 111, 176, 160, 111, 176, 255, 111, 215, 0, 111, 215, 80, 111, 215, 160, 111, 215, 255, 111, 255, 0, 111, 255, 80, 111, 255, 160, 111, 255, 255, 143, 0, 0, 143, 0, 80, 143, 0, 160, 143, 0, 255, 143, 32, 0, 143, 32, 80, 143, 32, 160, 143, 32, 255, 143, 71, 0, 143, 71, 80, 143, 71, 160, 143, 71, 255, 143, 104, 0, 143, 104, 80, 143, 104, 160, 143, 104, 255, 143, 143, 0, 143, 143, 80, 143, 143, 160, 143, 143, 255, 143, 176, 0, 143, 176, 80, 143, 176, 160, 143, 176, 255, 143, 215, 0, 143, 215, 80, 143, 215, 160, 143, 215, 255, 143, 255, 0, 143, 255, 80, 143, 255, 160, 143, 255, 255, 176, 0, 0, 176, 0, 80, 176, 0, 160, 176, 0, 255, 176, 32, 0, 176, 32, 80, 176, 32, 160, 176, 32, 255, 176, 71, 0, 176, 71, 80, 176, 71, 160, 176, 71, 255, 176, 104, 0, 176, 104, 80, 176, 104, 160, 176, 104, 255, 176, 143, 0, 176, 143, 80, 176, 143, 160, 176, 143, 255, 176, 176, 0, 176, 176, 80, 176, 176, 160, 176, 176, 255, 176, 215, 0, 176, 215, 80, 176, 215, 160, 176, 215, 255, 176, 255, 0, 176, 255, 80, 176, 255, 160, 176, 255, 255, 208, 0, 0, 208, 0, 80, 208, 0, 160, 208, 0, 255, 208, 32, 0, 208, 32, 80, 208, 32, 160, 208, 32, 255, 208, 71, 0, 208, 71, 80, 208, 71, 160, 208, 71, 255, 208, 104, 0, 208, 104, 80, 208, 104, 160, 208, 104, 255, 208, 143, 0, 208, 143, 80, 208, 143, 160, 208, 143, 255, 208, 208, 0, 208, 208, 80, 208, 208, 160, 208, 208, 255, 208, 215, 0, 208, 215, 80, 208, 215, 160, 208, 215, 255, 208, 255, 0, 208, 255, 80, 208, 255, 160, 208, 255, 255, 255, 0, 0, 255, 0, 80, 255, 0, 160, 255, 0, 255, 255, 32, 0, 255, 32, 80, 255, 32, 160, 255, 32, 255, 255, 71, 0, 255, 71, 80, 255, 71, 160, 255, 71, 255, 255, 104, 0, 255, 104, 80, 255, 104, 160, 255, 104, 255, 255, 143, 0, 255, 143, 80, 255, 143, 160, 255, 143, 255, 255, 176, 0, 255, 176, 80, 255, 176, 160, 255, 176, 255, 255, 215, 0, 255, 215, 80, 255, 215, 160, 255, 215, 255, 255, 255, 0, 255, 255, 80, 255, 255, 160, 255, 255, 255 }; static void fget_line(gchar *s, int size, FILE *stream); static void parse_size(gchar *entry); static void parse_bgcolor(gchar *entry); static void parse_set(gchar *entry); static void parse_palette(gchar *entry); static void parse_object(gchar *entry); static void file_done(void); static guchar *fake_palette(void); /* No return value, unlike fgets() */ static void fget_line(gchar *s, int size, FILE *stream) { int k, c= '\0'; static int prev= '\0'; for(k= 0; k < size - 1; ++k) { c= fgetc(stream); if (k == 0 && c == '\n' && prev == '\r') { c= fgetc(stream); /* next character instead */ } if (c == EOF || c == '\n' || c == '\r') break; s[k]= c; } prev= c; s[k]= '\0'; } void parse_file(const char *filename) { FILE *fp; gchar *dirname; gchar line[1024]; int k, first_view= 0, script_flag= 0, set_flag= 0; gint width, height; guint line_no= 0; struct stat buf; clean_up(); /* clean up anything from previous configs */ fp= fopen(filename, "r"); if (fp == NULL) { gnome_app_message(GNOME_APP(app), strerror(errno)); return; } fstat(fileno(fp), &buf); /* move into the appropriate directory */ dirname= g_dirname(filename); chdir(dirname); g_free(dirname); config.filename= g_strdup(g_basename(filename)); config.objects= g_hash_table_new(NULL, NULL); config.labels= g_hash_table_new(NULL, NULL); config.alarms= g_hash_table_new(NULL, NULL); /* re-initialise walk-through counters */ views= 0; numpal= 0; numcol= 0; ckiss= 0; view= -1; /* re-initialise set view thingy */ gnome_appbar_clear_stack(GNOME_APPBAR(appbar)); gnome_appbar_set_default(GNOME_APPBAR(appbar), _("Reading configuration...")); for (line_no= 1; !feof(fp); ++line_no) { /* note line number for error reporting */ set_line(line_no); if (line_no % 1000 == 0) { gnome_appbar_set_progress_percentage(GNOME_APPBAR(appbar), (ftell(fp) * 1.0) / buf.st_size); /* Update GUI */ while (gtk_events_pending()) gtk_main_iteration(); } fget_line(line, 1024, fp); if (strlen(line) > 256) { /* just warn, we can parse longer lines */ log_warning(_("line is too long, should be 256 or less characters")); } switch (*line) { case '%': parse_palette(line); break; case '(': parse_size(line); break; case '[': parse_bgcolor(line); break; case '#': if (script_flag) { log_warning(_("object definition after @EventHandler")); } parse_object(line); break; case ';': if (line[1] == '@') { if (strstr(line + 2, "EventHandler") != NULL) { script_flag= 1; } else if (!script_flag) { log_warning(_("French KiSS instruction before @EventHandler")); } else { parse_action(line+2); } } /* Everything else is a comment */ break; case '$': /* following lines may be further set layout */ set_flag= 1; /* fall through */ case ' ': if (set_flag == 1) { parse_set(line); } break; default: break; } } fclose(fp); gnome_appbar_set_progress_percentage(GNOME_APPBAR(appbar), 0.0); file_done(); /* Yes, thanks for asking, these values are arbitrary, if you know a way to get better values at run-time please tell me ! */ width= MIN(gdk_screen_width() - 16, config.width + 32); height= MIN(gdk_screen_height() - 16, config.height + 105); gtk_window_set_default_size(GTK_WINDOW(app), width, height); gtk_drawing_area_size(GTK_DRAWING_AREA(area), config.width, config.height); /* Set description */ config.description= g_strdup_printf("%s%s%s%s", config.filename, (script_flag) ? _(" (FKiSS)") : "", (ckiss) ? _(" (CKiSS)") : "", (numcol > 255) ? _(" (Enhanced)") : ""); gnome_appbar_set_default(GNOME_APPBAR(appbar), config.description); /* Sort out set visibility */ for (k= SETS - 1; k >= 0; --k) { if (views & (1 << k)) { gtk_widget_set_sensitive(items[k], 1); gtk_widget_set_sensitive(buttons[k], 1); first_view= k; } else { gtk_widget_set_sensitive(items[k], 0); gtk_widget_set_sensitive(buttons[k], 0); } } /* preliminary events */ events(config.init); events(config.begin); events(config.version); /* kick start switch_view */ view= -1; switch_view(first_view); /* includes render */ } static void file_done(void) { int k; set_line(0); /* done parsing file, no line numbers in errors */ /* If there were no palettes, add a pseudo-palette. Warnings or errors have already been generated if any cells were not CKiSS */ if (numpal == 0) { for (k= 0; k < COLS; ++k) { palettes[k]= fake_palette(); } } config.rgb_buf = g_new0(guchar, config.row_stride * config.height); global_start= config.rgb_buf; global_end= config.rgb_buf + (config.row_stride * config.height); } /* Note that there is some fairly broken stuf out there, we want to parse correct sets perfectly, but doing a good job of incorrect sets is a nice-to-have consideration */ /* Hence the spacing is not assumed, if it's wrong that will usually be OK */ static void parse_set(gchar *entry) { KissObject *object; gchar *token; char across[6], down[6]; static guint objid; int x, y, pal= 0; if (*entry == '$') { if (view >= SETS - 1) { log_error(_("too many sets defined, maximum is %u"), SETS); return; } view++; if (entry[1] != '0') { pal = atoi(entry + 1); } if (pal < 0 || pal >= COLS) { log_error(_("palette set %d out of range"), pal); pal = 0; } config.pal_set[view]= pal; entry+= 2; /* skip to position header hopefully */ objid= 0; } for (token= entry; *token; token++) { if (*token == '*') { objid++; } else if (sscanf(token, "%5[-0-9],%5[-0-9]", across, down) == 2) { x= atoi(across); y= atoi(down); if ((object= object_id(objid)) != NULL) { object->ox[view]= x; object->oy[view]= y; /* set origin position */ object_set_location(object, x, y); } else { log_warning(_("object #%u positioned but not defined"), objid); } token += strlen(across) + strlen(down); objid++; } else if (!isspace(*token)) { log_warning(_("trailing garbage in set layout")); break; } } } static void parse_bgcolor(gchar *entry) { unsigned int color= 0; if (sscanf(entry, "[%u", &color) != 1) { log_error(_("invalid syntax in background declaration")); } else if (color > 255) { log_error(_("invalid color index in background declaration")); } else { config.bg_color= color; } } static void parse_size(gchar *entry) { int width= 640, height= 480; if (sscanf(entry, "(%u,%u)", &width, &height) != 2) { log_error(_("invalid syntax in size (width,height) declaration")); } config.height= height; config.width= width; config.row_stride= width * 3; } static guchar *fake_palette(void) { guchar *palette; palette= g_new0(guchar, 256 * 3); if (prefs.default_palette) { memcpy(palette, magic_palette, 256 * 3); } return palette; } static void parse_palette(gchar *entry) { char filename[32]; guchar buffer[768]; guchar *palette= NULL; FILE *fp; int bits, cols, groups, j, k; if (numpal == PALETTES) { log_warning(_("too many palettes defined, maximum is %u"), PALETTES); return; } sscanf(entry, "%% %20s ", filename); if ((fp= open_any(filename, "r")) == NULL) { /* Fake palette */ for (j = 0; j < COLS; ++j) { palettes[numpal * COLS + j]= fake_palette(); } numcol+= 255; numpal++; return; } fread(buffer, 32, 1, fp); if (strncmp((char *) buffer, "KiSS", 4)) { for (j= 0; j < COLS; j++) { palette= fake_palette(); for (k= 0; k < 16; ++k) { palette[k * 3] = (buffer[k * 2] >> 4) * 0x11; palette[k * 3 + 1] = (buffer[k * 2 + 1] & 0x0f) * 0x11; palette[k * 3 + 2] = (buffer[k * 2] & 0x0f) * 0x11; } palettes[numpal * COLS + j]= palette; fread(buffer, 32, 1, fp); /* next 16 colors @ 12-bit */ } numcol+= 15; } else { /* New-style palette file */ bits = buffer[5]; cols = CLAMP(buffer[8] + 256 * buffer[9], 1, 256); groups= CLAMP(buffer[10] + 256 * buffer[11], 1, COLS); if (bits == 24) { for (j= 0; j < COLS; ++j) { palette= fake_palette(); if (j < groups) { fread(palette, cols, 3, fp); } else if (j > 0) { memcpy(palette, palettes[numpal * COLS], cols * 3); } palettes[numpal * COLS + j]= palette; } } else if (bits == 12) { for (j= 0; j < COLS; ++j) { palette= fake_palette(); if (j < groups) { fread(buffer, cols, 2, fp); for (k= 0; k < cols; ++k) { palette[k * 3] = (buffer[k * 2] >> 4) * 0x11; palette[k * 3 + 1] = (buffer[k * 2 + 1] & 0x0f) * 0x11; palette[k * 3 + 2] = (buffer[k * 2] & 0x0f) * 0x11; } } else if (j > 0) { memcpy(palette, palettes[numpal * COLS], cols * 3); } palettes[numpal * COLS + j]= palette; } } else { log_error(_("palette \"%s\" has an unrecognised format"), filename); for (j = 0; j < COLS; ++j) { palettes[numpal * COLS + j]= fake_palette(); } } numcol+= cols - 1; } numpal++; /* in any case move on */ fclose(fp); } static void parse_object(gchar *entry) { unsigned int pal, vis, objid= 0, fix= 0, trans= 0; char pair[16], filename[32], *next; int digit; KissCell *cell; /* valid characters for a cell filename defined below */ if (sscanf(entry, "#%15[.0-9] %31[A-Za-z0-9~_.!-]", pair, filename) != 2) { log_error(_("incorrect object syntax")); return; } sscanf(pair, "%u.%u", &objid, &fix); if (fix > 32767) { log_warning(_("fix exceeds maximum of 32767")); fix= 32767; } next= strchr(entry, ';'); if (next != NULL) { *next= '\0'; /* Separate comments */ next= strchr(next + 1, '%'); if (next != NULL && (*(next+1) == 't' || *(next+1) == 'T')) trans= strtoul(next + 2, NULL, 10); } next= strchr(entry, '*'); if (next != NULL) { pal= strtoul(next + 1, NULL, 10); } else { pal= 0; } cell= cell_new(objid, pal, filename); if (cell == NULL) return; /* error already reported, abort */ if (cell->argb) { ckiss= 1; } if (cell->index && pal >= numpal) { log_error(_("cell uses non-existent palette %u"), pal); cell->palette= 0; } next= strchr(entry, ':'); if (next != NULL) { vis = 0; /* config will specify (even none) */ do { digit= *(next++) - '0'; if (digit >= 0 && digit < SETS) { vis |= (1 << digit); } } while (*next != '\0'); if (vis == 0) { if (prefs.ignore_colon) { vis= (1 << SETS) - 1; } log_warning(_("cell \"%s\" visiblity is ambiguous"), filename); } } else { /* by default cells are visible in all sets */ vis = (1 << SETS) - 1; } if (fix > cell->object->fix) { cell->object->fix= fix; } cell->visible= vis; cell->alpha = 255 - trans; views |= cell->visible; return; } gnomekiss-2.0/src/callbacks.c0000664000076400007640000004241610362261274013171 00000000000000/* GnomeKiss - A KiSS viewer for the GNOME desktop Copyright (C) 2000-2002 Nick Lamb 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 */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "callbacks.h" #include "interface.h" #include "support.h" #include "kiss.h" static int x1, y1, dragged; static int ox, oy; int mouse_x, mouse_y; void on_exit_activate (GtkMenuItem *menuitem, gpointer user_data) { clean_up(); lha_close(); gtk_main_quit(); } gboolean on_application_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) { clean_up(); lha_close(); gtk_main_quit(); return FALSE; } gboolean on_area_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data) { gint32 y, height; guchar *buffer; #if 0 /* Performance measurements */ struct timeval start_time, stop_time; long msecs; gettimeofday(&start_time, NULL); #endif if (config.rgb_buf == NULL) return FALSE; if (global_lock == KISS_PENDING) { /* Clear background */ buffer= global_start; while (buffer < global_start + config.row_stride ) { *(buffer++)= palettes[config.pal_set[view]][0]; *(buffer++)= palettes[config.pal_set[view]][1]; *(buffer++)= palettes[config.pal_set[view]][2]; } while (buffer < global_end) { memcpy(buffer, global_start, config.row_stride); buffer+= config.row_stride; } g_slist_foreach (cells, (GFunc) cell_render, NULL); global_end= config.rgb_buf; global_start= config.rgb_buf + (config.height * config.row_stride); } y= event->area.y; height= (y + event->area.height <= config.height) ? event->area.height : (config.height - y); gdk_draw_rgb_image (widget->window, widget->style->fg_gc[widget->state], 0, y, config.width, height, GDK_RGB_DITHER_NORMAL, config.rgb_buf + (y * config.row_stride), config.row_stride); #if 0 gettimeofday(&stop_time, NULL); msecs = (stop_time.tv_sec - start_time.tv_sec) * 1000 + (stop_time.tv_usec - start_time.tv_usec) / 1000; printf("%ld\n", msecs); #endif global_lock= KISS_DONE; /* Rendering done */ return TRUE; } gboolean on_area_configure_event (GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { return FALSE; } void on_set_activate (GtkMenuItem *menuitem, gpointer user_data) { gchar const *name; if (GTK_CHECK_MENU_ITEM(menuitem)->active) { name = gtk_widget_get_name((GtkWidget *)menuitem); switch_view (name[4] - '0'); } } void on_set_clicked (GtkToolButton *button, gpointer user_data) { gchar const *name; if (gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(button))) { name = gtk_widget_get_name((GtkWidget *)button); switch_view (name[8] - '0'); } } void on_group_activate (GtkMenuItem *menuitem, gpointer user_data) { gchar const *name; if (GTK_CHECK_MENU_ITEM(menuitem)->active) { name = gtk_widget_get_name((GtkWidget *)menuitem); switch_color (name[6] - '0'); } } void on_preferences_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_show (pref_dialog); } void on_about_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_show (about); } gboolean on_area_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { char *status_entry; if (event->type != GDK_BUTTON_PRESS) return FALSE; /* Update global mouse info */ mouse_x= event->x; mouse_y= event->y; x1= (int) event->x; y1= (int) event->y; config.selected= config.target= intersect(x1, y1); dragged= 0; if (config.target == NULL) { change_cursor(widget->window, GDK_X_CURSOR); return FALSE; } else { change_cursor(widget->window, GDK_HAND2); } ox = config.target->object->x[view]; oy = config.target->object->y[view]; status_entry= g_strdup_printf("%s #%u %s %d (%d, %d)", config.description, config.target->object->id, config.target->name, config.target->object->fix, config.target->object->x[view], config.target->object->y[view]); gnome_appbar_pop(GNOME_APPBAR(appbar)); gnome_appbar_push(GNOME_APPBAR(appbar), status_entry); events(config.target->object->press); events(config.target->events->press); /* If this object is MFO then we're done */ if (config.target->object->fix >= KISS_MFO) return FALSE; if (config.target->object->fix) { events(config.target->object->fixcatch); events(config.target->events->fixcatch); } if (config.target->object->fix == 0 || !prefs.catch_drop) { events(config.target->object->catch); events(config.target->events->catch); } if (config.target->object->fix > 0) { config.target->object->fix--; if (!config.target->object->fix) { events(config.target->object->unfix); events(config.target->events->unfix); } } return FALSE; } gboolean on_area_motion_notify_event (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) { int x2, y2; /* Update global mouse info */ gdk_window_get_pointer(event->window, &mouse_x, &mouse_y, NULL); if (config.target == NULL) return FALSE; x2= mouse_x; y2= mouse_y; if (config.target->object->fix >= KISS_MFO) { /* do nothing */ } else if (config.target->object->fix == 0) { render_object(config.target->object); object_set_location(config.target->object, ox + x2 - x1, oy + y2 - y1); render_object(config.target->object); } else if (dragged == 0) { dragged= 1; events(config.target->object->fixdrop); events(config.target->events->fixdrop); if (!prefs.catch_drop) { events(config.target->object->drop); events(config.target->events->drop); } } return FALSE; } gboolean on_area_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { int x2, y2; /* Update global mouse info */ mouse_x= event->x; mouse_y= event->y; change_cursor(widget->window, GDK_LEFT_PTR); if (config.target == NULL) return FALSE; if (config.target->object->fix == 0) { x2= (int) event->x; y2= (int) event->y; /* put object back to start location for collision check purposes */ render_object(config.target->object); object_set_location(config.target->object, ox, oy); object_move(config.target->object, ox + x2 - x1, oy + y2 - y1); } /* just in case object fix has changed due to the movement + collisions */ if (config.target->object->fix >= KISS_MFO) { /* do nothing */ } else if (config.target->object->fix == 0) { events(config.target->object->drop); events(config.target->events->drop); } else if (dragged == 0) { events(config.target->object->fixdrop); events(config.target->events->fixdrop); if (!prefs.catch_drop) { events(config.target->object->drop); events(config.target->events->drop); } } events(config.target->object->release); events(config.target->events->release); config.target= NULL; return FALSE; } void on_open_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_file_selection_complete(GTK_FILE_SELECTION(set_open), "*.lzh"); gtk_widget_show (set_open); } void on_set_open_ok (GtkButton *button, gpointer user_data) { char const *filename; gtk_widget_hide (set_open); filename= gtk_file_selection_get_filename(GTK_FILE_SELECTION(set_open)); open_either(filename); } void on_set_open_cancel (GtkButton *button, gpointer user_data) { gtk_widget_hide (set_open); } void on_open_config_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_file_selection_complete(GTK_FILE_SELECTION(config_open), "*.cnf"); gtk_widget_show (config_open); } void on_config_open_ok (GtkButton *button, gpointer user_data) { gchar const *filename; gtk_widget_hide (config_open); filename= gtk_file_selection_get_filename(GTK_FILE_SELECTION(config_open)); parse_file(filename); } void on_config_open_cancel (GtkButton *button, gpointer user_data) { gtk_widget_hide (config_open); } void on_close_activate (GtkMenuItem *menuitem, gpointer user_data) { events(config.end); clean_up(); } void on_open_add_on_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_file_selection_complete(GTK_FILE_SELECTION(add_open), "*.lzh"); gtk_widget_show (add_open); } void on_close_errors_clicked (GtkButton *button, gpointer user_data) { gtk_widget_hide(error_list); } void on_add_open_ok (GtkButton *button, gpointer user_data) { gchar const *filename; gtk_widget_hide (add_open); filename= gtk_file_selection_get_filename(GTK_FILE_SELECTION(add_open)); lha_extend(filename); } void on_add_open_cancel (GtkButton *button, gpointer user_data) { gtk_widget_hide (add_open); } gint on_preferences_close (GnomeDialog *gnomedialog, gpointer user_data) { gtk_widget_hide(pref_dialog); return TRUE; } void on_preferences_apply (GnomePropertyBox *gnomepropertybox, gint page, gpointer user_data) { gnome_config_set_bool("Sound/midi", prefs.midi); gnome_config_set_bool("Sound/esound", prefs.esound); gnome_config_set_bool("Diagnostics/error_list", prefs.error_list); gnome_config_set_bool("Diagnostics/trace", prefs.trace); gnome_config_set_bool("Diagnostics/warnings", prefs.warnings); gnome_config_set_bool("Features/ignore_colon", prefs.ignore_colon); gnome_config_set_bool("Features/default_palette", prefs.default_palette); gnome_config_set_bool("Features/fkiss_case", prefs.fkiss_case); gnome_config_set_bool("Features/catch_drop", prefs.catch_drop); gnome_config_set_int("Features/speed_factor", prefs.speed_factor); gnome_config_set_int("Features/min_timer", prefs.min_timer); gnome_config_set_string("Sound/midi_player", prefs.midi_player); gnome_config_sync(); } void on_pref_midi_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.midi = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_esound_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.esound = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_error_list_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.error_list = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_trace_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.trace = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_warnings_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.warnings = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_ignore_colon_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.ignore_colon = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_default_palette_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.default_palette = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_fkiss_case_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.fkiss_case = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_catch_drop_toggled (GtkToggleButton *togglebutton, gpointer user_data) { prefs.catch_drop = gtk_toggle_button_get_active(togglebutton); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_speed_factor_changed (GtkEditable *editable, gpointer user_data) { prefs.speed_factor = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_min_timer_changed (GtkEditable *editable, gpointer user_data) { prefs.min_timer = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editable)); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_pref_midi_player_changed (GtkEditable *editable, gpointer user_data) { g_free(prefs.midi_player); prefs.midi_player = gtk_editable_get_chars(editable, 0, -1); gnome_property_box_changed(GNOME_PROPERTY_BOX(pref_dialog)); } void on_application_drag_data_received (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer user_data) { char *filename; int k; filename= (char *) data->data; for (k= 0; k < data->length; ++k) { if (filename[k] == '\r') { filename[k]= '\0'; break; } } if ( !strncmp(filename, "file:", 5)) { open_either(filename + 5); } } void on_unfix_clicked (GtkToolButton *button, gpointer user_data) { if (config.selected && config.selected->object->fix > 1) { config.selected->object->fix= 1; /* will trigger unfix() on next click */ } } void on_clear_errors_clicked (GtkButton *button, gpointer user_data) { gtk_clist_clear(GTK_CLIST(error_clist)); } void on_error_list_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_show(error_list); } void on_unfix_activate (GtkMenuItem *menuitem, gpointer user_data) { if (config.selected && config.selected->object->fix > 1) { config.selected->object->fix= 1; /* will trigger unfix() on next click */ } } gnomekiss-2.0/Makefile.in0000664000076400007640000004671010364777446012404 00000000000000# Makefile.in generated by automake 1.9.5 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 = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/gnomekiss.spec.in $(top_srcdir)/configure AUTHORS \ COPYING ChangeLog INSTALL NEWS TODO depcomp install-sh missing \ mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = gnomekiss.spec 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@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_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_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = src po doc EXTRA_DIST = \ autogen.sh \ gnomekiss.spec \ gnomekiss.desktop \ gnomekiss.glade \ gnomekiss.gladep 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 gnomekiss.spec: $(top_builddir)/config.status $(srcdir)/gnomekiss.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ 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)/. $(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 $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -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) 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 mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local 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 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-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr 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-data-local 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-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ for pixmap in $(srcdir)/pixmaps/*; do \ if test -f $$pixmap; then \ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ fi \ done \ fi; \ $(mkinstalldirs) $(DESTDIR)$(datadir)/applications; \ $(INSTALL_DATA) gnomekiss.desktop $(DESTDIR)$(datadir)/applications; dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gnomekiss-2.0/po/0000777000076400007640000000000010365201124010777 500000000000000gnomekiss-2.0/po/en_GB.po0000664000076400007640000002537310365056620012252 00000000000000# British translation of GnomeKiSS # Copyright (C) 2002 Nick Lamb # Nick Lamb , 2001-2002 # msgid "" msgstr "" "Project-Id-Version: GnomeKiSS 1.5\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2006-01-23 04:37+0000\n" "PO-Revision-Date: 2002-05-29 07:28+0100\n" "Last-Translator: Nick Lamb \n" "Language-Team: English, British\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/interface.c:33 msgid "Open _Configuration..." msgstr "" #: src/interface.c:34 msgid "Open a different config file" msgstr "" #: src/interface.c:40 msgid "Open _Add-on..." msgstr "" #: src/interface.c:55 msgid "Set _0" msgstr "" #: src/interface.c:56 src/interface.c:456 msgid "Switch to set 0" msgstr "" #: src/interface.c:62 msgid "Set _1" msgstr "" #: src/interface.c:63 src/interface.c:469 msgid "Switch to set 1" msgstr "" #: src/interface.c:69 msgid "Set _2" msgstr "" #: src/interface.c:70 src/interface.c:482 msgid "Switch to set 2" msgstr "" #: src/interface.c:76 msgid "Set _3" msgstr "" #: src/interface.c:77 src/interface.c:495 msgid "Switch to set 3" msgstr "" #: src/interface.c:83 msgid "Set _4" msgstr "" #: src/interface.c:84 src/interface.c:508 msgid "Switch to set 4" msgstr "" #: src/interface.c:90 msgid "Set _5" msgstr "" #: src/interface.c:91 src/interface.c:521 msgid "Switch to set 5" msgstr "" #: src/interface.c:97 msgid "Set _6" msgstr "" #: src/interface.c:98 src/interface.c:534 msgid "Switch to set 6" msgstr "" #: src/interface.c:104 msgid "Set _7" msgstr "" #: src/interface.c:105 src/interface.c:547 msgid "Switch to set 7" msgstr "" #: src/interface.c:111 msgid "Set _8" msgstr "" #: src/interface.c:112 src/interface.c:560 msgid "Switch to set 8" msgstr "" #: src/interface.c:118 msgid "Set _9" msgstr "" #: src/interface.c:119 src/interface.c:573 msgid "Switch to set 9" msgstr "" #: src/interface.c:140 msgid "Group _0" msgstr "" #: src/interface.c:141 msgid "Use palette group 0" msgstr "" #: src/interface.c:147 msgid "Group _1" msgstr "" #: src/interface.c:148 msgid "Use palette group 1" msgstr "" #: src/interface.c:154 msgid "Group _2" msgstr "" #: src/interface.c:155 msgid "Use palette group 2" msgstr "" #: src/interface.c:161 msgid "Group _3" msgstr "" #: src/interface.c:162 msgid "Use palette group 3" msgstr "" #: src/interface.c:168 msgid "Group _4" msgstr "" #: src/interface.c:169 msgid "Use palette group 4" msgstr "" #: src/interface.c:175 msgid "Group _5" msgstr "" #: src/interface.c:176 msgid "Use palette group 5" msgstr "" #: src/interface.c:182 msgid "Group _6" msgstr "" #: src/interface.c:183 msgid "Use palette group 6" msgstr "" #: src/interface.c:189 msgid "Group _7" msgstr "" #: src/interface.c:190 msgid "Use palette group 7" msgstr "" #: src/interface.c:196 msgid "Group _8" msgstr "" #: src/interface.c:197 msgid "Use palette group 8" msgstr "" #: src/interface.c:203 msgid "Group _9" msgstr "" #: src/interface.c:204 msgid "Use palette group 9" msgstr "" #: src/interface.c:225 msgid "_Error list" msgstr "" #: src/interface.c:232 msgid "_Unfix" msgstr "" #: src/interface.c:258 msgid "_Colors" msgstr "_Colours" #: src/interface.c:265 msgid "_Tools" msgstr "" #: src/interface.c:308 msgid "GnomeKiss" msgstr "" #: src/interface.c:437 msgid "Open" msgstr "" #: src/interface.c:441 msgid "Open File" msgstr "" #: src/interface.c:449 msgid "0" msgstr "" #: src/interface.c:461 msgid "1" msgstr "" #: src/interface.c:474 msgid "2" msgstr "" #: src/interface.c:487 msgid "3" msgstr "" #: src/interface.c:500 msgid "4" msgstr "" #: src/interface.c:513 msgid "5" msgstr "" #: src/interface.c:526 msgid "6" msgstr "" #: src/interface.c:539 msgid "7" msgstr "" #: src/interface.c:552 msgid "8" msgstr "" #: src/interface.c:565 msgid "9" msgstr "" #: src/interface.c:584 msgid "Unfix" msgstr "" #: src/interface.c:588 msgid "Unfix current object" msgstr "" #: src/interface.c:742 msgid "Open KiSS Set" msgstr "" #: src/interface.c:785 msgid "Select Config file" msgstr "" #: src/interface.c:836 msgid "Error list" msgstr "" #: src/interface.c:859 msgid "File" msgstr "" #: src/interface.c:864 msgid "Line" msgstr "" #: src/interface.c:869 msgid "Message" msgstr "" #: src/interface.c:880 msgid "Close" msgstr "" #: src/interface.c:886 msgid "Clear" msgstr "" #: src/interface.c:924 msgid "Select Add-on" msgstr "" #: src/interface.c:993 msgid "Preferences" msgstr "" #: src/interface.c:1008 msgid "Play MIDI using external program" msgstr "" #: src/interface.c:1015 msgid "Play digital audio (needs GNOME audio)" msgstr "" #: src/interface.c:1028 msgid "Command that plays MIDI on your system e.g. playmidi -a" msgstr "" #: src/interface.c:1030 msgid "MIDI player" msgstr "" #: src/interface.c:1040 msgid "_Sound" msgstr "" #: src/interface.c:1051 msgid "Show error list (if any) after each doll loads" msgstr "" #: src/interface.c:1059 msgid "Trace actions at runtime" msgstr "" #: src/interface.c:1066 msgid "Include warnings as well as errors" msgstr "" #: src/interface.c:1073 msgid "_Diagnostics" msgstr "" #: src/interface.c:1084 msgid "Ignore lone colon (show cell in all sets)" msgstr "" #: src/interface.c:1091 msgid "Case insensitive FKiSS parser" msgstr "" #: src/interface.c:1098 msgid "Use PFK default palette (reload doll for effect)" msgstr "" #: src/interface.c:1105 msgid "Slow down factor" msgstr "" #: src/interface.c:1122 msgid "Minimum timer interval (ms)" msgstr "" #: src/interface.c:1139 msgid "No {catch,drop} triggered if object is fixed" msgstr "" #: src/interface.c:1146 msgid "\"_Features\"" msgstr "" #. TRANSLATORS: Replace this string with your names, one name per line. #: src/interface.c:1238 msgid "translator-credits" msgstr "" #: src/interface.c:1244 msgid "Gnomekiss" msgstr "" #: src/interface.c:1245 msgid "Copyright 2000-2005 Nick Lamb" msgstr "" #: src/interface.c:1246 msgid "A KiSS viewer for the GNOME desktop" msgstr "" #: src/interface.c:1247 msgid "" "This is free software; see the source for copying conditions. There is NO " "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." msgstr "" #: src/support.c:60 src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "" #: src/cell.c:130 #, c-format msgid "cell \"%s\" has unsupported color depth" msgstr "cell \"%s\" has unsupported colour depth" #: src/cell.c:143 #, c-format msgid "cell \"%s\" is too wide for the playfield" msgstr "" #: src/cell.c:147 #, c-format msgid "cell \"%s\" is too high for the playfield" msgstr "" #: src/cell.c:394 src/collision.c:99 #, c-format msgid "cell name \"%s\" is ambiguous" msgstr "" #: src/cell.c:411 #, c-format msgid "no object #%s defined in layout" msgstr "" #: src/cnf.c:161 msgid "Reading configuration..." msgstr "" #. just warn, we can parse longer lines #: src/cnf.c:178 msgid "line is too long, should be 256 or less characters" msgstr "" #: src/cnf.c:193 msgid "object definition after @EventHandler" msgstr "" #: src/cnf.c:202 msgid "French KiSS instruction before @EventHandler" msgstr "" #: src/cnf.c:238 msgid " (FKiSS)" msgstr "" #: src/cnf.c:239 msgid " (CKiSS)" msgstr "" #: src/cnf.c:240 msgid " (Enhanced)" msgstr "" #: src/cnf.c:301 #, c-format msgid "too many sets defined, maximum is %u" msgstr "" #: src/cnf.c:309 #, c-format msgid "palette set %d out of range" msgstr "" #: src/cnf.c:328 #, c-format msgid "object #%u positioned but not defined" msgstr "" #: src/cnf.c:333 msgid "trailing garbage in set layout" msgstr "" #: src/cnf.c:343 msgid "invalid syntax in background declaration" msgstr "" #: src/cnf.c:345 msgid "invalid color index in background declaration" msgstr "" #: src/cnf.c:355 msgid "invalid syntax in size (width,height) declaration" msgstr "" #: src/cnf.c:382 #, c-format msgid "too many palettes defined, maximum is %u" msgstr "" #: src/cnf.c:443 #, c-format msgid "palette \"%s\" has an unrecognised format" msgstr "" #: src/cnf.c:463 msgid "incorrect object syntax" msgstr "" #: src/cnf.c:469 msgid "fix exceeds maximum of 32767" msgstr "" #: src/cnf.c:497 #, c-format msgid "cell uses non-existent palette %u" msgstr "" #: src/cnf.c:514 #, c-format msgid "cell \"%s\" visiblity is ambiguous" msgstr "" #: src/collision.c:70 src/collision.c:119 src/french.c:166 src/french.c:212 #: src/french.c:240 src/french.c:260 src/french.c:342 src/french.c:362 #: src/french.c:421 #, fuzzy, c-format msgid "cell \"%s\" not loaded" msgstr "cell \"%s\" has unsupported colour depth" #: src/event.c:71 #, c-format msgid "label(%d) is undefined" msgstr "" #: src/event.c:182 #, c-format msgid "##skipped## " msgstr "" #: src/event.c:646 #, c-format msgid "DEBUG: %s\n" msgstr "" #: src/event.c:672 #, c-format msgid "WARNING: tried to execute \"%s\"\n" msgstr "" #: src/event.c:945 #, c-format msgid "Invalid action %d executed.\n" msgstr "" #: src/event.c:955 #, c-format msgid "French KiSS stack overflow.\n" msgstr "" #: src/french.c:104 #, c-format msgid "%s(%s) is not yet implemented" msgstr "" #: src/french.c:109 #, c-format msgid "%s(%s) has an incorrect number or type of parameters" msgstr "" #: src/french.c:173 src/french.c:219 src/french.c:247 src/french.c:267 #: src/french.c:349 src/french.c:369 src/french.c:428 #, c-format msgid "invalid object #%s" msgstr "" #: src/french.c:441 #, c-format msgid "FKiSS version %s not available" msgstr "" #: src/french.c:451 #, c-format msgid "%s(%s) is not a recognised action or event" msgstr "" #: src/french.c:475 #, c-format msgid "value \"%s\" out of range" msgstr "" #: src/french.c:490 #, c-format msgid "%s(%s) actions must be inside an event" msgstr "" #: src/french.c:492 #, c-format msgid "%s(%s) first parameter incorrect" msgstr "" #: src/french.c:494 #, c-format msgid "%s(%s) second parameter incorrect" msgstr "" #: src/french.c:496 #, c-format msgid "%s(%s) third parameter incorrect" msgstr "" #: src/french.c:498 #, c-format msgid "%s(%s) fourth parameter incorrect" msgstr "" #: src/french.c:524 msgid "trailing garbage or syntax error" msgstr "" #: src/french.c:1194 #, c-format msgid "%s(%s) event used more than once" msgstr "" #: src/lzh.c:50 #, c-format msgid "Couldn't create \"%s\": %s\n" msgstr "" #: src/lzh.c:52 msgid "Unable to create temporary directory" msgstr "" #: src/lzh.c:57 src/lzh.c:92 msgid "Unable to run external programs" msgstr "" #: src/lzh.c:62 src/lzh.c:96 msgid "You need LHA to unpack .LZH files" msgstr "" #: src/lzh.c:67 src/lzh.c:99 msgid "Can't load this .LZH file - perhaps it is corrupted?" msgstr "" #: src/lzh.c:71 src/lzh.c:101 msgid "Unknown error handling .LZH file" msgstr "" #: src/util.c:185 #, c-format msgid "filename \"%s\" is too long" msgstr "" #: src/util.c:191 #, c-format msgid "file not found \"%s\"" msgstr "" #: src/timer.c:81 #, c-format msgid "alarm(%u) is undefined" msgstr "" #: src/timer.c:88 #, c-format msgid "alarm(%u) has no actions" msgstr "" gnomekiss-2.0/po/ChangeLog0000664000076400007640000000000010351063200012451 00000000000000gnomekiss-2.0/po/es_ES.gmo0000664000076400007640000002171610365056620012437 00000000000000Þ•€­Ð Ņ Ú æ ï û  != 4_ *” ŋ !Ý ĸ  " $ & ( * , . 0 2 #4 4X  Ŧ ą Ë é ô  , E b l u ~ ‡  ™ Ē Ŧ ī ― )Æ "ð 0 5AI,e’ — ĄŊŋÖ óĸ &9@GNU\cjqx.ŪŋÏßïĸ/?O_$x ―0Þ#7K_s‡›ŊÃŨ!ũ !.%5'['ƒŦ Āá!ý3Mj‚(•1ū2ð%#'Iq($ķÛ úK3 ˆ”"Ŋ"Ō"õ7,P#}#Ą"Åčęėîðōôöøú,ü=)8g §,Âï!ĸ!1)&[ ‚Œ•ž§°đÂËÔÝ?æ$&"Kntˆ1°â čö *3 ^k†$š ŋ Ë Ũ ã ï û    +.7f}”ŦÂŲð5L0c&”%ŧ.áO`~œšØö2Pn Œ)­Ũ āí9õ6/ 7f ž *ž %į ( !6!-Q!%!Ĩ!Ä!-Ø!<";C")"-Đ"%Ũ"3ý"51#(g###ī# <hKzg7e[6V.m8Y9 $%'(*+,- wX/Us3a}oJv\n :€_5`u01Z#>q] ^=?k2~c"WiLMNOPQRST@b&dp!AB)DCFGHE{xy 4lrfIjt|; (CKiSS) (Enhanced) (FKiSS)"_Features"%s(%s) event used more than once%s(%s) first parameter incorrect%s(%s) fourth parameter incorrect%s(%s) has an incorrect number or type of parameters%s(%s) is not a recognised action or event%s(%s) is not yet implemented%s(%s) second parameter incorrect%s(%s) third parameter incorrect0123456789A KiSS viewer for the GNOME desktopCan't load this .LZH file - perhaps it is corrupted?Case insensitive FKiSS parserCloseCouldn't create "%s": %s Couldn't find pixmap file: %sDEBUG: %s FKiSS version %s not availableFileFrench KiSS instruction before @EventHandlerFrench KiSS stack overflow. GnomeKissGroup _0Group _1Group _2Group _3Group _4Group _5Group _6Group _7Group _8Group _9Ignore lone colon (show cell in all sets)Include warnings as well as errorsInvalid action %d executed. LineMIDI playerMessageMinimum timer interval (ms)No {catch,drop} triggered if object is fixedOpenOpen FileOpen KiSS SetOpen _Add-on...Open _Configuration...Open a different config filePreferencesReading configuration...Select Add-onSelect Config fileSet _0Set _1Set _2Set _3Set _4Set _5Set _6Set _7Set _8Set _9Show error list (if any) after each doll loadsSlow down factorSwitch to set 0Switch to set 1Switch to set 2Switch to set 3Switch to set 4Switch to set 5Switch to set 6Switch to set 7Switch to set 8Switch to set 9Trace actions at runtimeUnable to create temporary directoryUnable to run external programsUnknown error handling .LZH fileUse PFK default palette (reload doll for effect)Use palette group 0Use palette group 1Use palette group 2Use palette group 3Use palette group 4Use palette group 5Use palette group 6Use palette group 7Use palette group 8Use palette group 9WARNING: tried to execute "%s" You need LHA to unpack .LZH files_Colors_Diagnostics_Soundcell "%s" has unsupported color depthcell "%s" is too high for the playfieldcell "%s" is too wide for the playfieldcell "%s" not loadedcell "%s" visiblity is ambiguouscell name "%s" is ambiguouscell uses non-existent palette %ufile not found "%s"filename "%s" is too longfix exceeds maximum of 32767incorrect object syntaxinvalid object #%sinvalid syntax in background declarationinvalid syntax in size (width,height) declarationline is too long, should be 256 or less charactersobject definition after @EventHandlerpalette "%s" has an unrecognised formatpalette set %d out of rangetoo many palettes defined, maximum is %utoo many sets defined, maximum is %utrailing garbage in set layouttrailing garbage or syntax errorvalue "%s" out of rangeProject-Id-Version: GnomeKiSS 1.5 Report-Msgid-Bugs-To: POT-Creation-Date: 2006-01-23 04:37+0000 PO-Revision-Date: 2001-12-16 03:32+0100 Last-Translator: Amaya Rodrigo Sastre Language-Team: Spanish/Spain MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit (CKiSS) (Mejorado) (FKiSS)"Características"%s(%s) evento usado más de una vez%s(%s) primer parámetro incorrecto%s(%s) cuarto parámetro incorrecto%s(%s) tiene un número o tipo de parámetros incorrectos%s(%s) no es una acción o evento reconocidos%s(%s) todavía no está implementado%s(%s) segundo parámetro incorrecto%s(%s) tercer parámetro incorrecto0123456789Un visor de KiSS para el escritorio de GNOMENo puedo cargar este archivo LZH - ŋquizá está en mal estado?Analizador de FKISS que no toma en cuenta las mayúsculasCerrarNo se pudo crear "%s": %s No se pudo encontrar el archivo de pixmap %sDEPURACIÓN: %s Versión de FKiSS %s no disponibleArchivoInstrucción de French KiSS antes de @EventHandlerDesbordamiento de pila de French KiSS GnomeKissGrupo _0Grupo _1Grupo _2Grupo _3Grupo _4Grupo _5Grupo _6Grupo _7Grupo _8Grupo _9Ignorar columna vacía (mostrar la celda en todos los conjuntos)Incluír avisos además de los erroresSe ejecutó una acción inválida %d LíneaReproductor de MIDIMensajeInterválo mínimo del cronómetroNo se lanza {catch,drop} si el objeto está fijadoAbrirAbrir archivoAbrir conjunto KiSSAbrir un aņadidoAbrir _Configuración...Abrir un archivo de configuración distintoPreferenciasReleyendo la configuraciónSeleccionar aņadidoSeleccionar archivo de configuraciónConjunto _0Conjunto _1Conjunto _2Conjunto _3Conjunto _4Conjunto _5Conjunto _6Conjunto _7Conjunto _8Conjunto _9Mostrar lista de errores al cargar cada muņecaFactor de deceleraciónCambiar al conjunto _0Cambiar al conjunto _1Cambiar al conjunto _2Cambiar al conjunto _3Cambiar al conjunto _4Cambiar al conjunto _5Cambiar al conjunto _6Cambiar al conjunto _7Cambiar al conjunto _8Cambiar al conjunto _9Rastrear las acciones en el momento de ejecuciónImposible crear el directorio temporalImposible ejecutar programas externosError desconocido al manipular el archivo .LZHUso de la paleta PFK por defecto (recarguese la munņeca para obtener el efecto)Usar el conjunto de paletas 0Usar el conjunto de paletas 1Usar el conjunto de paletas 2Usar el conjunto de paletas 3Usar el conjunto de paletas 4Usar el conjunto de paletas 5Usar el conjunto de paletas 6Usar el conjunto de paletas 7Usar el conjunto de paletas 8Usar el conjunto de paletas 9AVISO: se intentó ejecutar "%s" Hace falta LHA para extraer archivos .LZH_Colores_Diagnóstico_Sonidola celda "%s" tiene una profundidad de color no soportadala celda "%s" es demasiado alta para el campo de juegola celda "%s" es demasiado ancha para el campo de juegola celda "%s" no está cargadala visibilidad de la celda "%s" es ambiguael nombre de la celda "%s" es ambiguola celda usa una paleta no existente: %uarchivo no encontrado "%s"el nombre de archivo "%s" es demasaido grandela fijación excede el máximo de 32767sintaxis incorrecta del objetoobjeto #%s inválidosintáxis inválida en la declaración del fondosintáxis inválida en la declaración del tamaņo (alto, ancho)línea demasiado larga, debería tener 256 caracteres o menosdefinicón de un objeto tras @EventHandlerla paleta "%s" tiene un formato no reconocidoconjunto de paletas %d fuera de rangoSe han definido demasiadas paletas, el máximo es %uSe han definido demasiados conjuntos, el máximo es %ubasura al final del esquema de conjuntosbasura al final o error de sintáxisvalor "%s" fuera de rangognomekiss-2.0/po/es_ES.po0000664000076400007640000003553510365056620012277 00000000000000# Spanish/Spain translation of PACKAGE. # Copyright (C) 2001 Free Software Foundation, Inc. # Amaya Rodrigo Sastre , 2001. # msgid "" msgstr "" "Project-Id-Version: GnomeKiSS 1.5\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2006-01-23 04:37+0000\n" "PO-Revision-Date: 2001-12-16 03:32+0100\n" "Last-Translator: Amaya Rodrigo Sastre \n" "Language-Team: Spanish/Spain \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/interface.c:33 msgid "Open _Configuration..." msgstr "Abrir _Configuración..." #: src/interface.c:34 msgid "Open a different config file" msgstr "Abrir un archivo de configuración distinto" #: src/interface.c:40 msgid "Open _Add-on..." msgstr "Abrir un aņadido" #: src/interface.c:55 msgid "Set _0" msgstr "Conjunto _0" #: src/interface.c:56 src/interface.c:456 msgid "Switch to set 0" msgstr "Cambiar al conjunto _0" #: src/interface.c:62 msgid "Set _1" msgstr "Conjunto _1" #: src/interface.c:63 src/interface.c:469 msgid "Switch to set 1" msgstr "Cambiar al conjunto _1" #: src/interface.c:69 msgid "Set _2" msgstr "Conjunto _2" #: src/interface.c:70 src/interface.c:482 msgid "Switch to set 2" msgstr "Cambiar al conjunto _2" #: src/interface.c:76 msgid "Set _3" msgstr "Conjunto _3" #: src/interface.c:77 src/interface.c:495 msgid "Switch to set 3" msgstr "Cambiar al conjunto _3" #: src/interface.c:83 msgid "Set _4" msgstr "Conjunto _4" #: src/interface.c:84 src/interface.c:508 msgid "Switch to set 4" msgstr "Cambiar al conjunto _4" #: src/interface.c:90 msgid "Set _5" msgstr "Conjunto _5" #: src/interface.c:91 src/interface.c:521 msgid "Switch to set 5" msgstr "Cambiar al conjunto _5" #: src/interface.c:97 msgid "Set _6" msgstr "Conjunto _6" #: src/interface.c:98 src/interface.c:534 msgid "Switch to set 6" msgstr "Cambiar al conjunto _6" #: src/interface.c:104 msgid "Set _7" msgstr "Conjunto _7" #: src/interface.c:105 src/interface.c:547 msgid "Switch to set 7" msgstr "Cambiar al conjunto _7" #: src/interface.c:111 msgid "Set _8" msgstr "Conjunto _8" #: src/interface.c:112 src/interface.c:560 msgid "Switch to set 8" msgstr "Cambiar al conjunto _8" #: src/interface.c:118 msgid "Set _9" msgstr "Conjunto _9" #: src/interface.c:119 src/interface.c:573 msgid "Switch to set 9" msgstr "Cambiar al conjunto _9" #: src/interface.c:140 msgid "Group _0" msgstr "Grupo _0" #: src/interface.c:141 msgid "Use palette group 0" msgstr "Usar el conjunto de paletas 0" #: src/interface.c:147 msgid "Group _1" msgstr "Grupo _1" #: src/interface.c:148 msgid "Use palette group 1" msgstr "Usar el conjunto de paletas 1" #: src/interface.c:154 msgid "Group _2" msgstr "Grupo _2" #: src/interface.c:155 msgid "Use palette group 2" msgstr "Usar el conjunto de paletas 2" #: src/interface.c:161 msgid "Group _3" msgstr "Grupo _3" #: src/interface.c:162 msgid "Use palette group 3" msgstr "Usar el conjunto de paletas 3" #: src/interface.c:168 msgid "Group _4" msgstr "Grupo _4" #: src/interface.c:169 msgid "Use palette group 4" msgstr "Usar el conjunto de paletas 4" #: src/interface.c:175 msgid "Group _5" msgstr "Grupo _5" #: src/interface.c:176 msgid "Use palette group 5" msgstr "Usar el conjunto de paletas 5" #: src/interface.c:182 msgid "Group _6" msgstr "Grupo _6" #: src/interface.c:183 msgid "Use palette group 6" msgstr "Usar el conjunto de paletas 6" #: src/interface.c:189 msgid "Group _7" msgstr "Grupo _7" #: src/interface.c:190 msgid "Use palette group 7" msgstr "Usar el conjunto de paletas 7" #: src/interface.c:196 msgid "Group _8" msgstr "Grupo _8" #: src/interface.c:197 msgid "Use palette group 8" msgstr "Usar el conjunto de paletas 8" #: src/interface.c:203 msgid "Group _9" msgstr "Grupo _9" #: src/interface.c:204 msgid "Use palette group 9" msgstr "Usar el conjunto de paletas 9" #: src/interface.c:225 #, fuzzy msgid "_Error list" msgstr "Errores" #: src/interface.c:232 msgid "_Unfix" msgstr "" #: src/interface.c:258 msgid "_Colors" msgstr "_Colores" #: src/interface.c:265 msgid "_Tools" msgstr "" #: src/interface.c:308 msgid "GnomeKiss" msgstr "GnomeKiss" #: src/interface.c:437 msgid "Open" msgstr "Abrir" #: src/interface.c:441 msgid "Open File" msgstr "Abrir archivo" #: src/interface.c:449 msgid "0" msgstr "0" #: src/interface.c:461 msgid "1" msgstr "1" #: src/interface.c:474 msgid "2" msgstr "2" #: src/interface.c:487 msgid "3" msgstr "3" #: src/interface.c:500 msgid "4" msgstr "4" #: src/interface.c:513 msgid "5" msgstr "5" #: src/interface.c:526 msgid "6" msgstr "6" #: src/interface.c:539 msgid "7" msgstr "7" #: src/interface.c:552 msgid "8" msgstr "8" #: src/interface.c:565 msgid "9" msgstr "9" #: src/interface.c:584 msgid "Unfix" msgstr "" #: src/interface.c:588 msgid "Unfix current object" msgstr "" #: src/interface.c:742 msgid "Open KiSS Set" msgstr "Abrir conjunto KiSS" #: src/interface.c:785 msgid "Select Config file" msgstr "Seleccionar archivo de configuración" #: src/interface.c:836 #, fuzzy msgid "Error list" msgstr "Errores" #: src/interface.c:859 msgid "File" msgstr "Archivo" #: src/interface.c:864 msgid "Line" msgstr "Línea" #: src/interface.c:869 msgid "Message" msgstr "Mensaje" #: src/interface.c:880 msgid "Close" msgstr "Cerrar" #: src/interface.c:886 msgid "Clear" msgstr "" #: src/interface.c:924 msgid "Select Add-on" msgstr "Seleccionar aņadido" #: src/interface.c:993 msgid "Preferences" msgstr "Preferencias" #: src/interface.c:1008 #, fuzzy msgid "Play MIDI using external program" msgstr "Imposible ejecutar programas externos" #: src/interface.c:1015 #, fuzzy msgid "Play digital audio (needs GNOME audio)" msgstr "Reproducir audio digital" #: src/interface.c:1028 msgid "Command that plays MIDI on your system e.g. playmidi -a" msgstr "" #: src/interface.c:1030 msgid "MIDI player" msgstr "Reproductor de MIDI" #: src/interface.c:1040 msgid "_Sound" msgstr "_Sonido" #: src/interface.c:1051 msgid "Show error list (if any) after each doll loads" msgstr "Mostrar lista de errores al cargar cada muņeca" #: src/interface.c:1059 msgid "Trace actions at runtime" msgstr "Rastrear las acciones en el momento de ejecución" #: src/interface.c:1066 msgid "Include warnings as well as errors" msgstr "Incluír avisos además de los errores" #: src/interface.c:1073 msgid "_Diagnostics" msgstr "_Diagnóstico" #: src/interface.c:1084 msgid "Ignore lone colon (show cell in all sets)" msgstr "Ignorar columna vacía (mostrar la celda en todos los conjuntos)" #: src/interface.c:1091 msgid "Case insensitive FKiSS parser" msgstr "Analizador de FKISS que no toma en cuenta las mayúsculas" #: src/interface.c:1098 msgid "Use PFK default palette (reload doll for effect)" msgstr "" "Uso de la paleta PFK por defecto (recarguese la munņeca para obtener el " "efecto)" #: src/interface.c:1105 msgid "Slow down factor" msgstr "Factor de deceleración" #: src/interface.c:1122 msgid "Minimum timer interval (ms)" msgstr "Interválo mínimo del cronómetro" #: src/interface.c:1139 msgid "No {catch,drop} triggered if object is fixed" msgstr "No se lanza {catch,drop} si el objeto está fijado" #: src/interface.c:1146 msgid "\"_Features\"" msgstr "\"Características\"" #. TRANSLATORS: Replace this string with your names, one name per line. #: src/interface.c:1238 msgid "translator-credits" msgstr "" #: src/interface.c:1244 #, fuzzy msgid "Gnomekiss" msgstr "GnomeKiss" #: src/interface.c:1245 #, fuzzy msgid "Copyright 2000-2005 Nick Lamb" msgstr "Copyright 2000-2001 Nick Lamb" #: src/interface.c:1246 msgid "A KiSS viewer for the GNOME desktop" msgstr "Un visor de KiSS para el escritorio de GNOME" #: src/interface.c:1247 msgid "" "This is free software; see the source for copying conditions. There is NO " "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." msgstr "" #: src/support.c:60 src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "No se pudo encontrar el archivo de pixmap %s" #: src/cell.c:130 #, c-format msgid "cell \"%s\" has unsupported color depth" msgstr "la celda \"%s\" tiene una profundidad de color no soportada" #: src/cell.c:143 #, c-format msgid "cell \"%s\" is too wide for the playfield" msgstr "la celda \"%s\" es demasiado ancha para el campo de juego" #: src/cell.c:147 #, c-format msgid "cell \"%s\" is too high for the playfield" msgstr "la celda \"%s\" es demasiado alta para el campo de juego" #: src/cell.c:394 src/collision.c:99 #, c-format msgid "cell name \"%s\" is ambiguous" msgstr "el nombre de la celda \"%s\" es ambiguo" #: src/cell.c:411 #, c-format msgid "no object #%s defined in layout" msgstr "" #: src/cnf.c:161 msgid "Reading configuration..." msgstr "Releyendo la configuración" #. just warn, we can parse longer lines #: src/cnf.c:178 msgid "line is too long, should be 256 or less characters" msgstr "línea demasiado larga, debería tener 256 caracteres o menos" #: src/cnf.c:193 msgid "object definition after @EventHandler" msgstr "definicón de un objeto tras @EventHandler" #: src/cnf.c:202 msgid "French KiSS instruction before @EventHandler" msgstr "Instrucción de French KiSS antes de @EventHandler" #: src/cnf.c:238 msgid " (FKiSS)" msgstr " (FKiSS)" #: src/cnf.c:239 msgid " (CKiSS)" msgstr " (CKiSS)" #: src/cnf.c:240 msgid " (Enhanced)" msgstr " (Mejorado)" #: src/cnf.c:301 #, c-format msgid "too many sets defined, maximum is %u" msgstr "Se han definido demasiados conjuntos, el máximo es %u" #: src/cnf.c:309 #, c-format msgid "palette set %d out of range" msgstr "conjunto de paletas %d fuera de rango" #: src/cnf.c:328 #, c-format msgid "object #%u positioned but not defined" msgstr "" #: src/cnf.c:333 msgid "trailing garbage in set layout" msgstr "basura al final del esquema de conjuntos" #: src/cnf.c:343 msgid "invalid syntax in background declaration" msgstr "sintáxis inválida en la declaración del fondo" #: src/cnf.c:345 #, fuzzy msgid "invalid color index in background declaration" msgstr "sintáxis inválida en la declaración del fondo" #: src/cnf.c:355 msgid "invalid syntax in size (width,height) declaration" msgstr "sintáxis inválida en la declaración del tamaņo (alto, ancho)" #: src/cnf.c:382 #, c-format msgid "too many palettes defined, maximum is %u" msgstr "Se han definido demasiadas paletas, el máximo es %u" #: src/cnf.c:443 #, c-format msgid "palette \"%s\" has an unrecognised format" msgstr "la paleta \"%s\" tiene un formato no reconocido" #: src/cnf.c:463 msgid "incorrect object syntax" msgstr "sintaxis incorrecta del objeto" #: src/cnf.c:469 msgid "fix exceeds maximum of 32767" msgstr "la fijación excede el máximo de 32767" #: src/cnf.c:497 #, c-format msgid "cell uses non-existent palette %u" msgstr "la celda usa una paleta no existente: %u" #: src/cnf.c:514 #, c-format msgid "cell \"%s\" visiblity is ambiguous" msgstr "la visibilidad de la celda \"%s\" es ambigua" #: src/collision.c:70 src/collision.c:119 src/french.c:166 src/french.c:212 #: src/french.c:240 src/french.c:260 src/french.c:342 src/french.c:362 #: src/french.c:421 #, c-format msgid "cell \"%s\" not loaded" msgstr "la celda \"%s\" no está cargada" #: src/event.c:71 #, fuzzy, c-format msgid "label(%d) is undefined" msgstr "la etiqueta(%u) no está definida" #: src/event.c:182 #, fuzzy, c-format msgid "##skipped## " msgstr "(ignorado) " #: src/event.c:646 #, c-format msgid "DEBUG: %s\n" msgstr "DEPURACIÓN: %s\n" #: src/event.c:672 #, c-format msgid "WARNING: tried to execute \"%s\"\n" msgstr "AVISO: se intentó ejecutar \"%s\"\n" #: src/event.c:945 #, c-format msgid "Invalid action %d executed.\n" msgstr "Se ejecutó una acción inválida %d\n" #: src/event.c:955 #, c-format msgid "French KiSS stack overflow.\n" msgstr "Desbordamiento de pila de French KiSS\n" #: src/french.c:104 #, c-format msgid "%s(%s) is not yet implemented" msgstr "%s(%s) todavía no está implementado" #: src/french.c:109 #, c-format msgid "%s(%s) has an incorrect number or type of parameters" msgstr "%s(%s) tiene un número o tipo de parámetros incorrectos" #: src/french.c:173 src/french.c:219 src/french.c:247 src/french.c:267 #: src/french.c:349 src/french.c:369 src/french.c:428 #, c-format msgid "invalid object #%s" msgstr "objeto #%s inválido" #: src/french.c:441 #, c-format msgid "FKiSS version %s not available" msgstr "Versión de FKiSS %s no disponible" #: src/french.c:451 #, c-format msgid "%s(%s) is not a recognised action or event" msgstr "%s(%s) no es una acción o evento reconocidos" #: src/french.c:475 #, c-format msgid "value \"%s\" out of range" msgstr "valor \"%s\" fuera de rango" #: src/french.c:490 #, fuzzy, c-format msgid "%s(%s) actions must be inside an event" msgstr "%s(%s) no es una acción o evento reconocidos" #: src/french.c:492 #, c-format msgid "%s(%s) first parameter incorrect" msgstr "%s(%s) primer parámetro incorrecto" #: src/french.c:494 #, c-format msgid "%s(%s) second parameter incorrect" msgstr "%s(%s) segundo parámetro incorrecto" #: src/french.c:496 #, c-format msgid "%s(%s) third parameter incorrect" msgstr "%s(%s) tercer parámetro incorrecto" #: src/french.c:498 #, c-format msgid "%s(%s) fourth parameter incorrect" msgstr "%s(%s) cuarto parámetro incorrecto" #: src/french.c:524 msgid "trailing garbage or syntax error" msgstr "basura al final o error de sintáxis" #: src/french.c:1194 #, c-format msgid "%s(%s) event used more than once" msgstr "%s(%s) evento usado más de una vez" #: src/lzh.c:50 #, c-format msgid "Couldn't create \"%s\": %s\n" msgstr "No se pudo crear \"%s\": %s\n" #: src/lzh.c:52 msgid "Unable to create temporary directory" msgstr "Imposible crear el directorio temporal" #: src/lzh.c:57 src/lzh.c:92 msgid "Unable to run external programs" msgstr "Imposible ejecutar programas externos" #: src/lzh.c:62 src/lzh.c:96 msgid "You need LHA to unpack .LZH files" msgstr "Hace falta LHA para extraer archivos .LZH" #: src/lzh.c:67 src/lzh.c:99 msgid "Can't load this .LZH file - perhaps it is corrupted?" msgstr "No puedo cargar este archivo LZH - ŋquizá está en mal estado?" #: src/lzh.c:71 src/lzh.c:101 msgid "Unknown error handling .LZH file" msgstr "Error desconocido al manipular el archivo .LZH" #: src/util.c:185 #, c-format msgid "filename \"%s\" is too long" msgstr "el nombre de archivo \"%s\" es demasaido grande" #: src/util.c:191 #, c-format msgid "file not found \"%s\"" msgstr "archivo no encontrado \"%s\"" #: src/timer.c:81 #, fuzzy, c-format msgid "alarm(%u) is undefined" msgstr "la etiqueta(%u) no está definida" #: src/timer.c:88 #, c-format msgid "alarm(%u) has no actions" msgstr "" #~ msgid "New" #~ msgstr "Nuevo" #~ msgid "New File" #~ msgstr "Nuevo Archivo" #~ msgid "Save" #~ msgstr "Guardar" #~ msgid "Save File" #~ msgstr "Guardar Archivo" #~ msgid "Couldn't create pixmap from file: %s" #~ msgstr "No se pudo crear el pixmap con el archivo %s" #~ msgid "Play MIDI (experimental)" #~ msgstr "Reproducir MIDI (experimental)" #~ msgid "Sorry cannot cancel music yet\n" #~ msgstr "Perdón, no se puede cancelar la música todavía\n" #~ msgid "object #%u exceeds object limit" #~ msgstr "objeto #%u se excede del límite de objetos" gnomekiss-2.0/po/es.po0000664000076400007640000003553510365056620011710 00000000000000# Spanish/Spain translation of PACKAGE. # Copyright (C) 2001 Free Software Foundation, Inc. # Amaya Rodrigo Sastre , 2001. # msgid "" msgstr "" "Project-Id-Version: GnomeKiSS 1.5\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2006-01-23 04:37+0000\n" "PO-Revision-Date: 2001-12-16 03:32+0100\n" "Last-Translator: Amaya Rodrigo Sastre \n" "Language-Team: Spanish/Spain \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/interface.c:33 msgid "Open _Configuration..." msgstr "Abrir _Configuración..." #: src/interface.c:34 msgid "Open a different config file" msgstr "Abrir un archivo de configuración distinto" #: src/interface.c:40 msgid "Open _Add-on..." msgstr "Abrir un aņadido" #: src/interface.c:55 msgid "Set _0" msgstr "Conjunto _0" #: src/interface.c:56 src/interface.c:456 msgid "Switch to set 0" msgstr "Cambiar al conjunto _0" #: src/interface.c:62 msgid "Set _1" msgstr "Conjunto _1" #: src/interface.c:63 src/interface.c:469 msgid "Switch to set 1" msgstr "Cambiar al conjunto _1" #: src/interface.c:69 msgid "Set _2" msgstr "Conjunto _2" #: src/interface.c:70 src/interface.c:482 msgid "Switch to set 2" msgstr "Cambiar al conjunto _2" #: src/interface.c:76 msgid "Set _3" msgstr "Conjunto _3" #: src/interface.c:77 src/interface.c:495 msgid "Switch to set 3" msgstr "Cambiar al conjunto _3" #: src/interface.c:83 msgid "Set _4" msgstr "Conjunto _4" #: src/interface.c:84 src/interface.c:508 msgid "Switch to set 4" msgstr "Cambiar al conjunto _4" #: src/interface.c:90 msgid "Set _5" msgstr "Conjunto _5" #: src/interface.c:91 src/interface.c:521 msgid "Switch to set 5" msgstr "Cambiar al conjunto _5" #: src/interface.c:97 msgid "Set _6" msgstr "Conjunto _6" #: src/interface.c:98 src/interface.c:534 msgid "Switch to set 6" msgstr "Cambiar al conjunto _6" #: src/interface.c:104 msgid "Set _7" msgstr "Conjunto _7" #: src/interface.c:105 src/interface.c:547 msgid "Switch to set 7" msgstr "Cambiar al conjunto _7" #: src/interface.c:111 msgid "Set _8" msgstr "Conjunto _8" #: src/interface.c:112 src/interface.c:560 msgid "Switch to set 8" msgstr "Cambiar al conjunto _8" #: src/interface.c:118 msgid "Set _9" msgstr "Conjunto _9" #: src/interface.c:119 src/interface.c:573 msgid "Switch to set 9" msgstr "Cambiar al conjunto _9" #: src/interface.c:140 msgid "Group _0" msgstr "Grupo _0" #: src/interface.c:141 msgid "Use palette group 0" msgstr "Usar el conjunto de paletas 0" #: src/interface.c:147 msgid "Group _1" msgstr "Grupo _1" #: src/interface.c:148 msgid "Use palette group 1" msgstr "Usar el conjunto de paletas 1" #: src/interface.c:154 msgid "Group _2" msgstr "Grupo _2" #: src/interface.c:155 msgid "Use palette group 2" msgstr "Usar el conjunto de paletas 2" #: src/interface.c:161 msgid "Group _3" msgstr "Grupo _3" #: src/interface.c:162 msgid "Use palette group 3" msgstr "Usar el conjunto de paletas 3" #: src/interface.c:168 msgid "Group _4" msgstr "Grupo _4" #: src/interface.c:169 msgid "Use palette group 4" msgstr "Usar el conjunto de paletas 4" #: src/interface.c:175 msgid "Group _5" msgstr "Grupo _5" #: src/interface.c:176 msgid "Use palette group 5" msgstr "Usar el conjunto de paletas 5" #: src/interface.c:182 msgid "Group _6" msgstr "Grupo _6" #: src/interface.c:183 msgid "Use palette group 6" msgstr "Usar el conjunto de paletas 6" #: src/interface.c:189 msgid "Group _7" msgstr "Grupo _7" #: src/interface.c:190 msgid "Use palette group 7" msgstr "Usar el conjunto de paletas 7" #: src/interface.c:196 msgid "Group _8" msgstr "Grupo _8" #: src/interface.c:197 msgid "Use palette group 8" msgstr "Usar el conjunto de paletas 8" #: src/interface.c:203 msgid "Group _9" msgstr "Grupo _9" #: src/interface.c:204 msgid "Use palette group 9" msgstr "Usar el conjunto de paletas 9" #: src/interface.c:225 #, fuzzy msgid "_Error list" msgstr "Errores" #: src/interface.c:232 msgid "_Unfix" msgstr "" #: src/interface.c:258 msgid "_Colors" msgstr "_Colores" #: src/interface.c:265 msgid "_Tools" msgstr "" #: src/interface.c:308 msgid "GnomeKiss" msgstr "GnomeKiss" #: src/interface.c:437 msgid "Open" msgstr "Abrir" #: src/interface.c:441 msgid "Open File" msgstr "Abrir archivo" #: src/interface.c:449 msgid "0" msgstr "0" #: src/interface.c:461 msgid "1" msgstr "1" #: src/interface.c:474 msgid "2" msgstr "2" #: src/interface.c:487 msgid "3" msgstr "3" #: src/interface.c:500 msgid "4" msgstr "4" #: src/interface.c:513 msgid "5" msgstr "5" #: src/interface.c:526 msgid "6" msgstr "6" #: src/interface.c:539 msgid "7" msgstr "7" #: src/interface.c:552 msgid "8" msgstr "8" #: src/interface.c:565 msgid "9" msgstr "9" #: src/interface.c:584 msgid "Unfix" msgstr "" #: src/interface.c:588 msgid "Unfix current object" msgstr "" #: src/interface.c:742 msgid "Open KiSS Set" msgstr "Abrir conjunto KiSS" #: src/interface.c:785 msgid "Select Config file" msgstr "Seleccionar archivo de configuración" #: src/interface.c:836 #, fuzzy msgid "Error list" msgstr "Errores" #: src/interface.c:859 msgid "File" msgstr "Archivo" #: src/interface.c:864 msgid "Line" msgstr "Línea" #: src/interface.c:869 msgid "Message" msgstr "Mensaje" #: src/interface.c:880 msgid "Close" msgstr "Cerrar" #: src/interface.c:886 msgid "Clear" msgstr "" #: src/interface.c:924 msgid "Select Add-on" msgstr "Seleccionar aņadido" #: src/interface.c:993 msgid "Preferences" msgstr "Preferencias" #: src/interface.c:1008 #, fuzzy msgid "Play MIDI using external program" msgstr "Imposible ejecutar programas externos" #: src/interface.c:1015 #, fuzzy msgid "Play digital audio (needs GNOME audio)" msgstr "Reproducir audio digital" #: src/interface.c:1028 msgid "Command that plays MIDI on your system e.g. playmidi -a" msgstr "" #: src/interface.c:1030 msgid "MIDI player" msgstr "Reproductor de MIDI" #: src/interface.c:1040 msgid "_Sound" msgstr "_Sonido" #: src/interface.c:1051 msgid "Show error list (if any) after each doll loads" msgstr "Mostrar lista de errores al cargar cada muņeca" #: src/interface.c:1059 msgid "Trace actions at runtime" msgstr "Rastrear las acciones en el momento de ejecución" #: src/interface.c:1066 msgid "Include warnings as well as errors" msgstr "Incluír avisos además de los errores" #: src/interface.c:1073 msgid "_Diagnostics" msgstr "_Diagnóstico" #: src/interface.c:1084 msgid "Ignore lone colon (show cell in all sets)" msgstr "Ignorar columna vacía (mostrar la celda en todos los conjuntos)" #: src/interface.c:1091 msgid "Case insensitive FKiSS parser" msgstr "Analizador de FKISS que no toma en cuenta las mayúsculas" #: src/interface.c:1098 msgid "Use PFK default palette (reload doll for effect)" msgstr "" "Uso de la paleta PFK por defecto (recarguese la munņeca para obtener el " "efecto)" #: src/interface.c:1105 msgid "Slow down factor" msgstr "Factor de deceleración" #: src/interface.c:1122 msgid "Minimum timer interval (ms)" msgstr "Interválo mínimo del cronómetro" #: src/interface.c:1139 msgid "No {catch,drop} triggered if object is fixed" msgstr "No se lanza {catch,drop} si el objeto está fijado" #: src/interface.c:1146 msgid "\"_Features\"" msgstr "\"Características\"" #. TRANSLATORS: Replace this string with your names, one name per line. #: src/interface.c:1238 msgid "translator-credits" msgstr "" #: src/interface.c:1244 #, fuzzy msgid "Gnomekiss" msgstr "GnomeKiss" #: src/interface.c:1245 #, fuzzy msgid "Copyright 2000-2005 Nick Lamb" msgstr "Copyright 2000-2001 Nick Lamb" #: src/interface.c:1246 msgid "A KiSS viewer for the GNOME desktop" msgstr "Un visor de KiSS para el escritorio de GNOME" #: src/interface.c:1247 msgid "" "This is free software; see the source for copying conditions. There is NO " "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." msgstr "" #: src/support.c:60 src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "No se pudo encontrar el archivo de pixmap %s" #: src/cell.c:130 #, c-format msgid "cell \"%s\" has unsupported color depth" msgstr "la celda \"%s\" tiene una profundidad de color no soportada" #: src/cell.c:143 #, c-format msgid "cell \"%s\" is too wide for the playfield" msgstr "la celda \"%s\" es demasiado ancha para el campo de juego" #: src/cell.c:147 #, c-format msgid "cell \"%s\" is too high for the playfield" msgstr "la celda \"%s\" es demasiado alta para el campo de juego" #: src/cell.c:394 src/collision.c:99 #, c-format msgid "cell name \"%s\" is ambiguous" msgstr "el nombre de la celda \"%s\" es ambiguo" #: src/cell.c:411 #, c-format msgid "no object #%s defined in layout" msgstr "" #: src/cnf.c:161 msgid "Reading configuration..." msgstr "Releyendo la configuración" #. just warn, we can parse longer lines #: src/cnf.c:178 msgid "line is too long, should be 256 or less characters" msgstr "línea demasiado larga, debería tener 256 caracteres o menos" #: src/cnf.c:193 msgid "object definition after @EventHandler" msgstr "definicón de un objeto tras @EventHandler" #: src/cnf.c:202 msgid "French KiSS instruction before @EventHandler" msgstr "Instrucción de French KiSS antes de @EventHandler" #: src/cnf.c:238 msgid " (FKiSS)" msgstr " (FKiSS)" #: src/cnf.c:239 msgid " (CKiSS)" msgstr " (CKiSS)" #: src/cnf.c:240 msgid " (Enhanced)" msgstr " (Mejorado)" #: src/cnf.c:301 #, c-format msgid "too many sets defined, maximum is %u" msgstr "Se han definido demasiados conjuntos, el máximo es %u" #: src/cnf.c:309 #, c-format msgid "palette set %d out of range" msgstr "conjunto de paletas %d fuera de rango" #: src/cnf.c:328 #, c-format msgid "object #%u positioned but not defined" msgstr "" #: src/cnf.c:333 msgid "trailing garbage in set layout" msgstr "basura al final del esquema de conjuntos" #: src/cnf.c:343 msgid "invalid syntax in background declaration" msgstr "sintáxis inválida en la declaración del fondo" #: src/cnf.c:345 #, fuzzy msgid "invalid color index in background declaration" msgstr "sintáxis inválida en la declaración del fondo" #: src/cnf.c:355 msgid "invalid syntax in size (width,height) declaration" msgstr "sintáxis inválida en la declaración del tamaņo (alto, ancho)" #: src/cnf.c:382 #, c-format msgid "too many palettes defined, maximum is %u" msgstr "Se han definido demasiadas paletas, el máximo es %u" #: src/cnf.c:443 #, c-format msgid "palette \"%s\" has an unrecognised format" msgstr "la paleta \"%s\" tiene un formato no reconocido" #: src/cnf.c:463 msgid "incorrect object syntax" msgstr "sintaxis incorrecta del objeto" #: src/cnf.c:469 msgid "fix exceeds maximum of 32767" msgstr "la fijación excede el máximo de 32767" #: src/cnf.c:497 #, c-format msgid "cell uses non-existent palette %u" msgstr "la celda usa una paleta no existente: %u" #: src/cnf.c:514 #, c-format msgid "cell \"%s\" visiblity is ambiguous" msgstr "la visibilidad de la celda \"%s\" es ambigua" #: src/collision.c:70 src/collision.c:119 src/french.c:166 src/french.c:212 #: src/french.c:240 src/french.c:260 src/french.c:342 src/french.c:362 #: src/french.c:421 #, c-format msgid "cell \"%s\" not loaded" msgstr "la celda \"%s\" no está cargada" #: src/event.c:71 #, fuzzy, c-format msgid "label(%d) is undefined" msgstr "la etiqueta(%u) no está definida" #: src/event.c:182 #, fuzzy, c-format msgid "##skipped## " msgstr "(ignorado) " #: src/event.c:646 #, c-format msgid "DEBUG: %s\n" msgstr "DEPURACIÓN: %s\n" #: src/event.c:672 #, c-format msgid "WARNING: tried to execute \"%s\"\n" msgstr "AVISO: se intentó ejecutar \"%s\"\n" #: src/event.c:945 #, c-format msgid "Invalid action %d executed.\n" msgstr "Se ejecutó una acción inválida %d\n" #: src/event.c:955 #, c-format msgid "French KiSS stack overflow.\n" msgstr "Desbordamiento de pila de French KiSS\n" #: src/french.c:104 #, c-format msgid "%s(%s) is not yet implemented" msgstr "%s(%s) todavía no está implementado" #: src/french.c:109 #, c-format msgid "%s(%s) has an incorrect number or type of parameters" msgstr "%s(%s) tiene un número o tipo de parámetros incorrectos" #: src/french.c:173 src/french.c:219 src/french.c:247 src/french.c:267 #: src/french.c:349 src/french.c:369 src/french.c:428 #, c-format msgid "invalid object #%s" msgstr "objeto #%s inválido" #: src/french.c:441 #, c-format msgid "FKiSS version %s not available" msgstr "Versión de FKiSS %s no disponible" #: src/french.c:451 #, c-format msgid "%s(%s) is not a recognised action or event" msgstr "%s(%s) no es una acción o evento reconocidos" #: src/french.c:475 #, c-format msgid "value \"%s\" out of range" msgstr "valor \"%s\" fuera de rango" #: src/french.c:490 #, fuzzy, c-format msgid "%s(%s) actions must be inside an event" msgstr "%s(%s) no es una acción o evento reconocidos" #: src/french.c:492 #, c-format msgid "%s(%s) first parameter incorrect" msgstr "%s(%s) primer parámetro incorrecto" #: src/french.c:494 #, c-format msgid "%s(%s) second parameter incorrect" msgstr "%s(%s) segundo parámetro incorrecto" #: src/french.c:496 #, c-format msgid "%s(%s) third parameter incorrect" msgstr "%s(%s) tercer parámetro incorrecto" #: src/french.c:498 #, c-format msgid "%s(%s) fourth parameter incorrect" msgstr "%s(%s) cuarto parámetro incorrecto" #: src/french.c:524 msgid "trailing garbage or syntax error" msgstr "basura al final o error de sintáxis" #: src/french.c:1194 #, c-format msgid "%s(%s) event used more than once" msgstr "%s(%s) evento usado más de una vez" #: src/lzh.c:50 #, c-format msgid "Couldn't create \"%s\": %s\n" msgstr "No se pudo crear \"%s\": %s\n" #: src/lzh.c:52 msgid "Unable to create temporary directory" msgstr "Imposible crear el directorio temporal" #: src/lzh.c:57 src/lzh.c:92 msgid "Unable to run external programs" msgstr "Imposible ejecutar programas externos" #: src/lzh.c:62 src/lzh.c:96 msgid "You need LHA to unpack .LZH files" msgstr "Hace falta LHA para extraer archivos .LZH" #: src/lzh.c:67 src/lzh.c:99 msgid "Can't load this .LZH file - perhaps it is corrupted?" msgstr "No puedo cargar este archivo LZH - ŋquizá está en mal estado?" #: src/lzh.c:71 src/lzh.c:101 msgid "Unknown error handling .LZH file" msgstr "Error desconocido al manipular el archivo .LZH" #: src/util.c:185 #, c-format msgid "filename \"%s\" is too long" msgstr "el nombre de archivo \"%s\" es demasaido grande" #: src/util.c:191 #, c-format msgid "file not found \"%s\"" msgstr "archivo no encontrado \"%s\"" #: src/timer.c:81 #, fuzzy, c-format msgid "alarm(%u) is undefined" msgstr "la etiqueta(%u) no está definida" #: src/timer.c:88 #, c-format msgid "alarm(%u) has no actions" msgstr "" #~ msgid "New" #~ msgstr "Nuevo" #~ msgid "New File" #~ msgstr "Nuevo Archivo" #~ msgid "Save" #~ msgstr "Guardar" #~ msgid "Save File" #~ msgstr "Guardar Archivo" #~ msgid "Couldn't create pixmap from file: %s" #~ msgstr "No se pudo crear el pixmap con el archivo %s" #~ msgid "Play MIDI (experimental)" #~ msgstr "Reproducir MIDI (experimental)" #~ msgid "Sorry cannot cancel music yet\n" #~ msgstr "Perdón, no se puede cancelar la música todavía\n" #~ msgid "object #%u exceeds object limit" #~ msgstr "objeto #%u se excede del límite de objetos" gnomekiss-2.0/po/POTFILES.in0000664000076400007640000000032210364771050012500 00000000000000# List of source files containing translatable strings. src/main.c src/interface.c src/callbacks.c src/support.c src/cell.c src/cnf.c src/collision.c src/event.c src/french.c src/lzh.c src/util.c src/timer.c gnomekiss-2.0/po/gnomekiss.pot0000664000076400007640000002535710365056620013465 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2006-01-23 04:37+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/interface.c:33 msgid "Open _Configuration..." msgstr "" #: src/interface.c:34 msgid "Open a different config file" msgstr "" #: src/interface.c:40 msgid "Open _Add-on..." msgstr "" #: src/interface.c:55 msgid "Set _0" msgstr "" #: src/interface.c:56 src/interface.c:456 msgid "Switch to set 0" msgstr "" #: src/interface.c:62 msgid "Set _1" msgstr "" #: src/interface.c:63 src/interface.c:469 msgid "Switch to set 1" msgstr "" #: src/interface.c:69 msgid "Set _2" msgstr "" #: src/interface.c:70 src/interface.c:482 msgid "Switch to set 2" msgstr "" #: src/interface.c:76 msgid "Set _3" msgstr "" #: src/interface.c:77 src/interface.c:495 msgid "Switch to set 3" msgstr "" #: src/interface.c:83 msgid "Set _4" msgstr "" #: src/interface.c:84 src/interface.c:508 msgid "Switch to set 4" msgstr "" #: src/interface.c:90 msgid "Set _5" msgstr "" #: src/interface.c:91 src/interface.c:521 msgid "Switch to set 5" msgstr "" #: src/interface.c:97 msgid "Set _6" msgstr "" #: src/interface.c:98 src/interface.c:534 msgid "Switch to set 6" msgstr "" #: src/interface.c:104 msgid "Set _7" msgstr "" #: src/interface.c:105 src/interface.c:547 msgid "Switch to set 7" msgstr "" #: src/interface.c:111 msgid "Set _8" msgstr "" #: src/interface.c:112 src/interface.c:560 msgid "Switch to set 8" msgstr "" #: src/interface.c:118 msgid "Set _9" msgstr "" #: src/interface.c:119 src/interface.c:573 msgid "Switch to set 9" msgstr "" #: src/interface.c:140 msgid "Group _0" msgstr "" #: src/interface.c:141 msgid "Use palette group 0" msgstr "" #: src/interface.c:147 msgid "Group _1" msgstr "" #: src/interface.c:148 msgid "Use palette group 1" msgstr "" #: src/interface.c:154 msgid "Group _2" msgstr "" #: src/interface.c:155 msgid "Use palette group 2" msgstr "" #: src/interface.c:161 msgid "Group _3" msgstr "" #: src/interface.c:162 msgid "Use palette group 3" msgstr "" #: src/interface.c:168 msgid "Group _4" msgstr "" #: src/interface.c:169 msgid "Use palette group 4" msgstr "" #: src/interface.c:175 msgid "Group _5" msgstr "" #: src/interface.c:176 msgid "Use palette group 5" msgstr "" #: src/interface.c:182 msgid "Group _6" msgstr "" #: src/interface.c:183 msgid "Use palette group 6" msgstr "" #: src/interface.c:189 msgid "Group _7" msgstr "" #: src/interface.c:190 msgid "Use palette group 7" msgstr "" #: src/interface.c:196 msgid "Group _8" msgstr "" #: src/interface.c:197 msgid "Use palette group 8" msgstr "" #: src/interface.c:203 msgid "Group _9" msgstr "" #: src/interface.c:204 msgid "Use palette group 9" msgstr "" #: src/interface.c:225 msgid "_Error list" msgstr "" #: src/interface.c:232 msgid "_Unfix" msgstr "" #: src/interface.c:258 msgid "_Colors" msgstr "" #: src/interface.c:265 msgid "_Tools" msgstr "" #: src/interface.c:308 msgid "GnomeKiss" msgstr "" #: src/interface.c:437 msgid "Open" msgstr "" #: src/interface.c:441 msgid "Open File" msgstr "" #: src/interface.c:449 msgid "0" msgstr "" #: src/interface.c:461 msgid "1" msgstr "" #: src/interface.c:474 msgid "2" msgstr "" #: src/interface.c:487 msgid "3" msgstr "" #: src/interface.c:500 msgid "4" msgstr "" #: src/interface.c:513 msgid "5" msgstr "" #: src/interface.c:526 msgid "6" msgstr "" #: src/interface.c:539 msgid "7" msgstr "" #: src/interface.c:552 msgid "8" msgstr "" #: src/interface.c:565 msgid "9" msgstr "" #: src/interface.c:584 msgid "Unfix" msgstr "" #: src/interface.c:588 msgid "Unfix current object" msgstr "" #: src/interface.c:742 msgid "Open KiSS Set" msgstr "" #: src/interface.c:785 msgid "Select Config file" msgstr "" #: src/interface.c:836 msgid "Error list" msgstr "" #: src/interface.c:859 msgid "File" msgstr "" #: src/interface.c:864 msgid "Line" msgstr "" #: src/interface.c:869 msgid "Message" msgstr "" #: src/interface.c:880 msgid "Close" msgstr "" #: src/interface.c:886 msgid "Clear" msgstr "" #: src/interface.c:924 msgid "Select Add-on" msgstr "" #: src/interface.c:993 msgid "Preferences" msgstr "" #: src/interface.c:1008 msgid "Play MIDI using external program" msgstr "" #: src/interface.c:1015 msgid "Play digital audio (needs GNOME audio)" msgstr "" #: src/interface.c:1028 msgid "Command that plays MIDI on your system e.g. playmidi -a" msgstr "" #: src/interface.c:1030 msgid "MIDI player" msgstr "" #: src/interface.c:1040 msgid "_Sound" msgstr "" #: src/interface.c:1051 msgid "Show error list (if any) after each doll loads" msgstr "" #: src/interface.c:1059 msgid "Trace actions at runtime" msgstr "" #: src/interface.c:1066 msgid "Include warnings as well as errors" msgstr "" #: src/interface.c:1073 msgid "_Diagnostics" msgstr "" #: src/interface.c:1084 msgid "Ignore lone colon (show cell in all sets)" msgstr "" #: src/interface.c:1091 msgid "Case insensitive FKiSS parser" msgstr "" #: src/interface.c:1098 msgid "Use PFK default palette (reload doll for effect)" msgstr "" #: src/interface.c:1105 msgid "Slow down factor" msgstr "" #: src/interface.c:1122 msgid "Minimum timer interval (ms)" msgstr "" #: src/interface.c:1139 msgid "No {catch,drop} triggered if object is fixed" msgstr "" #: src/interface.c:1146 msgid "\"_Features\"" msgstr "" #. TRANSLATORS: Replace this string with your names, one name per line. #: src/interface.c:1238 msgid "translator-credits" msgstr "" #: src/interface.c:1244 msgid "Gnomekiss" msgstr "" #: src/interface.c:1245 msgid "Copyright 2000-2005 Nick Lamb" msgstr "" #: src/interface.c:1246 msgid "A KiSS viewer for the GNOME desktop" msgstr "" #: src/interface.c:1247 msgid "" "This is free software; see the source for copying conditions. There is NO " "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." msgstr "" #: src/support.c:60 src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "" #: src/cell.c:130 #, c-format msgid "cell \"%s\" has unsupported color depth" msgstr "" #: src/cell.c:143 #, c-format msgid "cell \"%s\" is too wide for the playfield" msgstr "" #: src/cell.c:147 #, c-format msgid "cell \"%s\" is too high for the playfield" msgstr "" #: src/cell.c:394 src/collision.c:99 #, c-format msgid "cell name \"%s\" is ambiguous" msgstr "" #: src/cell.c:411 #, c-format msgid "no object #%s defined in layout" msgstr "" #: src/cnf.c:161 msgid "Reading configuration..." msgstr "" #. just warn, we can parse longer lines #: src/cnf.c:178 msgid "line is too long, should be 256 or less characters" msgstr "" #: src/cnf.c:193 msgid "object definition after @EventHandler" msgstr "" #: src/cnf.c:202 msgid "French KiSS instruction before @EventHandler" msgstr "" #: src/cnf.c:238 msgid " (FKiSS)" msgstr "" #: src/cnf.c:239 msgid " (CKiSS)" msgstr "" #: src/cnf.c:240 msgid " (Enhanced)" msgstr "" #: src/cnf.c:301 #, c-format msgid "too many sets defined, maximum is %u" msgstr "" #: src/cnf.c:309 #, c-format msgid "palette set %d out of range" msgstr "" #: src/cnf.c:328 #, c-format msgid "object #%u positioned but not defined" msgstr "" #: src/cnf.c:333 msgid "trailing garbage in set layout" msgstr "" #: src/cnf.c:343 msgid "invalid syntax in background declaration" msgstr "" #: src/cnf.c:345 msgid "invalid color index in background declaration" msgstr "" #: src/cnf.c:355 msgid "invalid syntax in size (width,height) declaration" msgstr "" #: src/cnf.c:382 #, c-format msgid "too many palettes defined, maximum is %u" msgstr "" #: src/cnf.c:443 #, c-format msgid "palette \"%s\" has an unrecognised format" msgstr "" #: src/cnf.c:463 msgid "incorrect object syntax" msgstr "" #: src/cnf.c:469 msgid "fix exceeds maximum of 32767" msgstr "" #: src/cnf.c:497 #, c-format msgid "cell uses non-existent palette %u" msgstr "" #: src/cnf.c:514 #, c-format msgid "cell \"%s\" visiblity is ambiguous" msgstr "" #: src/collision.c:70 src/collision.c:119 src/french.c:166 src/french.c:212 #: src/french.c:240 src/french.c:260 src/french.c:342 src/french.c:362 #: src/french.c:421 #, c-format msgid "cell \"%s\" not loaded" msgstr "" #: src/event.c:71 #, c-format msgid "label(%d) is undefined" msgstr "" #: src/event.c:182 #, c-format msgid "##skipped## " msgstr "" #: src/event.c:646 #, c-format msgid "DEBUG: %s\n" msgstr "" #: src/event.c:672 #, c-format msgid "WARNING: tried to execute \"%s\"\n" msgstr "" #: src/event.c:945 #, c-format msgid "Invalid action %d executed.\n" msgstr "" #: src/event.c:955 #, c-format msgid "French KiSS stack overflow.\n" msgstr "" #: src/french.c:104 #, c-format msgid "%s(%s) is not yet implemented" msgstr "" #: src/french.c:109 #, c-format msgid "%s(%s) has an incorrect number or type of parameters" msgstr "" #: src/french.c:173 src/french.c:219 src/french.c:247 src/french.c:267 #: src/french.c:349 src/french.c:369 src/french.c:428 #, c-format msgid "invalid object #%s" msgstr "" #: src/french.c:441 #, c-format msgid "FKiSS version %s not available" msgstr "" #: src/french.c:451 #, c-format msgid "%s(%s) is not a recognised action or event" msgstr "" #: src/french.c:475 #, c-format msgid "value \"%s\" out of range" msgstr "" #: src/french.c:490 #, c-format msgid "%s(%s) actions must be inside an event" msgstr "" #: src/french.c:492 #, c-format msgid "%s(%s) first parameter incorrect" msgstr "" #: src/french.c:494 #, c-format msgid "%s(%s) second parameter incorrect" msgstr "" #: src/french.c:496 #, c-format msgid "%s(%s) third parameter incorrect" msgstr "" #: src/french.c:498 #, c-format msgid "%s(%s) fourth parameter incorrect" msgstr "" #: src/french.c:524 msgid "trailing garbage or syntax error" msgstr "" #: src/french.c:1194 #, c-format msgid "%s(%s) event used more than once" msgstr "" #: src/lzh.c:50 #, c-format msgid "Couldn't create \"%s\": %s\n" msgstr "" #: src/lzh.c:52 msgid "Unable to create temporary directory" msgstr "" #: src/lzh.c:57 src/lzh.c:92 msgid "Unable to run external programs" msgstr "" #: src/lzh.c:62 src/lzh.c:96 msgid "You need LHA to unpack .LZH files" msgstr "" #: src/lzh.c:67 src/lzh.c:99 msgid "Can't load this .LZH file - perhaps it is corrupted?" msgstr "" #: src/lzh.c:71 src/lzh.c:101 msgid "Unknown error handling .LZH file" msgstr "" #: src/util.c:185 #, c-format msgid "filename \"%s\" is too long" msgstr "" #: src/util.c:191 #, c-format msgid "file not found \"%s\"" msgstr "" #: src/timer.c:81 #, c-format msgid "alarm(%u) is undefined" msgstr "" #: src/timer.c:88 #, c-format msgid "alarm(%u) has no actions" msgstr "" gnomekiss-2.0/po/es.gmo0000664000076400007640000002171610365056620012050 00000000000000Þ•€­Ð Ņ Ú æ ï û  != 4_ *” ŋ !Ý ĸ  " $ & ( * , . 0 2 #4 4X  Ŧ ą Ë é ô  , E b l u ~ ‡  ™ Ē Ŧ ī ― )Æ "ð 0 5AI,e’ — ĄŊŋÖ óĸ &9@GNU\cjqx.ŪŋÏßïĸ/?O_$x ―0Þ#7K_s‡›ŊÃŨ!ũ !.%5'['ƒŦ Āá!ý3Mj‚(•1ū2ð%#'Iq($ķÛ úK3 ˆ”"Ŋ"Ō"õ7,P#}#Ą"Åčęėîðōôöøú,ü=)8g §,Âï!ĸ!1)&[ ‚Œ•ž§°đÂËÔÝ?æ$&"Kntˆ1°â čö *3 ^k†$š ŋ Ë Ũ ã ï û    +.7f}”ŦÂŲð5L0c&”%ŧ.áO`~œšØö2Pn Œ)­Ũ āí9õ6/ 7f ž *ž %į ( !6!-Q!%!Ĩ!Ä!-Ø!<";C")"-Đ"%Ũ"3ý"51#(g###ī# <hKzg7e[6V.m8Y9 $%'(*+,- wX/Us3a}oJv\n :€_5`u01Z#>q] ^=?k2~c"WiLMNOPQRST@b&dp!AB)DCFGHE{xy 4lrfIjt|; (CKiSS) (Enhanced) (FKiSS)"_Features"%s(%s) event used more than once%s(%s) first parameter incorrect%s(%s) fourth parameter incorrect%s(%s) has an incorrect number or type of parameters%s(%s) is not a recognised action or event%s(%s) is not yet implemented%s(%s) second parameter incorrect%s(%s) third parameter incorrect0123456789A KiSS viewer for the GNOME desktopCan't load this .LZH file - perhaps it is corrupted?Case insensitive FKiSS parserCloseCouldn't create "%s": %s Couldn't find pixmap file: %sDEBUG: %s FKiSS version %s not availableFileFrench KiSS instruction before @EventHandlerFrench KiSS stack overflow. GnomeKissGroup _0Group _1Group _2Group _3Group _4Group _5Group _6Group _7Group _8Group _9Ignore lone colon (show cell in all sets)Include warnings as well as errorsInvalid action %d executed. LineMIDI playerMessageMinimum timer interval (ms)No {catch,drop} triggered if object is fixedOpenOpen FileOpen KiSS SetOpen _Add-on...Open _Configuration...Open a different config filePreferencesReading configuration...Select Add-onSelect Config fileSet _0Set _1Set _2Set _3Set _4Set _5Set _6Set _7Set _8Set _9Show error list (if any) after each doll loadsSlow down factorSwitch to set 0Switch to set 1Switch to set 2Switch to set 3Switch to set 4Switch to set 5Switch to set 6Switch to set 7Switch to set 8Switch to set 9Trace actions at runtimeUnable to create temporary directoryUnable to run external programsUnknown error handling .LZH fileUse PFK default palette (reload doll for effect)Use palette group 0Use palette group 1Use palette group 2Use palette group 3Use palette group 4Use palette group 5Use palette group 6Use palette group 7Use palette group 8Use palette group 9WARNING: tried to execute "%s" You need LHA to unpack .LZH files_Colors_Diagnostics_Soundcell "%s" has unsupported color depthcell "%s" is too high for the playfieldcell "%s" is too wide for the playfieldcell "%s" not loadedcell "%s" visiblity is ambiguouscell name "%s" is ambiguouscell uses non-existent palette %ufile not found "%s"filename "%s" is too longfix exceeds maximum of 32767incorrect object syntaxinvalid object #%sinvalid syntax in background declarationinvalid syntax in size (width,height) declarationline is too long, should be 256 or less charactersobject definition after @EventHandlerpalette "%s" has an unrecognised formatpalette set %d out of rangetoo many palettes defined, maximum is %utoo many sets defined, maximum is %utrailing garbage in set layouttrailing garbage or syntax errorvalue "%s" out of rangeProject-Id-Version: GnomeKiSS 1.5 Report-Msgid-Bugs-To: POT-Creation-Date: 2006-01-23 04:37+0000 PO-Revision-Date: 2001-12-16 03:32+0100 Last-Translator: Amaya Rodrigo Sastre Language-Team: Spanish/Spain MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit (CKiSS) (Mejorado) (FKiSS)"Características"%s(%s) evento usado más de una vez%s(%s) primer parámetro incorrecto%s(%s) cuarto parámetro incorrecto%s(%s) tiene un número o tipo de parámetros incorrectos%s(%s) no es una acción o evento reconocidos%s(%s) todavía no está implementado%s(%s) segundo parámetro incorrecto%s(%s) tercer parámetro incorrecto0123456789Un visor de KiSS para el escritorio de GNOMENo puedo cargar este archivo LZH - ŋquizá está en mal estado?Analizador de FKISS que no toma en cuenta las mayúsculasCerrarNo se pudo crear "%s": %s No se pudo encontrar el archivo de pixmap %sDEPURACIÓN: %s Versión de FKiSS %s no disponibleArchivoInstrucción de French KiSS antes de @EventHandlerDesbordamiento de pila de French KiSS GnomeKissGrupo _0Grupo _1Grupo _2Grupo _3Grupo _4Grupo _5Grupo _6Grupo _7Grupo _8Grupo _9Ignorar columna vacía (mostrar la celda en todos los conjuntos)Incluír avisos además de los erroresSe ejecutó una acción inválida %d LíneaReproductor de MIDIMensajeInterválo mínimo del cronómetroNo se lanza {catch,drop} si el objeto está fijadoAbrirAbrir archivoAbrir conjunto KiSSAbrir un aņadidoAbrir _Configuración...Abrir un archivo de configuración distintoPreferenciasReleyendo la configuraciónSeleccionar aņadidoSeleccionar archivo de configuraciónConjunto _0Conjunto _1Conjunto _2Conjunto _3Conjunto _4Conjunto _5Conjunto _6Conjunto _7Conjunto _8Conjunto _9Mostrar lista de errores al cargar cada muņecaFactor de deceleraciónCambiar al conjunto _0Cambiar al conjunto _1Cambiar al conjunto _2Cambiar al conjunto _3Cambiar al conjunto _4Cambiar al conjunto _5Cambiar al conjunto _6Cambiar al conjunto _7Cambiar al conjunto _8Cambiar al conjunto _9Rastrear las acciones en el momento de ejecuciónImposible crear el directorio temporalImposible ejecutar programas externosError desconocido al manipular el archivo .LZHUso de la paleta PFK por defecto (recarguese la munņeca para obtener el efecto)Usar el conjunto de paletas 0Usar el conjunto de paletas 1Usar el conjunto de paletas 2Usar el conjunto de paletas 3Usar el conjunto de paletas 4Usar el conjunto de paletas 5Usar el conjunto de paletas 6Usar el conjunto de paletas 7Usar el conjunto de paletas 8Usar el conjunto de paletas 9AVISO: se intentó ejecutar "%s" Hace falta LHA para extraer archivos .LZH_Colores_Diagnóstico_Sonidola celda "%s" tiene una profundidad de color no soportadala celda "%s" es demasiado alta para el campo de juegola celda "%s" es demasiado ancha para el campo de juegola celda "%s" no está cargadala visibilidad de la celda "%s" es ambiguael nombre de la celda "%s" es ambiguola celda usa una paleta no existente: %uarchivo no encontrado "%s"el nombre de archivo "%s" es demasaido grandela fijación excede el máximo de 32767sintaxis incorrecta del objetoobjeto #%s inválidosintáxis inválida en la declaración del fondosintáxis inválida en la declaración del tamaņo (alto, ancho)línea demasiado larga, debería tener 256 caracteres o menosdefinicón de un objeto tras @EventHandlerla paleta "%s" tiene un formato no reconocidoconjunto de paletas %d fuera de rangoSe han definido demasiadas paletas, el máximo es %uSe han definido demasiados conjuntos, el máximo es %ubasura al final del esquema de conjuntosbasura al final o error de sintáxisvalor "%s" fuera de rangognomekiss-2.0/po/Makefile.in.in0000644000076400007640000001637410364777436013427 00000000000000# 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 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ libdir = @libdir@ localedir = $(libdir)/locale gnulocaledir = $(datadir)/locale gettextsrcdir = $(datadir)/glib-2.0/gettext/po subdir = po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ CC = @CC@ GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ INCLUDES = -I.. -I$(top_srcdir)/intl COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) SOURCES = POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ $(POFILES) $(GMOFILES) $(SOURCES) POTFILES = \ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ INSTOBJEXT = @INSTOBJEXT@ .SUFFIXES: .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .c.o: $(COMPILE) $< .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`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: $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ --add-comments --keyword=_ --keyword=N_ \ --files-from=$(srcdir)/POTFILES.in \ && test ! -f $(GETTEXT_PACKAGE).po \ || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ fi @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ case "$$cat" in \ *.gmo) destdir=$(gnulocaledir);; \ *) destdir=$(localedir);; \ esac; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $$dir; \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ fi; \ if test -r $$cat; then \ $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ else \ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ fi; \ if test -r $$cat.m; then \ $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ if test -r $(srcdir)/$$cat.m ; then \ $(INSTALL_DATA) $(srcdir)/$$cat.m \ $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ true; \ fi; \ fi; \ done if test "$(PACKAGE)" = "glib"; then \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ fi; \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ done if test "$(PACKAGE)" = "glib"; then \ rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ fi check: all dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m 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 $(GMOFILES) distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) dist distdir: update-po $(DISTFILES) dists="$(DISTFILES)"; \ for file in $$dists; do \ ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ cd $(srcdir); \ catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ echo "$$lang:"; \ if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$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 $$cat failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done # POTFILES is created from POTFILES.in by stripping comments, empty lines # and Intltool tags (enclosed in square brackets), and appending a full # relative path to them POTFILES: POTFILES.in ( if test 'x$(srcdir)' != 'x.'; then \ posrcprefix='$(top_srcdir)/'; \ else \ posrcprefix="../"; \ fi; \ rm -f $@-t $@ \ && (sed -e '/^#/d' \ -e "s/^\[.*\] +//" \ -e '/^[ ]*$$/d' \ -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | sed -e '$$s/\\$$//') > $@-t \ && chmod a-w $@-t \ && mv $@-t $@ ) Makefile: Makefile.in.in ../config.status POTFILES cd .. \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(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: gnomekiss-2.0/po/en_GB.gmo0000664000076400007640000000077310365056620012413 00000000000000Þ•4L`a%i;Ë&Ô_Colorscell "%s" has unsupported color depthProject-Id-Version: GnomeKiSS 1.5 Report-Msgid-Bugs-To: POT-Creation-Date: 2006-01-23 04:37+0000 PO-Revision-Date: 2002-05-29 07:28+0100 Last-Translator: Nick Lamb Language-Team: English, British MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit _Colourscell "%s" has unsupported colour depthgnomekiss-2.0/gnomekiss.spec0000664000076400007640000000140110364777464013176 00000000000000Summary: Gnome KiSS viewer Name: gnomekiss Version: 2.0 Release: 1 Source0: %{name}-%{version}.tar.gz License: GPL Group: Amusements/Games BuildRoot: %{_builddir}/%{name}-root %description GnomeKiSS is a viewer for all KiSS paper dolls. Cherry KiSS and Enhanced Palette are supported, with full alpha transparency and FKiSS. %prep %setup -q %build %configure make %{_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/gnomekiss /usr/share/applications/gnomekiss.desktop /usr/share/pixmaps/gnomekiss/gnome-kiss.png /usr/share/pixmaps/gnomekiss/besito_sinfondo.png %{_mandir}/man1/* %doc COPYING doc/COMPATIBILITY AUTHORS README NEWS ChangeLog gnomekiss-2.0/README0000664000076400007640000001075110351065503011167 00000000000000What is GnomeKiss? GnomeKiss is an implementation of French-KiSS for the GNOME desktop environment, using GNOME, GTK+ and the X Window System. French KiSS is an enhanced KiSS/GS for scriptable dolls, where KiSS is an abbreviation for Kisekae Set System (or something). The primary author of GnomeKiSS is Nick Lamb, Overview (the upside) * KISS/GS GnomeKiSS 1.0 and onwards have all the features and behaviour needed to play with all existing "official" KiSS sets as far as I know. * Enhanced Palette & Cherry KiSS GnomeKiSS can load every kind of CEL file that I could lay my hands on, that means Cherry KiSS and Enhanced Palette sets will load. Both the old-style and new-style CEL types described in KiSS/GS are also supported of course. * Transparency GnomeKiSS has true transparency, using alpha not stippling, and this improvement is very noticeable for semi-transparent clothes, and for effects in some KiSS sets. Transparency can be set with the ;%t128 syntax in a configuration file, or at run time from FKiSS scripts. * Palette groups Palette groups are implemented as specified in KiSS/GS and there is an option in the preferences dialog for compatability with the behaviour of Windows PlayFKiSS 0.8x for dolls with no palette or insufficient palette information. * FKiSS 1.0, 2.0, 2.1, 3.0 scripting With a few minor exceptions noted later all events and actions from FKiSS 1.0 through 3.0 are included in GnomeKiSS. FKiSS 3.0 variables are also implemented, with an optional extension permitting variable names of any length (this will probably be a feature of FKiSS 4.0). * Sound and music RIFF PCM (ie .WAV) and Sun u-law (.AU) audio will work in dolls which make use of it, but only via the Gnome ESD player. If none of your other Gnome apps have working sound, neither will GnomeKiSS. MIDI support requires an external program which can be run with a single parameter (the name of a MIDI file to play). You can use any suitable program by specifying the name in the Sound Preferences. * Packaged dolls Sets can be opened from within a compressed archive, .LZH of the type commonly found on KiSS artist's sites and big collections. For this to work you need an extra application "lha" in your path which is used by GnomeKiSS to undo the archive. Use "Open..." to open such an archive, and "Open Configuration..." to choose from the one or more layouts included with each set. Dealing with add-on sets is still a bit complicated. You should open the base set in the usual way (you may choose Cancel when offered a choice of configurations if you don't want to view the base doll) for each add-on archive use "Open Add-on..." and then open any of the CNF files using "Open Configuration..." * Error reporting You can enable or disable reporting of errors from the Preferences dialog, in the Diagnostics tab. Most common typographic and syntactic errors in KiSS/GS and FKiSS are detected and reported by GnomeKiSS. When errors occur while processing a configuration (.CNF) the filename and line number are recorded so that you can easily find and correct the mistake. Problems reported by GnomeKiSS include, but are not limited to: - References to cells which don't exist or were never loaded - Incorrect KiSS/GS lines e.g. (640*480) is not valid - Cell filenames which match more than one loaded cell - Excessively long lines (no more than 256 characters per line) - Filenames longer than the 8.3 limit specified in KiSS/GS - Unknown actions and events Warnings (less serious problems which do not prevent a doll from working as intended) are indicated by an asterisk in the line number field. A future version of GnomeKiSS will improve this part of the software. Limitations (the downside) The support for LZH archives is less complete than in other modern viewers, so add-on sets are hard to manage, and you can't deal with recursive archives (LZH files which contain further LZH files) even though it might look like you can. This version doesn't have editing support, even the rudimentary kind often provided for editing layout in a CNF file. If you are a KiSS artist or interested in becoming one you need another editor. The overflow() FKiSS event is only triggered for division by zero and modulo zero operations. Other overflows are currently ignored or have no effect. The actions viewport() and windowsize() are only partially implemented in this version. Neither of these features are widely used by KiSS artists although they were described in the original FKiSS documentation. Nick. gnomekiss-2.0/TODO0000664000076400007640000000051410364721040010772 00000000000000fix remaining GNOME 2 issues ? auto-resize correctly ? did that break ? add "popt" argument parsing add "Recently Used ..." feature? do HIG checks for app, especially error dialog? open CNF stuff, just a list? show text files ? etc. BUGS / ISSUES in specific KiSS sets ? * rogue.lzh "episode list feature" - control pop-ups gnomekiss-2.0/mkinstalldirs0000755000076400007640000000370410364777436013136 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here gnomekiss-2.0/gnomekiss.spec.in0000664000076400007640000000140710364777430013602 00000000000000Summary: Gnome KiSS viewer Name: gnomekiss Version: @VERSION@ Release: 1 Source0: %{name}-%{version}.tar.gz License: GPL Group: Amusements/Games BuildRoot: %{_builddir}/%{name}-root %description GnomeKiSS is a viewer for all KiSS paper dolls. Cherry KiSS and Enhanced Palette are supported, with full alpha transparency and FKiSS. %prep %setup -q %build %configure make %{_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/gnomekiss /usr/share/applications/gnomekiss.desktop /usr/share/pixmaps/gnomekiss/gnome-kiss.png /usr/share/pixmaps/gnomekiss/besito_sinfondo.png %{_mandir}/man1/* %doc COPYING doc/COMPATIBILITY AUTHORS README NEWS ChangeLog gnomekiss-2.0/Makefile.am0000664000076400007640000000152310364774461012356 00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = src po doc EXTRA_DIST = \ autogen.sh \ gnomekiss.spec \ gnomekiss.desktop \ gnomekiss.glade \ gnomekiss.gladep install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ for pixmap in $(srcdir)/pixmaps/*; do \ if test -f $$pixmap; then \ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ fi \ done \ fi; \ $(mkinstalldirs) $(DESTDIR)$(datadir)/applications; \ $(INSTALL_DATA) gnomekiss.desktop $(DESTDIR)$(datadir)/applications; dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi gnomekiss-2.0/aclocal.m40000664000076400007640000014351410364770166012167 00000000000000# generated automatically by aclocal 1.9.5 -*- 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. # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) 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 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright ÂĐ 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [$4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005 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.5])]) # 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 /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 gnomekiss-2.0/COPYING0000644000076400007640000004311010351063307011333 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. gnomekiss-2.0/NEWS0000664000076400007640000000370310351065463011012 00000000000000v2.0 Now a GNOME 2 application, instead of 1.x v1.5 and onwards See changelog for details of improvements in new versions v1.4: See changelog, better error dialog, contributions from Didier Poliart v1.3: See changelog, pushes Debian work by Amaya upstream v1.2: See changelog, added a way to choose a MIDI player without re-compiling v1.1: See changelog v1.0: See changelog, last tiny fixes and the original goals of GnomeKiSS are met. v0.9.1: See changelog, primarily performance and bug fixes. Notably speck.lzh the new doll from Dov Sherman requires at least this version for the biggest configuration to load at all. v0.9: See changelog, also the Glade XML source for the GnomeKiSS GUI was not previously included in tarballs due to an oversight. It is now. Removed a bug with potential security implications Preferences implemented for the first time v0.8.1: See changelog, essentially two minor bugs have been fixed and a few more FKiSS 3.0 features were implemented. v0.8: This version finally displays palette sets correctly, although it does not include a UI for them. FKiSS 3.0 support is now effectively complete and work in the next versions will concentrate on usability and bug fixes. Much less RAM is used in loading sets, if you have limited memory available this version should run more smoothly than previous versions. A crude interface is provided for using add-on sets. v0.7: The status line is being used at last, using middle or right mouse button you can click on any cell and see the object #, cell filename and current fix value. The rest of the time it shows you which CNF file you are viewing (the doll .LZH filename if any is shown in the titlebar) Extensive error correction and reporting has been integrated. Artists can see at a glance if there are any problems with their configuration and GnomeKiSS will "fix" common errors so that dolls you download which haven't been thoroughly checked are more likely to work first time. gnomekiss-2.0/configure0000775000076400007640000075165610364770202012241 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59. # # Copyright (C) 2003 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+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH 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 fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; 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'` # PATH needs CR, and LINENO needs CR and PATH. # 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 as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. 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 ;; 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_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # 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 before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, 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 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\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 sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi 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$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # 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'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # 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` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="configure.in" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_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 EGREP PKG_CONFIG ac_pt_PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS' ac_subst_files='' # 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. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= 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 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -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 | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$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" ;; -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'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac 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 ;; -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 ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 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 ;; -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'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac 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; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 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 paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac 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 # 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 its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $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 if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} ac_env_PKG_CONFIG_value=$PKG_CONFIG ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG ac_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set} ac_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS ac_cv_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set} ac_cv_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS ac_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set} ac_env_PACKAGE_LIBS_value=$PACKAGE_LIBS ac_cv_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set} ac_cv_env_PACKAGE_LIBS_value=$PACKAGE_LIBS # # 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 this package 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 \`..'] _ACEOF cat <<_ACEOF 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] --datadir=DIR read-only architecture-independent data [PREFIX/share] --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] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _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 _ACEOF fi if test -n "$ac_init_help"; then 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 Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor 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 Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style 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 elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF Copyright (C) 2003 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 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { 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` hostinfo = `(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 } >&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_sep= 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_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; 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: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. 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, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf 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 -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >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 -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; 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 `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; 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 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 ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # 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 $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 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. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. 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 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 $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 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 dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$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=gnomekiss VERSION=2.0 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$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 $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 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 $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 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 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 STRIP=$ac_ct_STRIP 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 -' 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 or --disable-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 ac_config_headers="$ac_config_headers config.h" 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 or --disable-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 $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 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 $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 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 CC=$ac_ct_CC 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 $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 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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done 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 CC=$ac_ct_CC else CC="$ac_cv_prog_CC" 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 $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 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 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 $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 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 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 $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 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 CC=$ac_ct_CC 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` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&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[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done 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 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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 { (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); }; 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 | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext 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 { (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 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 CFLAGS="-g" 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 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 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 ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 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 -std1. */ int osf4_cc_array ['\x00' == 0 ? 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 # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext 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 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 ac_cv_search_strerror=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_strerror" = no; then for ac_lib in cposix; do LIBS="-l$ac_lib $ac_func_search_save_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 gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi 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 if test "$ac_cv_search_strerror" != no; then test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $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 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 $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 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 $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 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 CC=$ac_ct_CC 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 $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 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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done 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 CC=$ac_ct_CC else CC="$ac_cv_prog_CC" 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 $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 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 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 $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 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 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 $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 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 CC=$ac_ct_CC 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` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 CFLAGS="-g" 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 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 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 ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 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 -std1. */ int osf4_cc_array ['\x00' == 0 ? 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 # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext 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 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 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 $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 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 $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 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 CC=$ac_ct_CC 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 $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 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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done 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 CC=$ac_ct_CC else CC="$ac_cv_prog_CC" 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 $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 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 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 $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 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 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 $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 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 CC=$ac_ct_CC 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` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 CFLAGS="-g" 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 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 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 ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 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 -std1. */ int osf4_cc_array ['\x00' == 0 ? 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 # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext 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 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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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 non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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 to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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 non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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 egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_prog_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_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi fi echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 EGREP=$ac_cv_prog_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 #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #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)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext 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); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 pkg_modules="libgnomeui-2.0" 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 $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 ;; 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 $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 ;; 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 PKG_CONFIG=$ac_pt_PKG_CONFIG 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 \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 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 \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 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 "$pkg_modules"` else PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"` fi # Put the nasty error message in config.log where it belongs echo "$PACKAGE_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) 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 ($pkg_modules) 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 . 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 . 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 GETTEXT_PACKAGE=gnomekiss cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF ALL_LINGUAS="en_GB es es_ES" # 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 eval "test \"\${$as_ac_Header+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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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 the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _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 eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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 the AC_PACKAGE_NAME lists. ## ## ------------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 fi if test $ac_cv_header_libintl_h = yes; then gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # echo "$as_me:$LINENO: checking for ngettext in libc" >&5 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6 if test "${gt_cv_func_ngettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 int main () { return !dgettext ("","") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ 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 #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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 gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char bindtextdomain (); int main () { bindtextdomain (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char ngettext (); int main () { ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dgettext (); int main () { dgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char ngettext (); int main () { ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dcgettext (); int main () { dcgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ 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 #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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 eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ 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 #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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 $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 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ 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 #else char (*f) () = bind_textdomain_codeset; #endif #ifdef __cplusplus } #endif int main () { return f != bind_textdomain_codeset; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 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 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in doc/Makefile gnomekiss.spec" 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, don't put newlines in cache variables' values. # 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. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *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 \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!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 "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" 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}' # 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 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_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $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__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 : ${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+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH 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 fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; 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'` # PATH needs CR, and LINENO needs CR and PATH. # 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 as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. 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 ;; 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_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # 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 before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, 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 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 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 sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi 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$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # 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'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi 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 ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." 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 ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 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 0 ;; --debug | --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;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 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" ;; 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 $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "gnomekiss.spec" ) CONFIG_FILES="$CONFIG_FILES gnomekiss.spec" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) { { 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 to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $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 -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # 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 # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t s,@MAINT@,$MAINT,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@CPP@,$CPP,;t t s,@EGREP@,$EGREP,;t t s,@PKG_CONFIG@,$PKG_CONFIG,;t t s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t s,@PACKAGE_CFLAGS@,$PACKAGE_CFLAGS,;t t s,@PACKAGE_LIBS@,$PACKAGE_LIBS,;t t s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t s,@USE_NLS@,$USE_NLS,;t t s,@MSGFMT@,$MSGFMT,;t t s,@GMSGFMT@,$GMSGFMT,;t t s,@XGETTEXT@,$XGETTEXT,;t t s,@CATALOGS@,$CATALOGS,;t t s,@CATOBJEXT@,$CATOBJEXT,;t t s,@DATADIRNAME@,$DATADIRNAME,;t t s,@GMOFILES@,$GMOFILES,;t t s,@INSTOBJEXT@,$INSTOBJEXT,;t t s,@INTLLIBS@,$INTLLIBS,;t t s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t s,@POFILES@,$POFILES,;t t s,@POSUB@,$POSUB,;t t s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $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'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $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'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # 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. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF 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,@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,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #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. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # 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. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then 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 ac_dir=`(dirname "$ac_file") 2>/dev/null || $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'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $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'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # 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" >`(dirname $ac_file) 2>/dev/null || $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 done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $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'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) 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=`(dirname "$mf") 2>/dev/null || $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=`(dirname "$file") 2>/dev/null || $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'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $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'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (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 gnomekiss-2.0/gnomekiss.gladep0000664000076400007640000000043410364205330013457 00000000000000 Gnomekiss gnomekiss TRUE