common/autoconf/generated-configure.sh
changeset 29663 74ff65003536
parent 29662 78c47f0002c3
child 29674 457b3ae3cecc
equal deleted inserted replaced
29662:78c47f0002c3 29663:74ff65003536
   905 JVM_VARIANT_SERVER
   905 JVM_VARIANT_SERVER
   906 JVM_VARIANTS
   906 JVM_VARIANTS
   907 JVM_INTERPRETER
   907 JVM_INTERPRETER
   908 JDK_VARIANT
   908 JDK_VARIANT
   909 SET_OPENJDK
   909 SET_OPENJDK
       
   910 CANONICAL_TOPDIR
       
   911 ORIGINAL_TOPDIR
   910 TOPDIR
   912 TOPDIR
   911 PATH_SEP
   913 PATH_SEP
   912 ZERO_ARCHDEF
   914 ZERO_ARCHDEF
   913 DEFINE_CROSS_COMPILE_ARCH
   915 DEFINE_CROSS_COMPILE_ARCH
   914 LP64
   916 LP64
  4361 # definitions. It is replaced with custom functionality when building
  4363 # definitions. It is replaced with custom functionality when building
  4362 # custom sources.
  4364 # custom sources.
  4363 #CUSTOM_AUTOCONF_INCLUDE
  4365 #CUSTOM_AUTOCONF_INCLUDE
  4364 
  4366 
  4365 # 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:
  4366 DATE_WHEN_GENERATED=1427382753
  4368 DATE_WHEN_GENERATED=1427461839
  4367 
  4369 
  4368 ###############################################################################
  4370 ###############################################################################
  4369 #
  4371 #
  4370 # Initialization / Boot-strapping
  4372 # Initialization / Boot-strapping
  4371 #
  4373 #
 14133 $as_echo_n "checking for top-level directory... " >&6; }
 14135 $as_echo_n "checking for top-level directory... " >&6; }
 14134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
 14136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
 14135 $as_echo "$TOPDIR" >&6; }
 14137 $as_echo "$TOPDIR" >&6; }
 14136 
 14138 
 14137 
 14139 
       
 14140   # Save the original version of TOPDIR for string comparisons
       
 14141   ORIGINAL_TOPDIR="$TOPDIR"
       
 14142 
       
 14143 
 14138   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
 14144   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
 14139 
 14145 
 14140   # Only process if variable expands to non-empty
 14146   # Only process if variable expands to non-empty
 14141 
 14147 
 14142   if test "x$CURDIR" != x; then
 14148   if test "x$CURDIR" != x; then
 14388     fi
 14394     fi
 14389   fi
 14395   fi
 14390 
 14396 
 14391   # SRC_ROOT is a traditional alias for TOPDIR.
 14397   # SRC_ROOT is a traditional alias for TOPDIR.
 14392   SRC_ROOT=$TOPDIR
 14398   SRC_ROOT=$TOPDIR
       
 14399 
       
 14400   # Calculate a canonical version of TOPDIR for string comparisons
       
 14401   CANONICAL_TOPDIR=$TOPDIR
       
 14402 
       
 14403   if test "x$OPENJDK_BUILD_OS" != xwindows; then
       
 14404     # Follow a chain of symbolic links. Use readlink
       
 14405     # where it exists, else fall back to horribly
       
 14406     # complicated shell code.
       
 14407     if test "x$READLINK_TESTED" != yes; then
       
 14408       # On MacOSX there is a readlink tool with a different
       
 14409       # purpose than the GNU readlink tool. Check the found readlink.
       
 14410       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
       
 14411       if test "x$ISGNU" = x; then
       
 14412         # A readlink that we do not know how to use.
       
 14413         # Are there other non-GNU readlinks out there?
       
 14414         READLINK_TESTED=yes
       
 14415         READLINK=
       
 14416       fi
       
 14417     fi
       
 14418 
       
 14419     if test "x$READLINK" != x; then
       
 14420       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
       
 14421     else
       
 14422       # Save the current directory for restoring afterwards
       
 14423       STARTDIR=$PWD
       
 14424       COUNTER=0
       
 14425       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
       
 14426       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
       
 14427       cd $sym_link_dir
       
 14428       # Use -P flag to resolve symlinks in directories.
       
 14429       cd `$THEPWDCMD -P`
       
 14430       sym_link_dir=`$THEPWDCMD -P`
       
 14431       # Resolve file symlinks
       
 14432       while test $COUNTER -lt 20; do
       
 14433         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
       
 14434         if test "x$ISLINK" == x; then
       
 14435           # This is not a symbolic link! We are done!
       
 14436           break
       
 14437         fi
       
 14438         # Again resolve directory symlinks since the target of the just found
       
 14439         # link could be in a different directory
       
 14440         cd `$DIRNAME $ISLINK`
       
 14441         sym_link_dir=`$THEPWDCMD -P`
       
 14442         sym_link_file=`$BASENAME $ISLINK`
       
 14443         let COUNTER=COUNTER+1
       
 14444       done
       
 14445       cd $STARTDIR
       
 14446       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
       
 14447     fi
       
 14448   fi
       
 14449 
       
 14450 
 14393 
 14451 
 14394   # Locate the directory of this script.
 14452   # Locate the directory of this script.
 14395   AUTOCONF_DIR=$TOPDIR/common/autoconf
 14453   AUTOCONF_DIR=$TOPDIR/common/autoconf
 14396 
 14454 
 14397 
 14455