@@ -67,34 +67,6 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
67
67
AC_SUBST ( JDK_RC_PLATFORM_NAME )
68
68
AC_SUBST ( HOTSPOT_VM_DISTRO )
69
69
70
- # Set the MACOSX Bundle Name base
71
- AC_ARG_WITH ( macosx-bundle-name-base , [ AS_HELP_STRING ( [ --with-macosx-bundle-name-base] ,
72
- [ Set the MacOSX Bundle Name base. This is the base name for calculating MacOSX Bundle Names.
73
- @<:@ not specified@:>@ ] ) ] )
74
- if test "x$with_macosx_bundle_name_base" = xyes; then
75
- AC_MSG_ERROR ( [ --with-macosx-bundle-name-base must have a value] )
76
- elif [ ! [ [ $with_macosx_bundle_name_base =~ ^[ [ :print:] ] *$ ] ] ] ; then
77
- AC_MSG_ERROR ( [ --with-macosx-bundle-name-base contains non-printing characters: $with_macosx_bundle_name_base] )
78
- elif test "x$with_macosx_bundle_name_base" != x; then
79
- # Set MACOSX_BUNDLE_NAME_BASE to the configured value.
80
- MACOSX_BUNDLE_NAME_BASE="$with_macosx_bundle_name_base"
81
- fi
82
- AC_SUBST ( MACOSX_BUNDLE_NAME_BASE )
83
-
84
- # Set the MACOSX Bundle ID base
85
- AC_ARG_WITH ( macosx-bundle-id-base , [ AS_HELP_STRING ( [ --with-macosx-bundle-id-base] ,
86
- [ Set the MacOSX Bundle ID base. This is the base ID for calculating MacOSX Bundle IDs.
87
- @<:@ not specified@:>@ ] ) ] )
88
- if test "x$with_macosx_bundle_id_base" = xyes; then
89
- AC_MSG_ERROR ( [ --with-macosx-bundle-id-base must have a value] )
90
- elif [ ! [ [ $with_macosx_bundle_id_base =~ ^[ [ :print:] ] *$ ] ] ] ; then
91
- AC_MSG_ERROR ( [ --with-macosx-bundle-id-base contains non-printing characters: $with_macosx_bundle_id_base] )
92
- elif test "x$with_macosx_bundle_id_base" != x; then
93
- # Set MACOSX_BUNDLE_ID_BASE to the configured value.
94
- MACOSX_BUNDLE_ID_BASE="$with_macosx_bundle_id_base"
95
- fi
96
- AC_SUBST ( MACOSX_BUNDLE_ID_BASE )
97
-
98
70
# Set the JDK RC name
99
71
AC_ARG_WITH ( jdk-rc-name , [ AS_HELP_STRING ( [ --with-jdk-rc-name] ,
100
72
[ Set JDK RC name. This is used for FileDescription and ProductName properties
@@ -502,6 +474,60 @@ AC_DEFUN_ONCE([JDKVER_SETUP_JDK_VERSION_NUMBERS],
502
474
VENDOR_VERSION_STRING="$with_vendor_version_string"
503
475
fi
504
476
477
+ # Set the MACOSX Bundle Name base
478
+ AC_ARG_WITH ( macosx-bundle-name-base , [ AS_HELP_STRING ( [ --with-macosx-bundle-name-base] ,
479
+ [ Set the MacOSX Bundle Name base. This is the base name for calculating MacOSX Bundle Names.
480
+ @<:@ not specified@:>@ ] ) ] )
481
+ if test "x$with_macosx_bundle_name_base" = xyes; then
482
+ AC_MSG_ERROR ( [ --with-macosx-bundle-name-base must have a value] )
483
+ elif [ ! [ [ $with_macosx_bundle_name_base =~ ^[ [ :print:] ] *$ ] ] ] ; then
484
+ AC_MSG_ERROR ( [ --with-macosx-bundle-name-base contains non-printing characters: $with_macosx_bundle_name_base] )
485
+ elif test "x$with_macosx_bundle_name_base" != x; then
486
+ # Set MACOSX_BUNDLE_NAME_BASE to the configured value.
487
+ MACOSX_BUNDLE_NAME_BASE="$with_macosx_bundle_name_base"
488
+ fi
489
+ AC_SUBST ( MACOSX_BUNDLE_NAME_BASE )
490
+
491
+ # Set the MACOSX Bundle ID base
492
+ AC_ARG_WITH ( macosx-bundle-id-base , [ AS_HELP_STRING ( [ --with-macosx-bundle-id-base] ,
493
+ [ Set the MacOSX Bundle ID base. This is the base ID for calculating MacOSX Bundle IDs.
494
+ @<:@ not specified@:>@ ] ) ] )
495
+ if test "x$with_macosx_bundle_id_base" = xyes; then
496
+ AC_MSG_ERROR ( [ --with-macosx-bundle-id-base must have a value] )
497
+ elif [ ! [ [ $with_macosx_bundle_id_base =~ ^[ [ :print:] ] *$ ] ] ] ; then
498
+ AC_MSG_ERROR ( [ --with-macosx-bundle-id-base contains non-printing characters: $with_macosx_bundle_id_base] )
499
+ elif test "x$with_macosx_bundle_id_base" != x; then
500
+ # Set MACOSX_BUNDLE_ID_BASE to the configured value.
501
+ MACOSX_BUNDLE_ID_BASE="$with_macosx_bundle_id_base"
502
+ else
503
+ # If using the default value, append the VERSION_PRE if there is one
504
+ # to make it possible to tell official builds apart from developer builds
505
+ if test "x$VERSION_PRE" != x; then
506
+ MACOSX_BUNDLE_ID_BASE="$MACOSX_BUNDLE_ID_BASE-$VERSION_PRE"
507
+ fi
508
+ fi
509
+ AC_SUBST ( MACOSX_BUNDLE_ID_BASE )
510
+
511
+ # Set the MACOSX CFBundleVersion field
512
+ AC_ARG_WITH ( macosx-bundle-build-version , [ AS_HELP_STRING ( [ --with-macosx-bundle-build-version] ,
513
+ [ Set the MacOSX Bundle CFBundleVersion field. This key is a machine-readable
514
+ string composed of one to three period-separated integers and should represent the
515
+ build version. Defaults to the build number.] ) ] )
516
+ if test "x$with_macosx_bundle_build_version" = xyes; then
517
+ AC_MSG_ERROR ( [ --with-macosx-bundle-build-version must have a value] )
518
+ elif [ ! [ [ $with_macosx_bundle_build_version =~ ^[ 0-9\.] *$ ] ] ] ; then
519
+ AC_MSG_ERROR ( [ --with-macosx-bundle-build-version contains non numbers and periods: $with_macosx_bundle_build_version] )
520
+ elif test "x$with_macosx_bundle_build_version" != x; then
521
+ MACOSX_BUNDLE_BUILD_VERSION="$with_macosx_bundle_build_version"
522
+ else
523
+ MACOSX_BUNDLE_BUILD_VERSION="$VERSION_BUILD"
524
+ # If VERSION_OPT consists of only numbers and periods, add it.
525
+ if [ [ [ $VERSION_OPT =~ ^[ 0-9\.] +$ ] ] ] ; then
526
+ MACOSX_BUNDLE_BUILD_VERSION+=".$VERSION_OPT"
527
+ fi
528
+ fi
529
+ AC_SUBST ( MACOSX_BUNDLE_BUILD_VERSION )
530
+
505
531
# We could define --with flags for these, if really needed
506
532
VERSION_CLASSFILE_MAJOR="$DEFAULT_VERSION_CLASSFILE_MAJOR"
507
533
VERSION_CLASSFILE_MINOR="$DEFAULT_VERSION_CLASSFILE_MINOR"
0 commit comments