]> git.pld-linux.org Git - packages/xmlrpc-epi.git/blob - xmlrpc-epi-system-expat.patch
- spaces->tabs
[packages/xmlrpc-epi.git] / xmlrpc-epi-system-expat.patch
1 diff -ru --exclude missing --exclude ltmain.sh --exclude install-sh --exclude config.sub --exclude config.guess --exclude INSTALL --exclude COPYING --exclude mkinstalldirs --exclude Makfile --exclude Makefile.in --exclude aclocal.m4 --exclude configure --exclude '*.o' --exclude '*~' --exclude '*.lo' --exclude .libs --exclude .deps xmlrpc-epi-0.50/Makefile.am xmlrpc-epi-0.50.fixed/Makefile.am
2 --- xmlrpc-epi-0.50/Makefile.am Tue Apr 10 03:37:40 2001
3 +++ xmlrpc-epi-0.50.fixed/Makefile.am   Thu Apr 11 16:26:38 2002
4 @@ -1,4 +1,4 @@
5 -SUBDIRS = expat src sample
6 +SUBDIRS = src sample
7  
8  CHANGE_LOG_GEN_BIN = scripts/cvs2cl.pl
9  CHANGE_LOG_GEN_FLAGS = -t -r -b --accum -I ChangeLog --gmt --prune
10 diff -ru --exclude missing --exclude ltmain.sh --exclude install-sh --exclude config.sub --exclude config.guess --exclude INSTALL --exclude COPYING --exclude mkinstalldirs --exclude Makfile --exclude Makefile.in --exclude aclocal.m4 --exclude configure --exclude '*.o' --exclude '*~' --exclude '*.lo' --exclude .libs --exclude .deps xmlrpc-epi-0.51/configure.in xmlrpc-epi-0.51.fixed/configure.in
11 --- xmlrpc-epi-0.51/configure.in        Thu Sep 27 22:56:32 2001
12 +++ xmlrpc-epi-0.51.fixed/configure.in  Thu Apr 11 16:51:11 2002
13 @@ -14,12 +14,10 @@
14  AC_PROG_LN_S
15  AC_PROG_MAKE_SET
16  AC_PROG_LIBTOOL
17 -
18 -LIBS="-L/usr/local/lib"
19  
20  dnl Checks for header files.
21  AC_HEADER_STDC
22 -AC_CHECK_HEADERS(fcntl.h malloc.h unistd.h)
23 +AC_CHECK_HEADERS(fcntl.h malloc.h unistd.h xmlparse.h expat.h)
24  
25  
26  dnl Checks for typedefs, structures, and compiler characteristics.
27 @@ -35,8 +32,9 @@
28  AC_FUNC_STRFTIME
29  
30  AC_CHECK_FUNCS(mktime strstr)
31 +AC_CHECK_LIB(expat, XML_Parse)
32  
33 -AC_OUTPUT(src/Makefile Makefile sample/Makefile expat/Makefile expat/xmltok/Makefile expat/xmlparse/Makefile)
34 +AC_OUTPUT(src/Makefile Makefile sample/Makefile)
35  
36  
37  
38 diff -ru --exclude missing --exclude ltmain.sh --exclude install-sh --exclude config.sub --exclude config.guess --exclude INSTALL --exclude COPYING --exclude mkinstalldirs --exclude Makfile --exclude Makefile.in --exclude aclocal.m4 --exclude configure --exclude '*.o' --exclude '*~' --exclude '*.lo' --exclude .libs --exclude .deps xmlrpc-epi-0.50/sample/Makefile.am xmlrpc-epi-0.50.fixed/sample/Makefile.am
39 --- xmlrpc-epi-0.50/sample/Makefile.am  Fri Aug 31 23:38:27 2001
40 +++ xmlrpc-epi-0.50.fixed/sample/Makefile.am    Thu Apr 11 16:58:25 2002
41 @@ -1,25 +1,25 @@
42 -INCLUDES=-I../src -I../expat/xmltok -I../expat/xmlparse
43 +INCLUDES=-I../src
44  
45  bin_PROGRAMS = sample client server server_compliance_test memtest hello_client hello_server
46  
47  sample_SOURCES = sample.c
48 -sample_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
49 +sample_LDADD = ../src/libxmlrpc.la
50  
51  client_SOURCES = client.c
52 -client_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
53 +client_LDADD = ../src/libxmlrpc.la
54  
55  server_SOURCES = server.c
56 -server_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
57 +server_LDADD = ../src/libxmlrpc.la
58  
59  hello_client_SOURCES = hello_client.c
60 -hello_client_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
61 +hello_client_LDADD = ../src/libxmlrpc.la
62  
63  hello_server_SOURCES = hello_server.c
64 -hello_server_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
65 +hello_server_LDADD = ../src/libxmlrpc.la
66  
67  server_compliance_test_SOURCES = server_compliance_test.c
68 -server_compliance_test_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
69 +server_compliance_test_LDADD = ../src/libxmlrpc.la
70  
71  memtest_SOURCES = memtest.c
72 -memtest_LDADD = -L@prefix@/lib ../src/libxmlrpc.la
73 +memtest_LDADD = ../src/libxmlrpc.la
74  
75 diff -ru --exclude missing --exclude ltmain.sh --exclude install-sh --exclude config.sub --exclude config.guess --exclude INSTALL --exclude COPYING --exclude mkinstalldirs --exclude Makfile --exclude Makefile.in --exclude aclocal.m4 --exclude configure --exclude '*.o' --exclude '*~' --exclude '*.lo' --exclude .libs --exclude .deps xmlrpc-epi-0.50/src/Makefile.am xmlrpc-epi-0.50.fixed/src/Makefile.am
76 --- xmlrpc-epi-0.50/src/Makefile.am     Sun Sep 16 22:27:27 2001
77 +++ xmlrpc-epi-0.50.fixed/src/Makefile.am       Thu Apr 11 16:27:17 2002
78 @@ -1,9 +1,7 @@
79 -INCLUDES=-I../liblm -I../expat/xmltok -I../expat/xmlparse -I/usr/local/ssl/include 
80 +INCLUDES=-I../liblm 
81  
82  lib_LTLIBRARIES = libxmlrpc.la
83  
84 -libxmlrpc_la_LIBADD = ../expat/xmltok/libexpat_tok.la ../expat/xmlparse/libexpat_parse.la
85 -
86  libxmlrpc_la_SOURCES = \
87         base64.c \
88         encodings.c \
89 diff -ru --exclude missing --exclude ltmain.sh --exclude install-sh --exclude config.sub --exclude config.guess --exclude INSTALL --exclude COPYING --exclude mkinstalldirs --exclude Makfile --exclude Makefile.in --exclude aclocal.m4 --exclude configure --exclude '*.o' --exclude '*~' --exclude '*.lo' --exclude .libs --exclude .deps xmlrpc-epi-0.51/src/xml_element.c xmlrpc-epi-0.51.fixed/src/xml_element.c
90 --- xmlrpc-epi-0.51/src/xml_element.c   Mon May 14 20:31:28 2001
91 +++ xmlrpc-epi-0.51.fixed/src/xml_element.c     Thu Apr 11 16:39:19 2002
92 @@ -77,7 +77,15 @@
93  
94  #include "xml_element.h"
95  #include "queue.h"
96 +#ifdef HAVE_XMLPARSE_H
97  #include "xmlparse.h"
98 +#else
99 +#ifdef HAVE_EXPAT_H
100 +#include <expat.h>
101 +#else
102 +#error expat headers not found!!!
103 +#endif
104 +#endif
105  #include "encodings.h"
106  
107  #define my_free(thing)  if(thing) {free(thing); thing = 0;}
108 @@ -668,7 +676,13 @@
109           int col_num = XML_GetCurrentColumnNumber(parser);
110           long byte_idx = XML_GetCurrentByteIndex(parser);
111           int byte_total = XML_GetCurrentByteCount(parser);
112 +#ifdef HAVE_XMLPARSE_H
113           const XML_LChar * error_str = XML_ErrorString(err_code);
114 +#else
115 +#ifdef HAVE_EXPAT_H
116 +         const XMLPARSEAPI(XML_LChar) * error_str = XML_ErrorString(err_code);
117 +#endif
118 +#endif
119           if(byte_idx >= 0) {
120               snprintf(buf, 
121                        sizeof(buf),
122 diff -ru --exclude missing --exclude ltmain.sh --exclude install-sh --exclude config.sub --exclude config.guess --exclude INSTALL --exclude COPYING --exclude mkinstalldirs --exclude Makfile --exclude Makefile.in --exclude aclocal.m4 --exclude configure --exclude '*.o' --exclude '*~' --exclude '*.lo' --exclude .libs --exclude .deps xmlrpc-epi-0.50/src/xmlrpc.c xmlrpc-epi-0.50.fixed/src/xmlrpc.c
123 --- xmlrpc-epi-0.50/src/xmlrpc.c        Sun Sep 23 01:34:32 2001
124 +++ xmlrpc-epi-0.50.fixed/src/xmlrpc.c  Thu Apr 11 16:42:19 2002
125 @@ -105,7 +105,15 @@
126  
127  #include "queue.h"
128  #include "xmlrpc.h"
129 +#ifdef HAVE_XMLPARSE_H
130  #include "xmlparse.h"
131 +#else
132 +#ifdef HAVE_EXPAT_H
133 +#include <expat.h>
134 +#else
135 +#error expat headers not found!!!
136 +#endif
137 +#endif
138  #include "base64.h"
139  
140  #include "xml_to_xmlrpc.h"
This page took 0.068863 seconds and 3 git commands to generate.