350 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
351 A_LP64="LP64:="
352 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
353 # unpack200.exe
354 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
355 ADD_LP64="-D_LP64=1"
356 fi
357 fi
358 AC_SUBST(LP64,$A_LP64)
359
360 if test "x$COMPILE_TYPE" = "xcross"; then
361 # FIXME: ... or should this include reduced builds..?
362 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
363 else
364 DEFINE_CROSS_COMPILE_ARCH=""
365 fi
366 AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
367
368 # ZERO_ARCHDEF is used to enable architecture-specific code
369 case "${OPENJDK_TARGET_CPU}" in
370 ppc*) ZERO_ARCHDEF=PPC ;;
371 s390*) ZERO_ARCHDEF=S390 ;;
372 sparc*) ZERO_ARCHDEF=SPARC ;;
373 x86_64*) ZERO_ARCHDEF=AMD64 ;;
374 x86) ZERO_ARCHDEF=IA32 ;;
375 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
376 esac
377 AC_SUBST(ZERO_ARCHDEF)
378 ])
379
380 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
381 [
382 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
383 REQUIRED_OS_NAME=SunOS
384 REQUIRED_OS_VERSION=5.10
385 fi
386 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
387 REQUIRED_OS_NAME=Linux
388 REQUIRED_OS_VERSION=2.6
389 fi
390 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
|
350 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
351 A_LP64="LP64:="
352 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
353 # unpack200.exe
354 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
355 ADD_LP64="-D_LP64=1"
356 fi
357 fi
358 AC_SUBST(LP64,$A_LP64)
359
360 if test "x$COMPILE_TYPE" = "xcross"; then
361 # FIXME: ... or should this include reduced builds..?
362 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
363 else
364 DEFINE_CROSS_COMPILE_ARCH=""
365 fi
366 AC_SUBST(DEFINE_CROSS_COMPILE_ARCH)
367
368 # ZERO_ARCHDEF is used to enable architecture-specific code
369 case "${OPENJDK_TARGET_CPU}" in
370 ppc) ZERO_ARCHDEF=PPC32 ;;
371 ppc64) ZERO_ARCHDEF=PPC64 ;;
372 s390*) ZERO_ARCHDEF=S390 ;;
373 sparc*) ZERO_ARCHDEF=SPARC ;;
374 x86_64*) ZERO_ARCHDEF=AMD64 ;;
375 x86) ZERO_ARCHDEF=IA32 ;;
376 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
377 esac
378 AC_SUBST(ZERO_ARCHDEF)
379 ])
380
381 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],
382 [
383 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
384 REQUIRED_OS_NAME=SunOS
385 REQUIRED_OS_VERSION=5.10
386 fi
387 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
388 REQUIRED_OS_NAME=Linux
389 REQUIRED_OS_VERSION=2.6
390 fi
391 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
|