< prev index next >

common/autoconf/help.m4

Print this page


   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 142 }
 143 
 144 port_help() {
 145   PKGHANDLER_COMMAND=""
 146 }
 147 
 148 pkgutil_help() {
 149   PKGHANDLER_COMMAND=""
 150 }
 151 
 152 pkgadd_help() {
 153   PKGHANDLER_COMMAND=""
 154 }
 155 
 156 # This function will check if we're called from the "configure" wrapper while
 157 # printing --help. If so, we will print out additional information that can
 158 # only be extracted within the autoconf script, and then exit. This must be
 159 # called at the very beginning in configure.ac.
 160 AC_DEFUN_ONCE([HELP_PRINT_ADDITIONAL_HELP_AND_EXIT],
 161 [
 162   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then


 163     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
 164     $PRINTF "Which are valid to use depends on the build platform.\n"
 165     for toolchain in $VALID_TOOLCHAINS_all; do
 166       # Use indirect variable referencing
 167       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
 168       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
 169       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
 170     done
 171 
 172     # And now exit directly
 173     exit 0
 174   fi
 175 ])
 176 
 177 AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
 178 [
 179   # Finally output some useful information to the user
 180 
 181   printf "\n"
 182   printf "====================================================\n"


   1 #
   2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 142 }
 143 
 144 port_help() {
 145   PKGHANDLER_COMMAND=""
 146 }
 147 
 148 pkgutil_help() {
 149   PKGHANDLER_COMMAND=""
 150 }
 151 
 152 pkgadd_help() {
 153   PKGHANDLER_COMMAND=""
 154 }
 155 
 156 # This function will check if we're called from the "configure" wrapper while
 157 # printing --help. If so, we will print out additional information that can
 158 # only be extracted within the autoconf script, and then exit. This must be
 159 # called at the very beginning in configure.ac.
 160 AC_DEFUN_ONCE([HELP_PRINT_ADDITIONAL_HELP_AND_EXIT],
 161 [
 162   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
 163 
 164     # Print available toolchains
 165     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
 166     $PRINTF "Which are valid to use depends on the build platform.\n"
 167     for toolchain in $VALID_TOOLCHAINS_all; do
 168       # Use indirect variable referencing
 169       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
 170       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
 171       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
 172     done
 173 
 174     # And now exit directly
 175     exit 0
 176   fi
 177 ])
 178 
 179 AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
 180 [
 181   # Finally output some useful information to the user
 182 
 183   printf "\n"
 184   printf "====================================================\n"


< prev index next >