From 1cd8df9f2bcfb8d622703d7f68066b2150e90fd8 Mon Sep 17 00:00:00 2001 From: Artur Frysiak Date: Sun, 4 Feb 2007 13:31:53 +0000 Subject: [PATCH] - fix building with Autoconf 2.60 (ksh POSIX case) Changed files: crossfire-ac260.patch -> 1.1 --- crossfire-ac260.patch | 141 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 crossfire-ac260.patch diff --git a/crossfire-ac260.patch b/crossfire-ac260.patch new file mode 100644 index 0000000..742a973 --- /dev/null +++ b/crossfire-ac260.patch @@ -0,0 +1,141 @@ +--- crossfire-1.9.1/acinclude.m4.wiget 2006-06-29 09:25:33.000000000 +0200 ++++ crossfire-1.9.1/acinclude.m4 2007-02-03 23:43:47.000000000 +0100 +@@ -6,7 +6,8 @@ + PY_INCLUDES="" + dir="" + if test "x$PYTHON_HOME" != "x"; then +- for dir in $PYTHON_HOME/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do ++ for pyver in "" 2.5 2.4 2.3 2.2 2.1 2.0 ; do ++ dir=$PYTHON_HOME/include/python${pyver} + AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) + if test "x$cf_have_python_h" != "x" ; then + PY_INCLUDES="-I$dir" +@@ -16,16 +17,21 @@ + PYTHON_SEARCH=$PYTHON + else + AC_CHECK_HEADERS([Python.h],[cf_have_python_h=yes]) ++ PY_INCLUDES="" + if test "x$cf_have_python_h" = "x" ; then +- for dir in /usr{,/local}/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do ++ for ldir in "" /local ; do ++ for pyver in "" 2.5 2.4 2.3 2.2 2.1 2.0 ; do ++ dir=/usr${ldir}/include/python${pyver} + AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes]) + if test "x$cf_have_python_h" != "x" ; then + PY_INCLUDES="-I$dir" + break + fi + done +- else +- PY_INCLUDES="" ++ if test "x$PY_INCLUDES" != "x" ; then ++ break ++ fi ++ done + fi + fi + +@@ -61,8 +67,8 @@ + fi + + else +- for lib in python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do +- AC_CHECK_LIB($lib, PyArg_ParseTuple,[PYTHON_LIB="-l$lib"]) ++ for pyver in "" 2.5 2.4 2.3 2.2 2.1 2.0 ; do ++ AC_CHECK_LIB(python$pyver, PyArg_ParseTuple,[PYTHON_LIB="-lpython$pyver"]) + if test "x$PYTHON_LIB" != "x" ; then + break + fi +@@ -374,9 +380,9 @@ + EOF + AC_MSG_CHECKING([xslt compliance of $1]) + to_run=$1 +- to_run=${to_run/\%1/configtest.xml} +- to_run=${to_run/\%2/configtest.xsl} +- to_run=${to_run/\%3/configtest.out} ++ to_run="$(echo $to_run|sed -e 's/\%1/configtest.xml/')" ++ to_run="$(echo $to_run|sed -e 's/\%2/configtest.xsl/')" ++ to_run="$(echo $to_run|sed -e 's/\%3/configtest.out/')" + if AC_TRY_COMMAND([$to_run]);then + AC_MSG_RESULT([yes]); + [$2] +--- crossfire-1.9.1/check-fragment.am.wiget 2007-02-04 00:00:02.000000000 +0100 ++++ crossfire-1.9.1/check-fragment.am 2007-02-04 00:06:01.000000000 +0100 +@@ -16,8 +16,8 @@ + echo '' > $$output_menu; \ + echo '$(CHECK_PARENT_NAME)' >> $$output_menu;\ + for tst in $$list; do \ +- tst=$${tst/check_/} ; \ +- tst=$${tst/-/_} ; \ ++ tst=$$(echo $$tst|sed -e 's/check_//') ; \ ++ tst=$$(echo $$tst|sed -e'/-/_/') ; \ + xml=$(LOGDIR)/$${tst}.xml ;\ + if test -e "$$xml"; then \ + successCount=`grep -c 'result="success"' $$xml`;\ +@@ -39,14 +39,14 @@ + srcdir='$(top_srcdir)'; \ + xsl=$${srcdir}/test/templates/logresult.xsl ; \ + xsltproc='$(XSLTENGINE)';\ +- xsltproc=$${xsltproc/\%2/$$xsl};\ ++ xsltproc=$$(echo $$xsltproc|sed -e "/\%2/$$xsl/");\ + xml_siteuri='$(CHECK_ROOT)' ;\ + xml_check_folder='../logs/$(CHECK_FOLDER)' ;\ + runxml='.autorun.xml';\ + if test -n "$$list"; then \ + for tst in $$list; do \ +- tst=$${tst/check_/} ; \ +- tst=$${tst/-/_} ; \ ++ tst=$$(echo $$tst|sed -e "s/check_//") ; \ ++ tst=$$(echo $$tst|sed -e "/-/_/") ; \ + checkFile=$${tst}.xml ;\ + echo '' > $$runxml;\ + echo "$$xml_siteuri" >> $$runxml;\ +@@ -54,8 +54,8 @@ + echo "$$xml_check_folder" >> $$runxml;\ + html=$(LOGDIR)/$${tst}.html ;\ + if test -e "$(LOGDIR)/$$xml"; then \ +- torun=$${xsltproc/\%1/$$runxml};\ +- torun=$${torun/\%3/$$html};\ ++ torun=$$(echo $$xsltproc|sed -e "/\%1/$$runxml/");\ ++ torun=$$(echo $$torun|sed -e "s/\%3/$$html/");\ + echo "running $$torun";\ + $$torun; \ + fi; \ +@@ -65,8 +65,8 @@ + echo "$$xml_siteuri" >> $$runxml;\ + echo "$$xml_check_folder" >> $$runxml;\ + html=$(LOGDIR)/.index.html ;\ +- torun=$${xsltproc/\%1/$$runxml};\ +- torun=$${torun/\%3/$$html};\ ++ torun=$$(echo $$xsltproc|sed -e "s/\%1/$$runxml/");\ ++ torun=$$(echo $$torun|sed -e "s/\%3/$$html/');\ + echo "running $$torun";\ + $$torun; + template-copy: $(LOGDIR) +@@ -79,7 +79,7 @@ + @srcdir='$(top_srcdir)'; \ + xsl=$${srcdir}/test/templates/checkTextResult.xsl ; \ + xsltproc='$(XSLTENGINE)';\ +- xsltproc=$${xsltproc/\%2/$$xsl};\ ++ xsltproc=$$(echo $$xsltproc|sed -e "s/\%2/$$xsl/");\ + xml_siteuri='$(CHECK_ROOT)' ;\ + xml_check_folder='../logs/$(CHECK_FOLDER)' ;\ + runxml='.autorun.xml';\ +@@ -87,8 +87,8 @@ + echo "$$xml_siteuri" >> $$runxml;\ + echo "$$xml_check_folder" >> $$runxml;\ + txt=$(LOGDIR)/testlog.txt ;\ +- torun=$${xsltproc/\%1/$$runxml};\ +- torun=$${torun/\%3/$$txt};\ ++ torun=$$(echo $$xsltproc|sed -e "s/\%1/$$runxml/");\ ++ torun=$$(echo $$torun|sed -e "s/\%3/$$txt/");\ + echo "running $$torun";\ + $$torun; + +@@ -100,4 +100,4 @@ + check-text: $(CHECK_TXT) + clean-unit: + rm -f autorun.xml +-noinst_PROGRAMS=$(TESTS) +\ Brak znaku nowej linii na końcu pliku ++noinst_PROGRAMS=$(TESTS) -- 2.43.0