< prev index next >

common/autoconf/generated-configure.sh

Print this page




4348 
4349 
4350 
4351 
4352 
4353 
4354 
4355 
4356 
4357 
4358 
4359 
4360 
4361 
4362 # This line needs to be here, verbatim, after all includes and the dummy hook
4363 # definitions. It is replaced with custom functionality when building
4364 # custom sources.
4365 #CUSTOM_AUTOCONF_INCLUDE
4366 
4367 # Do not change or remove the following line, it is needed for consistency checks:
4368 DATE_WHEN_GENERATED=1427843803
4369 
4370 ###############################################################################
4371 #
4372 # Initialization / Boot-strapping
4373 #
4374 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4375 # thus it jumps back and forth, each time gaining something needed later on.
4376 #
4377 ###############################################################################
4378 
4379 # If we are requested to print additional help, do that and then exit.
4380 # This must be the very first call.
4381 
4382   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4383     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4384     $PRINTF "Which are valid to use depends on the build platform.\n"
4385     for toolchain in $VALID_TOOLCHAINS_all; do
4386       # Use indirect variable referencing
4387       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4388       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


15249 
15250 
15251   # Test from where we are running configure, in or outside of src root.
15252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15253 $as_echo_n "checking where to store configuration... " >&6; }
15254   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15255       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15256       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15257     # We are running configure from the src root.
15258     # Create a default ./build/target-variant-debuglevel output root.
15259     if test "x${CONF_NAME}" = x; then
15260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15261 $as_echo "in default location" >&6; }
15262       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15263     else
15264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15265 $as_echo "in build directory with custom name" >&6; }
15266     fi
15267     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15268     $MKDIR -p "$OUTPUT_ROOT"


15269     if test ! -d "$OUTPUT_ROOT"; then
15270       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15271     fi
15272   else
15273     # We are running configure from outside of the src dir.
15274     # Then use the current directory as output dir!
15275     # If configuration is situated in normal build directory, just use the build
15276     # directory name as configuration name, otherwise use the complete path.
15277     if test "x${CONF_NAME}" = x; then
15278       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15279     fi
15280     OUTPUT_ROOT="$CURDIR"
15281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15282 $as_echo "in current directory" >&6; }
15283 
15284     # WARNING: This might be a bad thing to do. You need to be sure you want to
15285     # have a configuration in this directory. Do some sanity checks!
15286 
15287     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15288       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for


27605     # Now join together the path and the arguments once again
27606     if test "x$arguments" != xEOL; then
27607       new_complete="$new_path ${arguments% *}"
27608     else
27609       new_complete="$new_path"
27610     fi
27611 
27612     if test "x$complete" != "x$new_complete"; then
27613       VS_ENV_CMD="$new_complete"
27614       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5
27615 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;}
27616     fi
27617   fi
27618 
27619 
27620     # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
27621     { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5
27622 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
27623 
27624     # We need to create a couple of temporary files.
27625     VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env"
27626     $MKDIR -p $VS_ENV_TMP_DIR
27627 
27628     # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment).
27629     # Instead create a shell script which will set the relevant variables when run.
27630     WINPATH_VS_ENV_CMD="$VS_ENV_CMD"
27631 
27632   unix_path="$WINPATH_VS_ENV_CMD"
27633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27634     windows_path=`$CYGPATH -m "$unix_path"`
27635     WINPATH_VS_ENV_CMD="$windows_path"
27636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27637     windows_path=`cmd //c echo $unix_path`
27638     WINPATH_VS_ENV_CMD="$windows_path"
27639   fi
27640 
27641     WINPATH_BASH="$BASH"
27642 
27643   unix_path="$WINPATH_BASH"
27644   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27645     windows_path=`$CYGPATH -m "$unix_path"`


43119 
43120 
43121 
43122 ###############################################################################
43123 #
43124 # Check dependencies for external and internal libraries.
43125 #
43126 ###############################################################################
43127 
43128 # After we have toolchain, we can compile fixpath. It's needed by the lib checks.
43129 
43130   # When using cygwin or msys, we need a wrapper binary that renames
43131   # /cygdrive/c/ arguments into c:/ arguments and peeks into
43132   # @files and rewrites these too! This wrapper binary is
43133   # called fixpath.
43134   FIXPATH=
43135   if test "x$OPENJDK_BUILD_OS" = xwindows; then
43136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
43137 $as_echo_n "checking if fixpath can be created... " >&6; }
43138     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
43139     FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe"

43140     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
43141       FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC`
43142       FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN`
43143       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
43144       FIXPATH="$OUTPUT_ROOT/fixpath.exe -c"
43145     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
43146       FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC`
43147       FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN`
43148 
43149       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
43150       # @ was chosen as separator to minimize risk of other tools messing around with it
43151       all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq`

43152       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`














43153 
43154       FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list"






43155     fi
43156     rm -f $OUTPUT_ROOT/fixpath*
43157     cd $OUTPUT_ROOT
43158     $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1


43159     cd $CURDIR
43160 
43161     if test ! -x $OUTPUT_ROOT/fixpath.exe; then
43162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43163 $as_echo "no" >&6; }
43164       cat $OUTPUT_ROOT/fixpath1.log
43165       as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5
43166     fi
43167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43168 $as_echo "yes" >&6; }
43169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
43170 $as_echo_n "checking if fixpath.exe works... " >&6; }
43171     cd $OUTPUT_ROOT
43172     $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1

43173     cd $CURDIR
43174     if test ! -x $OUTPUT_ROOT/fixpath2.exe; then
43175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43176 $as_echo "no" >&6; }
43177       cat $OUTPUT_ROOT/fixpath2.log
43178       as_fn_error $? "fixpath did not work!" "$LINENO" 5
43179     fi
43180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43181 $as_echo "yes" >&6; }
43182     rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj
43183   fi
43184 
43185 
43186 
43187 
43188 
43189 
43190   ###############################################################################
43191   #
43192   # OS specific settings that we never will need to probe.
43193   #
43194   if test "x$OPENJDK_TARGET_OS" = xlinux; then
43195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
43196 $as_echo_n "checking what is not needed on Linux?... " >&6; }
43197     PULSE_NOT_NEEDED=yes
43198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
43199 $as_echo "pulse" >&6; }
43200   fi
43201 
43202   if test "x$OPENJDK_TARGET_OS" = xsolaris; then


51399 
51400   # Check whether --enable-sjavac was given.
51401 if test "${enable_sjavac+set}" = set; then :
51402   enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
51403 else
51404   ENABLE_SJAVAC='no'
51405 fi
51406 
51407   if test "x$JVM_ARG_OK" = "xfalse"; then
51408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5
51409 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;}
51410     ENABLE_SJAVAC=no;
51411   fi
51412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
51413 $as_echo_n "checking whether to use sjavac... " >&6; }
51414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
51415 $as_echo "$ENABLE_SJAVAC" >&6; }
51416 
51417 
51418   if test "x$ENABLE_SJAVAC" = xyes; then
51419     SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers"
51420   else
51421     SJAVAC_SERVER_DIR=
51422   fi
51423 
51424 
51425 
51426 # Can the C/C++ compiler use precompiled headers?
51427 
51428 
51429   ###############################################################################
51430   #
51431   # Can the C/C++ compiler use precompiled headers?
51432   #
51433   # Check whether --enable-precompiled-headers was given.
51434 if test "${enable_precompiled_headers+set}" = set; then :
51435   enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers}
51436 else
51437   ENABLE_PRECOMPH=yes
51438 fi
51439 


51832 
51833 
51834 
51835   # Check if the user has any old-style ALT_ variables set.
51836   FOUND_ALT_VARIABLES=`env | grep ^ALT_`
51837 
51838   # Before generating output files, test if they exist. If they do, this is a reconfigure.
51839   # Since we can't properly handle the dependencies for this, warn the user about the situation
51840   if test -e $OUTPUT_ROOT/spec.gmk; then
51841     IS_RECONFIGURE=yes
51842   else
51843     IS_RECONFIGURE=no
51844   fi
51845 
51846 
51847 # At the end, call the custom hook. (Dummy macro if no custom sources available)
51848 
51849 
51850 # We're messing a bit with internal autoconf variables to put the config.status
51851 # in the output directory instead of the current directory.
51852 CONFIG_STATUS="$OUTPUT_ROOT/config.status"
51853 
51854 # Create the actual output files. Now the main work of configure is done.
51855 cat >confcache <<\_ACEOF
51856 # This file is a shell script that caches the results of configure
51857 # tests run on this system so they can be shared between configure
51858 # scripts and configure runs, see configure's option --config-cache.
51859 # It is not useful on other systems.  If it contains results you don't
51860 # want to keep, you may remove or edit it.
51861 #
51862 # config.status only pays attention to the cache file if you give it
51863 # the --recheck option to rerun configure.
51864 #
51865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51867 # following values.
51868 
51869 _ACEOF
51870 
51871 # The following way of writing the cache mishandles newlines in values,
51872 # but we know of no workaround that is simple, portable, and efficient.


53000   ac_cs_success=:
53001   ac_config_status_args=
53002   test "$silent" = yes &&
53003     ac_config_status_args="$ac_config_status_args --quiet"
53004   exec 5>/dev/null
53005   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53006   exec 5>>config.log
53007   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53008   # would make configure fail if this is the last instruction.
53009   $ac_cs_success || as_fn_exit 1
53010 fi
53011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
53012   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
53013 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
53014 fi
53015 
53016 
53017 
53018 # Try to move the config.log file to the output directory.
53019 if test -e ./config.log; then
53020   $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
53021 fi
53022 
53023 # Make the compare script executable
53024 $CHMOD +x $OUTPUT_ROOT/compare.sh
53025 
53026 # Finally output some useful information to the user
53027 
53028   # Finally output some useful information to the user
53029 
53030   printf "\n"
53031   printf "====================================================\n"
53032   if test "x$no_create" != "xyes"; then
53033     if test "x$IS_RECONFIGURE" != "xyes"; then
53034       printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT"
53035     else
53036       printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT"
53037     fi
53038   else
53039     if test "x$IS_RECONFIGURE" != "xyes"; then
53040       printf "A configuration has been successfully checked but not created\n"




4348 
4349 
4350 
4351 
4352 
4353 
4354 
4355 
4356 
4357 
4358 
4359 
4360 
4361 
4362 # This line needs to be here, verbatim, after all includes and the dummy hook
4363 # definitions. It is replaced with custom functionality when building
4364 # custom sources.
4365 #CUSTOM_AUTOCONF_INCLUDE
4366 
4367 # Do not change or remove the following line, it is needed for consistency checks:
4368 DATE_WHEN_GENERATED=1427970054
4369 
4370 ###############################################################################
4371 #
4372 # Initialization / Boot-strapping
4373 #
4374 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4375 # thus it jumps back and forth, each time gaining something needed later on.
4376 #
4377 ###############################################################################
4378 
4379 # If we are requested to print additional help, do that and then exit.
4380 # This must be the very first call.
4381 
4382   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4383     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4384     $PRINTF "Which are valid to use depends on the build platform.\n"
4385     for toolchain in $VALID_TOOLCHAINS_all; do
4386       # Use indirect variable referencing
4387       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4388       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


15249 
15250 
15251   # Test from where we are running configure, in or outside of src root.
15252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15253 $as_echo_n "checking where to store configuration... " >&6; }
15254   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15255       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15256       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15257     # We are running configure from the src root.
15258     # Create a default ./build/target-variant-debuglevel output root.
15259     if test "x${CONF_NAME}" = x; then
15260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15261 $as_echo "in default location" >&6; }
15262       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15263     else
15264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15265 $as_echo "in build directory with custom name" >&6; }
15266     fi
15267     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15268     $MKDIR -p "$OUTPUT_ROOT"
15269     CONFIGURE_SUPPORT="$OUTPUT_ROOT/configure-support"
15270     $MKDIR -p "$CONFIGURE_SUPPORT"
15271     if test ! -d "$OUTPUT_ROOT"; then
15272       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15273     fi
15274   else
15275     # We are running configure from outside of the src dir.
15276     # Then use the current directory as output dir!
15277     # If configuration is situated in normal build directory, just use the build
15278     # directory name as configuration name, otherwise use the complete path.
15279     if test "x${CONF_NAME}" = x; then
15280       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15281     fi
15282     OUTPUT_ROOT="$CURDIR"
15283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15284 $as_echo "in current directory" >&6; }
15285 
15286     # WARNING: This might be a bad thing to do. You need to be sure you want to
15287     # have a configuration in this directory. Do some sanity checks!
15288 
15289     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15290       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for


27607     # Now join together the path and the arguments once again
27608     if test "x$arguments" != xEOL; then
27609       new_complete="$new_path ${arguments% *}"
27610     else
27611       new_complete="$new_path"
27612     fi
27613 
27614     if test "x$complete" != "x$new_complete"; then
27615       VS_ENV_CMD="$new_complete"
27616       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5
27617 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;}
27618     fi
27619   fi
27620 
27621 
27622     # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
27623     { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5
27624 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
27625 
27626     # We need to create a couple of temporary files.
27627     VS_ENV_TMP_DIR="$CONFIGURE_SUPPORT/vs-env"
27628     $MKDIR -p $VS_ENV_TMP_DIR
27629 
27630     # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment).
27631     # Instead create a shell script which will set the relevant variables when run.
27632     WINPATH_VS_ENV_CMD="$VS_ENV_CMD"
27633 
27634   unix_path="$WINPATH_VS_ENV_CMD"
27635   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27636     windows_path=`$CYGPATH -m "$unix_path"`
27637     WINPATH_VS_ENV_CMD="$windows_path"
27638   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27639     windows_path=`cmd //c echo $unix_path`
27640     WINPATH_VS_ENV_CMD="$windows_path"
27641   fi
27642 
27643     WINPATH_BASH="$BASH"
27644 
27645   unix_path="$WINPATH_BASH"
27646   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27647     windows_path=`$CYGPATH -m "$unix_path"`


43121 
43122 
43123 
43124 ###############################################################################
43125 #
43126 # Check dependencies for external and internal libraries.
43127 #
43128 ###############################################################################
43129 
43130 # After we have toolchain, we can compile fixpath. It's needed by the lib checks.
43131 
43132   # When using cygwin or msys, we need a wrapper binary that renames
43133   # /cygdrive/c/ arguments into c:/ arguments and peeks into
43134   # @files and rewrites these too! This wrapper binary is
43135   # called fixpath.
43136   FIXPATH=
43137   if test "x$OPENJDK_BUILD_OS" = xwindows; then
43138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
43139 $as_echo_n "checking if fixpath can be created... " >&6; }
43140     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
43141     FIXPATH_BIN="$CONFIGURE_SUPPORT/bin/fixpath.exe"
43142     FIXPATH_DIR="$CONFIGURE_SUPPORT/fixpath"
43143     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then


43144       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
43145       FIXPATH="$FIXPATH_BIN -c"
43146     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then



43147       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
43148       # @ was chosen as separator to minimize risk of other tools messing around with it
43149       all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \
43150           | tr ' ' '\n' | grep '^/./' | sort | uniq`
43151       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
43152       FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list"
43153     fi
43154     FIXPATH_SRC_W="$FIXPATH_SRC"
43155     FIXPATH_BIN_W="$FIXPATH_BIN"
43156 
43157   unix_path="$FIXPATH_SRC_W"
43158   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43159     windows_path=`$CYGPATH -m "$unix_path"`
43160     FIXPATH_SRC_W="$windows_path"
43161   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43162     windows_path=`cmd //c echo $unix_path`
43163     FIXPATH_SRC_W="$windows_path"
43164   fi
43165 
43166 
43167   unix_path="$FIXPATH_BIN_W"
43168   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43169     windows_path=`$CYGPATH -m "$unix_path"`
43170     FIXPATH_BIN_W="$windows_path"
43171   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43172     windows_path=`cmd //c echo $unix_path`
43173     FIXPATH_BIN_W="$windows_path"
43174   fi
43175 
43176     $RM -rf $FIXPATH_BIN $FIXPATH_DIR
43177     $MKDIR -p $FIXPATH_DIR $CONFIGURE_SUPPORT/bin
43178     cd $FIXPATH_DIR
43179     $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1
43180     cd $CURDIR
43181 
43182     if test ! -x $FIXPATH_BIN; then
43183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43184 $as_echo "no" >&6; }
43185       cat $FIXPATH_DIR/fixpath1.log
43186       as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5
43187     fi
43188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43189 $as_echo "yes" >&6; }
43190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
43191 $as_echo_n "checking if fixpath.exe works... " >&6; }
43192     cd $FIXPATH_DIR
43193     $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \
43194         > $FIXPATH_DIR/fixpath2.log 2>&1
43195     cd $CURDIR
43196     if test ! -x $FIXPATH_DIR/fixpath2.exe; then
43197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43198 $as_echo "no" >&6; }
43199       cat $FIXPATH_DIR/fixpath2.log
43200       as_fn_error $? "fixpath did not work!" "$LINENO" 5
43201     fi
43202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43203 $as_echo "yes" >&6; }

43204   fi
43205 
43206 
43207 
43208 
43209 
43210 
43211   ###############################################################################
43212   #
43213   # OS specific settings that we never will need to probe.
43214   #
43215   if test "x$OPENJDK_TARGET_OS" = xlinux; then
43216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
43217 $as_echo_n "checking what is not needed on Linux?... " >&6; }
43218     PULSE_NOT_NEEDED=yes
43219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
43220 $as_echo "pulse" >&6; }
43221   fi
43222 
43223   if test "x$OPENJDK_TARGET_OS" = xsolaris; then


51420 
51421   # Check whether --enable-sjavac was given.
51422 if test "${enable_sjavac+set}" = set; then :
51423   enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
51424 else
51425   ENABLE_SJAVAC='no'
51426 fi
51427 
51428   if test "x$JVM_ARG_OK" = "xfalse"; then
51429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5
51430 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;}
51431     ENABLE_SJAVAC=no;
51432   fi
51433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
51434 $as_echo_n "checking whether to use sjavac... " >&6; }
51435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
51436 $as_echo "$ENABLE_SJAVAC" >&6; }
51437 
51438 
51439   if test "x$ENABLE_SJAVAC" = xyes; then
51440     SJAVAC_SERVER_DIR="$OUTPUT_ROOT/make-support/javacservers"
51441   else
51442     SJAVAC_SERVER_DIR=
51443   fi
51444 
51445 
51446 
51447 # Can the C/C++ compiler use precompiled headers?
51448 
51449 
51450   ###############################################################################
51451   #
51452   # Can the C/C++ compiler use precompiled headers?
51453   #
51454   # Check whether --enable-precompiled-headers was given.
51455 if test "${enable_precompiled_headers+set}" = set; then :
51456   enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers}
51457 else
51458   ENABLE_PRECOMPH=yes
51459 fi
51460 


51853 
51854 
51855 
51856   # Check if the user has any old-style ALT_ variables set.
51857   FOUND_ALT_VARIABLES=`env | grep ^ALT_`
51858 
51859   # Before generating output files, test if they exist. If they do, this is a reconfigure.
51860   # Since we can't properly handle the dependencies for this, warn the user about the situation
51861   if test -e $OUTPUT_ROOT/spec.gmk; then
51862     IS_RECONFIGURE=yes
51863   else
51864     IS_RECONFIGURE=no
51865   fi
51866 
51867 
51868 # At the end, call the custom hook. (Dummy macro if no custom sources available)
51869 
51870 
51871 # We're messing a bit with internal autoconf variables to put the config.status
51872 # in the output directory instead of the current directory.
51873 CONFIG_STATUS="$CONFIGURE_SUPPORT/config.status"
51874 
51875 # Create the actual output files. Now the main work of configure is done.
51876 cat >confcache <<\_ACEOF
51877 # This file is a shell script that caches the results of configure
51878 # tests run on this system so they can be shared between configure
51879 # scripts and configure runs, see configure's option --config-cache.
51880 # It is not useful on other systems.  If it contains results you don't
51881 # want to keep, you may remove or edit it.
51882 #
51883 # config.status only pays attention to the cache file if you give it
51884 # the --recheck option to rerun configure.
51885 #
51886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51888 # following values.
51889 
51890 _ACEOF
51891 
51892 # The following way of writing the cache mishandles newlines in values,
51893 # but we know of no workaround that is simple, portable, and efficient.


53021   ac_cs_success=:
53022   ac_config_status_args=
53023   test "$silent" = yes &&
53024     ac_config_status_args="$ac_config_status_args --quiet"
53025   exec 5>/dev/null
53026   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53027   exec 5>>config.log
53028   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53029   # would make configure fail if this is the last instruction.
53030   $ac_cs_success || as_fn_exit 1
53031 fi
53032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
53033   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
53034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
53035 fi
53036 
53037 
53038 
53039 # Try to move the config.log file to the output directory.
53040 if test -e ./config.log; then
53041   $MV -f ./config.log "$CONFIGURE_SUPPORT/config.log" 2> /dev/null
53042 fi
53043 
53044 # Make the compare script executable
53045 $CHMOD +x $OUTPUT_ROOT/compare.sh
53046 
53047 # Finally output some useful information to the user
53048 
53049   # Finally output some useful information to the user
53050 
53051   printf "\n"
53052   printf "====================================================\n"
53053   if test "x$no_create" != "xyes"; then
53054     if test "x$IS_RECONFIGURE" != "xyes"; then
53055       printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT"
53056     else
53057       printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT"
53058     fi
53059   else
53060     if test "x$IS_RECONFIGURE" != "xyes"; then
53061       printf "A configuration has been successfully checked but not created\n"


< prev index next >