161 for toolchain in $VALID_TOOLCHAINS_all; do 162 # Use indirect variable referencing 163 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 164 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 165 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 166 done 167 168 # And now exit directly 169 exit 0 170 fi 171 ]) 172 173 AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS], 174 [ 175 # Finally output some useful information to the user 176 177 printf "\n" 178 printf "====================================================\n" 179 if test "x$no_create" != "xyes"; then 180 if test "x$IS_RECONFIGURE" != "xyes"; then 181 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 182 else 183 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 184 fi 185 else 186 if test "x$IS_RECONFIGURE" != "xyes"; then 187 printf "A configuration has been successfully checked but not created\n" 188 else 189 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 190 fi 191 fi 192 if test "x$CONFIGURE_COMMAND_LINE" != x; then 193 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 194 else 195 printf "using default settings.\n" 196 fi 197 198 printf "\n" 199 printf "Configuration summary:\n" 200 printf "* Debug level: $DEBUG_LEVEL\n" 201 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 202 printf "* JDK variant: $JDK_VARIANT\n" 203 printf "* JVM variants: $with_jvm_variants\n" 204 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 205 206 printf "\n" 207 printf "Tools summary:\n" 208 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 209 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 239 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 240 printf "WARNING: Your build output directory is not on a local disk.\n" 241 printf "This will severely degrade build performance!\n" 242 printf "It is recommended that you create an output directory on a local disk,\n" 243 printf "and run the configure script again from that directory.\n" 244 printf "\n" 245 fi 246 247 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 248 printf "WARNING: The result of this configuration has overridden an older\n" 249 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 250 printf "proper build. Failure to do so might result in strange build problems.\n" 251 printf "\n" 252 fi 253 254 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 255 printf "WARNING: The result of this configuration was not saved.\n" 256 printf "You should run without '--no-create | -n' to create the configuration.\n" 257 printf "\n" 258 fi 259 ]) | 161 for toolchain in $VALID_TOOLCHAINS_all; do 162 # Use indirect variable referencing 163 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 164 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 165 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 166 done 167 168 # And now exit directly 169 exit 0 170 fi 171 ]) 172 173 AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS], 174 [ 175 # Finally output some useful information to the user 176 177 printf "\n" 178 printf "====================================================\n" 179 if test "x$no_create" != "xyes"; then 180 if test "x$IS_RECONFIGURE" != "xyes"; then 181 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 182 else 183 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 184 fi 185 else 186 if test "x$IS_RECONFIGURE" != "xyes"; then 187 printf "A configuration has been successfully checked but not created\n" 188 else 189 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 190 fi 191 fi 192 if test "x$CONFIGURE_COMMAND_LINE" != x; then 193 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 194 else 195 printf "using default settings.\n" 196 fi 197 198 printf "\n" 199 printf "Configuration summary:\n" 200 printf "* Debug level: $DEBUG_LEVEL\n" 201 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 202 printf "* JDK variant: $JDK_VARIANT\n" 203 printf "* JVM variants: $with_jvm_variants\n" 204 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 205 206 printf "\n" 207 printf "Tools summary:\n" 208 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 209 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 239 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 240 printf "WARNING: Your build output directory is not on a local disk.\n" 241 printf "This will severely degrade build performance!\n" 242 printf "It is recommended that you create an output directory on a local disk,\n" 243 printf "and run the configure script again from that directory.\n" 244 printf "\n" 245 fi 246 247 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 248 printf "WARNING: The result of this configuration has overridden an older\n" 249 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 250 printf "proper build. Failure to do so might result in strange build problems.\n" 251 printf "\n" 252 fi 253 254 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 255 printf "WARNING: The result of this configuration was not saved.\n" 256 printf "You should run without '--no-create | -n' to create the configuration.\n" 257 printf "\n" 258 fi 259 ]) 260 261 AC_DEFUN_ONCE([HELP_REPEAT_WARNINGS], 262 [ 263 if test -e "$OUTPUT_ROOT/config.log"; then 264 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 265 if test $? -eq 0; then 266 printf "The following warnings were produced. Repeated here for convenience:\n" 267 # We must quote sed expression (using []) to stop m4 from eating the []. 268 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e [ 's/^configure:[0-9]*: //' ] 269 printf "\n" 270 fi 271 fi 272 273 ]) |