3480 # Goes looking for a usable version of GNU make.
3481
3482
3483
3484
3485
3486
3487 # Check if build directory is on local disk. If not possible to determine,
3488 # we prefer to claim it's local.
3489 # Argument 1: directory to test
3490 # Argument 2: what to do if it is on local disk
3491 # Argument 3: what to do otherwise (remote disk or failure)
3492
3493
3494 # Check that source files have basic read permissions set. This might
3495 # not be the case in cygwin in certain conditions.
3496
3497
3498
3499
3500 #
3501 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3502 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3503 #
3504 # This code is free software; you can redistribute it and/or modify it
3505 # under the terms of the GNU General Public License version 2 only, as
3506 # published by the Free Software Foundation. Oracle designates this
3507 # particular file as subject to the "Classpath" exception as provided
3508 # by Oracle in the LICENSE file that accompanied this code.
3509 #
3510 # This code is distributed in the hope that it will be useful, but WITHOUT
3511 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3512 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3513 # version 2 for more details (a copy is included in the LICENSE file that
3514 # accompanied this code).
3515 #
3516 # You should have received a copy of the GNU General Public License version
3517 # 2 along with this work; if not, write to the Free Software Foundation,
3518 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3519 #
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393 # This line needs to be here, verbatim, after all includes and the dummy hook
4394 # definitions. It is replaced with custom functionality when building
4395 # custom sources.
4396 #CUSTOM_AUTOCONF_INCLUDE
4397
4398 # Do not change or remove the following line, it is needed for consistency checks:
4399 DATE_WHEN_GENERATED=1619439528
4400
4401 ###############################################################################
4402 #
4403 # Initialization / Boot-strapping
4404 #
4405 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4406 # thus it jumps back and forth, each time gaining something needed later on.
4407 #
4408 ###############################################################################
4409
4410 # If we are requested to print additional help, do that and then exit.
4411 # This must be the very first call.
4412
4413 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4414 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4415 $PRINTF "Which are valid to use depends on the build platform.\n"
4416 for toolchain in $VALID_TOOLCHAINS_all; do
4417 # Use indirect variable referencing
4418 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4419 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
54093 # appended to by config.status. When coming back to configure, we
54094 # need to make the FD available again.
54095 if test "$no_create" != yes; then
54096 ac_cs_success=:
54097 ac_config_status_args=
54098 test "$silent" = yes &&
54099 ac_config_status_args="$ac_config_status_args --quiet"
54100 exec 5>/dev/null
54101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54102 exec 5>>config.log
54103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54104 # would make configure fail if this is the last instruction.
54105 $ac_cs_success || as_fn_exit 1
54106 fi
54107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
54108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
54109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
54110 fi
54111
54112
54113
54114 # Try to move the config.log file to the output directory.
54115 if test -e ./config.log; then
54116 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
54117 fi
54118
54119 # Make the compare script executable
54120 $CHMOD +x $OUTPUT_ROOT/compare.sh
54121
54122 # Finally output some useful information to the user
54123
54124 # Finally output some useful information to the user
54125
54126 printf "\n"
54127 printf "====================================================\n"
54128 printf "A new configuration has been successfully created in\n"
54129 printf "$OUTPUT_ROOT\n"
54130 if test "x$CONFIGURE_COMMAND_LINE" != x; then
54131 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
54132 else
54133 printf "using default settings.\n"
54134 fi
54135
54136 printf "\n"
54137 printf "Configuration summary:\n"
54178 printf "This will severely degrade build performance!\n"
54179 printf "It is recommended that you create an output directory on a local disk,\n"
54180 printf "and run the configure script again from that directory.\n"
54181 printf "\n"
54182 fi
54183
54184 if test "x$IS_RECONFIGURE" = "xyes"; then
54185 printf "WARNING: The result of this configuration has overridden an older\n"
54186 printf "configuration. You *should* run 'make clean' to make sure you get a\n"
54187 printf "proper build. Failure to do so might result in strange build problems.\n"
54188 printf "\n"
54189 fi
54190
54191 if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then
54192 printf "WARNING: The toolchain version used is known to have issues. Please\n"
54193 printf "consider using a supported version unless you know what you are doing.\n"
54194 printf "\n"
54195 fi
54196
54197
54198 if test -e "$OUTPUT_ROOT/config.log"; then
54199 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1
54200 if test $? -eq 0; then
54201 printf "The following warnings were produced. Repeated here for convenience:\n"
54202 # We must quote sed expression (using []) to stop m4 from eating the [].
54203 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //'
54204 printf "\n"
54205 fi
54206 fi
54207
54208
|
3480 # Goes looking for a usable version of GNU make.
3481
3482
3483
3484
3485
3486
3487 # Check if build directory is on local disk. If not possible to determine,
3488 # we prefer to claim it's local.
3489 # Argument 1: directory to test
3490 # Argument 2: what to do if it is on local disk
3491 # Argument 3: what to do otherwise (remote disk or failure)
3492
3493
3494 # Check that source files have basic read permissions set. This might
3495 # not be the case in cygwin in certain conditions.
3496
3497
3498
3499
3500 # Code to run after AC_OUTPUT
3501
3502
3503 #
3504 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3506 #
3507 # This code is free software; you can redistribute it and/or modify it
3508 # under the terms of the GNU General Public License version 2 only, as
3509 # published by the Free Software Foundation. Oracle designates this
3510 # particular file as subject to the "Classpath" exception as provided
3511 # by Oracle in the LICENSE file that accompanied this code.
3512 #
3513 # This code is distributed in the hope that it will be useful, but WITHOUT
3514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3515 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3516 # version 2 for more details (a copy is included in the LICENSE file that
3517 # accompanied this code).
3518 #
3519 # You should have received a copy of the GNU General Public License version
3520 # 2 along with this work; if not, write to the Free Software Foundation,
3521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3522 #
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 # This line needs to be here, verbatim, after all includes and the dummy hook
4397 # definitions. It is replaced with custom functionality when building
4398 # custom sources.
4399 #CUSTOM_AUTOCONF_INCLUDE
4400
4401 # Do not change or remove the following line, it is needed for consistency checks:
4402 DATE_WHEN_GENERATED=1619439948
4403
4404 ###############################################################################
4405 #
4406 # Initialization / Boot-strapping
4407 #
4408 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4409 # thus it jumps back and forth, each time gaining something needed later on.
4410 #
4411 ###############################################################################
4412
4413 # If we are requested to print additional help, do that and then exit.
4414 # This must be the very first call.
4415
4416 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4417 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4418 $PRINTF "Which are valid to use depends on the build platform.\n"
4419 for toolchain in $VALID_TOOLCHAINS_all; do
4420 # Use indirect variable referencing
4421 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4422 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
54096 # appended to by config.status. When coming back to configure, we
54097 # need to make the FD available again.
54098 if test "$no_create" != yes; then
54099 ac_cs_success=:
54100 ac_config_status_args=
54101 test "$silent" = yes &&
54102 ac_config_status_args="$ac_config_status_args --quiet"
54103 exec 5>/dev/null
54104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54105 exec 5>>config.log
54106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54107 # would make configure fail if this is the last instruction.
54108 $ac_cs_success || as_fn_exit 1
54109 fi
54110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
54111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
54112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
54113 fi
54114
54115
54116 # After AC_OUTPUT, we need to do final work
54117
54118
54119 # Rotate our log file (configure.log)
54120 if test -e "$OUTPUT_ROOT/configure.log.old"; then
54121 $RM -f "$OUTPUT_ROOT/configure.log.old"
54122 fi
54123 if test -e "$OUTPUT_ROOT/configure.log"; then
54124 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null
54125 fi
54126
54127 # Move configure.log from current directory to the build output root
54128 if test -e ./configure.log; then
54129 echo found it
54130 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null
54131 fi
54132
54133 # Make the compare script executable
54134 $CHMOD +x $OUTPUT_ROOT/compare.sh
54135
54136
54137 # Make the compare script executable
54138 $CHMOD +x $OUTPUT_ROOT/compare.sh
54139
54140 # Finally output some useful information to the user
54141
54142 # Finally output some useful information to the user
54143
54144 printf "\n"
54145 printf "====================================================\n"
54146 printf "A new configuration has been successfully created in\n"
54147 printf "$OUTPUT_ROOT\n"
54148 if test "x$CONFIGURE_COMMAND_LINE" != x; then
54149 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
54150 else
54151 printf "using default settings.\n"
54152 fi
54153
54154 printf "\n"
54155 printf "Configuration summary:\n"
54196 printf "This will severely degrade build performance!\n"
54197 printf "It is recommended that you create an output directory on a local disk,\n"
54198 printf "and run the configure script again from that directory.\n"
54199 printf "\n"
54200 fi
54201
54202 if test "x$IS_RECONFIGURE" = "xyes"; then
54203 printf "WARNING: The result of this configuration has overridden an older\n"
54204 printf "configuration. You *should* run 'make clean' to make sure you get a\n"
54205 printf "proper build. Failure to do so might result in strange build problems.\n"
54206 printf "\n"
54207 fi
54208
54209 if test "x$UNSUPPORTED_TOOLCHAIN_VERSION" = "xyes"; then
54210 printf "WARNING: The toolchain version used is known to have issues. Please\n"
54211 printf "consider using a supported version unless you know what you are doing.\n"
54212 printf "\n"
54213 fi
54214
54215
54216 # Locate config.log.
54217 if test -e "./config.log"; then
54218 CONFIG_LOG_PATH="."
54219 fi
54220
54221 if test -e "$CONFIG_LOG_PATH/config.log"; then
54222 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1
54223 if test $? -eq 0; then
54224 printf "The following warnings were produced. Repeated here for convenience:\n"
54225 # We must quote sed expression (using []) to stop m4 from eating the [].
54226 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //'
54227 printf "\n"
54228 fi
54229 fi
54230
|