< prev index next >

common/autoconf/platform.m4

Print this page
@  rev 2553 : [mq]: alpinefixes-version
|


 362 
 363   if test "x$OPENJDK_$1_OS" = xmacosx; then
 364       OPENJDK_$1_OS_EXPORT_DIR=macosx
 365   else
 366       OPENJDK_$1_OS_EXPORT_DIR=${OPENJDK_$1_OS_TYPE}
 367   fi
 368   AC_SUBST(OPENJDK_$1_OS_EXPORT_DIR)
 369 
 370   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
 371   # Macosx is osx and x86_64 is x64
 372   if test "x$OPENJDK_$1_OS" = xmacosx; then
 373     OPENJDK_$1_OS_BUNDLE="osx"
 374   else
 375     OPENJDK_$1_OS_BUNDLE="$OPENJDK_TARGET_OS"
 376   fi
 377   if test "x$OPENJDK_$1_CPU" = xx86_64; then
 378     OPENJDK_$1_CPU_BUNDLE="x64"
 379   else
 380     OPENJDK_$1_CPU_BUNDLE="$OPENJDK_$1_CPU"
 381   fi
 382   OPENJDK_$1_BUNDLE_PLATFORM="${OPENJDK_$1_OS_BUNDLE}-${OPENJDK_$1_CPU_BUNDLE}"



 383   AC_SUBST(OPENJDK_$1_BUNDLE_PLATFORM)
 384 
 385   if test "x$OPENJDK_$1_CPU_BITS" = x64; then
 386     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
 387     # unpack200.exe. This variable is used in
 388     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
 389     if test "x$OPENJDK_$1_OS" = xlinux || test "x$OPENJDK_$1_OS" = xmacosx; then
 390       OPENJDK_$1_ADD_LP64="-D_LP64=1"
 391     fi
 392   fi
 393 
 394   if test "x$COMPILE_TYPE" = "xcross"; then
 395     # FIXME: ... or should this include reduced builds..?
 396     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_$1_CPU_LEGACY"
 397   else
 398     DEFINE_CROSS_COMPILE_ARCH=""
 399   fi
 400   AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
 401 
 402   # Convert openjdk platform names to hotspot names


 440     HOTSPOT_$1_CPU_DEFINE=AARCH64
 441   elif test "x$OPENJDK_$1_CPU" = xppc64; then
 442     HOTSPOT_$1_CPU_DEFINE=PPC64
 443   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
 444     HOTSPOT_$1_CPU_DEFINE=PPC64
 445 
 446   # The cpu defines below are for zero, we don't support them directly.
 447   elif test "x$OPENJDK_$1_CPU" = xsparc; then
 448     HOTSPOT_$1_CPU_DEFINE=SPARC
 449   elif test "x$OPENJDK_$1_CPU" = xppc; then
 450     HOTSPOT_$1_CPU_DEFINE=PPC32
 451   elif test "x$OPENJDK_$1_CPU" = xs390; then
 452     HOTSPOT_$1_CPU_DEFINE=S390
 453   elif test "x$OPENJDK_$1_CPU" = xs390x; then
 454     HOTSPOT_$1_CPU_DEFINE=S390
 455   elif test "x$OPENJDK_$1_CPU" != x; then
 456     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
 457   fi
 458   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
 459 


 460 ])
 461 
 462 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 463 [
 464   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 465     REQUIRED_OS_NAME=SunOS
 466     REQUIRED_OS_VERSION=5.10
 467   fi
 468   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 469     REQUIRED_OS_NAME=Linux
 470     REQUIRED_OS_VERSION=2.6
 471   fi
 472   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 473     REQUIRED_OS_NAME=Windows
 474     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 475       REQUIRED_OS_VERSION=5.2
 476     else
 477       REQUIRED_OS_VERSION=5.1
 478     fi
 479   fi




 362 
 363   if test "x$OPENJDK_$1_OS" = xmacosx; then
 364       OPENJDK_$1_OS_EXPORT_DIR=macosx
 365   else
 366       OPENJDK_$1_OS_EXPORT_DIR=${OPENJDK_$1_OS_TYPE}
 367   fi
 368   AC_SUBST(OPENJDK_$1_OS_EXPORT_DIR)
 369 
 370   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
 371   # Macosx is osx and x86_64 is x64
 372   if test "x$OPENJDK_$1_OS" = xmacosx; then
 373     OPENJDK_$1_OS_BUNDLE="osx"
 374   else
 375     OPENJDK_$1_OS_BUNDLE="$OPENJDK_TARGET_OS"
 376   fi
 377   if test "x$OPENJDK_$1_CPU" = xx86_64; then
 378     OPENJDK_$1_CPU_BUNDLE="x64"
 379   else
 380     OPENJDK_$1_CPU_BUNDLE="$OPENJDK_$1_CPU"
 381   fi
 382   
 383   OPENJDK_$1_CLIB_BUNDLE="$OPENJDK_$1_CLIB"
 384 
 385   OPENJDK_$1_BUNDLE_PLATFORM="${OPENJDK_$1_OS_BUNDLE}-${OPENJDK_$1_CPU_BUNDLE}-${OPENJDK_$1_CLIB_BUNDLE}"
 386   AC_SUBST(OPENJDK_$1_BUNDLE_PLATFORM)
 387 
 388   if test "x$OPENJDK_$1_CPU_BITS" = x64; then
 389     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
 390     # unpack200.exe. This variable is used in
 391     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
 392     if test "x$OPENJDK_$1_OS" = xlinux || test "x$OPENJDK_$1_OS" = xmacosx; then
 393       OPENJDK_$1_ADD_LP64="-D_LP64=1"
 394     fi
 395   fi
 396 
 397   if test "x$COMPILE_TYPE" = "xcross"; then
 398     # FIXME: ... or should this include reduced builds..?
 399     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_$1_CPU_LEGACY"
 400   else
 401     DEFINE_CROSS_COMPILE_ARCH=""
 402   fi
 403   AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
 404 
 405   # Convert openjdk platform names to hotspot names


 443     HOTSPOT_$1_CPU_DEFINE=AARCH64
 444   elif test "x$OPENJDK_$1_CPU" = xppc64; then
 445     HOTSPOT_$1_CPU_DEFINE=PPC64
 446   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
 447     HOTSPOT_$1_CPU_DEFINE=PPC64
 448 
 449   # The cpu defines below are for zero, we don't support them directly.
 450   elif test "x$OPENJDK_$1_CPU" = xsparc; then
 451     HOTSPOT_$1_CPU_DEFINE=SPARC
 452   elif test "x$OPENJDK_$1_CPU" = xppc; then
 453     HOTSPOT_$1_CPU_DEFINE=PPC32
 454   elif test "x$OPENJDK_$1_CPU" = xs390; then
 455     HOTSPOT_$1_CPU_DEFINE=S390
 456   elif test "x$OPENJDK_$1_CPU" = xs390x; then
 457     HOTSPOT_$1_CPU_DEFINE=S390
 458   elif test "x$OPENJDK_$1_CPU" != x; then
 459     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
 460   fi
 461   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
 462 
 463   HOTSPOT_$1_CLIB=${OPENJDK_$1_CLIB}
 464   AC_SUBST(HOTSPOT_$1_CLIB)
 465 ])
 466 
 467 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
 468 [
 469   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 470     REQUIRED_OS_NAME=SunOS
 471     REQUIRED_OS_VERSION=5.10
 472   fi
 473   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
 474     REQUIRED_OS_NAME=Linux
 475     REQUIRED_OS_VERSION=2.6
 476   fi
 477   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 478     REQUIRED_OS_NAME=Windows
 479     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
 480       REQUIRED_OS_VERSION=5.2
 481     else
 482       REQUIRED_OS_VERSION=5.1
 483     fi
 484   fi


< prev index next >