14962
|
1 |
--- OpenSP-1.5.1/configure.in-orig 2003-09-03 10:34:16.000000000 -0500
|
|
2 |
+++ OpenSP-1.5.1/configure.in 2009-01-22 16:07:11.334969000 -0600
|
|
3 |
@@ -163,8 +163,8 @@ AH_BOTTOM([
|
9397
|
4 |
#endif /* HAVE_PATHNAME_STYLE_DOS */
|
|
5 |
|
|
6 |
#ifdef HAVE_INSTANTIATIONS
|
|
7 |
-#ifndef SP_ANSI_CLASS_INST
|
|
8 |
-#define SP_ANSI_CLASS_INST
|
|
9 |
+#ifdef SP_ANSI_CLASS_INST
|
|
10 |
+#undef SP_ANSI_CLASS_INST
|
|
11 |
#endif
|
|
12 |
#endif /* HAVE_INSTANTIATIONS */
|
|
13 |
|
14962
|
14 |
@@ -239,6 +239,9 @@ AM_PROG_LIBTOOL
|
9397
|
15 |
dnl Checks for libraries.
|
|
16 |
AC_CHECK_LIB(pthread,pthread_create,,AC_CHECK_LIB(threads,cthread_fork))
|
|
17 |
|
14962
|
18 |
+dnl *** check for socket library ***
|
|
19 |
+AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
|
|
20 |
+
|
9397
|
21 |
ALL_LINGUAS="de fr ja sv"
|
|
22 |
AM_GNU_GETTEXT
|
14962
|
23 |
AC_CHECK_HEADERS(locale.h)
|
|
24 |
@@ -352,14 +355,8 @@ dnl FIXME these need tests for non-GNU c
|
9397
|
25 |
ac_cv_c_gnu_automatic_templates=yes,
|
|
26 |
ac_cv_c_gnu_automatic_templates=no)
|
|
27 |
])
|
|
28 |
- if test "$ac_cv_c_gnu_automatic_templates" = yes; then
|
|
29 |
- AC_DEFINE(SP_DEFINE_TEMPLATES,1,
|
|
30 |
+ AC_DEFINE(SP_DEFINE_TEMPLATES,1,
|
|
31 |
[define this to include template definitions in the headers])
|
|
32 |
- else
|
|
33 |
- AC_DEFINE(SP_MANUAL_INST,1,
|
|
34 |
- [define this to compile explicit template instantiations])
|
|
35 |
- CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
|
|
36 |
- fi
|
|
37 |
AC_CACHE_CHECK(whether GNU C++ links with libg++ if we include new.h,
|
|
38 |
ac_cv_cxx_gnu_avoid_new_h,
|
|
39 |
[AC_EGREP_CPP(yes,[
|
|
40 |
--- OpenSP.orig/lib/SearchResultMessageArg.cxx Tue Dec 23 21:21:50 2003
|
|
41 |
+++ OpenSP/lib/SearchResultMessageArg.cxx Tue Dec 23 22:51:41 2003
|
|
42 |
@@ -12,7 +12,7 @@
|
|
43 |
namespace SP_NAMESPACE {
|
|
44 |
#endif
|
|
45 |
|
|
46 |
-RTTI_DEF1(SearchResultMessageArg, OtherMessageArg);
|
|
47 |
+RTTI_DEF1(SearchResultMessageArg, OtherMessageArg)
|
|
48 |
|
|
49 |
SearchResultMessageArg::SearchResultMessageArg()
|
|
50 |
{
|
|
51 |
--- OpenSP-1.5.1/sx/XmlOutputEventHandler.cxx.orig Thu Sep 29 09:08:41 2005
|
|
52 |
+++ OpenSP-1.5.1/sx/XmlOutputEventHandler.cxx Thu Sep 29 09:12:14 2005
|
|
53 |
@@ -106,7 +106,7 @@
|
|
54 |
// Open file for writing external entity declarations if we are preserving
|
|
55 |
// any entities
|
|
56 |
if (! options_.expExt) {
|
|
57 |
- ParserApp::AppChar filePath[strlen(outputDir_) + 21];
|
|
58 |
+ char *filePath = (char *)malloc (strlen(outputDir_) + 21);
|
|
59 |
strcpy (filePath, outputDir_);
|
|
60 |
strcat (filePath, "/");
|
|
61 |
strcat (filePath, EXT_ENT_FILE);
|
|
62 |
@@ -140,7 +140,7 @@
|
|
63 |
// Open file for writing external entity declarations if we are preserving
|
|
64 |
// any entities
|
|
65 |
if (! options_.expInt) {
|
|
66 |
- char filePath[strlen(outputDir_) + 21];
|
|
67 |
+ char *filePath = (char *)malloc (strlen(outputDir_) + 21);
|
|
68 |
strcpy (filePath, outputDir_);
|
|
69 |
strcat (filePath, "/");
|
|
70 |
strcat (filePath, INT_ENT_FILE);
|
|
71 |
@@ -1153,9 +1153,9 @@
|
|
72 |
becomes ./usr/local/lib/ents/foo.xml; possible 2-digit
|
|
73 |
suffix (for uniqueness) */
|
|
74 |
|
|
75 |
- char filePath[strlen(outputDir_) + 9 +
|
|
76 |
+ char *filePath = (char *)malloc (strlen(outputDir_) + 9 +
|
|
77 |
outputCodingSystem->convertOut
|
|
78 |
- (*systemIdPointer).size()];
|
|
79 |
+ (*systemIdPointer).size());
|
|
80 |
|
|
81 |
strcpy (filePath, outputDir_);
|
|
82 |
|
|
83 |
@@ -1505,7 +1505,7 @@
|
|
84 |
*/
|
|
85 |
void XmlOutputEventHandler::uniqueFilename(char *filePath) {
|
|
86 |
|
|
87 |
- char baseFilePath[strlen(filePath)];
|
|
88 |
+ char *baseFilePath = (char *)malloc (strlen(filePath));
|
|
89 |
strcpy (baseFilePath, filePath);
|
|
90 |
|
|
91 |
struct stat statbuf;
|