< prev index next >

make/autoconf/platform.m4

Print this page

  1 #
  2 # Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
  3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4 #
  5 # This code is free software; you can redistribute it and/or modify it
  6 # under the terms of the GNU General Public License version 2 only, as
  7 # published by the Free Software Foundation.  Oracle designates this
  8 # particular file as subject to the "Classpath" exception as provided
  9 # by Oracle in the LICENSE file that accompanied this code.
 10 #
 11 # This code is distributed in the hope that it will be useful, but WITHOUT
 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14 # version 2 for more details (a copy is included in the LICENSE file that
 15 # accompanied this code).
 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any

544 
545   # This is identical with OPENJDK_*, but define anyway for consistency.
546   HOTSPOT_$1_CPU_ARCH=${OPENJDK_$1_CPU_ARCH}
547   AC_SUBST(HOTSPOT_$1_CPU_ARCH)
548 
549   # Setup HOTSPOT_$1_CPU_DEFINE
550   if test "x$OPENJDK_$1_CPU" = xx86; then
551     HOTSPOT_$1_CPU_DEFINE=IA32
552   elif test "x$OPENJDK_$1_CPU" = xx86_64; then
553     HOTSPOT_$1_CPU_DEFINE=AMD64
554   elif test "x$OPENJDK_$1_CPU" = xx32; then
555     HOTSPOT_$1_CPU_DEFINE=X32
556   elif test "x$OPENJDK_$1_CPU" = xsparcv9; then
557     HOTSPOT_$1_CPU_DEFINE=SPARC
558   elif test "x$OPENJDK_$1_CPU" = xaarch64; then
559     HOTSPOT_$1_CPU_DEFINE=AARCH64
560   elif test "x$OPENJDK_$1_CPU" = xppc64; then
561     HOTSPOT_$1_CPU_DEFINE=PPC64
562   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
563     HOTSPOT_$1_CPU_DEFINE=PPC64


564 
565   # The cpu defines below are for zero, we don't support them directly.
566   elif test "x$OPENJDK_$1_CPU" = xsparc; then
567     HOTSPOT_$1_CPU_DEFINE=SPARC
568   elif test "x$OPENJDK_$1_CPU" = xppc; then
569     HOTSPOT_$1_CPU_DEFINE=PPC32
570   elif test "x$OPENJDK_$1_CPU" = xs390; then
571     HOTSPOT_$1_CPU_DEFINE=S390
572   elif test "x$OPENJDK_$1_CPU" = xs390x; then
573     HOTSPOT_$1_CPU_DEFINE=S390
574   elif test "x$OPENJDK_$1_CPU" = xriscv64; then
575     HOTSPOT_$1_CPU_DEFINE=RISCV
576   elif test "x$OPENJDK_$1_CPU" != x; then
577     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
578   fi
579   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
580 
581   HOTSPOT_$1_LIBC=$OPENJDK_$1_LIBC
582   AC_SUBST(HOTSPOT_$1_LIBC)
583 
584   # For historical reasons, the OS include directories have odd names.
585   OPENJDK_$1_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
586   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
587     OPENJDK_$1_OS_INCLUDE_SUBDIR="win32"
588   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
589     OPENJDK_$1_OS_INCLUDE_SUBDIR="darwin"
590   fi
591   AC_SUBST(OPENJDK_$1_OS_INCLUDE_SUBDIR)
592 ])
593 
594 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
595 [

  1 #
  2 # Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
  3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4 #
  5 # This code is free software; you can redistribute it and/or modify it
  6 # under the terms of the GNU General Public License version 2 only, as
  7 # published by the Free Software Foundation.  Oracle designates this
  8 # particular file as subject to the "Classpath" exception as provided
  9 # by Oracle in the LICENSE file that accompanied this code.
 10 #
 11 # This code is distributed in the hope that it will be useful, but WITHOUT
 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14 # version 2 for more details (a copy is included in the LICENSE file that
 15 # accompanied this code).
 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any

544 
545   # This is identical with OPENJDK_*, but define anyway for consistency.
546   HOTSPOT_$1_CPU_ARCH=${OPENJDK_$1_CPU_ARCH}
547   AC_SUBST(HOTSPOT_$1_CPU_ARCH)
548 
549   # Setup HOTSPOT_$1_CPU_DEFINE
550   if test "x$OPENJDK_$1_CPU" = xx86; then
551     HOTSPOT_$1_CPU_DEFINE=IA32
552   elif test "x$OPENJDK_$1_CPU" = xx86_64; then
553     HOTSPOT_$1_CPU_DEFINE=AMD64
554   elif test "x$OPENJDK_$1_CPU" = xx32; then
555     HOTSPOT_$1_CPU_DEFINE=X32
556   elif test "x$OPENJDK_$1_CPU" = xsparcv9; then
557     HOTSPOT_$1_CPU_DEFINE=SPARC
558   elif test "x$OPENJDK_$1_CPU" = xaarch64; then
559     HOTSPOT_$1_CPU_DEFINE=AARCH64
560   elif test "x$OPENJDK_$1_CPU" = xppc64; then
561     HOTSPOT_$1_CPU_DEFINE=PPC64
562   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
563     HOTSPOT_$1_CPU_DEFINE=PPC64
564   elif test "x$OPENJDK_$1_CPU" = xriscv64; then
565     HOTSPOT_$1_CPU_DEFINE=RISCV64
566 
567   # The cpu defines below are for zero, we don't support them directly.
568   elif test "x$OPENJDK_$1_CPU" = xsparc; then
569     HOTSPOT_$1_CPU_DEFINE=SPARC
570   elif test "x$OPENJDK_$1_CPU" = xppc; then
571     HOTSPOT_$1_CPU_DEFINE=PPC32
572   elif test "x$OPENJDK_$1_CPU" = xs390; then
573     HOTSPOT_$1_CPU_DEFINE=S390
574   elif test "x$OPENJDK_$1_CPU" = xs390x; then
575     HOTSPOT_$1_CPU_DEFINE=S390


576   elif test "x$OPENJDK_$1_CPU" != x; then
577     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
578   fi
579   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
580 
581   HOTSPOT_$1_LIBC=$OPENJDK_$1_LIBC
582   AC_SUBST(HOTSPOT_$1_LIBC)
583 
584   # For historical reasons, the OS include directories have odd names.
585   OPENJDK_$1_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
586   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
587     OPENJDK_$1_OS_INCLUDE_SUBDIR="win32"
588   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
589     OPENJDK_$1_OS_INCLUDE_SUBDIR="darwin"
590   fi
591   AC_SUBST(OPENJDK_$1_OS_INCLUDE_SUBDIR)
592 ])
593 
594 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
595 [
< prev index next >