common/autoconf/generated-configure.sh
changeset 29790 79641c886929
parent 29675 1d3f03251645
child 29848 13db4da8a496
equal deleted inserted replaced
29789:bfb0c4f25f0f 29790:79641c886929
   630 ac_subst_vars='LTLIBOBJS
   630 ac_subst_vars='LTLIBOBJS
   631 LIBOBJS
   631 LIBOBJS
   632 CFLAGS_CCACHE
   632 CFLAGS_CCACHE
   633 CCACHE
   633 CCACHE
   634 USE_PRECOMPILED_HEADER
   634 USE_PRECOMPILED_HEADER
   635 SJAVAC_SERVER_DIR
       
   636 ENABLE_SJAVAC
   635 ENABLE_SJAVAC
   637 SJAVAC_SERVER_JAVA_FLAGS
   636 SJAVAC_SERVER_JAVA_FLAGS
   638 SJAVAC_SERVER_JAVA
   637 SJAVAC_SERVER_JAVA
   639 JAVA_TOOL_FLAGS_SMALL
   638 JAVA_TOOL_FLAGS_SMALL
   640 JAVA_FLAGS_SMALL
   639 JAVA_FLAGS_SMALL
   882 CHECK_TOOLSDIR_MAKE
   881 CHECK_TOOLSDIR_MAKE
   883 CHECK_TOOLSDIR_GMAKE
   882 CHECK_TOOLSDIR_GMAKE
   884 CHECK_MAKE
   883 CHECK_MAKE
   885 CHECK_GMAKE
   884 CHECK_GMAKE
   886 PKGHANDLER
   885 PKGHANDLER
       
   886 CONFIGURESUPPORT_OUTPUTDIR
   887 OUTPUT_ROOT
   887 OUTPUT_ROOT
   888 CONF_NAME
   888 CONF_NAME
   889 SPEC
   889 SPEC
   890 SDKROOT
   890 SDKROOT
   891 XCODEBUILD
   891 XCODEBUILD
  4363 # definitions. It is replaced with custom functionality when building
  4363 # definitions. It is replaced with custom functionality when building
  4364 # custom sources.
  4364 # custom sources.
  4365 #CUSTOM_AUTOCONF_INCLUDE
  4365 #CUSTOM_AUTOCONF_INCLUDE
  4366 
  4366 
  4367 # Do not change or remove the following line, it is needed for consistency checks:
  4367 # Do not change or remove the following line, it is needed for consistency checks:
  4368 DATE_WHEN_GENERATED=1428017006
  4368 DATE_WHEN_GENERATED=1428676283
  4369 
  4369 
  4370 ###############################################################################
  4370 ###############################################################################
  4371 #
  4371 #
  4372 # Initialization / Boot-strapping
  4372 # Initialization / Boot-strapping
  4373 #
  4373 #
 15264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
 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; }
 15265 $as_echo "in build directory with custom name" >&6; }
 15266     fi
 15266     fi
 15267     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
 15267     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
 15268     $MKDIR -p "$OUTPUT_ROOT"
 15268     $MKDIR -p "$OUTPUT_ROOT"
       
 15269     CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
       
 15270     $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
 15269     if test ! -d "$OUTPUT_ROOT"; then
 15271     if test ! -d "$OUTPUT_ROOT"; then
 15270       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
 15272       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
 15271     fi
 15273     fi
 15272   else
 15274   else
 15273     # We are running configure from outside of the src dir.
 15275     # We are running configure from outside of the src dir.
 15446   SPEC=$OUTPUT_ROOT/spec.gmk
 15448   SPEC=$OUTPUT_ROOT/spec.gmk
 15447 
 15449 
 15448   CONF_NAME=$CONF_NAME
 15450   CONF_NAME=$CONF_NAME
 15449 
 15451 
 15450   OUTPUT_ROOT=$OUTPUT_ROOT
 15452   OUTPUT_ROOT=$OUTPUT_ROOT
       
 15453 
 15451 
 15454 
 15452 
 15455 
 15453   # The spec.gmk file contains all variables for the make system.
 15456   # The spec.gmk file contains all variables for the make system.
 15454   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
 15457   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
 15455 
 15458 
 27620     # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
 27623     # 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
 27624     { $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;}
 27625 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
 27623 
 27626 
 27624     # We need to create a couple of temporary files.
 27627     # We need to create a couple of temporary files.
 27625     VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env"
 27628     VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env"
 27626     $MKDIR -p $VS_ENV_TMP_DIR
 27629     $MKDIR -p $VS_ENV_TMP_DIR
 27627 
 27630 
 27628     # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment).
 27631     # 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.
 27632     # Instead create a shell script which will set the relevant variables when run.
 27630     WINPATH_VS_ENV_CMD="$VS_ENV_CMD"
 27633     WINPATH_VS_ENV_CMD="$VS_ENV_CMD"
 43134   FIXPATH=
 43137   FIXPATH=
 43135   if test "x$OPENJDK_BUILD_OS" = xwindows; then
 43138   if test "x$OPENJDK_BUILD_OS" = xwindows; then
 43136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
 43139     { $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; }
 43140 $as_echo_n "checking if fixpath can be created... " >&6; }
 43138     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
 43141     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
 43139     FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe"
 43142     FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe"
       
 43143     FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath"
 43140     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
 43144     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
 43145       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
 43144       FIXPATH="$OUTPUT_ROOT/fixpath.exe -c"
 43146       FIXPATH="$FIXPATH_BIN -c"
 43145     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
 43147     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
 43148       # 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
 43149       # @ 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`
 43150       all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \
       
 43151           | tr ' ' '\n' | grep '^/./' | sort | uniq`
 43152       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
 43152       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
 43153 
 43153       FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list"
 43154       FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list"
 43154     fi
 43155     fi
 43155     FIXPATH_SRC_W="$FIXPATH_SRC"
 43156     rm -f $OUTPUT_ROOT/fixpath*
 43156     FIXPATH_BIN_W="$FIXPATH_BIN"
 43157     cd $OUTPUT_ROOT
 43157 
 43158     $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1
 43158   unix_path="$FIXPATH_SRC_W"
       
 43159   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 43160     windows_path=`$CYGPATH -m "$unix_path"`
       
 43161     FIXPATH_SRC_W="$windows_path"
       
 43162   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 43163     windows_path=`cmd //c echo $unix_path`
       
 43164     FIXPATH_SRC_W="$windows_path"
       
 43165   fi
       
 43166 
       
 43167 
       
 43168   unix_path="$FIXPATH_BIN_W"
       
 43169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
       
 43170     windows_path=`$CYGPATH -m "$unix_path"`
       
 43171     FIXPATH_BIN_W="$windows_path"
       
 43172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
       
 43173     windows_path=`cmd //c echo $unix_path`
       
 43174     FIXPATH_BIN_W="$windows_path"
       
 43175   fi
       
 43176 
       
 43177     $RM -rf $FIXPATH_BIN $FIXPATH_DIR
       
 43178     $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin
       
 43179     cd $FIXPATH_DIR
       
 43180     $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1
 43159     cd $CURDIR
 43181     cd $CURDIR
 43160 
 43182 
 43161     if test ! -x $OUTPUT_ROOT/fixpath.exe; then
 43183     if test ! -x $FIXPATH_BIN; then
 43162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 43184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 43163 $as_echo "no" >&6; }
 43185 $as_echo "no" >&6; }
 43164       cat $OUTPUT_ROOT/fixpath1.log
 43186       cat $FIXPATH_DIR/fixpath1.log
 43165       as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5
 43187       as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5
 43166     fi
 43188     fi
 43167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 43189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 43168 $as_echo "yes" >&6; }
 43190 $as_echo "yes" >&6; }
 43169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
 43191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
 43170 $as_echo_n "checking if fixpath.exe works... " >&6; }
 43192 $as_echo_n "checking if fixpath.exe works... " >&6; }
 43171     cd $OUTPUT_ROOT
 43193     cd $FIXPATH_DIR
 43172     $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1
 43194     $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \
       
 43195         > $FIXPATH_DIR/fixpath2.log 2>&1
 43173     cd $CURDIR
 43196     cd $CURDIR
 43174     if test ! -x $OUTPUT_ROOT/fixpath2.exe; then
 43197     if test ! -x $FIXPATH_DIR/fixpath2.exe; then
 43175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 43198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 43176 $as_echo "no" >&6; }
 43199 $as_echo "no" >&6; }
 43177       cat $OUTPUT_ROOT/fixpath2.log
 43200       cat $FIXPATH_DIR/fixpath2.log
 43178       as_fn_error $? "fixpath did not work!" "$LINENO" 5
 43201       as_fn_error $? "fixpath did not work!" "$LINENO" 5
 43179     fi
 43202     fi
 43180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 43203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 43181 $as_echo "yes" >&6; }
 43204 $as_echo "yes" >&6; }
 43182     rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj
       
 43183   fi
 43205   fi
 43184 
 43206 
 43185 
 43207 
 43186 
 43208 
 43187 
 43209 
 51413 $as_echo_n "checking whether to use sjavac... " >&6; }
 51435 $as_echo_n "checking whether to use sjavac... " >&6; }
 51414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
 51436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
 51415 $as_echo "$ENABLE_SJAVAC" >&6; }
 51437 $as_echo "$ENABLE_SJAVAC" >&6; }
 51416 
 51438 
 51417 
 51439 
 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 
 51440 
 51426 # Can the C/C++ compiler use precompiled headers?
 51441 # Can the C/C++ compiler use precompiled headers?
 51427 
 51442 
 51428 
 51443 
 51429   ###############################################################################
 51444   ###############################################################################
 51847 # At the end, call the custom hook. (Dummy macro if no custom sources available)
 51862 # At the end, call the custom hook. (Dummy macro if no custom sources available)
 51848 
 51863 
 51849 
 51864 
 51850 # We're messing a bit with internal autoconf variables to put the config.status
 51865 # We're messing a bit with internal autoconf variables to put the config.status
 51851 # in the output directory instead of the current directory.
 51866 # in the output directory instead of the current directory.
 51852 CONFIG_STATUS="$OUTPUT_ROOT/config.status"
 51867 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status"
 51853 
 51868 
 51854 # Create the actual output files. Now the main work of configure is done.
 51869 # Create the actual output files. Now the main work of configure is done.
 51855 cat >confcache <<\_ACEOF
 51870 cat >confcache <<\_ACEOF
 51856 # This file is a shell script that caches the results of configure
 51871 # 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
 51872 # tests run on this system so they can be shared between configure
 53015 
 53030 
 53016 
 53031 
 53017 
 53032 
 53018 # Try to move the config.log file to the output directory.
 53033 # Try to move the config.log file to the output directory.
 53019 if test -e ./config.log; then
 53034 if test -e ./config.log; then
 53020   $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
 53035   $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null
 53021 fi
 53036 fi
 53022 
 53037 
 53023 # Make the compare script executable
 53038 # Make the compare script executable
 53024 $CHMOD +x $OUTPUT_ROOT/compare.sh
 53039 $CHMOD +x $OUTPUT_ROOT/compare.sh
 53025 
 53040