common/autoconf/help.m4

changeset 2206
7ba4e17574e0
parent 2203
28b247535e18
child 2220
47fda751abb6
equal deleted inserted replaced
2205:54eb4c29ece4 2206:7ba4e17574e0
1 # 1 #
2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
149 149
150 pkgadd_help() { 150 pkgadd_help() {
151 PKGHANDLER_COMMAND="" 151 PKGHANDLER_COMMAND=""
152 } 152 }
153 153
154 # This function will check if we're called from the "configure" wrapper while
155 # printing --help. If so, we will print out additional information that can
156 # only be extracted within the autoconf script, and then exit. This must be
157 # called at the very beginning in configure.ac.
158 AC_DEFUN_ONCE([HELP_PRINT_ADDITIONAL_HELP_AND_EXIT],
159 [
160 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
161 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
162 $PRINTF "Which are valid to use depends on the build platform.\n"
163 for toolchain in $VALID_TOOLCHAINS_all; do
164 # Use indirect variable referencing
165 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
166 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
167 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
168 done
169
170 # And now exit directly
171 exit 0
172 fi
173 ])
174
154 AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS], 175 AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
155 [ 176 [
156 # Finally output some useful information to the user 177 # Finally output some useful information to the user
157 178
158 printf "\n" 179 printf "\n"
176 printf "Tools summary:\n" 197 printf "Tools summary:\n"
177 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 198 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
178 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 199 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
179 fi 200 fi
180 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 201 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
181 printf "* C Compiler: $CC_VENDOR version $CC_VERSION (at $CC)\n" 202 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n"
182 printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n" 203 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n"
204 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n"
183 205
184 printf "\n" 206 printf "\n"
185 printf "Build performance summary:\n" 207 printf "Build performance summary:\n"
186 printf "* Cores to use: $JOBS\n" 208 printf "* Cores to use: $JOBS\n"
187 printf "* Memory limit: $MEMORY_SIZE MB\n" 209 printf "* Memory limit: $MEMORY_SIZE MB\n"

mercurial