< prev index next >

common/autoconf/jdk-options.m4

Print this page




 497     fi
 498   fi
 499 
 500   # Now set the JDK version, milestone, build number etc.
 501   AC_SUBST(USER_RELEASE_SUFFIX)
 502   AC_SUBST(JDK_MAJOR_VERSION)
 503   AC_SUBST(JDK_MINOR_VERSION)
 504   AC_SUBST(JDK_MICRO_VERSION)
 505   AC_SUBST(JDK_UPDATE_VERSION)
 506   AC_SUBST(JDK_BUILD_NUMBER)
 507   AC_SUBST(MILESTONE)
 508   AC_SUBST(LAUNCHER_NAME)
 509   AC_SUBST(PRODUCT_NAME)
 510   AC_SUBST(PRODUCT_SUFFIX)
 511   AC_SUBST(JDK_RC_PLATFORM_NAME)
 512   AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
 513   AC_SUBST(MACOSX_BUNDLE_ID_BASE)
 514 
 515   # The vendor name, if any
 516   AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
 517       [Set vendor name @<:@not specified@:>@])])

 518   if test "x$with_vendor_name" = xyes; then
 519     AC_MSG_ERROR([--with-vendor-name must have a value])
 520   elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
 521     AC_MSG_ERROR([--with--vendor-name contains non-printing characters: $with_vendor_name])
 522   else


 523     COMPANY_NAME="$with_vendor_name"
 524   fi
 525   AC_SUBST(COMPANY_NAME)




































 526 
 527   AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year],
 528       [Set copyright year value for build @<:@current year@:>@])])
 529   if test "x$with_copyright_year" = xyes; then
 530     AC_MSG_ERROR([Copyright year must have a value])
 531   elif test "x$with_copyright_year" != x; then
 532     COPYRIGHT_YEAR="$with_copyright_year"
 533   else
 534     COPYRIGHT_YEAR=`date +'%Y'`
 535   fi
 536   AC_SUBST(COPYRIGHT_YEAR)
 537 
 538   if test "x$JDK_UPDATE_VERSION" != x; then
 539     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
 540   else
 541     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
 542   fi
 543   AC_SUBST(JDK_VERSION)
 544 
 545   # The cooked update version used to encode trailing letters in the update




 497     fi
 498   fi
 499 
 500   # Now set the JDK version, milestone, build number etc.
 501   AC_SUBST(USER_RELEASE_SUFFIX)
 502   AC_SUBST(JDK_MAJOR_VERSION)
 503   AC_SUBST(JDK_MINOR_VERSION)
 504   AC_SUBST(JDK_MICRO_VERSION)
 505   AC_SUBST(JDK_UPDATE_VERSION)
 506   AC_SUBST(JDK_BUILD_NUMBER)
 507   AC_SUBST(MILESTONE)
 508   AC_SUBST(LAUNCHER_NAME)
 509   AC_SUBST(PRODUCT_NAME)
 510   AC_SUBST(PRODUCT_SUFFIX)
 511   AC_SUBST(JDK_RC_PLATFORM_NAME)
 512   AC_SUBST(MACOSX_BUNDLE_NAME_BASE)
 513   AC_SUBST(MACOSX_BUNDLE_ID_BASE)
 514 
 515   # The vendor name, if any
 516   AC_ARG_WITH(vendor-name, [AS_HELP_STRING([--with-vendor-name],
 517       [Set vendor name. Among others, used to set the 'java.vendor'
 518        and 'java.vm.vendor' system properties. @<:@not specified@:>@])])
 519   if test "x$with_vendor_name" = xyes; then
 520     AC_MSG_ERROR([--with-vendor-name must have a value])
 521   elif [ ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ]; then
 522     AC_MSG_ERROR([--with-vendor-name contains non-printing characters: $with_vendor_name])
 523   elif test "x$with_vendor_name" != x; then
 524     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
 525     # Otherwise we will use the value from "version-numbers" included above.
 526     COMPANY_NAME="$with_vendor_name"
 527   fi
 528   AC_SUBST(COMPANY_NAME)
 529 
 530   # The vendor URL, if any
 531   AC_ARG_WITH(vendor-url, [AS_HELP_STRING([--with-vendor-url],
 532       [Set the 'java.vendor.url' system property @<:@not specified@:>@])])
 533   if test "x$with_vendor_url" = xyes; then
 534     AC_MSG_ERROR([--with-vendor-url must have a value])
 535   elif [ ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ]; then
 536     AC_MSG_ERROR([--with-vendor-url contains non-printing characters: $with_vendor_url])
 537   else
 538     VENDOR_URL="$with_vendor_url"
 539   fi
 540   AC_SUBST(VENDOR_URL)
 541 
 542   # The vendor bug URL, if any
 543   AC_ARG_WITH(vendor-bug-url, [AS_HELP_STRING([--with-vendor-bug-url],
 544       [Set the 'java.vendor.url.bug' system property @<:@not specified@:>@])])
 545   if test "x$with_vendor_bug_url" = xyes; then
 546     AC_MSG_ERROR([--with-vendor-bug-url must have a value])
 547   elif [ ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ]; then
 548     AC_MSG_ERROR([--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url])
 549   else
 550     VENDOR_URL_BUG="$with_vendor_bug_url"
 551   fi
 552   AC_SUBST(VENDOR_URL_BUG)
 553 
 554   # The vendor VM bug URL, if any
 555   AC_ARG_WITH(vendor-vm-bug-url, [AS_HELP_STRING([--with-vendor-vm-bug-url],
 556       [Sets the bug URL which will be displayed when the VM crashes @<:@not specified@:>@])])
 557   if test "x$with_vendor_vm_bug_url" = xyes; then
 558     AC_MSG_ERROR([--with-vendor-vm-bug-url must have a value])
 559   elif [ ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ]; then
 560     AC_MSG_ERROR([--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url])
 561   else
 562     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
 563   fi
 564   AC_SUBST(VENDOR_URL_VM_BUG)
 565 
 566   AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year],
 567       [Set copyright year value for build @<:@current year@:>@])])
 568   if test "x$with_copyright_year" = xyes; then
 569     AC_MSG_ERROR([Copyright year must have a value])
 570   elif test "x$with_copyright_year" != x; then
 571     COPYRIGHT_YEAR="$with_copyright_year"
 572   else
 573     COPYRIGHT_YEAR=`date +'%Y'`
 574   fi
 575   AC_SUBST(COPYRIGHT_YEAR)
 576 
 577   if test "x$JDK_UPDATE_VERSION" != x; then
 578     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
 579   else
 580     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
 581   fi
 582   AC_SUBST(JDK_VERSION)
 583 
 584   # The cooked update version used to encode trailing letters in the update


< prev index next >