author | Jesse Butler <jesse.butler@oracle.com> |
Tue, 18 Oct 2016 05:50:50 -0700 | |
changeset 7121 | 02252aa4d56c |
parent 6510 | d00d3d1fc778 |
permissions | -rw-r--r-- |
6510
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
1 |
# Source: Internal |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
2 |
# Info: Written internally so this component can be built on Solaris. |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
3 |
# Status: This patch is offered at https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1588548 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
4 |
|
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
5 |
--- ORIGINAL/configure.ac 2016-06-13 16:45:35.871026417 -0700 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
6 |
+++ sbsigntool-0.6/configure.ac 2016-06-14 15:53:07.450239957 -0700 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
7 |
@@ -27,25 +27,46 @@ |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
8 |
HELP2MAN=: |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
9 |
fi |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
10 |
|
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
11 |
+OS=$(uname -s) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
12 |
+AM_CONDITIONAL([SUN_OS], [test "$OS" = "SunOS"]) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
13 |
AC_MSG_CHECKING([build system endianness]) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
14 |
-AC_PREPROC_IFELSE( |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
15 |
- [AC_LANG_PROGRAM([[#include <endian.h>]], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
16 |
- [[#if __BYTE_ORDER != __LITTLE_ENDIAN]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
17 |
- [[#error]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
18 |
- [[#endif]])], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
19 |
- endian=little |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
20 |
- little_endian=1 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
21 |
- big_endian=0) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
22 |
+if test "$OS" = "SunOS"; then |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
23 |
+ AC_PREPROC_IFELSE( |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
24 |
+ [AC_LANG_PROGRAM([[#include <sys/isa_defs.h>]], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
25 |
+ [[#if __BYTE_ORDER != __LITTLE_ENDIAN]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
26 |
+ [[#error]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
27 |
+ [[#endif]])], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
28 |
+ endian=little |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
29 |
+ little_endian=1 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
30 |
+ big_endian=0) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
31 |
|
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
32 |
-AC_PREPROC_IFELSE( |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
33 |
- [AC_LANG_PROGRAM([[#include <endian.h>]], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
34 |
- [[#if __BYTE_ORDER != __BIG_ENDIAN]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
35 |
- [[#error]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
36 |
- [[#endif]])], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
37 |
- endian=big |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
38 |
- little_endian=0 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
39 |
- big_endian=1) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
40 |
+ AC_PREPROC_IFELSE( |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
41 |
+ [AC_LANG_PROGRAM([[#include <sys/isa_defs.h>]], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
42 |
+ [[#if __BYTE_ORDER != __BIG_ENDIAN]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
43 |
+ [[#error]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
44 |
+ [[#endif]])], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
45 |
+ endian=big |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
46 |
+ little_endian=0 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
47 |
+ big_endian=1) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
48 |
+else |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
49 |
+ AC_PREPROC_IFELSE( |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
50 |
+ [AC_LANG_PROGRAM([[#include <endian.h>]], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
51 |
+ [[#if __BYTE_ORDER != __LITTLE_ENDIAN]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
52 |
+ [[#error]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
53 |
+ [[#endif]])], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
54 |
+ endian=little |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
55 |
+ little_endian=1 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
56 |
+ big_endian=0) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
57 |
|
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
58 |
+ AC_PREPROC_IFELSE( |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
59 |
+ [AC_LANG_PROGRAM([[#include <endian.h>]], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
60 |
+ [[#if __BYTE_ORDER != __BIG_ENDIAN]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
61 |
+ [[#error]] |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
62 |
+ [[#endif]])], |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
63 |
+ endian=big |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
64 |
+ little_endian=0 |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
65 |
+ big_endian=1) |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
66 |
+fi |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
67 |
|
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
68 |
if test x"$endian" != "xbig" -a x"$endian" != "xlittle"; then |
d00d3d1fc778
PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff
changeset
|
69 |
AC_MSG_ERROR([Can't determine endianness; is endian.h present?]) |