summarylogtreecommitdiffstats
path: root/fix-cross-compile.patch
blob: 0f9314012e8e66ecbd9f10b3017f2ccce7787b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
diff -Naur xerces-c-3.2.1.orig/configure.ac xerces-c-3.2.1/configure.ac
--- xerces-c-3.2.1.orig/configure.ac	2018-08-02 09:53:06.685603455 -0400
+++ xerces-c-3.2.1/configure.ac	2018-08-02 10:15:56.171819117 -0400
@@ -227,50 +227,6 @@
                       AC_DEFINE_UNQUOTED([HAVE_MBRLEN], 0, [Define to 1 if you have the `mbrlen' function.])
                     ]
                  )
-AC_MSG_CHECKING([for wcsrtombs])
-AC_RUN_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
-#include <string.h>]],
-                                 [[
-mbstate_t st;
-memset(&st, 0, sizeof(st));
-char buffer[32];
-const wchar_t* src=L"help";
-wcsrtombs(buffer, &src, 32, &st);
-if(src==0)
-    return 0;
-else
-    return 1;]])],
-                    [
-                      AC_MSG_RESULT([yes])
-                      AC_DEFINE_UNQUOTED([HAVE_WCSRTOMBS], 1, [Define to 1 if you have the `wcsrtombs' function.])
-                    ],
-                    [
-                      AC_MSG_RESULT([no])
-                      AC_DEFINE_UNQUOTED([HAVE_WCSRTOMBS], 0, [Define to 1 if you have the `wcsrtombs' function.])
-                    ]
-                 )
-AC_MSG_CHECKING([for mbsrtowcs])
-AC_RUN_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
-#include <string.h>]],
-                                 [[
-mbstate_t st;
-memset(&st, 0, sizeof(st));
-wchar_t buffer[32];
-const char* src="help";
-mbsrtowcs(buffer, &src, 32, &st);
-if(src==0)
-    return 0;
-else
-    return 1;]])],
-                    [
-                      AC_MSG_RESULT([yes])
-                      AC_DEFINE_UNQUOTED([HAVE_MBSRTOWCS], 1, [Define to 1 if you have the `mbsrtowcs' function.])
-                    ],
-                    [
-                      AC_MSG_RESULT([no])
-                      AC_DEFINE_UNQUOTED([HAVE_MBSRTOWCS], 0, [Define to 1 if you have the `mbsrtowcs' function.])
-                    ]
-                 )
 
 AC_MSG_CHECKING([if iconv uses const pointers])
 AC_COMPILE_IFELSE(  [AC_LANG_PROGRAM([[#include <iconv.h>]],