11 # This configure script is free software; the Free Software Foundation |
11 # This configure script is free software; the Free Software Foundation |
12 # gives unlimited permission to copy, distribute and modify it. |
12 # gives unlimited permission to copy, distribute and modify it. |
13 ## -------------------- ## |
13 ## -------------------- ## |
14 ## M4sh Initialization. ## |
14 ## M4sh Initialization. ## |
15 ## -------------------- ## |
15 ## -------------------- ## |
16 |
|
17 # |
|
18 # This file has been modified by Loongson Technology in 2015. These |
|
19 # modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
20 # available on the same license terms set forth above. |
|
21 # |
|
22 |
16 |
23 # Be more Bourne compatible |
17 # Be more Bourne compatible |
24 DUALCASE=1; export DUALCASE # for MKS sh |
18 DUALCASE=1; export DUALCASE # for MKS sh |
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
26 emulate sh |
20 emulate sh |
3705 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
3702 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
3706 # or visit www.oracle.com if you need additional information or have any |
3703 # or visit www.oracle.com if you need additional information or have any |
3707 # questions. |
3704 # questions. |
3708 # |
3705 # |
3709 |
3706 |
|
3707 # |
|
3708 # This file has been modified by Loongson Technology in 2018. These |
|
3709 # modifications are Copyright (c) 2018 Loongson Technology, and are made |
|
3710 # available on the same license terms set forth above. |
|
3711 # |
|
3712 |
3710 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. |
3713 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. |
3711 # Converts autoconf style CPU name to OpenJDK style, into |
3714 # Converts autoconf style CPU name to OpenJDK style, into |
3712 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. |
3715 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. |
3713 |
3716 |
3714 |
3717 |
3916 # definitions. It is replaced with custom functionality when building |
3921 # definitions. It is replaced with custom functionality when building |
3917 # custom sources. |
3922 # custom sources. |
3918 #CUSTOM_AUTOCONF_INCLUDE |
3923 #CUSTOM_AUTOCONF_INCLUDE |
3919 |
3924 |
3920 # Do not change or remove the following line, it is needed for consistency checks: |
3925 # Do not change or remove the following line, it is needed for consistency checks: |
3921 DATE_WHEN_GENERATED=1521483882 |
3926 DATE_WHEN_GENERATED=1532409520 |
3922 |
3927 |
3923 ############################################################################### |
3928 ############################################################################### |
3924 # |
3929 # |
3925 # Initialization / Boot-strapping |
3930 # Initialization / Boot-strapping |
3926 # |
3931 # |
7218 OPENJDK_TARGET_CPU_OSARCH="i386" |
7223 OPENJDK_TARGET_CPU_OSARCH="i386" |
7219 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then |
7224 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then |
7220 # On all platforms except macosx, we replace x86_64 with amd64. |
7225 # On all platforms except macosx, we replace x86_64 with amd64. |
7221 OPENJDK_TARGET_CPU_OSARCH="amd64" |
7226 OPENJDK_TARGET_CPU_OSARCH="amd64" |
7222 elif test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xmips64; then |
7227 elif test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xmips64; then |
7223 # 2013/11/13 Jin: to be exactly same with OpenJDK 6(mips64) |
7228 # Jin: to be exactly same with OpenJDK 6(mips64) |
7224 # System.getProperty("os.arch"): mips64 -> mips64el |
7229 # System.getProperty("os.arch"): mips64 -> mips64el |
7225 OPENJDK_TARGET_CPU_OSARCH="mips64el" |
7230 OPENJDK_TARGET_CPU_OSARCH="mips64el" |
7226 fi |
7231 fi |
7227 |
7232 |
7228 |
7233 |
7229 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" |
7234 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" |
29359 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 |
29364 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 |
29360 fi |
29365 fi |
29361 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then |
29366 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then |
29362 as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5 |
29367 as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5 |
29363 fi |
29368 fi |
|
29369 |
|
29370 |
|
29371 BUILDER_NAME="$build_os" |
|
29372 BUILDER_ID="Custom build ($(date))" |
|
29373 if test -f /etc/issue; then |
|
29374 etc_issue_info=`cat /etc/issue` |
|
29375 if test -n "$etc_issue_info"; then |
|
29376 BUILDER_NAME=`cat /etc/issue | head -n 1 | cut -d " " -f 1` |
|
29377 fi |
|
29378 fi |
|
29379 if test -f /etc/neokylin-release; then |
|
29380 etc_issue_info=`cat /etc/neokylin-release` |
|
29381 if test -n "$etc_issue_info"; then |
|
29382 BUILDER_NAME=`cat /etc/neokylin-release | head -n 1 | cut -d " " -f 1` |
|
29383 fi |
|
29384 fi |
|
29385 if test -z "$BUILDER_NAME"; then |
|
29386 BUILDER_NAME="unknown" |
|
29387 fi |
|
29388 if test -n "$OPENJDK_TARGET_CPU_OSARCH"; then |
|
29389 HOST_NAME="$OPENJDK_TARGET_CPU_OSARCH" |
|
29390 else |
|
29391 HOST_NAME="unknown" |
|
29392 fi |
|
29393 if test -f "/usr/bin/cpp"; then |
|
29394 # gcc_with_arch_info=`gcc -v 2>&1 | grep '\-\-with-arch=' | sed 's/.*--with-arch=//;s/ .*$//'` |
|
29395 gcc_with_arch_info=`cpp -dM /dev/null | grep '\<_MIPS_ARCH\>' | sed 's/^#define _MIPS_ARCH "//;s/"$//'` |
|
29396 if test -n "$gcc_with_arch_info"; then |
|
29397 HOST_NAME="$gcc_with_arch_info" |
|
29398 fi |
|
29399 fi |
|
29400 |
|
29401 |
|
29402 |
29364 |
29403 |
29365 |
29404 |
29366 # Configure flags for the tools |
29405 # Configure flags for the tools |
29367 |
29406 |
29368 |
29407 |