common/autoconf/generated-configure.sh

changeset 513
f59a07f85125
parent 512
582c696033f5
child 516
ecf751a69f6a
equal deleted inserted replaced
512:582c696033f5 513:f59a07f85125
3066 # definitions. It is replaced with custom functionality when building 3066 # definitions. It is replaced with custom functionality when building
3067 # custom sources. 3067 # custom sources.
3068 #CUSTOM_AUTOCONF_INCLUDE 3068 #CUSTOM_AUTOCONF_INCLUDE
3069 3069
3070 # Do not change or remove the following line, it is needed for consistency checks: 3070 # Do not change or remove the following line, it is needed for consistency checks:
3071 DATE_WHEN_GENERATED=1352916966 3071 DATE_WHEN_GENERATED=1352917083
3072 3072
3073 ############################################################################### 3073 ###############################################################################
3074 # 3074 #
3075 # Initialization / Boot-strapping 3075 # Initialization / Boot-strapping
3076 # 3076 #
7135 withval=$with_conf_name; CONF_NAME=${with_conf_name} 7135 withval=$with_conf_name; CONF_NAME=${with_conf_name}
7136 fi 7136 fi
7137 7137
7138 7138
7139 # Test from where we are running configure, in or outside of src root. 7139 # Test from where we are running configure, in or outside of src root.
7140 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then 7140 # To enable comparison of directories, CURDIR needs to be symlink free
7141 # just like SRC_ROOT already is
7142 NOSYM_CURDIR="$CURDIR"
7143
7144 if test "x$OPENJDK_BUILD_OS" != xwindows; then
7145 # Follow a chain of symbolic links. Use readlink
7146 # where it exists, else fall back to horribly
7147 # complicated shell code.
7148 if test "x$READLINK_TESTED" != yes; then
7149 # On MacOSX there is a readlink tool with a different
7150 # purpose than the GNU readlink tool. Check the found readlink.
7151 ISGNU=`$READLINK --help 2>&1 | $GREP GNU`
7152 if test "x$ISGNU" = x; then
7153 # A readlink that we do not know how to use.
7154 # Are there other non-GNU readlinks out there?
7155 READLINK_TESTED=yes
7156 READLINK=
7157 fi
7158 fi
7159
7160 if test "x$READLINK" != x; then
7161 NOSYM_CURDIR=`$READLINK -f $NOSYM_CURDIR`
7162 else
7163 STARTDIR=$PWD
7164 COUNTER=0
7165 sym_link_dir=`$DIRNAME $NOSYM_CURDIR`
7166 sym_link_file=`$BASENAME $NOSYM_CURDIR`
7167 while test $COUNTER -lt 20; do
7168 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
7169 if test "x$ISLINK" == x; then
7170 # This is not a symbolic link! We are done!
7171 break
7172 fi
7173 # The link might be relative! We have to use cd to travel safely.
7174 cd $sym_link_dir
7175 # ... and we must get the to the absolute path, not one using symbolic links.
7176 cd `pwd -P`
7177 cd `$DIRNAME $ISLINK`
7178 sym_link_dir=`$THEPWDCMD`
7179 sym_link_file=`$BASENAME $ISLINK`
7180 let COUNTER=COUNTER+1
7181 done
7182 cd $STARTDIR
7183 NOSYM_CURDIR=$sym_link_dir/$sym_link_file
7184 fi
7185 fi
7186
7187 if test "x$NOSYM_CURDIR" = "x$SRC_ROOT" || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common" \
7188 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/autoconf" \
7189 || test "x$NOSYM_CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
7141 # We are running configure from the src root. 7190 # We are running configure from the src root.
7142 # Create a default ./build/target-variant-debuglevel output root. 7191 # Create a default ./build/target-variant-debuglevel output root.
7143 if test "x${CONF_NAME}" = x; then 7192 if test "x${CONF_NAME}" = x; then
7144 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 7193 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
7145 fi 7194 fi

mercurial