diff options
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch index c79063f7c1..f78387dc02 100644 --- a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch +++ b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.05-NOT-check-endian.patch | |||
@@ -5,10 +5,11 @@ Upstream-Status: Pending | |||
5 | 5 | ||
6 | Signed-off-by: Kang Kai <kai.kang@windriver.com> | 6 | Signed-off-by: Kang Kai <kai.kang@windriver.com> |
7 | Signed-off-by: Sen Zhang <sen.zhang@windriver.com> | 7 | Signed-off-by: Sen Zhang <sen.zhang@windriver.com> |
8 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
8 | 9 | ||
9 | --- ghostscript-9.05/base/configure.ac.orig 2013-01-06 10:02:08.699479511 +0800 | 10 | --- base/configure.ac.orig 2013-06-24 03:58:26.224723002 -0400 |
10 | +++ ghostscript-9.05/base/configure.ac 2013-01-06 10:01:52.275382106 +0800 | 11 | +++ base/configure.ac 2013-06-24 04:03:29.730807957 -0400 |
11 | @@ -1741,13 +1741,13 @@ | 12 | @@ -255,13 +255,13 @@ |
12 | 13 | ||
13 | AC_MSG_CHECKING([for big endian]) | 14 | AC_MSG_CHECKING([for big endian]) |
14 | 15 | ||
@@ -17,16 +18,27 @@ Signed-off-by: Sen Zhang <sen.zhang@windriver.com> | |||
17 | - static const int one = 1; | 18 | - static const int one = 1; |
18 | - return (*(char*)&one == 0 ? 0 : 1); | 19 | - return (*(char*)&one == 0 ? 0 : 1); |
19 | - ])], | 20 | - ])], |
20 | - [LCMS_BIGENDIAN=1], | 21 | - [BIGENDIAN=1;AC_MSG_RESULT(big)], |
21 | - [LCMS_BIGENDIAN=0]) | 22 | - [BIGENDIAN=0;AC_MSG_RESULT(little)]) |
22 | +dnl AC_RUN_IFELSE( | 23 | +#AC_RUN_IFELSE( |
23 | +dnl [AC_LANG_PROGRAM([#include <stdio.h>], [ | 24 | +# [AC_LANG_PROGRAM([#include <stdio.h>], [ |
24 | +dnl static const int one = 1; | 25 | +# static const int one = 1; |
25 | +dnl return (*(char*)&one == 0 ? 0 : 1); | 26 | +# return (*(char*)&one == 0 ? 0 : 1); |
26 | +dnl ])], | 27 | +# ])], |
27 | +dnl [LCMS_BIGENDIAN=1], | 28 | +# [BIGENDIAN=1;AC_MSG_RESULT(big)], |
28 | +dnl [LCMS_BIGENDIAN=0]) | 29 | +# [BIGENDIAN=0;AC_MSG_RESULT(little)]) |
29 | 30 | ||
30 | if test "x$LCMS_BIGENDIAN" != "x0"; then | 31 | |
31 | LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$LCMS_BIGENDIAN" | 32 | |
32 | 33 | @@ -1922,9 +1922,11 @@ | |
34 | if test "x$BIGENDIAN" != "x0"; then | ||
35 | LCMS_ENDIAN="-DUSE_BIG_ENDIAN=$BIGENDIAN" | ||
36 | LCMS2_ENDIAN="-DCMS_USE_BIG_ENDIAN=$BIGENDIAN" | ||
37 | + AC_MSG_RESULT(big) | ||
38 | else | ||
39 | LCMS_ENDIAN= | ||
40 | LCMS2_ENDIAN= | ||
41 | + AC_MSG_RESULT(little) | ||
42 | fi | ||
43 | |||
44 | AC_SUBST(LCMS_ENDIAN) | ||