patches/anthy-01-alloca.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 353 70b47e90db3f
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- anthy-9026/src-ordering/commit.c.orig	2007-07-27 08:42:07.169994754 +0700
+++ anthy-9026/src-ordering/commit.c	2007-07-27 08:42:57.592145595 +0700
@@ -6,6 +6,9 @@
  */
 #include <stdlib.h>
 #include <time.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <anthy/ordering.h>
 #include <anthy/record.h>
--- anthy-9026/depgraph/mkdepgraph.c.orig	2007-07-27 08:43:24.427662723 +0700
+++ anthy-9026/depgraph/mkdepgraph.c	2007-07-27 08:43:43.049183148 +0700
@@ -26,6 +26,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <anthy/alloc.h>
 #include <anthy/conf.h>
--- anthy-9026/mkworddic/mkdic.c.orig	2007-07-27 08:47:49.361052986 +0700
+++ anthy-9026/mkworddic/mkdic.c	2007-07-27 08:48:09.806603688 +0700
@@ -39,6 +39,9 @@
 #include <string.h>
 #include <errno.h>
 #include <ctype.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <config.h>
 
--- anthy-9026/src-util/rkconv.c.orig	2007-07-27 08:53:43.607935645 +0700
+++ anthy-9026/src-util/rkconv.c	2007-07-27 08:53:56.317262074 +0700
@@ -12,6 +12,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include "rkconv.h"
 
--- anthy-9026/src-util/rkhelper.c.orig	2007-07-27 08:49:31.672004205 +0700
+++ anthy-9026/src-util/rkhelper.c	2007-07-27 08:48:38.774944446 +0700
@@ -10,6 +10,9 @@
 
 #include <string.h>
 #include <stdlib.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 #include "rkconv.h"
 #include "rkhelper.h"
 
--- anthy-9026/src-diclib/xstr.c.orig	2007-07-27 08:54:07.048725941 +0700
+++ anthy-9026/src-diclib/xstr.c	2007-07-27 08:54:26.717940140 +0700
@@ -31,6 +31,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include "config.h"
 /* for ANTHY_*_ENCODING */
--- anthy-9026/src-diclib/ruleparser.c.orig	2007-07-27 08:54:43.593551243 +0700
+++ anthy-9026/src-diclib/ruleparser.c	2007-07-27 08:54:57.046514657 +0700
@@ -24,6 +24,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <anthy/conf.h>
 #include <anthy/ruleparser.h>
--- anthy-9026/src-worddic/record.c.orig	2007-07-27 08:56:21.675227087 +0700
+++ anthy-9026/src-worddic/record.c	2007-07-27 08:56:34.632861374 +0700
@@ -42,6 +42,9 @@
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include "config.h"
 #include <anthy/anthy.h>
--- anthy-9026/src-worddic/priv_dic.c.orig	2007-07-27 08:55:12.601714019 +0700
+++ anthy-9026/src-worddic/priv_dic.c	2007-07-27 08:55:27.887267038 +0700
@@ -30,6 +30,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <anthy/anthy.h>
 #include <anthy/alloc.h>
--- anthy-9026/src-worddic/word_lookup.c.orig	2007-07-27 08:40:05.852451950 +0700
+++ anthy-9026/src-worddic/word_lookup.c	2007-07-27 08:40:52.849687656 +0700
@@ -36,6 +36,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include "config.h"
 #include <anthy/anthy.h>
--- anthy-9026/src-worddic/texttrie.c.orig	2007-07-27 08:55:40.018308862 +0700
+++ anthy-9026/src-worddic/texttrie.c	2007-07-27 08:56:07.384359178 +0700
@@ -58,6 +58,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 #include <anthy/texttrie.h>
 #include <anthy/filemap.h>
 #include "dic_main.h"
--- anthy-9026/test/main.c.orig	2007-07-27 08:56:49.091632705 +0700
+++ anthy-9026/test/main.c	2007-07-27 08:57:01.536956212 +0700
@@ -23,6 +23,9 @@
 #include <string.h>
 #include <stdlib.h>
 #include <time.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <anthy/anthy.h>
 #include <anthy/convdb.h>
--- anthy-9026/alt-cannadic/Makefile.orig	2007-04-09 19:40:02.000000000 +0700
+++ anthy-9026/alt-cannadic/Makefile	2007-07-27 08:35:50.598929120 +0700
@@ -1,42 +1,325 @@
-#
-# Makefile
-# 
-# Copyright Masao SUGIMOTO. 2000, 2001, 2002, 2003
-#
-# Author: Masao SUGIMOTO <[email protected]>
-#
-# 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.
-#
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# alt-cannadic/Makefile.  Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
 # This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; 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 GNU Emacs; see the file COPYING.  If not, write to the
-# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-
-MAINTXTDIC      = gcanna.ctd
-SUBTXTDIC       = gcannaf.ctd
-
-all: help
-
-help:
-	@echo "see README"
-
-maindic:
-	crxdic -m -o ${MAINTXTDIC:.ctd=.cbd} ${MAINTXTDIC}
-	crfreq -div 512 ${MAINTXTDIC:.ctd=.cbd} ${MAINTXTDIC:.ctd=.mwd}
-
-maindic-old-version:
-	perl convert-old-cannadic.pl
-	crxdic -m -o ${MAINTXTDIC:.ctd=.cbd}.orig ${MAINTXTDIC}
-	crfreq ${MAINTXTDIC:.ctd=.cbd} ${MAINTXTDIC:.ctd=.mwd}
-
-subdic:
-	crxdic -s -o ${SUBTXTDIC:.ctd=.cbd} ${SUBTXTDIC}
-	crfreq ${SUBTXTDIC:.ctd=.cbd} ${SUBTXTDIC:.ctd=.swd}
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+pkgdatadir = $(datadir)/anthy
+pkglibdir = $(libdir)/anthy
+pkgincludedir = $(includedir)/anthy
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = i386-pc-solaris2.11
+host_triplet = i386-pc-solaris2.11
+subdir = alt-cannadic
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in COPYING
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /export/home/jdsbuild/packages/BUILD/anthy-9026/missing --run aclocal-1.10
+AMTAR = ${SHELL} /export/home/jdsbuild/packages/BUILD/anthy-9026/missing --run tar
+AR = ar
+AUTOCONF = ${SHELL} /export/home/jdsbuild/packages/BUILD/anthy-9026/missing --run autoconf
+AUTOHEADER = ${SHELL} /export/home/jdsbuild/packages/BUILD/anthy-9026/missing --run autoheader
+AUTOMAKE = ${SHELL} /export/home/jdsbuild/packages/BUILD/anthy-9026/missing --run automake-1.10
+AWK = nawk
+CC = /usr/bin/cc
+CCDEPMODE = depmode=none
+CFLAGS = -g
+CPP = /usr/bin/cc -E
+CPPFLAGS = 
+CXX = /usr/bin/CC
+CXXCPP = /usr/bin/CC -E
+CXXDEPMODE = depmode=none
+CXXFLAGS = -g
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO = echo
+ECHO_C = 
+ECHO_N = -n
+ECHO_T = 
+EGREP = /usr/sfw/bin/ggrep -E
+EMACS = no
+EMACSLOADPATH = 
+EXEEXT = 
+F77 = g77
+FFLAGS = -g -O2
+GREP = /usr/sfw/bin/ggrep
+INSTALL = /opt/jdsbld/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LDFLAGS = 
+LIBOBJS = 
+LIBS = 
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS = 
+MAKEINFO = ${SHELL} /export/home/jdsbuild/packages/BUILD/anthy-9026/missing --run makeinfo
+MKDIR_P = /opt/jdsbld/bin/mkdir -p
+OBJEXT = o
+PACKAGE = anthy
+PACKAGE_BUGREPORT = 
+PACKAGE_NAME = 
+PACKAGE_STRING = 
+PACKAGE_TARNAME = 
+PACKAGE_VERSION = 
+PATH_SEPARATOR = :
+RANLIB = ranlib
+SET_MAKE = 
+SHELL = /bin/bash
+STRIP = strip
+VERSION = 9026
+abs_builddir = /export/home/jdsbuild/packages/BUILD/anthy-9026/alt-cannadic
+abs_srcdir = /export/home/jdsbuild/packages/BUILD/anthy-9026/alt-cannadic
+abs_top_builddir = /export/home/jdsbuild/packages/BUILD/anthy-9026
+abs_top_srcdir = /export/home/jdsbuild/packages/BUILD/anthy-9026
+ac_ct_CC = /usr/bin/cc
+ac_ct_CXX = 
+ac_ct_F77 = g77
+am__include = include
+am__leading_dot = .
+am__quote = 
+am__tar = ${AMTAR} chof - "$$tardir"
+am__untar = ${AMTAR} xf -
+bindir = ${exec_prefix}/bin
+build = i386-pc-solaris2.11
+build_alias = 
+build_cpu = i386
+build_os = solaris2.11
+build_vendor = pc
+builddir = .
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = i386-pc-solaris2.11
+host_alias = 
+host_cpu = i386
+host_os = solaris2.11
+host_vendor = pc
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = $(SHELL) /export/home/jdsbuild/packages/BUILD/anthy-9026/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+lispdir = ${datadir}/emacs/site-lisp/anthy
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = /opt/jdsbld/bin/mkdir -p
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias = 
+top_builddir = ..
+top_srcdir = ..
+EXTRA_DIST = COPYING How-to-use.txt Makefile.orig gcanna.ctd gtankan.ctd gtankan-okuri.ctd\
+ Changes.txt README_euc.txt gcannaf.ctd orig-README.ja
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  alt-cannadic/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  alt-cannadic/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-dvi install-dvi-am \
+	install-exec install-exec-am install-html install-html-am \
+	install-info install-info-am install-man install-pdf \
+	install-pdf-am install-ps install-ps-am install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-generic \
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
--- anthy-9026/src-splitter/splitter.c.orig	2007-07-27 08:57:11.548142288 +0700
+++ anthy-9026/src-splitter/splitter.c	2007-07-27 08:57:23.265290475 +0700
@@ -33,6 +33,9 @@
  */
 #include <stdlib.h>
 #include <string.h>
+#ifdef sun
+#include <alloca.h>
+#endif
 
 #include <anthy/alloc.h>
 #include <anthy/record.h>